| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d6d8335 commit c043746
10 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + { | ||
| 2 | + "java.configuration.updateBuildConfiguration": "automatic" | ||
| 3 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ image:readme//example.png[] | |||
| 17 | 17 | == **Dependencies** | |
| 18 | 18 | ||
| 19 | 19 | * link:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html[Java 8 JDK] | |
| 20 | - * link:https://github.com/ModelioOpenSource/Modelio/[Modelio 4.1] | ||
| 20 | + * link:https://github.com/ModelioOpenSource/Modelio/[Modelio 5.4] | ||
| 21 | 21 | ||
| 22 | 22 | == **Contributing** | |
| 23 | 23 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,8 @@ | |||
| 5 | 5 | <!-- definition --> | |
| 6 | 6 | <groupId>org.modelio.module</groupId> | |
| 7 | 7 | <artifactId>attacktreedesigner</artifactId> | |
| 8 | - <version>1.0.00</version> | ||
| 8 | + <version>2.0.1 | ||
| 9 | + </version> | ||
| 9 | 10 | <name>AttackTreeDesigner</name> | |
| 10 | 11 | <repositories> | |
| 11 | 12 | <repository> | |
@@ -31,7 +32,7 @@ | |||
| 31 | 32 | <dependency> | |
| 32 | 33 | <groupId>org.modelio</groupId> | |
| 33 | 34 | <artifactId>MDAKit</artifactId> | |
| 34 | - <version>[4.1.0,4.1.1)</version> | ||
| 35 | + <version>[5.4,5.5)</version> | ||
| 35 | 36 | <type>pom</type> | |
| 36 | 37 | <scope>provided</scope> | |
| 37 | 38 | </dependency> | |
@@ -57,7 +58,7 @@ | |||
| 57 | 58 | <plugin> | |
| 58 | 59 | <groupId>org.modelio</groupId> | |
| 59 | 60 | <artifactId>modelio-maven-plugin</artifactId> | |
| 60 | - <version>4.1.0.00</version> | ||
| 61 | + <version>5.4.0.00</version> | ||
| 61 | 62 | <executions> | |
| 62 | 63 | <execution> | |
| 63 | 64 | <id>ModuleValidation</id> | |
@@ -181,7 +182,7 @@ | |||
| 181 | 182 | modelio-maven-plugin | |
| 182 | 183 | </artifactId> | |
| 183 | 184 | <versionRange> | |
| 184 | - [4.1.0.00,) | ||
| 185 | + [5.4.0.00,) | ||
| 185 | 186 | </versionRange> | |
| 186 | 187 | <goals> | |
| 187 | 188 | <goal> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
| 2 | - <Module id="${project.name}" class="org.modelio.module.attacktreedesigner.impl.AttackTreeDesignerModule" binaryversion="4.1.0" version="${project.version}" schema-level="2" uid="e9061c29-1a92-4608-891f-1e3d3b2f2bd6" author="Softeam" image="" url=""> | ||
| 2 | + <Module id="${project.name}" class="org.modelio.module.attacktreedesigner.impl.AttackTreeDesignerModule" binaryversion="5.4.0" version="${project.version}" schema-level="2" uid="e9061c29-1a92-4608-891f-1e3d3b2f2bd6" author="Softeam" image="" url=""> | ||
| 3 | 3 | <ClassPath> | |
| 4 | 4 | <PathEntry path="lib/${project.artifactId}-${project.version}.jar"/> | |
| 5 | 5 | </ClassPath> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | import org.modelio.api.modelio.diagram.IDiagramGraphic; | |
| 4 | 4 | import org.modelio.api.modelio.diagram.IDiagramHandle; | |
| 5 | 5 | import org.modelio.api.modelio.diagram.IDiagramLink.LinkRouterKind; | |
| 6 | - import org.modelio.api.modelio.diagram.ILinkPath; | ||
| 6 | + import org.modelio.api.modelio.diagram.ILinkRoute; | ||
| 7 | 7 | import org.modelio.api.modelio.diagram.tools.DefaultLinkTool; | |
| 8 | 8 | import org.modelio.api.modelio.model.IModelingSession; | |
| 9 | 9 | import org.modelio.api.modelio.model.ITransaction; | |
@@ -31,7 +31,7 @@ public boolean acceptSecondElement(IDiagramHandle diagramHandle, IDiagramGraphic | |||
| 31 | 31 | } | |
| 32 | 32 | ||
| 33 | 33 | @Override | |
| 34 | - public void actionPerformed(IDiagramHandle diagramHandle, IDiagramGraphic originNode, IDiagramGraphic targetNode, LinkRouterKind touterType, ILinkPath path) { | ||
| 34 | + public void actionPerformed(IDiagramHandle diagramHandle, IDiagramGraphic originNode, IDiagramGraphic targetNode, LinkRouterKind touterType, ILinkRoute path) { | ||
| 35 | 35 | createThreatAnalysisDependency(diagramHandle, originNode, targetNode); | |
| 36 | 36 | } | |
| 37 | 37 | ||
@@ -63,4 +63,5 @@ public static Dependency createThreatAnalysisDependency(IDiagramHandle diagramHa | |||
| 63 | 63 | return threatAnalysisDependency; | |
| 64 | 64 | } | |
| 65 | 65 | ||
| 66 | + | ||
| 66 | 67 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ | |||
| 5 | 5 | import org.modelio.api.modelio.diagram.IDiagramGraphic; | |
| 6 | 6 | import org.modelio.api.modelio.diagram.IDiagramHandle; | |
| 7 | 7 | import org.modelio.api.modelio.diagram.IDiagramLink.LinkRouterKind; | |
| 8 | - import org.modelio.api.modelio.diagram.ILinkPath; | ||
| 8 | + import org.modelio.api.modelio.diagram.ILinkRoute; | ||
| 9 | 9 | import org.modelio.api.modelio.diagram.tools.DefaultMultiLinkTool; | |
| 10 | 10 | import org.modelio.metamodel.diagrams.AbstractDiagram; | |
| 11 | 11 | import org.modelio.metamodel.uml.infrastructure.Dependency; | |
@@ -70,7 +70,7 @@ public boolean acceptLastElement(IDiagramHandle diagramHandle, List<IDiagramGrap | |||
| 70 | 70 | } | |
| 71 | 71 | ||
| 72 | 72 | @Override | |
| 73 | - public void actionPerformed(IDiagramHandle diagramHandle, IDiagramGraphic lastNode, List<IDiagramGraphic> otherNodes, List<LinkRouterKind> routerKinds, List<ILinkPath> paths, Rectangle rectangle) { | ||
| 73 | + public void actionPerformed(IDiagramHandle diagramHandle, IDiagramGraphic lastNode, List<IDiagramGraphic> otherNodes, List<LinkRouterKind> routerKinds, List<ILinkRoute> paths, Rectangle rectangle) { | ||
| 74 | 74 | ElementCreationManager.createOperatorElement(diagramHandle, otherNodes, rectangle, AttackTreeStereotypes.AND); | |
| 75 | 75 | } | |
| 76 | 76 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | import org.modelio.api.modelio.diagram.IDiagramGraphic; | |
| 4 | 4 | import org.modelio.api.modelio.diagram.IDiagramHandle; | |
| 5 | 5 | import org.modelio.api.modelio.diagram.IDiagramLink.LinkRouterKind; | |
| 6 | - import org.modelio.api.modelio.diagram.ILinkPath; | ||
| 6 | + import org.modelio.api.modelio.diagram.ILinkRoute; | ||
| 7 | 7 | import org.modelio.api.modelio.diagram.tools.DefaultLinkTool; | |
| 8 | 8 | import org.modelio.api.modelio.model.IModelingSession; | |
| 9 | 9 | import org.modelio.api.modelio.model.ITransaction; | |
@@ -69,7 +69,7 @@ public boolean acceptSecondElement(IDiagramHandle diagramHandle, IDiagramGraphic | |||
| 69 | 69 | } | |
| 70 | 70 | ||
| 71 | 71 | @Override | |
| 72 | - public void actionPerformed(IDiagramHandle diagramHandle, IDiagramGraphic originNode, IDiagramGraphic targetNode, LinkRouterKind touterType, ILinkPath path) { | ||
| 72 | + public void actionPerformed(IDiagramHandle diagramHandle, IDiagramGraphic originNode, IDiagramGraphic targetNode, LinkRouterKind touterType, ILinkRoute path) { | ||
| 73 | 73 | createConnection(diagramHandle, originNode, targetNode); | |
| 74 | 74 | } | |
| 75 | 75 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | import org.modelio.api.modelio.diagram.IDiagramHandle; | |
| 8 | 8 | import org.modelio.api.modelio.diagram.IDiagramLink.LinkRouterKind; | |
| 9 | 9 | import org.modelio.api.modelio.diagram.IDiagramNode; | |
| 10 | - import org.modelio.api.modelio.diagram.ILinkPath; | ||
| 10 | + import org.modelio.api.modelio.diagram.ILinkRoute; | ||
| 11 | 11 | import org.modelio.api.modelio.diagram.tools.DefaultAttachedBoxTool; | |
| 12 | 12 | import org.modelio.api.modelio.model.IModelingSession; | |
| 13 | 13 | import org.modelio.api.modelio.model.ITransaction; | |
@@ -36,7 +36,7 @@ public boolean acceptElement(IDiagramHandle diagramHandle, IDiagramGraphic targe | |||
| 36 | 36 | } | |
| 37 | 37 | ||
| 38 | 38 | @Override | |
| 39 | - public void actionPerformed(IDiagramHandle diagramHandle, IDiagramGraphic originNode, LinkRouterKind routerType, ILinkPath path, Point point) { | ||
| 39 | + public void actionPerformed(IDiagramHandle diagramHandle, IDiagramGraphic originNode, LinkRouterKind routerType, ILinkRoute path, Point point) { | ||
| 40 | 40 | createCounterMeasure(diagramHandle, originNode, point); | |
| 41 | 41 | } | |
| 42 | 42 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ | |||
| 5 | 5 | import org.modelio.api.modelio.diagram.IDiagramGraphic; | |
| 6 | 6 | import org.modelio.api.modelio.diagram.IDiagramHandle; | |
| 7 | 7 | import org.modelio.api.modelio.diagram.IDiagramLink.LinkRouterKind; | |
| 8 | - import org.modelio.api.modelio.diagram.ILinkPath; | ||
| 8 | + import org.modelio.api.modelio.diagram.ILinkRoute; | ||
| 9 | 9 | import org.modelio.api.modelio.diagram.tools.DefaultMultiLinkTool; | |
| 10 | 10 | import org.modelio.metamodel.diagrams.AbstractDiagram; | |
| 11 | 11 | import org.modelio.metamodel.uml.infrastructure.Dependency; | |
@@ -70,7 +70,7 @@ public boolean acceptLastElement(IDiagramHandle diagramHandle, List<IDiagramGrap | |||
| 70 | 70 | } | |
| 71 | 71 | ||
| 72 | 72 | @Override | |
| 73 | - public void actionPerformed(IDiagramHandle diagramHandle, IDiagramGraphic lastNode, List<IDiagramGraphic> otherNodes, List<LinkRouterKind> routerKinds, List<ILinkPath> paths, Rectangle rectangle) { | ||
| 73 | + public void actionPerformed(IDiagramHandle diagramHandle, IDiagramGraphic lastNode, List<IDiagramGraphic> otherNodes, List<LinkRouterKind> routerKinds, List<ILinkRoute> paths, Rectangle rectangle) { | ||
| 74 | 74 | ElementCreationManager.createOperatorElement(diagramHandle, otherNodes, rectangle, AttackTreeStereotypes.OR); | |
| 75 | 75 | } | |
| 76 | 76 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,8 +68,9 @@ public AbstractDiagram actionPerformed(ModelElement owner, String diagramName, S | |||
| 68 | 68 | } | |
| 69 | 69 | return diagram; | |
| 70 | 70 | } | |
| 71 | - | ||
| 72 | - @Override | ||
| 71 | + /* | ||
| 72 | + * | ||
| 73 | + @Override | ||
| 73 | 74 | public String getLabel() { | |
| 74 | 75 | return Messages.getString ("Ui.Command.AttackTreeDiagramExplorerCommand.Label"); | |
| 75 | 76 | } | |
@@ -83,16 +84,16 @@ public String getDetails() { | |||
| 83 | 84 | public String getHelpUrl() { | |
| 84 | 85 | return null; | |
| 85 | 86 | } | |
| 86 | - | ||
| 87 | - public Image getIcon() { | ||
| 88 | - return new Image(Display.getDefault(),AttackTreeResourcesManager.getInstance().getImage("attacktreediagram.png")); | ||
| 89 | - } | ||
| 90 | - | ||
| 87 | + | ||
| 91 | 88 | @Override | |
| 92 | 89 | public String getInformation() { | |
| 93 | 90 | return Messages.getString ("Ui.Command.AttackTreeDiagramExplorerCommand.Information"); | |
| 94 | 91 | } | |
| 92 | + */ | ||
| 95 | 93 | ||
| 94 | + public Image getIcon() { | ||
| 95 | + return new Image(Display.getDefault(),AttackTreeResourcesManager.getInstance().getImage("attacktreediagram.png")); | ||
| 96 | + } | ||
| 96 | 97 | public boolean accept(MObject selectedElt) { | |
| 97 | 98 | return ((selectedElt != null) | |
| 98 | 99 | && (selectedElt.getStatus().isModifiable()) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments