How to parse a text on a transition with OCL? is it possible ?

Hi Everyone,
I was just wondering if it is possible to put constraints between a transition on a state machine and a variable/attribute in a class diagram ? for example, to make sure if the user writes [X++] as a guard for a transition in state machine, the X attribute exists in the corresponding class diagram.
Is it even possible with OCL? I think maybe it should be coded to parse the text... Any idea will be appreciated
Thanks,
Parsa

Hi
For OMG OCL, yes, since the capability is implied by the UML
specification. However there are gaping chasms between the UML and OCL
specifications, so any useable implementation relies on vendor intuition.
For the new pivot-based Eclipse OCL, quite possibly. The UML support is
primarily for Class Diagram elements, but is kind of extensible in so
far as for unsupported UML elements, 'self' is aligned to the nearest
containing Class. This works for statemachines, and could work for
transitions. Activity diagrams are known to not work.
Regards
Ed Willink
On 29/06/2015 18:02, Parsa Pourali wrote:
> Hi Everyone,
>
> I was just wondering if it is possible to put constraints between a
> transition on a state machine and a variable/attribute in a class
> diagram ? for example, to make sure if the user writes [X++] as a
> guard for a transition in state machine, the X attribute exists in the
> corresponding class diagram.
>
> Is it even possible with OCL? I think maybe it should be coded to
> parse the text... Any idea will be appreciated :)
>
> Thanks,
> Parsa

