Revision 539

View differences:

tags/3.8.02/src/main/java/org/modelio/module/sysml/customizer/SysMLStateMachineDiagramCustomizer.java
1
package org.modelio.module.sysml.customizer;
2

  
3
import java.util.List;
4
import java.util.Map;
5
import com.modeliosoft.modelio.javadesigner.annotations.objid;
6
import org.eclipse.gef.palette.PaletteDrawer;
7
import org.eclipse.gef.palette.PaletteRoot;
8
import org.modelio.api.modelio.diagram.IDiagramCustomizer;
9
import org.modelio.api.module.IModule;
10
import org.modelio.module.sysml.i18n.I18nMessageService;
11
import org.modelio.module.sysml.impl.SysMLModule;
12
import org.modelio.module.sysml.utils.ISysMLCustomizerPredefinedField;
13

  
14
/**
15
 * State Machine diagram palette configurer.
16
 */
17
@objid ("2be36872-150f-4337-b491-049356134df5")
18
public class SysMLStateMachineDiagramCustomizer extends SysMLDiagramCustomizer implements IDiagramCustomizer {
19
    @objid ("c8e4ca9a-7fb0-4947-a675-d09c50dadb9a")
20
    @Override
21
    public void fillPalette(PaletteRoot paletteRoot) {
22
        for (Object children : paletteRoot.getChildren()){
23
            if ((children instanceof PaletteDrawer) 
24
                    && ((PaletteDrawer)children).getLabel().equals(I18nMessageService.getString("StatePaletteGroup.Common"))){
25
                PaletteDrawer common = (PaletteDrawer) children;
26
                common.add(0, SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService().getRegisteredTool(ISysMLCustomizerPredefinedField.Rationale));                 
27
                common.add(0, SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService().getRegisteredTool(ISysMLCustomizerPredefinedField.Problem));
28
             }
29
            
30
        }
31
    }
32

  
33
    @objid ("5cc2f3e8-5903-469c-bd6e-c64f8a203499")
34
    @Override
35
    public boolean keepBasePalette() {
36
        return true;
37
    }
38

  
39
    @objid ("9ce7d160-2bcf-4858-8780-8412cb916bc1")
40
    @Override
41
    public void initialize(IModule module, List<org.modelio.api.modelio.diagram.tools.PaletteEntry> tools, Map<String, String> hParameters, boolean keepBasePalette) {
42
    }
43

  
44
    @objid ("d745f748-5234-47e5-9ae1-ab74391bec57")
45
    @Override
46
    public Map<String, String> getParameters() {
47
        return null;
48
    }
49

  
50
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/customizer/SysMLSequenceDiagramCustomizer.java
1
package org.modelio.module.sysml.customizer;
2

  
3
import java.util.List;
4
import java.util.Map;
5
import com.modeliosoft.modelio.javadesigner.annotations.objid;
6
import org.eclipse.gef.palette.PaletteDrawer;
7
import org.eclipse.gef.palette.PaletteRoot;
8
import org.modelio.api.modelio.diagram.IDiagramCustomizer;
9
import org.modelio.api.module.IModule;
10
import org.modelio.module.sysml.i18n.I18nMessageService;
11
import org.modelio.module.sysml.impl.SysMLModule;
12
import org.modelio.module.sysml.utils.ISysMLCustomizerPredefinedField;
13

  
14
/**
15
 * Sequence diagram palette configurer.
16
 */
17
@objid ("d01e8774-0ca2-4f78-b2d1-655bc8b5e1f1")
18
public class SysMLSequenceDiagramCustomizer extends SysMLDiagramCustomizer implements IDiagramCustomizer {
19
    @objid ("c0a6a723-ed17-424f-948a-61d321bc0d8e")
20
    @Override
21
    public void fillPalette(PaletteRoot paletteRoot) {
22
        for (Object children : paletteRoot.getChildren()){
23
            if (children instanceof PaletteDrawer){
24
                PaletteDrawer currentDrawer = (PaletteDrawer) children ;
25
                String drawerLabel = currentDrawer.getLabel();
26
                if  (drawerLabel.equals(I18nMessageService.getString("SequencePaletteGroup.Common"))){
27
                    currentDrawer.add(0, SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService().getRegisteredTool(ISysMLCustomizerPredefinedField.Rationale));                 
28
                    currentDrawer.add(0, SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService().getRegisteredTool(ISysMLCustomizerPredefinedField.Problem));
29
                }
30
            }
31
        
32
        }
33
    }
34

  
35
    @objid ("54de3cb9-4aa0-40c5-b202-7d467a7853c4")
36
    @Override
37
    public boolean keepBasePalette() {
38
        return true;
39
    }
40

  
41
    @objid ("7af58bf0-9ca8-4907-a1cf-aab1ed4b6ee2")
42
    @Override
43
    public void initialize(IModule module, List<org.modelio.api.modelio.diagram.tools.PaletteEntry> tools, Map<String, String> hParameters, boolean keepBasePalette) {
44
    }
45

  
46
    @objid ("4399a2fa-48d5-4844-9f08-e19cd5ea79d4")
47
    @Override
48
    public Map<String, String> getParameters() {
49
        return null;
50
    }
51

  
52
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/customizer/SysMLUseCaseDiagramCustomizer.java
1
package org.modelio.module.sysml.customizer;
2

  
3
import java.util.List;
4
import java.util.Map;
5
import com.modeliosoft.modelio.javadesigner.annotations.objid;
6
import org.eclipse.gef.palette.PaletteDrawer;
7
import org.eclipse.gef.palette.PaletteRoot;
8
import org.modelio.api.modelio.diagram.IDiagramCustomizer;
9
import org.modelio.api.module.IModule;
10
import org.modelio.module.sysml.i18n.I18nMessageService;
11
import org.modelio.module.sysml.impl.SysMLModule;
12
import org.modelio.module.sysml.utils.ISysMLCustomizerPredefinedField;
13

  
14
/**
15
 * Use Case diagram palette configurer.
16
 */
17
@objid ("6a350353-9cc6-4679-b04e-1dde9c0893ae")
18
public class SysMLUseCaseDiagramCustomizer extends SysMLDiagramCustomizer implements IDiagramCustomizer {
19
    @objid ("798e3f96-90b9-4351-ad40-e4b511640400")
20
    @Override
21
    public void fillPalette(PaletteRoot paletteRoot) {
22
        for (Object children : paletteRoot.getChildren()){
23
            if (children instanceof PaletteDrawer){
24
                PaletteDrawer currentDrawer = (PaletteDrawer) children ;
25
                String drawerLabel = currentDrawer.getLabel();
26
                if  (drawerLabel.equals(I18nMessageService.getString("UseCasePaletteGroup.Common"))){
27
                    currentDrawer.add(0, SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService().getRegisteredTool(ISysMLCustomizerPredefinedField.Rationale));                 
28
                    currentDrawer.add(0, SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService().getRegisteredTool(ISysMLCustomizerPredefinedField.Problem));
29
                }
30
                else if  (drawerLabel.equals(I18nMessageService.getString("UseCasePaletteGroup.InformationFlow"))){
31
                    currentDrawer.add(0, SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService().getRegisteredTool(ISysMLCustomizerPredefinedField.ItemFlow));     
32
                }
33
            }
34
        }
35
    }
36

  
37
    @objid ("ea6d3302-1248-462c-9767-03a322626cc2")
38
    @Override
39
    public boolean keepBasePalette() {
40
        return true;
41
    }
42

  
43
    @objid ("d046d60b-3fb6-48f4-b281-dab9ee398f1b")
44
    @Override
45
    public void initialize(IModule module, List<org.modelio.api.modelio.diagram.tools.PaletteEntry> tools, Map<String, String> hParameters, boolean keepBasePalette) {
46
    }
47

  
48
    @objid ("effb3ecf-2b1a-4df4-8b0a-9f16cc60caa5")
49
    @Override
50
    public Map<String, String> getParameters() {
51
        return null;
52
    }
53

  
54
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/customizer/SysMLActivityDiagramCustomizer.java
1
package org.modelio.module.sysml.customizer;
2

  
3
import java.util.List;
4
import java.util.Map;
5
import com.modeliosoft.modelio.javadesigner.annotations.objid;
6
import org.eclipse.gef.palette.MarqueeToolEntry;
7
import org.eclipse.gef.palette.PaletteDrawer;
8
import org.eclipse.gef.palette.PaletteEntry;
9
import org.eclipse.gef.palette.PaletteRoot;
10
import org.eclipse.gef.palette.SelectionToolEntry;
11
import org.modelio.api.modelio.diagram.IDiagramCustomizer;
12
import org.modelio.api.modelio.diagram.IDiagramService;
13
import org.modelio.api.module.IModule;
14
import org.modelio.module.sysml.i18n.I18nMessageService;
15
import org.modelio.module.sysml.impl.SysMLModule;
16
import org.modelio.module.sysml.utils.IDiagramCustomizerPredefinedField;
17
import org.modelio.module.sysml.utils.ISysMLCustomizerPredefinedField;
18

  
19
/**
20
 * Activity diagram palette configurer.
21
 */
22
@objid ("fa636582-392b-4d0f-aa28-3c36bd731092")
23
public class SysMLActivityDiagramCustomizer extends SysMLDiagramCustomizer implements IDiagramCustomizer {
24
    @objid ("7f575a0b-ca1e-439c-9fbd-6f9ec1138a5f")
25
    @Override
26
    public void fillPalette(PaletteRoot paletteRoot) {
27
        IDiagramService toolRegistry = SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService();
28
        final PaletteDrawer commonGroup = new PaletteDrawer("Default", null);
29
        commonGroup.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);       
30
        commonGroup.add(new SelectionToolEntry());
31
        commonGroup.add(new MarqueeToolEntry());     
32
        paletteRoot.add(commonGroup);
33
        
34
        paletteRoot.add(this.createControlGroup(toolRegistry));
35
        paletteRoot.add(this.createEventGroup(toolRegistry));
36
        paletteRoot.add(this.createDataGroup(toolRegistry));
37
        paletteRoot.add(this.createFlowGroup(toolRegistry));
38
        paletteRoot.add(this.createPartitionGroup(toolRegistry));
39
        paletteRoot.add(this.createDefaultInformationFlowGroup(toolRegistry));
40
        paletteRoot.add(this.createDependencyGroup(toolRegistry));
41
        paletteRoot.add(this.createDefaultNotesGroup(toolRegistry));
42
        paletteRoot.add(this.createDefaultFreeDrawingGroup(toolRegistry));
43
    }
44

  
45
    @objid ("12d8e37e-a0b7-4d3f-8f5f-2e3f7a51388e")
46
    private PaletteEntry createPartitionGroup(final IDiagramService toolRegistry) {
47
        PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("ActivityPaletteGroup.Partition"), null);
48
        
49
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ActivityPartitionVerticalContainer));
50
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ActivityPartitionHorizontalContainer));
51
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ActivityPartitionSibling));
52
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ActivityPartitionInner));
53
        
54
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
55
        return group;
56
    }
57

  
58
    /**
59
     * Creates the note and constraint and dependency group.
60
     * @param imageService
61
     * service used to get metaclasses bitmaps.
62
     * @return The created group.
63
     */
64
    @objid ("0c9b8fef-bb46-4f20-b635-0f72a5023b68")
65
    private PaletteDrawer createDependencyGroup(final IDiagramService toolRegistry) {
66
        // common group
67
        PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("ActivityPaletteGroup.Common"), null);
68
        
69
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Dependency));
70
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Traceability));
71
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.RelatedDiagramLink));
72
        
73
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
74
        return group;
75
    }
76

  
77
    @objid ("26c2a201-dade-46b5-a4f5-b3e8030e0980")
78
    private PaletteEntry createEventGroup(final IDiagramService toolRegistry) {
79
        PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("ActivityPaletteGroup.Event"), null);
80
        
81
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.SendSignalAction));
82
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.AcceptCallEventAction));
83
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.AcceptChangeEventAction));
84
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.AcceptSignalAction));
85
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.AcceptTimeEventAction));
86
        
87
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
88
        return group;
89
    }
90

  
91
    @objid ("a79100e9-0ed6-46b0-b7a1-488d5e094282")
92
    private PaletteEntry createFlowGroup(final IDiagramService toolRegistry) {
93
        PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("ActivityPaletteGroup.Flow"), null);
94
        
95
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.SmartFlow));
96
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ContinuousActivityEdge));
97
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.DiscreteActivityEdge));
98
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Probability));
99
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.RateActivityEdge));
100
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ControlFlow));
101
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ObjectFlow));
102
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ExceptionHandler));
103
        
104
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
105
        return group;
106
    }
107

  
108
    @objid ("5374542f-11ad-4e15-9653-c7b26187cb52")
109
    private PaletteEntry createDataGroup(final IDiagramService toolRegistry) {
110
        PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("ActivityPaletteGroup.Data"), null);
111
        
112
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InstanceNode));
113
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.DataStoreNode));
114
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.CentralBufferNode));
115
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ContinuousParameter));
116
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.DiscreteParameter));
117
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Optional));
118
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.RateParameter));
119
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ActivityParameterNode));
120
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InputPin));
121
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.OutputPin));
122
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ValuePin));
123
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ExpansionNodeInput));
124
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ExpansionNodeOutput));
125
        
126
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
127
        return group;
128
    }
129

  
130
    @objid ("afeb25b4-e27f-4d4b-b8de-71bff39eff14")
131
    private PaletteEntry createControlGroup(final IDiagramService toolRegistry) {
132
        PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("ActivityPaletteGroup.Control"), null);
133
        
134
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.OpaqueAction));
135
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.CallBehaviorAction));
136
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.CallOperationAction));
137
        
138
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ConditionalNode));
139
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Clause));
140
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.LoopNode));
141
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.StructuredNode));
142
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ExpansionRegion));
143
        
144
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InitialNode));
145
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ActivityFinalNode));
146
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.FlowFinalNode));
147
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ForkJoinNode));
148
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.DecisionMergeNode));
149
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InterruptibleActivityRegion));
150
        
151
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
152
        return group;
153
    }
154

  
155
    @objid ("3cd9010e-87d0-4ef8-8282-2bcb4802e338")
156
    @Override
157
    public boolean keepBasePalette() {
158
        return false;
159
    }
160

  
161
    @objid ("ebb75955-8e29-4971-9aa0-2f1f4cb7a6a1")
162
    @Override
163
    public void initialize(IModule module, List<org.modelio.api.modelio.diagram.tools.PaletteEntry> tools, Map<String, String> hParameters, boolean keepBasePalette) {
164
    }
165

  
166
    @objid ("b703bea2-f21a-4ffe-94ee-46127b33a7db")
167
    @Override
168
    public Map<String, String> getParameters() {
169
        return null;
170
    }
171

  
172
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/customizer/InternalBlockDiagramCustomizer.java
1
package org.modelio.module.sysml.customizer;
2

  
3
import java.util.List;
4
import java.util.Map;
5
import com.modeliosoft.modelio.javadesigner.annotations.objid;
6
import org.eclipse.gef.palette.MarqueeToolEntry;
7
import org.eclipse.gef.palette.PaletteDrawer;
8
import org.eclipse.gef.palette.PaletteEntry;
9
import org.eclipse.gef.palette.PaletteRoot;
10
import org.eclipse.gef.palette.SelectionToolEntry;
11
import org.modelio.api.modelio.diagram.IDiagramCustomizer;
12
import org.modelio.api.modelio.diagram.IDiagramService;
13
import org.modelio.api.module.IModule;
14
import org.modelio.module.sysml.i18n.I18nMessageService;
15
import org.modelio.module.sysml.impl.SysMLModule;
16
import org.modelio.module.sysml.utils.IDiagramCustomizerPredefinedField;
17
import org.modelio.module.sysml.utils.ISysMLCustomizerPredefinedField;
18

  
19
/**
20
 * This class handles the palette configuration of SysML internal block diagram
21
 * @author ebrosse
22
 */
