Skip to content

Commit 48a9e87

Browse files
committed
add property pages
1 parent e7671ba commit 48a9e87

11 files changed

Lines changed: 1082 additions & 343 deletions

File tree

pom.xml

Lines changed: 137 additions & 137 deletions
Large diffs are not rendered by default.

src/main/conf/module.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,6 @@ tagtype.platformCredentialName.description=
713713
tagtype.platformCredentialName.label=platformCredentialName
714714
tagtype.platformCredentialPassword.description=
715715
tagtype.platformCredentialPassword.label=platformCredentialPassword
716-
tagtype.portNumber.description=
717-
tagtype.portNumber.label=
718716
tagtype.postalAddress.description=
719717
tagtype.postalAddress.label=postalAddress
720718
tagtype.primitiveType.description=

src/main/conf/module.xml

Lines changed: 180 additions & 194 deletions
Large diffs are not rendered by default.
0 Bytes
Binary file not shown.

src/main/java/fr/softeam/cameldesigner/handlers/propertypage/CamelDesignerPropertyPageFactory.java

Lines changed: 718 additions & 0 deletions
Large diffs are not rendered by default.

src/main/java/fr/softeam/cameldesigner/handlers/propertypage/PropertyPageManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ private IPropertyContent getPropertyPage(ModelElement elt) {
6666
result = new OptimisationRequirementPropertyPage(OptimisationRequirement.instantiate((org.modelio.metamodel.uml.statik.Class) elt));
6767

6868
} else if (CommunicationPort.canInstantiate(elt)) {
69+
6970
CommunicationPort commPort = CommunicationPort.instantiate((org.modelio.metamodel.uml.statik.Port) elt);
71+
7072
if (commPort.getElement().getDirection().equals(PortOrientation.IN))
7173
result = new ProvidedCommunicationPropertyPage(commPort);
7274
else if (commPort.getElement().getDirection().equals(PortOrientation.OUT))
@@ -87,6 +89,9 @@ else if (hostingPort.getElement().getDirection().equals(PortOrientation.OUT))
8789

8890
} else if (AttributeAttribute.canInstantiate(elt)) {
8991
result = new AttributeAttributePropertyPage(AttributeAttribute.instantiate((org.modelio.metamodel.uml.statik.Attribute) elt));
92+
93+
} else if (SoftwareComponent.canInstantiate(elt)) {
94+
result = new SoftwareComponentPropertyPage(SoftwareComponent.instantiate((org.modelio.metamodel.uml.statik.Component) elt));
9095
}
9196
return result;
9297
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package fr.softeam.cameldesigner.handlers.propertypage.deploymentproperties;
2+
3+
import fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.Configuration;
4+
import fr.softeam.cameldesigner.handlers.propertypage.coreproperties.FeaturePropertyPage;
5+
import org.modelio.api.module.propertiesPage.IModulePropertyTable;
6+
7+
public abstract class ConfigurationPropertyPage<T extends Configuration> extends FeaturePropertyPage<T> {
8+
public ConfigurationPropertyPage(T elt) {
9+
super(elt);
10+
}
11+
12+
/**
13+
* This method handles the changes of the given property, identified by its row index, of a selected element
14+
* to a new value.
15+
* @param MObject : the selected element
16+
*
17+
* @param row : the row of the changed property
18+
* @param value : the new value of the property
19+
*/
20+
@Override
21+
public int changeProperty(int row, String value) {
22+
return super.changeProperty(row, value);
23+
}
24+
25+
/**
26+
* This method handles the construction of the property table of a selected element
27+
* @param MObject : the selected element
28+
*
29+
* @param table : the property table to fulfill
30+
*/
31+
@Override
32+
public void update(IModulePropertyTable table) {
33+
super.update(table);
34+
}
35+
36+
}

src/main/java/fr/softeam/cameldesigner/handlers/propertypage/deploymentproperties/ProvidedHostPropertyPage.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package fr.softeam.cameldesigner.handlers.propertypage.deploymentproperties;
22

33
import fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort;
4-
import fr.softeam.cameldesigner.handlers.propertypage.coreproperties.NamedElementPropertyPage;
54
import org.modelio.api.module.propertiesPage.IModulePropertyTable;
65

7-
public class ProvidedHostPropertyPage<T extends HostingPort> extends NamedElementPropertyPage<T> {
6+
public class ProvidedHostPropertyPage<T extends HostingPort> extends HostingPortPropertyPage<T> {
87
/**
98
* This method handles the changes of the given property, identified by its row index, of a selected element
109
* to a new value.
@@ -26,7 +25,7 @@ public int changeProperty(int row, String value) {
2625
*/
2726
@Override
2827
public void update(IModulePropertyTable table) {
29-
// TODO Auto-generated method stub
28+
super.update(table);
3029
}
3130

3231
public ProvidedHostPropertyPage(T elt) {

src/main/java/fr/softeam/cameldesigner/handlers/propertypage/deploymentproperties/RequiredCommunicationPropertyPage.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package fr.softeam.cameldesigner.handlers.propertypage.deploymentproperties;
22

33
import fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort;
4-
import fr.softeam.cameldesigner.handlers.propertypage.coreproperties.NamedElementPropertyPage;
54
import org.modelio.api.module.propertiesPage.IModulePropertyTable;
65

7-
public class RequiredCommunicationPropertyPage<T extends CommunicationPort> extends NamedElementPropertyPage<T> {
6+
public class RequiredCommunicationPropertyPage<T extends CommunicationPort> extends CommunicationPortPropertyPage<T> {
87
/**
98
* This method handles the changes of the given property, identified by its row index, of a selected element
109
* to a new value.

src/main/java/fr/softeam/cameldesigner/handlers/propertypage/deploymentproperties/RequiredHostPropertyPage.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package fr.softeam.cameldesigner.handlers.propertypage.deploymentproperties;
22

33
import fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort;
4-
import fr.softeam.cameldesigner.handlers.propertypage.coreproperties.NamedElementPropertyPage;
54
import org.modelio.api.module.propertiesPage.IModulePropertyTable;
65

7-
public class RequiredHostPropertyPage<T extends HostingPort> extends NamedElementPropertyPage<T> {
6+
public class RequiredHostPropertyPage<T extends HostingPort> extends HostingPortPropertyPage<T> {
87
/**
98
* This method handles the changes of the given property, identified by its row index, of a selected element
109
* to a new value.
@@ -26,7 +25,7 @@ public int changeProperty(int row, String value) {
2625
*/
2726
@Override
2827
public void update(IModulePropertyTable table) {
29-
// TODO Auto-generated method stub
28+
super.update(table);
3029
}
3130

3231
public RequiredHostPropertyPage(T elt) {

0 commit comments

Comments
 (0)