using alt in sequence diagrams for starUML - fragment

i am not able to discover how to use the alt/combined fragment correctly in starUML,as in there is no way that i am able to provide the condition after the alt fragment appears.can any1 just list down the procedure as to how to do it or a link to some good tutorial.

If you are using StarUML 2 (Beta), you can go through these simple steps:
Add Combined fragment to your sequence diagram:
If you try to add operand(alt partition) through context menu, you'll see that there's no option to add new operand:
3.To achieve this, you can simple copy the already defined operand and paste it under Combined Fragment:
After that, simply add condition clauses in "guard" property of operands and adjust operand heights:

I had just found the steps as following.
Please refer how to set "alt combinedFragment at starUML due to I have no 10 reputation to post image.
1.create a sequence diagram.
2.add a CombinedFragment1 into diagram.
3.change the "seq CombinedFragment1 " to "alt CombinedFragment1 "
4.select the "Interaction Operand"
5.left-click at the "atl CombinedFragment1 ",you will found the one "InteractionOperand1" added into the "alt CombinedFragment1 ".
6.add the 2nd "InteractionOperand", same with step 4,step5, there will a parting line like the following.
7.set the InteractionOperand's Guard data,my is "isInit",you will found it at the alt frame.
8.add the 2nd Guard data,same with the step7.
9.move the diagram to the proper location.
while,I still have something unknown, for example, how to make the frame located at the top front and add a relationship with the "B method".
Wish it helpful to u.

Add an Interaction Operand to a Combined Fragment. When you select the Interaction Operand you should see in the Properties Inspector a 'Guard' field. You can type your condition just there.

Many thanks for your posts.
By the way, I noticed when adding a Combined Fragment from the left Pane,
that the alt keyword could be displayed as shown below,
after selecting the interactionOperator from the right pane,
NB: other useful keywords such as the "loop" one are also available from the above list

When you add a 'Combined Fragment' double click on the name on the diagram
Then you get a small icon with 3 horizontal lines to the left of the name
When you click on that you can get as much interaction operands as you wish

Related

How to fulfill blank fields in Open Refine?

I found the blank rows, that is already great. Now I want to type "Not informed Value" to all blank values, but I donĀ“t know how, Any hints.
Thanks in advance! I am having a great fun working with this distributed community!
Joni
Use "facet by blank-> true" to isolate the blank cells, then click "transform" on the same column and type the text you want between quotes.
It's also possible to perform the operation with a GREL formula (using "transform"):
if(isBlank(value.trim()), "Not informed Value", value)
Finally, since Open Refine 2.7, you can apply this kind of formula to each columns at once. Just click on "All -> Transform" and use the formula above.

Custom content assist for default java editor in Eclipse

I'm currently trying to develop an Eclipse Plugin to support code replacement, like what the default content assist in Eclipse do. What I want to implement is something like "insert argument names automatically on method completion with visualized box around the argument" and I can "use the Tab key to navigate between the inserted names" and "while navigating, list of optional variables for current argument can be displayed and be chosen".
In short, it comes to two questions:
How to add the visualized box around the already existed variable or even Java keywords that need replacement? And at the meanwhile I can use Tab key to switch between these boxes.
How to display a list of candidates to select from when I trigger on the box?
By now I only figure out the extension point : org.eclipse.jdt.ui.javaCompletionProposalComputer may be useful, but I have no idea where to start at? Thanks in advance.
Oh, finally I've solved it myself...
For the 'box', it should be the LinkedModeModel, this class should work with LinkedPositionGroup and LinkedPosition to add mutiple boxes. And we should use LinkedModeUI to set it up.
For the content assistant, there's no need to use the extension point. There is a ProposalPosition class which extends LinkedPosition for you to add your proposals for the 'box' in its constructor. And we can simply use the CompletionProposal to construct a ICompletionProposal array as the argument of ProposalPosition's constructor.

How to remove header for notes in Enterprise architect

Could someone please help me removing "notes" header for notes from the element displayed on a diagram? I mean the actual word: "notes"
I guess you mean the "notes" header that is shown in the notes compartment of the element if you check the "show notes" checkbox in the "Feature and Compartment Visibility" dialog?
I'm afraid you won't be able to remove that, unless you write a shapescript to duplicate the default shape minus the "notes" header.
Another option might be to create a note element on the diagram and link that to the elements notes using "Link Note to element feature"
Additional advantage of this approach is that you can keep the text formatting in the note element, which is lost in the element compartment.

What is the name space of conversion.val in C#?

I have one text box in C# window application.And i wants to set a initial value of this text box is zero.
so i use conversion.val(textbo1.text) method.
But it gives a error in name space.
I use Using Microsoft.visulbasic; name space but it is not working.
So which name space i use for conversion.val().
Please help me.
Thank you.
The namespace you are adding is correct.
Refer: http://msdn.microsoft.com/en-us/library/9da280t0.aspx
Only adding namespace might not work, you will have to manually add Reference to Microsoft.VisualBasic.dll.
You can add the reference as follows:
- Goto the Solution Explorer panel.
- Right click on References > Add Reference.
- Select the tab ".Net"
- Select Component "Microsoft.VisualBasic"
- Click OK.
Now you can use the Conversion class.
Note: You can find Solution Explorer in the View menu.
Good luck!

Find button in a EXT JS form

I can do myForm.getForm().findField('myFld'); to find a field by name. What's the equivalent of finding a button?
Fields exept name can also have ref propety:
name: 'fieldID',
ref: 'your_reference',
this way you do not need to find them - to access this.your_reference
you can do it with button also. Trick is: if button is on toolbar (top or bottom) use ref: '../your_btn_ref' to get 1 level up 9direct will go to toolbar)
Do you mean find? "Find a component under this container at any level by property."
More generally, you can use findBy.
Try this:
getItemByItemId(btnId)
using "ref" doesnt always work, it is abit hit and miss.
I would recommend either giving the button and ID and using Ext.getCmp(buttonid);
or
Search for the button class using Ext.select and select the approriate array key, Ext.select();