New Pallet [message #1122531] |
Tue, 01 October 2013 17:19 |
Tarcísio Couto Messages: 29 Registered: May 2013 |
Junior Member |
|
|
Hello guys,
I'm trying to create a new compartment in my pallet, I can do it, but I have a problem.
When I create a new tab for the class called Requires its OK. See the code below.
@gmf.link(source.decoration="none", target.decoration="square", color="0,0,0", source="relationshipSource", target="relationshipTarget")
class Requires extends VariantsRelationship {
attr String[1] name="requires";
}
var toolEntry;
var toolGroupVariabilityLink = new GmfTool!ToolGroup;
toolGroupVariabilityLink.title := "Variability Links";
toolGroupVariabilityLink.collapsible := true;
pallet.tools.add(toolGroupVariabilityLink);
toolEntry = toolGroupConnections.tools.selectOne(r|r.title = 'Requires');
toolGroupVariabilityLink.tools.add(toolEntry);
But when I try to do the same for the link in red below, it doens't work, I don't how the right way to do that like the class above.
@gmf.node(figure="rectangle", label.placement="internal", label.icon="false", label="wfPattern", border.color="0,0,0", style="dot")
class WorkflowPattern {
attr WorkflowPatternType wfPattern = "WorkflowPattern.SEQUENCE";
id attr String[1] ~id;
@gmf.link(source.decoration="none", target.decoration="closedarrow", color="0,0,0")
ref Variant[1]#pattern variantSource;
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.02653 seconds