Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordstadnik2008-03-17 13:26:17 -0400
committerdstadnik2008-03-17 13:26:17 -0400
commitea41aa55418ba32fcfa6fd80a01931a4550a55fd (patch)
tree990c7039e50d0587760d2023e1351fbe139e2b0e /examples
parentf9f171cbfd2dbfb25c2799ea8ef22567238b074f (diff)
downloadorg.eclipse.gmf-tooling-ea41aa55418ba32fcfa6fd80a01931a4550a55fd.tar.gz
org.eclipse.gmf-tooling-ea41aa55418ba32fcfa6fd80a01931a4550a55fd.tar.xz
org.eclipse.gmf-tooling-ea41aa55418ba32fcfa6fd80a01931a4550a55fd.zip
regenerated
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/commands/ReliableRouteCreateCommand.java2
-rw-r--r--examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/commands/UnreliableRouteCreateCommand.java2
-rw-r--r--examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/providers/ElementInitializers.java50
-rw-r--r--examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/providers/TaiPanMetricProvider.java4
4 files changed, 23 insertions, 35 deletions
diff --git a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/commands/ReliableRouteCreateCommand.java b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/commands/ReliableRouteCreateCommand.java
index 37214b0ca..9471d00ee 100644
--- a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/commands/ReliableRouteCreateCommand.java
+++ b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/commands/ReliableRouteCreateCommand.java
@@ -102,7 +102,7 @@ public class ReliableRouteCreateCommand extends CreateElementCommand {
getContainer().getRoutes().add(newElement);
newElement.setSource(getSource());
newElement.setDestination(getTarget());
- TaiPanElementTypes.Initializers.init_Route_4002(newElement);
+ TaiPanElementTypes.init_Route_4002(newElement);
return newElement;
}
diff --git a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/commands/UnreliableRouteCreateCommand.java b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/commands/UnreliableRouteCreateCommand.java
index d1b615377..45722efea 100644
--- a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/commands/UnreliableRouteCreateCommand.java
+++ b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/edit/commands/UnreliableRouteCreateCommand.java
@@ -102,7 +102,7 @@ public class UnreliableRouteCreateCommand extends CreateElementCommand {
getContainer().getRoutes().add(newElement);
newElement.setSource(getSource());
newElement.setDestination(getTarget());
- TaiPanElementTypes.Initializers.init_Route_4003(newElement);
+ TaiPanElementTypes.init_Route_4003(newElement);
return newElement;
}
diff --git a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/providers/ElementInitializers.java b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/providers/ElementInitializers.java
index 9c63ffbe4..b494fe9bc 100644
--- a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/providers/ElementInitializers.java
+++ b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/providers/ElementInitializers.java
@@ -33,42 +33,30 @@ public class ElementInitializers {
/**
* @generated
*/
- public static class Initializers {
+ public static void init_Route_4002(Route instance) {
+ try {
+ TaiPanOCLFactory.getExpression("0.8", TaiPanPackage.eINSTANCE.getRoute()).assignTo(TaiPanPackage.eINSTANCE.getRoute_Reliability(), instance);
- /**
- * @generated
- */
- public static void init_Route_4002(Route instance) {
- try {
- TaiPanOCLFactory.getExpression("0.8", TaiPanPackage.eINSTANCE.getRoute()).assignTo(TaiPanPackage.eINSTANCE.getRoute_Reliability(), instance);
-
- } catch (RuntimeException e) {
- TaiPanDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
+ } catch (RuntimeException e) {
+ TaiPanDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
}
+ }
- /**
- * @generated
- */
- public static void init_Route_4003(Route instance) {
- try {
- TaiPanOCLFactory.getExpression("0.2", TaiPanPackage.eINSTANCE.getRoute()).assignTo(TaiPanPackage.eINSTANCE.getRoute_Reliability(), instance);
-
- } catch (RuntimeException e) {
- TaiPanDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
+ /**
+ * @generated
+ */
+ public static void init_Route_4003(Route instance) {
+ try {
+ TaiPanOCLFactory.getExpression("0.2", TaiPanPackage.eINSTANCE.getRoute()).assignTo(TaiPanPackage.eINSTANCE.getRoute_Reliability(), instance);
- /**
- * @generated
- */
- private Initializers() {
+ } catch (RuntimeException e) {
+ TaiPanDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
}
+ }
- /**
- * @generated
- */
- static class Java {
- }
+ /**
+ * @generated
+ */
+ static class Java {
}
}
diff --git a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/providers/TaiPanMetricProvider.java b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/providers/TaiPanMetricProvider.java
index 0d16afd4a..469696e23 100644
--- a/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/providers/TaiPanMetricProvider.java
+++ b/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/providers/TaiPanMetricProvider.java
@@ -724,8 +724,8 @@ public class TaiPanMetricProvider extends AbstractContributionItemProvider {
if (context2MetricsMap != null) {
return;
}
- register(new MetricDef("RouteRelb", TaiPanOCLFactory.getExpression("reliability", //$NON-NLS-1$
- TaiPanPackage.eINSTANCE.getRoute()), null, new Double(0.1), new Double(0.9), "Route Reliability", "Safety of the route."));
+ register(new MetricDef("RouteRelb", TaiPanOCLFactory.getExpression("reliability", TaiPanPackage.eINSTANCE.getRoute()), null, new Double(0.1), new Double(0.9), "Route Reliability",
+ "Safety of the route."));
register(new MetricDef("ShipLoad", new TaiPanAbstractExpression(TaiPanPackage.eINSTANCE.getShip()) {
protected Object doEvaluate(Object context, Map env) {

Back to the top