23
@objid ("4d01f1a9-512c-48fc-b24d-b4a780691392")
24
public class InternalBlockDiagramCustomizer extends SysMLDiagramCustomizer implements IDiagramCustomizer {
25
    @objid ("047543c2-8db4-4647-b157-394c64dbbdf6")
26
    @Override
27
    public void fillPalette(PaletteRoot paletteRoot) {
28
        IDiagramService toolRegistry = SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService();
29
        
30
        final PaletteDrawer commonGroup = new PaletteDrawer("Default", null);
31
        commonGroup.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
32
        commonGroup.add(new SelectionToolEntry());
33
        commonGroup.add(new MarqueeToolEntry());
34
        paletteRoot.add(commonGroup);
35
        
36
        paletteRoot.add(this.createInstanceGroup(toolRegistry));
37
        paletteRoot.add(this.createDefaultPortGroup(toolRegistry));
38
        
39
        paletteRoot.add(this.createInformationFlowGroup(toolRegistry));
40
        paletteRoot.add(this.createDefaultDependencyGroup(toolRegistry));
41
        paletteRoot.add(this.createDefaultNotesGroup(toolRegistry));
42
        paletteRoot.add(this.createDefaultFreeDrawingGroup(toolRegistry));
43
    }
44

  
45
    @objid ("e8d91fc1-077c-464d-94a8-e35dcc39288a")
46
    private PaletteEntry createInstanceGroup(final IDiagramService toolRegistry) {
47
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.Instance"), null);
48
        
49
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
50
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ConnectorProperty));
51
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ConstraintProperty));
52
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ParticipantPropertyBindableInstance));
53
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Instance));
54
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.DistributedProperty));
55
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.FlowProperty));
56
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLAttribute));
57
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLOperation));
58
        
59
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.DelegateLink));
60
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InstanceLink));
61
        return group;
62
    }
63

  
64
    @objid ("c4dddd59-fcbe-46ca-ad90-d730d35d6772")
65
    @Override
66
    public boolean keepBasePalette() {
67
        return false;
68
    }
69

  
70
    @objid ("52369add-bad7-4200-ac8c-d37d5ae0854e")
71
    @Override
72
    public void initialize(IModule module, List<org.modelio.api.modelio.diagram.tools.PaletteEntry> tools, Map<String, String> hParameters, boolean keepBasePalette) {
73
    }
74

  
75
    @objid ("cc4772d5-6d83-422c-94ea-e2a1515120de")
76
    @Override
77
    public Map<String, String> getParameters() {
78
        return null;
79
    }
80

  
81
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/customizer/ParametricDiagramCustomizer.java
1
package org.modelio.module.sysml.customizer;
2

  
3
import java.util.List;
4
import java.util.Map;
5
import com.modeliosoft.modelio.javadesigner.annotations.objid;
6
import org.eclipse.gef.palette.MarqueeToolEntry;
7
import org.eclipse.gef.palette.PaletteDrawer;
8
import org.eclipse.gef.palette.PaletteEntry;
9
import org.eclipse.gef.palette.PaletteRoot;
10
import org.eclipse.gef.palette.SelectionToolEntry;
11
import org.modelio.api.modelio.diagram.IDiagramCustomizer;
12
import org.modelio.api.modelio.diagram.IDiagramService;
13
import org.modelio.api.module.IModule;
14
import org.modelio.module.sysml.i18n.I18nMessageService;
15
import org.modelio.module.sysml.impl.SysMLModule;
16
import org.modelio.module.sysml.utils.IDiagramCustomizerPredefinedField;
17
import org.modelio.module.sysml.utils.ISysMLCustomizerPredefinedField;
18

  
19
/**
20
 * This class handles the palette configuration of SysML parametric diagram
21
 * @author ebrosse
22
 */
23
@objid ("3f9340d8-a0a5-49f0-9eeb-479de83afe43")
24
public class ParametricDiagramCustomizer extends SysMLDiagramCustomizer implements IDiagramCustomizer {
25
    @objid ("2c4fb794-0269-403f-a571-e4a12f9a7dba")
26
    @Override
27
    public void fillPalette(PaletteRoot paletteRoot) {
28
        IDiagramService toolRegistry = SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService();
29
        
30
        final PaletteDrawer commonGroup = new PaletteDrawer("Default", null);
31
        commonGroup.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
32
        commonGroup.add(new SelectionToolEntry());
33
        commonGroup.add(new MarqueeToolEntry());
34
        paletteRoot.add(commonGroup);
35
        
36
        paletteRoot.add(this.createInstanceGroup(toolRegistry));
37
        paletteRoot.add(this.createDefaultPortGroup(toolRegistry));
38
        paletteRoot.add(this.createInformationFlowGroup(toolRegistry));
39
        paletteRoot.add(this.createDefaultDependencyGroup(toolRegistry));
40
        paletteRoot.add(this.createDefaultNotesGroup(toolRegistry));
41
        paletteRoot.add(this.createDefaultFreeDrawingGroup(toolRegistry));
42
    }
43

  
44
    @objid ("82a7780a-d179-49b2-ba9c-d688c357949c")
45
    private PaletteEntry createInstanceGroup(final IDiagramService toolRegistry) {
46
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.Instance"), null);
47
        
48
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ConnectorProperty));
49
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ConstraintProperty));
50
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ParticipantPropertyBindableInstance));
51
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Instance));
52
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.DistributedProperty));
53
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.FlowProperty));
54
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLAttribute));
55
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.AttributeLink));
56
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.DelegateLink));
57
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InstanceLink));
58
        
59
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
60
        return group;
61
    }
62

  
63
    @objid ("9c3f4109-5ea4-4334-90d5-102e662c6906")
64
    @Override
65
    public boolean keepBasePalette() {
66
        return false;
67
    }
68

  
69
    @objid ("b3aa0851-47b7-4d34-b5a7-362a51c3b065")
70
    @Override
71
    public void initialize(IModule module, List<org.modelio.api.modelio.diagram.tools.PaletteEntry> tools, Map<String, String> hParameters, boolean keepBasePalette) {
72
    }
73

  
74
    @objid ("8273585b-299f-4e94-bfa2-3cfe65573dc9")
75
    @Override
76
    public Map<String, String> getParameters() {
77
        return null;
78
    }
79

  
80
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/customizer/SysMLDiagramCustomizer.java
1
package org.modelio.module.sysml.customizer;
2

  
3
import com.modeliosoft.modelio.javadesigner.annotations.objid;
4
import org.eclipse.gef.palette.PaletteDrawer;
5
import org.eclipse.gef.palette.PaletteEntry;
6
import org.modelio.api.modelio.diagram.IDiagramService;
7
import org.modelio.module.sysml.i18n.I18nMessageService;
8
import org.modelio.module.sysml.utils.IDiagramCustomizerPredefinedField;
9
import org.modelio.module.sysml.utils.ISysMLCustomizerPredefinedField;
10

  
11
/**
12
 * This class handles the common palette configuration of all SysML diagrams
13
 * @author ebrosse
14
 */
15
@objid ("80264859-a5a6-4827-b40f-2c640ae9b469")
16
public class SysMLDiagramCustomizer {
17
    @objid ("9995616c-ab85-4ed4-a1fd-618f50837fc6")
18
    protected PaletteEntry createDefaultDependencyGroup(final IDiagramService toolRegistry) {
19
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.Dependency"), null);
20
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Allocate));
21
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Conform));
22
        
23
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Dependency));
24
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Traceability));
25
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.RelatedDiagramLink));
26
        