Similar Messages

  • How to convert a "text variable" to String with plugin

    Hello,
    I am currently developing a InDesign (CS5) plugin, where I need to manipulate text variable.
    From the plugin I want to convert the "text variable" to string (in principle I should use the method "VariableToString (..)" of "ITextVariable")"
    My problem is, how to find the text varial from its name (I think I should use the method "FindLocationsUsed(..)" of "ITextVariableSuite") and then convert it to String
    I don't know how to use interfaces ITextVariable and ITextVariableSuite
    Plugin implemented in C++ language
    thank you

         InputStreamReader in=new InputStreamReader(fis);
          StringWriter out=new StringWriter();
          char[] buffer=new char[8192];
          int sizeRead;
          while ( ( sizeRead=in.read(buffer, 0, 8192) ) != -1 )
            out.write(buffer, 0, sizeRead);
         String content=out.toString();

  • How to Enable Full text search in UCM with Oracle 10g

    Hi,
    Can you please guide me on how to enable full text search in UCM after I have installed it. My database is Oracle 10g. It would be great if you could guide me through the steps since I am very new to this product.
    Regards
    Ashish

    Hi
    Are you sure that your indexer is finishing without any errors? Check activeindex.hda under \search directory to see what is the variable set for activeindex variable? If Oracle Text is the indexer search enabled then the variable activeindex should either OTS1 or OTS2. If anything else then you have indexer problems that is not indexing documents.
    Check the CS log file to see if indexer errors are shown there. If yes, then put it over here so that we can analyse it.
    Hope it helps
    Thanks
    Srinath

  • How to align the text in justify format with SQL Server Reporting Services?

            How to align the text in justify format In SQL server Reporting Services? Is there any code to do so?

    Hi,
    I'm afraid that if you want to have this kind of functionality, you will need to write a custom control. Here is an example: http://msdn2.microsoft.com/en-us/library/ms345265.aspx. The issue with custom controls is that it needs to be known by all the reportservers that will render your report.
    Greetz,
    Geert
    Geert Verhoeven
    Consultant @ Ausy Belgium
    My Personal Blog

  • Just how on earth do you get menu transitions with sound to work???

    I've tried importing them as DVD compliant MPEG-2s (audio and video multiplexed) made with Main Concept and also tried importing them as AVIs.
    Encore seems incapable of transcoding either. Yes, it does try to transcode the MPEG-2s even though I've asked it not to. It seems that even DVD compliant files must be transcoded when used as transitions. It doesn't try to transcode motion menu or timeline MPEG-2s created in exactly the same way.
    Can someone tell me exactly what Encore requires me to import to get working transitions with sound? Exact format, sound resolution, number of channels, bitrate, file type, etc. Is there a minimum length for transitions? Mine are 1 second long - they're just the transition flipping from page to page in a notebook.
    Is there something else I'm missing or is Encore just not capable of doing this?
    I think I'm going to have to just scrap the transitions otherwise :(
    Thanks

    One second is awfully short for an MPEG video clip. You're really challenging the MPEG decoder on the playback device. And if you're using .ac3 audio, it can take up to 2 seconds for the AC3 decoder on a hardware or software DVD player to lock on to the audio stream. Dolby themselves recommend 2 seconds of audio "black" at the beginning of an .ac3 soundtrack.
    So - try lengthening the transition; or use PCM audio in your project instead of .ac3. Unfortunately, the PCM audio route leads to less space on the disc for your video.

  • How to parse a text file and produce a dynamic shell script for linking?

    I have some mapping files, one example is like this one;
    $ cat CON_xfrm_contract_to_20080302.map
    (object mfile_c_type
    (path "file:OBSOLETE")
    (fs "file://amanos/s01/abinitio/data/prod/mfs/mfs_16way")
    (local_paths 16
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"
      "file://amanos/s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat"))In this file's content I have some exracted text files with same names under different folders;
    $ ls -lt /s01/abinitio/data/prod/mfs/parts/mfs_16way_*/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat   [
    -rw-rw-rw-   1 ab_live  abinitio 438652105 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438490410 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438219252 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438521432 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438488130 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438249547 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438312177 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 439074566 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438722261 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438742477 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438517268 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438645835 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438334994 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438470743 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438095853 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    -rw-rw-rw-   1 ab_live  abinitio 438434204 Mar  3 01:42 /s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.datI need a shell script which will produce a shell script from the content of the mapping file so that I can be able to symbolicly link these files with different names and under the same folder, like;
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat ./mfs_16way_001.CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat ./mfs_16way_016.CON_xfrm_contract_to_20080302.datI am a newbie for shell scripting, I tried several awk and sed operations but couldn't get close to this output :(
    If you guide me I will be so glad, thank you.
    ps: amanos is the name of this server.

    this is thepoint that I am stuck, I can not add the destination sym.link name to the end of each line;
    $ grep "  \"file://amanos" CON_xfrm_contract_to_20080302.map | cut -c17- | sed  's/"//;s/)//g' | sed 's/\/s01/ln -s \/s01/g'
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_001/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_002/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_003/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_004/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_005/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_006/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_007/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_008/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_009/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_010/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_011/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_012/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_013/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_014/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_015/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    ln -s /s01/abinitio/data/prod/mfs/parts/mfs_16way_016/mfs_16way/Applications/RDS/CON_PUB/main/CON_xfrm_contract_to_20080302.dat
    $ /)//g' | sed 's/\/s01/ln -s \/s01/g' | awk -F\/ '{print $8"."$14}'                                                       <
    mfs_16way_001.CON_xfrm_contract_to_20080302.dat
    mfs_16way_002.CON_xfrm_contract_to_20080302.dat
    mfs_16way_003.CON_xfrm_contract_to_20080302.dat
    mfs_16way_004.CON_xfrm_contract_to_20080302.dat
    mfs_16way_005.CON_xfrm_contract_to_20080302.dat
    mfs_16way_006.CON_xfrm_contract_to_20080302.dat
    mfs_16way_007.CON_xfrm_contract_to_20080302.dat
    mfs_16way_008.CON_xfrm_contract_to_20080302.dat
    mfs_16way_009.CON_xfrm_contract_to_20080302.dat
    mfs_16way_010.CON_xfrm_contract_to_20080302.dat
    mfs_16way_011.CON_xfrm_contract_to_20080302.dat
    mfs_16way_012.CON_xfrm_contract_to_20080302.dat
    mfs_16way_013.CON_xfrm_contract_to_20080302.dat
    mfs_16way_014.CON_xfrm_contract_to_20080302.dat
    mfs_16way_015.CON_xfrm_contract_to_20080302.dat
    mfs_16way_016.CON_xfrm_contract_to_20080302.datMessage was edited by:
    antu
    Message was edited by:
    antu

  • How to parse this text?

    effect = {{p_physical_defence;{armor_light};11.1;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};11.8;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};12.5;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};14;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}     
    effect = {{p_physical_defence;{armor_light};14.8;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};15.6;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};17.3;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};18.1;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};19;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}     
    effect = {{p_physical_defence;{armor_light};20.8;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};21.7;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};22.6;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};24.5;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};25.5;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_light};26.4;diff};{p_magic_speed;{armor_light};88;per};{p_attack_speed;{armor_light};25;per};{p_mp_regen;{armor_light};20;per}}
    effect = {{p_physical_defence;{armor_heavy};14.8;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};15.6;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};16.5;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};18.3;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};19.2;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};20.2;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};22.1;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};23.1;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};24.1;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};26.2;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};27.3;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};28.4;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};30.6;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};31.8;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per
    effect = {{p_physical_defence;{armor_heavy};33;diff};{p_magic_speed;{armor_heavy};68;per};{p_attack_speed;{armor_heavy};25;per}}
    effect = {{i_p_attack_over_hit;123};{p_block_act}}
    effect = {{i_p_attack_over_hit;131};{p_block_act}}

    Yeesh.
    Throw some code at it and hope it works.

  • How to display Long text in a JLabel with multiline??

    Hi,
    Suppose I have a label that displays a long text....
    ""This is an example label that displays long text, how to break the line????.........""
    how to display it like below with one label?
    ""This is an example label
    that displays long text, how
    to break the line????.........""
    Thanks

    so basically do this
    JLabel myLabel = new JLabel();
    String theText = "<html>This is an example label<br>
                                  that displays long text, how<br>
                                  to break the line????.........</html>";
    myLabel.setText(theText);Obivously, u dont have to use a separate string, u could just call setText or pass it into the JLabel constructor, i just separated it to make it easier to see what your supposed to do.
    GOod Luck

  • How to NOT dial  text in phone number with a note like "555-1212 John only"

    I have some phone numbers that have text after them like "dont' call after 6". They were entered on Address Book on my desktop Mac. When I call these numbers from the contacts on the iPhone, it dials the letters also, which is annoying since they contintue beeping while the person has answered. Any suggestions on how to get the iPhone NOT to dial these parts of the number? Is there some magic character that makes it stop dialling? What does it do if the number is like 555-1212 x3434?
    Lloyd

    lslonim,
    You may want to take the text out of the phone number field, otherwise the iPhone will assume it's part of the number you are dialing. You can add the "don't call after 6" message in the Notes field so that you can still see the reminder, but the iPhone does not continue to dial after the recipient has answered.
    If you have a number that has an extension, you can set up the phone number to have pauses so that the extension can be auto-dialed when you select that phone number. Pauses are found under the "+*#" icon in the lower left-hand corner when you are adding a phone number to a contact. That will allow the iPhone to dial 555-1212, pause for a few seconds, and continue with 3434. You may have to experiment with the number of pauses needed to dial the number correctly.
    Hope this helps,
    Jennifer B.

  • How can I mark texts in different colors with Preview?

    I was used to work with Preview as an editing program. Now, after the update to Mavericks, I miss some useful features. In Preview are only five colors and I need the whole palette of colors to mark texts. Do you know if this features is gone or if I merely can't find them?
    Thank you for your help!

    I was used to work with Preview as an editing program. Now, after the update to Mavericks, I miss some useful features. In Preview are only five colors and I need the whole palette of colors to mark texts. Do you know if this features is gone or if I merely can't find them?
    Thank you for your help!

  • How can I put text into a cell with a formula?

    I'm trying to sort a budget in Numbers 3.1. I have a sum of column of cells that I'm adding up. The cell that has a total number looks like this: =SUM(F). I want to have that sum have a $ sign in front of it. I've ready everywhere that I could do ="$" SUM(7), but that doesn't work in 3.0, only in Numbers 09 I guess. Is there a new solution for 3.1?

    Tyna,
    Just Format the cell as Currency.
    Jerry

  • How to parse XML file with namesapce?

    Hi,
       I am trying to parse an xml file having namespace. But no data is returned.
    Sample Code:
    public class XMLFileLoader
    var xml:XML = new XML();
    var myXML:XML = new XML();
    var XML_URL:String = "file:///C:/Documents and Settings/Administrator/Desktop/MyData.xml";
    var myLoader:URLLoader = null;
    public function XMLFileLoader()
    var myXMLURL:URLRequest = new URLRequest(XML_URL);
    myLoader= new URLLoader(myXMLURL);
    myLoader.addEventListener(Event.COMPLETE,download);
    public function download(event:Event):void
    myXML = XML(myLoader.data);
    var ns:Namespace=myXML.namespace("xsi");
    for(var prop:String in myXML)
         trace(prop);
    //Alert.show(myXML..Parameters);
    //trace("Data loadedww."+myXML.toString());
    //Alert.show(myXML.DocumentInfo.attributes()+"test","Message");
    The XML Contains the following format.
    <Network xmlns="http://www.test.com/2005/test/omc/conf"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.test.com/2005/test/omc/conf/TestConfigurationEdition3proposal4.xsd">
        <TestDomain>
          <WAC>
            <!--Release Parameter  -->
            <Parameters ParameterName="ne_release" OutageType="None"
                        accessRight="CreateOnly" isMandatory="true"
                        Planned="false"
                        Reference="true" Working="true">
              <DataType>
                <StringType/>
              </DataType>
              <GUIInfo graphicalName="Release"
                       tabName="All"
                       description="Describes the release version of the managed object"/>
            </Parameters>
    </TestDomain>
    </Network>
    Any sample code how to parse this kind of xml file with namespaces...
    Regards,
    Purushotham

    i have exactly the same problem with KXml2, but using a j2me-polish netbeans project.
    i've tried to work around with similar ways like you, but none of them worked. now i've spent 3 days for solving this problem, i'm a bit disappointed :( what is wrong with setting the downloaded kxml2 jar path in libraries&resources?
    screenshot

  • How to aling the text in a JTable???

    I use this code to make a vertical header like in excel. The thing is that i want to aling the text in that column but i couldn´t. I try to set the render, but i loose the header render in the column. Anyone know how to aling the text in that column with out loosing the header effect????
    i post a code that i use as model for my project.
    package com.chuidiang.ejemplos;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.WindowConstants;
    import javax.swing.table.DefaultTableModel;
    * Ejemplo de cómo hacer una "cabecera" lateral en un JTable. Idea original de
    * Leunamal en
    * http://foro.chuidiang.com/java-j2se/tabla-de-referencias-cruzadas-en-java/
    * Básicamente consiste en hacer que la primera columna: - No sea editable. - No
    * sea seleccionable. - Tenga el mismo render que el JTableHeader superior.
    * @author chuidiang
    public class CabeceraLateral {
          * Crea y visualiza una ventana con un JTable que tiene cabecera en la parte
          * superior y en la columna izquierda
          * @param args
         public static void main(String[] args) {
              // Un modelo de datos que hace la primera columna (la de
              // la cabecera lateral) no editable.
              DefaultTableModel tm = new DefaultTableModel(10, 5) {
                   @Override
                   public boolean isCellEditable(int row, int column) {
                        if (0 == column)
                             return false;
                        return super.isCellEditable(row, column);
              // Titulos para la cabecera superior. El primero es vacio,
              // puesto que corresponde
              tm.setColumnIdentifiers(new String[] { "", "A", "B", "C", "D" });
              // Valores para la primera columna, que es la cabecera lateral.
              for (int i = 0; i < 10; i++)
                   tm.setValueAt(i + 1, i, 0);
              // JTable al que se le pasa el modelo recien creado y se
              // sobreescribe el metodo changeSelection para que no permita
              // seleccionar la primera columna.
              JTable t = new JTable(tm) {
                   @Override
                   public void changeSelection(int rowIndex, int columnIndex,
                             boolean toggle, boolean extend) {
                        if (columnIndex == 0)
                             super.changeSelection(rowIndex, columnIndex + 1, toggle,
                                       extend);
                        else
                             super.changeSelection(rowIndex, columnIndex, toggle,
                                                 extend);
              // Se pone a la primera columna el render del JTableHeader
              // superior.
              t.getColumnModel().getColumn(0).setCellRenderer(t.getTableHeader().getDefaultRenderer()); //here i set the render for the column. But when i try to aling the text, this column loose the effect.
              // Creación y visualización de la ventana completa.
              JFrame v = new JFrame("Cabecera lateral");
              JScrollPane sp = new JScrollPane(t);
              v.getContentPane().add(sp);
              v.pack();
              v.setVisible(true);
              v.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }

    The word is "align" not aling.
    To right-align the first column, you can do this in a prepareRenderer override.    JTable t = new JTable(tm) {
          @Override
          public void changeSelection(int rowIndex, int columnIndex,
                  boolean toggle, boolean extend) {
            if (columnIndex == 0) {
              super.changeSelection(rowIndex, columnIndex + 1, toggle,
                      extend);
            } else {
              super.changeSelection(rowIndex, columnIndex, toggle,
                      extend);
          @Override
          public Component prepareRenderer(TableCellRenderer renderer, int row, int column) {
            Component c = super.prepareRenderer(renderer, row, column);
            if (column == 0) {
              ((JLabel) c).setHorizontalAlignment(JLabel.RIGHT);
            return c;
        };You can find other alternatives to your approach by searching the net for "[JTable row header|http://www.google.com/search?q=JTable+row+header]"
    db

  • How to handle the table control While working with LSMW?

    How to handle the table control While working with LSMW?

    its possible in lsmw,
    Hi,
    LSMW will have a Indicator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.
    check that single charecter field, it that is X that means the header record is processed, and do the items.
    and, this is another way, try this out also
    YOu can do this in "Define Source Structures" step,
    the HEADER is defined first,
    then the DETAIL below the HEADER.
    add the fields to the structures.
    Both should have some common key field
    Please take care that the name of the common field is the same.
    Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would.
    Thanks

  • How do I add text to an image?

    I have purchased a template and imported it to Photoshop. I then sliced the template into sections, saved it for web and opened the index file in dreamweaver. My questions is, how do I add text to the images? I want to add the text content, within the boxes on the template, but because they are exported as images from Photshop I can't seem to do it...So let's say there is a box in the middle of the template and I want it to say, Services at the top and below that have a little information about the services offered with a "read more" button at the bottom. I have exported the template out of photoshop with text added and with the boxes empty. I tried to add the text in dreamweaver but couldn't. When I export the sliced template out of photoshop with the text already included, it does show up in Dreamweaver, however it is not in html and I would like it to be for SEO purposes. Forgive me if this question is silly or already answered, I have looked everywhere and couldn't find the answer.
    Thanks in advance to anyone that can help.

    Hi,
    I prefer to use tables for that. For example (First of all you have to store this new file):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>AddedText</title>
    </head>
    <body>
    <table width="40%" border="4">
      <tr>
        <td>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </td>
      </tr>
      <tr>
        <td align="center" valign="top"><div align="center"><img src="yourPicture.jpg" alt="image 01" width="127" height="33" /></div></td>
      </tr>
      <tr>
        <td>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </td>
      </tr>
    </table>
    </body>
    </html>
    Here I took a table with only one column, you can modify my choice.
    There is so too a possibility to use a complete flow text around a picture. If you like that, please give me a shout.
    About the story "hotspots" look here where I tried to give an answer a short while ago: http://forums.adobe.com/message/2700306#2700306
    Hans-G.

Maybe you are looking for

  • What is  USER_EXIT for  VL02N while  PGI

    Hi, While doing PGI System should calculate pallet no. For i wrote code in this FORM USEREXIT_SAVE_DOCUMENT use exit in INCLUDE MV50AFZ1 . While I am assign pallet no in likp its not updating LIKP transparent table. case sy-ucomm. when 'WABU_T' OR 'W

  • Cannot Mirror new Samsung monitor

    I have a MacBook with 2GB RAM and 2.4 GHz Intel Core 2 Due processor (machine is less than a year old). Recently bought a wide-screen 20" Samsung monitor (2033SW) and connected to the Mac through DVI. My problem is when arranging the monitors as mirr

  • Wont stay on safari...

    ever since the update I keep getting kicked off of Safari on my macbook pro. Why? It's like its defaulting back to the home screen automaticly

  • Bapi_salesorder_cretefromdat2

    while creating order  through  bapi ' bapi_salesorder_cretefromdat2 ' I passed sold to party and ship to party  in  the order partner getting error  if I passed  only  sold to party getting order.

  • How do I delete applications?

    Hi everyone, I know this is probably the stupidest question you've ever heard, but how do I delete the applications on my Tour that I didn't download? I don't use AIM, Yahoo! Messenger, or anything like that, and I can't figure out how to delete them