27
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
28
        return group;
29
    }
30

  
31
    @objid ("a1543168-3cb8-49d4-9fdf-306513ea8c37")
32
    protected PaletteEntry createDefaultFreeDrawingGroup(final IDiagramService toolRegistry) {
33
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.Freedrawing"), null);
34
        
35
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.DrawingRectangle));
36
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.DrawingEllipse));
37
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.DrawingText));
38
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.DrawingLine));
39
        
40
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
41
        return group;
42
    }
43

  
44
    @objid ("a957e243-a4bc-4e80-a0fa-32c785bc2b97")
45
    protected PaletteEntry createDefaultNotesGroup(final IDiagramService toolRegistry) {
46
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.NotesAndConstraints"), null);
47
        
48
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Problem));
49
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Rationale));
50
        
51
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Note));
52
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Constraint));
53
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ExternDocument));
54
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
55
        return group;
56
    }
57

  
58
    @objid ("4dd79d63-c345-4c0b-9308-9f0f30b6f38e")
59
    protected PaletteEntry createDefaultInstanceGroup(final IDiagramService toolRegistry) {
60
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.Instance"),
61
                null);
62
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Instance));
63
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.AttributeLink));
64
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.DelegateLink));
65
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InstanceLink));
66
        
67
        
68
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
69
        return group;
70
    }
71

  
72
    @objid ("ad1e0d7f-8bd8-4f46-9d28-2ebe493e4b61")
73
    protected PaletteEntry createDefaultImportGroup(final IDiagramService toolRegistry) {
74
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.Import"), null);
75
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Use));
76
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ElementImport));
77
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.PackageImport));
78
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.PackageMerge));
79
        
80
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
81
        return group;
82
    }
83

  
84
    @objid ("f356a493-c95a-4c43-97da-4c1703944a1b")
85
    protected PaletteEntry createDefaultInformationFlowGroup(final IDiagramService toolRegistry) {
86
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.InformationFlow"),
87
                null);
88
        
89
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InformationFlow));
90
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InformationFlowRealized));
91
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InformationItem));
92
        
93
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
94
        return group;
95
    }
96

  
97
    @objid ("bbe4650f-6783-41e7-a248-5b4a8de10672")
98
    protected PaletteEntry createDefaultPortGroup(final IDiagramService toolRegistry) {
99
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.Port"),
100
                null);
101
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.FlowPort));
102
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Port));
103
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ProvidedInterface));
104
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.RequiredInterface));
105
        
106
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
107
        return group;
108
    }
109

  
110
    @objid ("36d7839b-e68d-4201-aa06-af8bec5311c5")
111
    protected PaletteEntry createInformationFlowGroup(final IDiagramService toolRegistry) {
112
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.InformationFlow"),
113
                null);
114
        
115
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InformationFlow));
116
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ItemFlow));
117
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InformationFlowRealized));
118
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InformationItem));
119
        
120
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
121
        return group;
122
    }
123

  
124
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/customizer/BlockDiagramCustomizer.java
1
package org.modelio.module.sysml.customizer;
2

  
3
import java.util.List;
4
import java.util.Map;
5
import com.modeliosoft.modelio.javadesigner.annotations.objid;
6
import org.eclipse.gef.palette.MarqueeToolEntry;
7
import org.eclipse.gef.palette.PaletteDrawer;
8
import org.eclipse.gef.palette.PaletteEntry;
9
import org.eclipse.gef.palette.PaletteRoot;
10
import org.eclipse.gef.palette.SelectionToolEntry;
11
import org.modelio.api.modelio.diagram.IDiagramCustomizer;
12
import org.modelio.api.modelio.diagram.IDiagramService;
13
import org.modelio.api.module.IModule;
14
import org.modelio.module.sysml.i18n.I18nMessageService;
15
import org.modelio.module.sysml.impl.SysMLModule;
16
import org.modelio.module.sysml.utils.IDiagramCustomizerPredefinedField;
17
import org.modelio.module.sysml.utils.ISysMLCustomizerPredefinedField;
18

  
19
/**
20
 * This class handles the palette configuration of SysML block diagram
21
 * @author ebrosse
22
 */
23
@objid ("d415e4d0-a581-4192-97f7-ba6d649f5f12")
24
public class BlockDiagramCustomizer extends SysMLDiagramCustomizer implements IDiagramCustomizer {
25
    @objid ("aff37eae-dd83-45d0-b2a6-cfa58d547d28")
26
    @Override
27
    public void fillPalette(PaletteRoot paletteRoot) {
28
        IDiagramService toolRegistry = SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService();
29
        
30
        final PaletteDrawer commonGroup = new PaletteDrawer("Default", null);
31
        commonGroup.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
32
        commonGroup.add(new SelectionToolEntry());
33
        commonGroup.add(new MarqueeToolEntry());
34
        paletteRoot.add(commonGroup);
35
        
36
        paletteRoot.add(this.createClassGroup(toolRegistry));
37
        paletteRoot.add(this.createDefaultPortGroup(toolRegistry));
38
        paletteRoot.add(this.createInstanceGroup(toolRegistry));
39
        paletteRoot.add(this.createInformationFlowGroup(toolRegistry));
40
        paletteRoot.add(this.createDefaultDependencyGroup(toolRegistry));
41
        paletteRoot.add(this.createDefaultNotesGroup(toolRegistry));
42
        paletteRoot.add(this.createDefaultFreeDrawingGroup(toolRegistry));
43
    }
44

  
45
    @objid ("4ab656c6-2ab5-4bf2-b211-13b2ba80ca38")
46
    private PaletteEntry createInstanceGroup(final IDiagramService toolRegistry) {
47
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.Instance"), null);
48
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.QuantityKind));
49
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Unit));
50
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Instance));
51
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.AttributeLink));
52
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.DelegateLink));
53
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InstanceLink));
54
        
55
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
56
        return group;
57
    }
58

  
59
    @objid ("7f182883-cf44-4024-9df0-8a8330773cc6")
60
    private PaletteEntry createClassGroup(final IDiagramService toolRegistry) {
61
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("SysMLPaletteGroup.Bloc"), null);
62
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Block));
63
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ConstraintBlock));
64
        
65
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.FlowSpecification));
66
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Interface));
67
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ConnectorProperty));
68
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ConstraintProperty));
69
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ParticipantPropertyBindableInstance));
70
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.DistributedProperty));
71
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.FlowProperty));
72
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLAttribute));
73
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLOperation));
74
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLAssociation));
75
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLAggregation));
76
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLComposition));
77
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLSmartGeneralization));
78
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLGeneralization));
79
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InterfaceRealization));
80
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ValueType));
81
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Enumeration));
82
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.EnumerationLiteral));
83
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ClassAssociation));
84
        
85
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
86
        return group;
87
    }
88

  
89
    @objid ("9355b38c-3531-48f3-80cb-6e9ff7f130a8")
90
    @Override
91
    public boolean keepBasePalette() {
92
        return false;
93
    }
94

  
95
    @objid ("5ece82a4-2e02-4d73-ab4c-690ba092a944")
96
    @Override
97
    public void initialize(IModule module, List<org.modelio.api.modelio.diagram.tools.PaletteEntry> tools, Map<String, String> hParameters, boolean keepBasePalette) {
98
    }
99

  
100
    @objid ("54c30d9b-05ef-42f8-ae70-97adb574f7fe")
101
    @Override
102
    public Map<String, String> getParameters() {
103
        return null;
104
    }
105

  
106
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/customizer/PackageDiagramCustomizer.java
1
package org.modelio.module.sysml.customizer;
2

  
3
import java.util.List;
4
import java.util.Map;
5
import com.modeliosoft.modelio.javadesigner.annotations.objid;
6
import org.eclipse.gef.palette.MarqueeToolEntry;
7
import org.eclipse.gef.palette.PaletteDrawer;
8
import org.eclipse.gef.palette.PaletteEntry;
9
import org.eclipse.gef.palette.PaletteRoot;
10
import org.eclipse.gef.palette.SelectionToolEntry;
11
import org.modelio.api.modelio.diagram.IDiagramCustomizer;
12
import org.modelio.api.modelio.diagram.IDiagramService;
13
import org.modelio.api.module.IModule;
14
import org.modelio.module.sysml.i18n.I18nMessageService;
15
import org.modelio.module.sysml.impl.SysMLModule;
16
import org.modelio.module.sysml.utils.IDiagramCustomizerPredefinedField;
17
import org.modelio.module.sysml.utils.ISysMLCustomizerPredefinedField;
18

  
19
/**
20
 * Configures the diagram palette.
21
 */
22
@objid ("404a827b-9378-4a34-8f64-06536c96d719")
23
public class PackageDiagramCustomizer extends SysMLDiagramCustomizer implements IDiagramCustomizer {
24
    @objid ("d7fa2c87-20b7-47df-bced-e02373e0ae35")
25
    private PaletteEntry createDependencyGroup(final IDiagramService toolRegistry) {
26
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("StatikPaletteGroup.Common"), null);
27
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Conform));
28
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Allocate));
29
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Dependency));
30
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Traceability));
31
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.RelatedDiagramLink));
32
        
33
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
34
        return group;
35
    }
36

  
37
    @objid ("e473ff22-95fd-4af3-add9-21d5aa8c09a7")
38
    private PaletteEntry createInstanceGroup(final IDiagramService toolRegistry) {
39
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("StatikPaletteGroup.Instance"),
40
                null);
41
        
42
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ValueType));
43
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Datatype));
44
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Enumeration));
45
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.EnumerationLiteral));
46
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.QuantityKind));
47
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Unit));
48
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Instance));
49
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.AttributeLink));
50
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.DelegateLink));
51
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InstanceLink));
52
        
53
        
54
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
55
        return group;
56
    }
57

  
58
    @objid ("53e6db21-6b78-4928-b6ce-6869e2edfcd0")
59
    private PaletteEntry createImportGroup(final IDiagramService toolRegistry) {
60
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("StatikPaletteGroup.Import"), null);
61
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Use));
62
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.ElementImport));
63
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.PackageImport));
64
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.PackageMerge));
65
        
66
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
67
        return group;
68
    }
69

  
70
    @objid ("1c1498a4-445e-42bd-af16-e9494bd7144d")
71
    private PaletteEntry createPackageGroup(final IDiagramService toolRegistry) {
72
        final PaletteDrawer group = new PaletteDrawer(I18nMessageService.getString("StatikPaletteGroup.Package"), null);
73
        
74
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.View)); 
75
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Package)); 
76
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ViewPoint));
77
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.Block));
78
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.ConstraintBlock));
79
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Class));
80
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.FlowSpecification));
81
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Interface));
82
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLAttribute));
83
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.Operation));
84
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLAssociation));
85
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLAggregation));
86
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLComposition));
87
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLSmartGeneralization));
88
        group.add(toolRegistry.getRegisteredTool(ISysMLCustomizerPredefinedField.UMLGeneralization));
89
        group.add(toolRegistry.getRegisteredTool(IDiagramCustomizerPredefinedField.InterfaceRealization));
90
        group.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
91
        return group;
92
    }
93

  
94
    @objid ("cdd5a4fa-6794-4d78-be46-149501ebc137")
95
    @Override
96
    public void fillPalette(PaletteRoot paletteRoot) {
97
        IDiagramService toolRegistry = SysMLModule.getInstance().getModuleContext().getModelioServices().getDiagramService();
98
        
99
        final PaletteDrawer commonGroup = new PaletteDrawer("Default", null);
100
        commonGroup.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);       
101
        commonGroup.add(new SelectionToolEntry());
102
        commonGroup.add(new MarqueeToolEntry());     
103
        paletteRoot.add(commonGroup);
104
        
105
        paletteRoot.add(this.createPackageGroup(toolRegistry));
106
        paletteRoot.add(this.createInstanceGroup(toolRegistry));
107
        paletteRoot.add(this.createImportGroup(toolRegistry));
108
        paletteRoot.add(this.createInformationFlowGroup(toolRegistry));
109
        paletteRoot.add(this.createDependencyGroup(toolRegistry));
110
        paletteRoot.add(this.createDefaultNotesGroup(toolRegistry));
111
        paletteRoot.add(this.createDefaultFreeDrawingGroup(toolRegistry));
112
    }
113

  
114
    @objid ("acc771a9-3375-4d04-8534-51323687e03f")
115
    @Override
116
    public boolean keepBasePalette() {
117
        return false;
118
    }
119

  
120
    @objid ("abc292a7-7244-4d1e-b44f-614e14e6efb0")
121
    @Override
122
    public void initialize(IModule module, List<org.modelio.api.modelio.diagram.tools.PaletteEntry> tools, Map<String, String> hParameters, boolean keepBasePalette) {
123
    }
124

  
125
    @objid ("c49b2596-acc6-4b04-b267-b8dcd820ca9d")
126
    @Override
127
    public Map<String, String> getParameters() {
128
        return null;
129
    }
130

  
131
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/filters/ConformFilter.java
1
/**
2
 * Java Class : ConformFilter.java
3
 *
4
 * Description :
5
 *
6
 * Licensed to the Apache Software Foundation (ASF) under one
7
 * or more contributor license agreements.  See the NOTICE file
8
 * distributed with this work for additional information
9
 * regarding copyright ownership.  The ASF licenses this file
10
 * to you under the Apache License, Version 2.0 (the
11
 * "License"); you may not use this file except in compliance
12
 * with the License.  You may obtain a copy of the License at
13
 *
14
 *    http://www.apache.org/licenses/LICENSE-2.0
15
 *
16
 *    Unless required by applicable law or agreed to in writing,
17
 *    software distributed under the License is distributed on an
18
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
 *    KIND, either express or implied.  See the License for the
20
 *    specific language governing permissions and limitations
21
 *    under the License.
22
 *
23
 * @category   Filter
24
 * @package    com.modeliosoft.modelio.sysml.filters
25
 * @author     Modelio
26
 * @license    http://www.apache.org/licenses/LICENSE-2.0
27
 * @version    2.0.08
28
 **/
29
package org.modelio.module.sysml.filters;
30

  
31
import com.modeliosoft.modelio.javadesigner.annotations.objid;
32
import org.modelio.metamodel.uml.infrastructure.Dependency;
33
import org.modelio.metamodel.uml.infrastructure.ModelElement;
34
import org.modelio.module.sysml.api.ISysMLPeerModule;
35
import org.modelio.module.sysml.api.SysMLStereotypes;
36
import org.modelio.vcore.model.filter.IObjectFilter;
37
import org.modelio.vcore.smkernel.mapi.MObject;
38

  
39
/**
40
 * This class filters SysML conform dependency
41
 * 
42
 * @author ebrosse
43
 */
44
@objid ("42951e3e-ce42-4fd9-950e-67128fda9e49")
45
public class ConformFilter implements IObjectFilter {
46
    /**
47
     * Method isABlock
48
     * @author ebrosse
49
     * @param MObject
50
     * : the tested MObject
51
     * @return true if the given MObject is a conform dependency
52
     */
53
    @objid ("00d706ec-ff2a-47e8-9023-d99fbdb94d8b")
54
    public static boolean isAConform(MObject element) {
55
        return ((element instanceof Dependency) && ((ModelElement) element).isStereotyped(ISysMLPeerModule.MODULE_NAME,
56
                                                                        SysMLStereotypes.CONFORM));
57
    }
58

  
59
    @objid ("4259c79a-6766-4547-8cad-9c35bbd22a6d")
60
    @Override
61
    public boolean accept(MObject element) {
62
        return isAConform(element);
63
    }
64

  
65
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/filters/ViewpointFilter.java
1
/**
2
 * Java Class : ViewpointFilter.java
3
 *
4
 * Description :
5
 *
6
 * Licensed to the Apache Software Foundation (ASF) under one
7
 * or more contributor license agreements.  See the NOTICE file
8
 * distributed with this work for additional information
9
 * regarding copyright ownership.  The ASF licenses this file
10
 * to you under the Apache License, Version 2.0 (the
11
 * "License"); you may not use this file except in compliance
12
 * with the License.  You may obtain a copy of the License at
13
 *
14
 *    http://www.apache.org/licenses/LICENSE-2.0
15
 *
16
 *    Unless required by applicable law or agreed to in writing,
17
 *    software distributed under the License is distributed on an
18
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
 *    KIND, either express or implied.  See the License for the
20
 *    specific language governing permissions and limitations
21
 *    under the License.
22
 *
23
 * @category   Filter
24
 * @package    com.modeliosoft.modelio.sysml.filters
25
 * @author     Modelio
26
 * @license    http://www.apache.org/licenses/LICENSE-2.0
27
 * @version    2.0.08
28
 **/
29
package org.modelio.module.sysml.filters;
30

  
31
import com.modeliosoft.modelio.javadesigner.annotations.objid;
32
import org.modelio.metamodel.uml.infrastructure.ModelElement;
33
import org.modelio.metamodel.uml.statik.Class;
34
import org.modelio.module.sysml.api.ISysMLPeerModule;
35
import org.modelio.module.sysml.api.SysMLStereotypes;
36
import org.modelio.vcore.model.filter.IObjectFilter;
37
import org.modelio.vcore.smkernel.mapi.MObject;
38

  
39
/**
40
 * This class filters SysML view point
41
 * @author ebrosse
42
 */
43
@objid ("ca6529eb-65f9-498d-8ec6-e238deeb875f")
44
public class ViewpointFilter implements IObjectFilter {
45
    /**
46
     * Method isABlock
47
     * @author ebrosse
48
     * @param MObject : the tested MObject
49
     * @return true if the given MObject is a SysML view point
50
     */
51
    @objid ("96754335-caee-41b4-8896-cd98aa3f59fc")
52
    public static boolean isAViewpoint(MObject element) {
53
        return ((element instanceof Class) && ((ModelElement) element).isStereotyped(ISysMLPeerModule.MODULE_NAME,SysMLStereotypes.VIEWPOINT));
54
    }
55

  
56
    @objid ("725a1f8a-9534-463d-b2f3-1fc8558c5cad")
57
    @Override
58
    public boolean accept(MObject element) {
59
        return isAViewpoint (element);
60
    }
61

  
62
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/filters/BlockFilter.java
1
/**
2
 * Java Class : BlockFilter.java
3
 *
4
 * Description :
5
 *
6
 * Licensed to the Apache Software Foundation (ASF) under one
7
 * or more contributor license agreements.  See the NOTICE file
8
 * distributed with this work for additional information
9
 * regarding copyright ownership.  The ASF licenses this file
10
 * to you under the Apache License, Version 2.0 (the
11
 * "License"); you may not use this file except in compliance
12
 * with the License.  You may obtain a copy of the License at
13
 *
14
 *    http://www.apache.org/licenses/LICENSE-2.0
15
 *
16
 *    Unless required by applicable law or agreed to in writing,
17
 *    software distributed under the License is distributed on an
18
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
 *    KIND, either express or implied.  See the License for the
20
 *    specific language governing permissions and limitations
21
 *    under the License.
22
 *
23
 * @category   Filter
24
 * @package    com.modeliosoft.modelio.sysml.filters
25
 * @author     Modelio
26
 * @license    http://www.apache.org/licenses/LICENSE-2.0
27
 * @version    2.0.08
28
 **/
29
package org.modelio.module.sysml.filters;
30

  
31
import com.modeliosoft.modelio.javadesigner.annotations.objid;
32
import org.modelio.metamodel.uml.infrastructure.ModelElement;
33
import org.modelio.metamodel.uml.statik.Class;
34
import org.modelio.module.sysml.api.ISysMLPeerModule;
35
import org.modelio.module.sysml.api.SysMLStereotypes;
36
import org.modelio.vcore.model.filter.IObjectFilter;
37
import org.modelio.vcore.smkernel.mapi.MObject;
38

  
39
/**
40
 * This class filters SysML block
41
 * 
42
 * @author ebrosse
43
 */
44
@objid ("a4550a57-ee1e-4454-85d1-04b81367371f")
45
public class BlockFilter implements IObjectFilter {
46
    /**
47
     * Method isABlock
48
     * @author ebrosse
49
     * @param MObject
50
     * : the tested MObject
51
     * @return true if the given MObject is a SysML block
52
     */
53
    @objid ("0e2cfd18-9bae-4148-8405-fe773c32f155")
54
    public static boolean isABlock(MObject element) {
55
        return ((element instanceof Class) && ((((ModelElement) element).isStereotyped(ISysMLPeerModule.MODULE_NAME,
56
                                                                        SysMLStereotypes.BLOCK)) && !((ModelElement) element).isStereotyped(ISysMLPeerModule.MODULE_NAME,
57
                                                                        SysMLStereotypes.CONSTRAINTBLOCK)));
58
    }
59

  
60
    @objid ("774a308a-89e4-43a8-ac6f-e8b0facdaa16")
61
    @Override
62
    public boolean accept(MObject element) {
63
        return isABlock(element);
64
    }
65

  
66
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/filters/ViewFilter.java
1
/**
2
 * Java Class : ViewFilter.java
3
 *
4
 * Description :
5
 *
6
 * Licensed to the Apache Software Foundation (ASF) under one
7
 * or more contributor license agreements.  See the NOTICE file
8
 * distributed with this work for additional information
9
 * regarding copyright ownership.  The ASF licenses this file
10
 * to you under the Apache License, Version 2.0 (the
11
 * "License"); you may not use this file except in compliance
12
 * with the License.  You may obtain a copy of the License at
13
 *
14
 *    http://www.apache.org/licenses/LICENSE-2.0
15
 *
16
 *    Unless required by applicable law or agreed to in writing,
17
 *    software distributed under the License is distributed on an
18
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
 *    KIND, either express or implied.  See the License for the
20
 *    specific language governing permissions and limitations
21
 *    under the License.
22
 *
23
 * @category   Filter
24
 * @package    com.modeliosoft.modelio.sysml.filters
25
 * @author     Modelio
26
 * @license    http://www.apache.org/licenses/LICENSE-2.0
27
 * @version    2.0.08
28
 **/
29
package org.modelio.module.sysml.filters;
30

  
31
import com.modeliosoft.modelio.javadesigner.annotations.objid;
32
import org.modelio.metamodel.uml.infrastructure.ModelElement;
33
import org.modelio.metamodel.uml.statik.Package;
34
import org.modelio.module.sysml.api.ISysMLPeerModule;
35
import org.modelio.module.sysml.api.SysMLStereotypes;
36
import org.modelio.vcore.model.filter.IObjectFilter;
37
import org.modelio.vcore.smkernel.mapi.MObject;
38

  
39
/**
40
 * This class filters SysML view
41
 * @author ebrosse
42
 */
43
@objid ("dd281f4d-c928-4b65-a631-0f8f763ee119")
44
public class ViewFilter implements IObjectFilter {
45
    /**
46
     * Method isABlock
47
     * @author ebrosse
48
     * @param MObject : the tested MObject
49
     * @return true if the given MObject is a SysML view
50
     */
51
    @objid ("7157585a-1341-4a16-b4ab-c1ab0784961c")
52
    public static boolean isAView(MObject element) {
53
        return ((element instanceof Package) 
54
                                                                        && ((ModelElement) element).isStereotyped (ISysMLPeerModule.MODULE_NAME,SysMLStereotypes.VIEW));
55
    }
56

  
57
    @objid ("73ba44a0-7cb6-4bcf-860f-18264435955a")
58
    @Override
59
    public boolean accept(MObject element) {
60
        return isAView (element);
61
    }
62

  
63
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/filters/FlowPortFilter.java
1
/**
2
 * Java Class : BlockFilter.java
3
 *
4
 * Description :
5
 *
6
 * Licensed to the Apache Software Foundation (ASF) under one
7
 * or more contributor license agreements.  See the NOTICE file
8
 * distributed with this work for additional information
9
 * regarding copyright ownership.  The ASF licenses this file
10
 * to you under the Apache License, Version 2.0 (the
11
 * "License"); you may not use this file except in compliance
12
 * with the License.  You may obtain a copy of the License at
13
 *
14
 *    http://www.apache.org/licenses/LICENSE-2.0
15
 *
16
 *    Unless required by applicable law or agreed to in writing,
17
 *    software distributed under the License is distributed on an
18
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
 *    KIND, either express or implied.  See the License for the
20
 *    specific language governing permissions and limitations
21
 *    under the License.
22
 *
23
 * @category   Filter
24
 * @package    com.modeliosoft.modelio.sysml.filters
25
 * @author     Modelio
26
 * @license    http://www.apache.org/licenses/LICENSE-2.0
27
 * @version    2.0.08
28
 **/
29
package org.modelio.module.sysml.filters;
30

  
31
import com.modeliosoft.modelio.javadesigner.annotations.objid;
32
import org.modelio.metamodel.uml.infrastructure.ModelElement;
33
import org.modelio.metamodel.uml.statik.Port;
34
import org.modelio.module.sysml.api.ISysMLPeerModule;
35
import org.modelio.module.sysml.api.SysMLStereotypes;
36
import org.modelio.vcore.model.filter.IObjectFilter;
37
import org.modelio.vcore.smkernel.mapi.MObject;
38

  
39
/**
40
 * This class filters SysML flowPort
41
 * @author ebrosse
42
 */
43
@objid ("c64c425c-9cd1-453f-809b-f5ad6666a9b1")
44
public class FlowPortFilter implements IObjectFilter {
45
    /**
46
     * Method isAFlowPort
47
     * @author ebrosse
48
     * @param MObject : the tested MObject
49
     * @return true if the given MObject is a SysML Flow Port
50
     */
51
    @objid ("302f423f-b654-4183-badc-7832c08b05ce")
52
    public static boolean isAFlowPort(MObject element) {
53
        return ((element instanceof Port) && 
54
                                                                        (((ModelElement) element).isStereotyped (ISysMLPeerModule.MODULE_NAME,SysMLStereotypes.FLOWPORT)));
55
    }
56

  
57
    @objid ("229d0dc0-6e2f-48a5-b255-2cf215e30577")
58
    @Override
59
    public boolean accept(MObject element) {
60
        return isAFlowPort(element);
61
    }
62

  
63
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/filters/ConstraintBlockFilter.java
1
/**
2
 * Java Class : BlockFilter.java
3
 *
4
 * Description :
5
 *
6
 * Licensed to the Apache Software Foundation (ASF) under one
7
 * or more contributor license agreements.  See the NOTICE file
8
 * distributed with this work for additional information
9
 * regarding copyright ownership.  The ASF licenses this file
10
 * to you under the Apache License, Version 2.0 (the
11
 * "License"); you may not use this file except in compliance
12
 * with the License.  You may obtain a copy of the License at
13
 *
14
 *    http://www.apache.org/licenses/LICENSE-2.0
15
 *
16
 *    Unless required by applicable law or agreed to in writing,
17
 *    software distributed under the License is distributed on an
18
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
 *    KIND, either express or implied.  See the License for the
20
 *    specific language governing permissions and limitations
21
 *    under the License.
22
 *
23
 * @category   Filter
24
 * @package    com.modeliosoft.modelio.sysml.filters
25
 * @author     Modelio
26
 * @license    http://www.apache.org/licenses/LICENSE-2.0
27
 * @version    2.0.08
28
 **/
29
package org.modelio.module.sysml.filters;
30

  
31
import com.modeliosoft.modelio.javadesigner.annotations.objid;
32
import org.modelio.metamodel.uml.infrastructure.ModelElement;
33
import org.modelio.metamodel.uml.statik.Class;
34
import org.modelio.module.sysml.api.ISysMLPeerModule;
35
import org.modelio.module.sysml.api.SysMLStereotypes;
36
import org.modelio.vcore.model.filter.IObjectFilter;
37
import org.modelio.vcore.smkernel.mapi.MObject;
38

  
39
/**
40
 * This class filters SysML constraint block
41
 * @author ebrosse
42
 */
43
@objid ("8920e412-6424-458d-8ca4-af1818bacb3e")
44
public class ConstraintBlockFilter implements IObjectFilter {
45
    /**
46
     * Method isAConstraintBlock
47
     * @author ebrosse
48
     * @param MObject : the tested MObject
49
     * @return true if the given MObject is a SysML constraint block
50
     */
51
    @objid ("1b46798a-bbcf-4223-b9f6-8118b5f83791")
52
    public static boolean isAConstraintBlock(MObject element) {
53
        return ((element instanceof Class) && 
54
                                                                        (((ModelElement) element).isStereotyped (ISysMLPeerModule.MODULE_NAME,SysMLStereotypes.CONSTRAINTBLOCK)));
55
    }
56

  
57
    @objid ("9461f0b9-e4c3-4f12-a039-3b258ad7e312")
58
    @Override
59
    public boolean accept(MObject element) {
60
        return isAConstraintBlock (element);
61
    }
62

  
63
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/api/SysMLTagTypes.java
1
/**
2
 * Java Class : SysMLTagTypes.java
3
 *
4
 * Description :
5
 *
6
 * Licensed to the Apache Software Foundation (ASF) under one
7
 * or more contributor license agreements.  See the NOTICE file
8
 * distributed with this work for additional information
9
 * regarding copyright ownership.  The ASF licenses this file
10
 * to you under the Apache License, Version 2.0 (the
11
 * "License"); you may not use this file except in compliance
12
 * with the License.  You may obtain a copy of the License at
13
 *
14
 *    http://www.apache.org/licenses/LICENSE-2.0
15
 *
16
 *    Unless required by applicable law or agreed to in writing,
17
 *    software distributed under the License is distributed on an
18
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
 *    KIND, either express or implied.  See the License for the
20
 *    specific language governing permissions and limitations
21
 *    under the License.
22
 *
23
 * @category   Modelio API
24
 * @package    com.modeliosoft.modelio.sysml.api
25
 * @author     Modelio
26
 * @license    http://www.apache.org/licenses/LICENSE-2.0
27
 * @version    2.0.08
28
 **/
29
package org.modelio.module.sysml.api;
30

  
31
import com.modeliosoft.modelio.javadesigner.annotations.objid;
32

  
33
@objid ("95b170f0-6f7c-43ed-9d7b-f0a849c40a18")
34
public interface SysMLTagTypes {
35
    @objid ("5505cc7c-37b0-463c-aba0-14ec4a52f5de")
36
    public static final String ALLOCATED_ALLOCATED_ALLOCATEDTO = "Allocated_allocatedTo";
37

  
38
    @objid ("13889d60-efd4-4f4e-9cc2-75460f99f161")
39
    public static final String ALLOCATED_ALLOCATED_ALLOCATEDFROM = "Allocated_allocatedFrom";
40

  
41
    @objid ("bf08ea9c-8e83-4c5c-94f8-00458f901491")
42
    public static final String BLOCK_BLOCK_ISENCAPSULATED = "Block_isEncapsulated";
43

  
44
    @objid ("12ab09bc-5c35-4c52-8b25-8ae9420d3fb2")
45
    public static final String CONNECTORPROPERTY_CONNECTORPROPERTY_CONNECTOR = "ConnectorProperty_connector";
46

  
47
    @objid ("158d56a5-b359-41c2-aece-39c6a9ade33e")
48
    public static final String FLOWPORT_FLOWPORT_DIRECTION = "FlowPort_direction";
49

  
50
    @objid ("4fa7c552-c68e-43f8-95fa-9db97e07374c")
51
    public static final String FLOWPORT_FLOWPORT_ISATOMIC = "FlowPort_isAtomic";
52

  
53
    @objid ("a78e18d9-2dd7-4eba-aac7-b11630fd7a12")
54
    public static final String FLOWPORT_FLOWPORT_ISCONJUGATED = "FlowPort_isConjugated";
55

  
56
    @objid ("abc9a9ba-ae75-4bbb-b817-bfaffa91fee5")
57
    public static final String FLOWPROPERTY_FLOWPROPERTY_DIRECTION = "FlowProperty_direction";
58

  
59
    @objid ("f8a5f6fc-5f3e-4643-94b6-2fd862ff2621")
60
    public static final String ITEMFLOW_ITEMFLOW_ITEMPROPERTY = "ItemFlow_itemProperty";
61

  
62
    @objid ("a4b8b69b-66e1-42b3-97a9-4508fa6a126e")
63
    public static final String NESTEDCONNECTOREND_NESTEDCONNECTOREND_PROPERTYPATH = "NestedConnectorEnd_propertyPath";
64

  
65
    @objid ("6fb7a71c-80ac-4cd4-b119-6a7165d51449")
66
    public static final String PARTICIPANTPROPERTY_ASSOCIATIONEND_PARTICIPANTPROPERTY_ASSOCIATIONEND_END = "ParticipantProperty_AssociationEnd_end";
67

  
68
    @objid ("08ea46bd-8f2b-453c-a362-9e67ef2b73bc")
69
    public static final String PARTICIPANTPROPERTY_BINDABLEINSTANCE_PARTICIPANTPROPERTY_BINDABLEINSTANCE_END = "ParticipantProperty_BindableInstance_end";
70

  
71
    @objid ("c0ca4712-79bd-4eab-9519-392937dd538d")
72
    public static final String PIN_ISSTREAM = "isStream";
73

  
74
    @objid ("e1a14842-7ed6-4087-9aba-1461c2cbe221")
75
    public static final String PORT_ISCONJUGATED = "isConjugated";
76

  
77
    @objid ("eea9db81-d674-4677-b427-0f537785fefb")
78
    public static final String PROBABILITY_PROBABILITY_PROBABILITY = "Probability_probability";
79

  
80
    @objid ("38d04c79-b1fa-4d03-966f-64c0363e8188")
81
    public static final String QUANTITYKIND_QUANTITYKIND_SYMBOL = "QuantityKind_symbol";
82

  
83
    @objid ("24af05b5-da33-44bb-9b46-195b2bf1f7d5")
84
    public static final String QUANTITYKIND_QUANTITYKIND_DESCRIPTION = "QuantityKind_description";
85

  
86
    @objid ("51c6cec1-0bd5-4750-9009-533ccadb348f")
87
    public static final String QUANTITYKIND_QUANTITYKIND_DESCRIPTIONURI = "QuantityKind_descriptionURI";
88

  
89
    @objid ("51288df8-d770-474d-a999-bf6a86ae2e04")
90
    public static final String RATE_ACTIVITYEDGE_RATE = "Rate_ActivityEdge_rate";
91

  
92
    @objid ("abcfbdb2-789a-432e-af66-4688212c2790")
93
    public static final String RATE_PARAMETER_RATE = "Rate_Parameter_rate";
94

  
95
    @objid ("00690a6a-dbbc-4ede-977b-b94a9cf03c8b")
96
    public static final String UNIT_UNIT_SYMBOL = "Unit_symbol";
97

  
98
    @objid ("ad7c42c6-1aee-4955-8afd-b58a2046f8fa")
99
    public static final String UNIT_UNIT_DESCRIPTION = "Unit_description";
100

  
101
    @objid ("e97672e2-fdab-4e41-b90b-b54e0529f6ee")
102
    public static final String UNIT_UNIT_DESCRIPTIONURI = "Unit_descriptionURI";
103

  
104
    @objid ("30790148-5732-40f5-9e39-e34e011c9fe0")
105
    public static final String UNIT_UNIT_QUANTITYKIND = "Unit_quantityKind";
106

  
107
    @objid ("fa6aab6d-3212-48d6-bd41-454abea880eb")
108
    public static final String VALUETYPE_VALUETYPE_UNIT = "ValueType_unit";
109

  
110
    @objid ("f1aee533-02b6-4880-bc3a-75f9140f5927")
111
    public static final String VALUETYPE_VALUETYPE_QUANTITYKIND = "ValueType_quantityKind";
112

  
113
    @objid ("b7b731ba-2557-47a6-b91f-55d5dfede3f0")
114
    public static final String VIEW_VIEW_VIEWPOINT = "View_viewpoint";
115

  
116
    @objid ("91e94ec6-b26b-4d8c-b043-10506362f6b9")
117
    public static final String VIEWPOINT_VIEWPOINT_CONCERNS = "Viewpoint_concerns";
118

  
119
    @objid ("9f5ec9c3-616e-4bc0-82d2-4a938e789483")
120
    public static final String VIEWPOINT_VIEWPOINT_LANGUAGES = "Viewpoint_languages";
121

  
122
    @objid ("c4134534-5f79-4977-b754-922854e3c878")
123
    public static final String VIEWPOINT_VIEWPOINT_METHODS = "Viewpoint_methods";
124

  
125
    @objid ("2e781457-7ff8-4e23-8932-23fba8154760")
126
    public static final String VIEWPOINT_VIEWPOINT_PURPOSE = "Viewpoint_purpose";
127

  
128
    @objid ("5622e7e9-092d-4b88-9f61-0c8dfb832389")
129
    public static final String VIEWPOINT_VIEWPOINT_STAKEHOLDERS = "Viewpoint_stakeholders";
130

  
131
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/api/SysMLParameters.java
1
/**
2
 * Java Class : SysMLParameters.java
3
 *
4
 * Description :
5
 *
6
 * Licensed to the Apache Software Foundation (ASF) under one
7
 * or more contributor license agreements.  See the NOTICE file
8
 * distributed with this work for additional information
9
 * regarding copyright ownership.  The ASF licenses this file
10
 * to you under the Apache License, Version 2.0 (the
11
 * "License"); you may not use this file except in compliance
12
 * with the License.  You may obtain a copy of the License at
13
 *
14
 *    http://www.apache.org/licenses/LICENSE-2.0
15
 *
16
 *    Unless required by applicable law or agreed to in writing,
17
 *    software distributed under the License is distributed on an
18
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
 *    KIND, either express or implied.  See the License for the
20
 *    specific language governing permissions and limitations
21
 *    under the License.
22
 *
23
 * @category   Modelio API
24
 * @package    com.modeliosoft.modelio.sysml.api
25
 * @author    Modelio
26
 * @license    http://www.apache.org/licenses/LICENSE-2.0
27
 * @version    2.0.08
28
 **/
29
package org.modelio.module.sysml.api;
30

  
31
import com.modeliosoft.modelio.javadesigner.annotations.objid;
32

  
33
/**
34
 * @author ebrosse
35
 */
36
@objid ("5a28a115-9c2d-4ec6-a11d-6eb7e78116eb")
37
public interface SysMLParameters {
38
}
tags/3.8.02/src/main/java/org/modelio/module/sysml/api/SysMLStereotypes.java
1
/**
2
 * Java Class : SysMLStereotypes.java
3
 *
4
 * Description :
5
 *
6
 * Licensed to the Apache Software Foundation (ASF) under one
7
 * or more contributor license agreements.  See the NOTICE file
8
 * distributed with this work for additional information
9
 * regarding copyright ownership.  The ASF licenses this file
10
 * to you under the Apache License, Version 2.0 (the
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff