Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbblajer2007-02-02 17:14:32 +0000
committerbblajer2007-02-02 17:14:32 +0000
commitbbd9e1bfd5c93ab4b00f227f5e8f20bcc3bd4a98 (patch)
tree73d750f6fd7a2ea03faf635b2545364779749339
parent7e65d07544d0cd494565c5d7d1ac66cee91baf32 (diff)
downloadorg.eclipse.gmf-tooling-bbd9e1bfd5c93ab4b00f227f5e8f20bcc3bd4a98.tar.gz
org.eclipse.gmf-tooling-bbd9e1bfd5c93ab4b00f227f5e8f20bcc3bd4a98.tar.xz
org.eclipse.gmf-tooling-bbd9e1bfd5c93ab4b00f227f5e8f20bcc3bd4a98.zip
Several templates are rewritten with xpand;
lite-specific TextEmitter is back (otherwise importManager is sometimes passed to xpand templates)
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/.project17
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/EditorGenerator.java985
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginGenerator.java94
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginPropertiesGenerator.java111
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginXML.java497
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/LinkEditPartGenerator.java1524
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java4422
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/providers/MetricProviderGenerator.java784
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/providers/ValidationProviderGenerator.java668
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src/org/eclipse/gmf/internal/codegen/lite/CodegenEmitters.java40
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/src/org/eclipse/gmf/internal/codegen/lite/Generator.java43
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/aspects/xpt/application/ActionBarAdvisor.xpt20
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/aspects/xpt/application/WorkbenchWindowAdvisor.xpt2
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/editor/Editor.javajet684
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/editor/Plugin.javajet248
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/editor/plugin.propertiesjet48
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/editor/plugin.xmljet220
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/navigator/navigator.jetinc107
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/parts/LinkEditPart.javajet32
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/parts/NodeEditPart.javajet35
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/propsheet/extp-sect-custom.jetinc7
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/propsheet/extp-sect-input.jetinc5
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/propsheet/extp-sect-std.jetinc7
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/propsheet/extp-tab-custom.jetinc6
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/propsheet/extp-tab-std.jetinc13
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/propsheet/i18n.jetinc4
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/propsheet/sheet-extp.jetinc39
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/providers/MetricProvider.javajet824
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/providers/ValidationProvider.javajet564
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/Util.ext22
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/application/extensions.xpt121
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/editor/Editor.xpt763
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/editor/Plugin.xpt272
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/editor/extensions.xpt79
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/navigator/AbstractNavigatorItem.xpt10
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/navigator/extensions.xpt102
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/plugin.xpt82
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/properties.xpt40
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/propsheet/PropertySection.xpt6
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/propsheet/SheetLabelProvider.xpt14
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/propsheet/extensions.xpt118
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/providers/MarkerNavigationProvider.xpt140
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/providers/ValidationUtils.ext18
-rw-r--r--plugins/org.eclipse.gmf.codegen.lite/templates/xpt/providers/extensions.xpt71
44 files changed, 7809 insertions, 6099 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.lite/.project b/plugins/org.eclipse.gmf.codegen.lite/.project
index 7eade043f..cee4cda59 100644
--- a/plugins/org.eclipse.gmf.codegen.lite/.project
+++ b/plugins/org.eclipse.gmf.codegen.lite/.project
@@ -37,4 +37,21 @@
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
+ <linkedResources>
+ <link>
+ <name>templates/xpt/GenModelUtils.ext</name>
+ <type>1</type>
+ <location>GMF_DEV_ROOT/org.eclipse.gmf.codegen/templates/xpt/GenModelUtils.ext</location>
+ </link>
+ <link>
+ <name>templates/xpt/Common.xpt</name>
+ <type>1</type>
+ <location>GMF_DEV_ROOT/org.eclipse.gmf.codegen/templates/xpt/Common.xpt</location>
+ </link>
+ <link>
+ <name>templates/xpt/Utils.ext</name>
+ <type>1</type>
+ <location>GMF_DEV_ROOT/org.eclipse.gmf.codegen/templates/xpt/Utils.ext</location>
+ </link>
+ </linkedResources>
</projectDescription>
diff --git a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/EditorGenerator.java b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/EditorGenerator.java
deleted file mode 100644
index 861fc6055..000000000
--- a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/EditorGenerator.java
+++ /dev/null
@@ -1,985 +0,0 @@
-package org.eclipse.gmf.codegen.templates.lite.editor;
-
-import org.eclipse.emf.common.util.*;
-import org.eclipse.gmf.codegen.gmfgen.*;
-import org.eclipse.emf.codegen.ecore.genmodel.*;
-import org.eclipse.gmf.common.codegen.*;
-
-public class EditorGenerator
-{
- protected static String nl;
- public static synchronized EditorGenerator create(String lineSeparator)
- {
- nl = lineSeparator;
- EditorGenerator result = new EditorGenerator();
- nl = null;
- return result;
- }
-
- protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
- protected final String TEXT_1 = "";
- protected final String TEXT_2 = NL + NL + "/**" + NL + " * @generated" + NL + " */" + NL + "public class ";
- protected final String TEXT_3 = " extends ";
- protected final String TEXT_4 = " {" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final String ID = \"";
- protected final String TEXT_5 = "\"; //$NON-NLS-1$" + NL;
- protected final String TEXT_6 = NL + "\t/**" + NL + "\t * This class listens to changes to the file system in the workspace, and" + NL + "\t * makes the following changes: " + NL + "\t * <ul><li>If an open, saved file gets deleted, the editor is closed.</li>" + NL + "\t * <li>If an open file gets renamed or moved, the editor's" + NL + "\t * input is changed accordingly.</li></ul>" + NL + "\t *" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class ResourceTracker implements ";
- protected final String TEXT_7 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void resourceChanged(";
- protected final String TEXT_8 = " event) {" + NL + "\t\t\t";
- protected final String TEXT_9 = " delta = event.getDelta();" + NL + "\t\t\tif (delta != null) {" + NL + "\t\t\t\t";
- protected final String TEXT_10 = " file = getFileFromInput(getEditorInput());" + NL + "\t\t\t\tif (file != null) {" + NL + "\t\t\t\t\t";
- protected final String TEXT_11 = " fileDelta = delta.findMember(file.getFullPath());" + NL + "\t\t\t\t\tif (fileDelta != null) {" + NL + "\t\t\t\t\t\tprocessFileDelta(fileDelta);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate void processFileDelta(";
- protected final String TEXT_12 = " delta) {" + NL + "\t\t\tassert (delta != null && delta.getResource().equals(getFileFromInput(getEditorInput())));" + NL + "\t\t\tif (delta.getKind() == ";
- protected final String TEXT_13 = ".REMOVED) {" + NL + "\t\t\t\tif ((";
- protected final String TEXT_14 = ".MOVED_TO & delta.getFlags()) == 0) {" + NL + "\t\t\t\t\t";
- protected final String TEXT_15 = NL + "\t\t\t\t\tif (!isDirty()) {" + NL + "\t\t\t\t\t\tcloseEditor();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t} else {" + NL + "\t\t\t\t\t// else if it was moved or renamed" + NL + "\t\t\t\t\tfinal ";
- protected final String TEXT_16 = " newFile = ";
- protected final String TEXT_17 = ".getWorkspace().getRoot().getFile(delta.getMovedToPath());" + NL + "\t\t\t\t\tfinal ";
- protected final String TEXT_18 = " newEditorInput;" + NL + "\t\t\t\t\tif (getEditorInput() instanceof ";
- protected final String TEXT_19 = ") {" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_20 = " newFileURI = ";
- protected final String TEXT_21 = ".createPlatformResourceURI(newFile.getFullPath().toString(), true);" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_22 = " oldFileURI = ((";
- protected final String TEXT_23 = ") getEditorInput()).getURI();" + NL + "\t\t\t\t\t\tif (oldFileURI.fragment() != null) {" + NL + "\t\t\t\t\t\t\tnewFileURI = newFileURI.appendFragment(oldFileURI.fragment());" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tnewEditorInput = new ";
- protected final String TEXT_24 = "(newFileURI);" + NL + "\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\tnewEditorInput = new ";
- protected final String TEXT_25 = "(newFile);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t";
- protected final String TEXT_26 = " display = getSite().getShell().getDisplay();" + NL + "\t\t\t\t\tdisplay.asyncExec(new Runnable() {" + NL + "\t\t\t\t\t\tpublic void run() {" + NL + "\t\t\t\t\t\t\tsetInput(newEditorInput);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t});" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ResourceTracker resourceTracker;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ResourceTracker getResourceTracker() {" + NL + "\t\tif (resourceTracker == null) {" + NL + "\t\t\tresourceTracker = new ResourceTracker();" + NL + "\t\t}" + NL + "\t\treturn resourceTracker;" + NL + "\t}" + NL;
- protected final String TEXT_27 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_28 = " myActionBarContributor;";
- protected final String TEXT_29 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_30 = " diagramRoot;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_31 = " diagram;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_32 = " domainAdapterFactory;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void createActions() {" + NL + "\t\taddStackAction(new ";
- protected final String TEXT_33 = "(this));" + NL + "\t\taddStackAction(new ";
- protected final String TEXT_34 = "(this));" + NL + "" + NL + "\t\taddEditPartAction(new ";
- protected final String TEXT_35 = "((";
- protected final String TEXT_36 = ") this));" + NL + "\t\taddEditPartAction(new ";
- protected final String TEXT_37 = "((";
- protected final String TEXT_38 = ") this));" + NL + "" + NL + "\t\taddEditPartAction(new ";
- protected final String TEXT_39 = "((";
- protected final String TEXT_40 = ") this, ";
- protected final String TEXT_41 = ".LEFT));" + NL + "\t\taddEditPartAction(new ";
- protected final String TEXT_42 = "((";
- protected final String TEXT_43 = ") this, ";
- protected final String TEXT_44 = ".RIGHT));" + NL + "\t\taddEditPartAction(new ";
- protected final String TEXT_45 = "((";
- protected final String TEXT_46 = ") this, ";
- protected final String TEXT_47 = ".TOP));" + NL + "\t\taddEditPartAction(new ";
- protected final String TEXT_48 = "((";
- protected final String TEXT_49 = ") this, ";
- protected final String TEXT_50 = ".BOTTOM));" + NL + "\t\taddEditPartAction(new ";
- protected final String TEXT_51 = "((";
- protected final String TEXT_52 = ") this, ";
- protected final String TEXT_53 = ".CENTER));" + NL + "\t\taddEditPartAction(new ";
- protected final String TEXT_54 = "((";
- protected final String TEXT_55 = ") this, ";
- protected final String TEXT_56 = ".MIDDLE));" + NL;
- protected final String TEXT_57 = NL + "\t\taddEditorAction(new ";
- protected final String TEXT_58 = "(this));";
- protected final String TEXT_59 = NL + "\t\taddEditorAction(new ";
- protected final String TEXT_60 = "(this));" + NL + "\t\taddEditorAction(new ";
- protected final String TEXT_61 = "(this));" + NL + "" + NL + "\t\t";
- protected final String TEXT_62 = " zoomIn = new ";
- protected final String TEXT_63 = "(getZoomManager());" + NL + "\t\t";
- protected final String TEXT_64 = " zoomOut = new ";
- protected final String TEXT_65 = "(getZoomManager());" + NL + "\t\taddAction(zoomIn);" + NL + "\t\taddAction(zoomOut);" + NL + "\t\tgetSite().getKeyBindingService().registerAction(zoomIn);" + NL + "\t\tgetSite().getKeyBindingService().registerAction(zoomOut);" + NL + "\t\t";
- protected final String TEXT_66 = " keyHandler = getGraphicalViewer().getKeyHandler();" + NL + "\t\tkeyHandler.put(";
- protected final String TEXT_67 = ".getPressed(";
- protected final String TEXT_68 = ".DEL, 127, 0), getActionRegistry().getAction(";
- protected final String TEXT_69 = ".DELETE.getId()));" + NL + "\t\tkeyHandler.put(";
- protected final String TEXT_70 = ".getPressed(";
- protected final String TEXT_71 = ".F2, 0), getActionRegistry().getAction(";
- protected final String TEXT_72 = ".DIRECT_EDIT));" + NL + "\t}" + NL;
- protected final String TEXT_73 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tvoid closeEditor() {" + NL + "\t\tgetSite().getShell().getDisplay().syncExec(new Runnable() {" + NL + "\t\t\tpublic void run() {" + NL + "\t\t\t\tgetSite().getPage().closeEditor(";
- protected final String TEXT_74 = ".this, false);" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t}";
- protected final String TEXT_75 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void updateActionBars() {" + NL + "\t\tif (myActionBarContributor != null) {" + NL + "\t\t\tmyActionBarContributor.updateGlobalActions(this);" + NL + "\t\t}" + NL + "\t}" + NL;
- protected final String TEXT_76 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void dispose() {";
- protected final String TEXT_77 = NL + "\t\t";
- protected final String TEXT_78 = " oldResource = getFileFromInput(getEditorInput());" + NL + "\t\tif (oldResource != null) {" + NL + "\t\t\toldResource.getWorkspace().removeResourceChangeListener(getResourceTracker());" + NL + "\t\t}";
- protected final String TEXT_79 = NL + "\t\tmyActionBarContributor.dispose();" + NL + "\t\tmyActionBarContributor = null;";
- protected final String TEXT_80 = NL + "\t\t// important: always call super implementation of dispose" + NL + "\t\tsuper.dispose();" + NL + "\t}" + NL;
- protected final String TEXT_81 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void doSave(";
- protected final String TEXT_82 = " monitor) {" + NL + "\t\ttry {" + NL + "\t\t\tsave(monitor);" + NL + "\t\t\tgetCommandStack().markSaveLocation();" + NL + "\t\t} catch (";
- protected final String TEXT_83 = " e) {" + NL + "\t\t\t";
- protected final String TEXT_84 = ".openError(getSite().getShell(), \"Error During Save\", \"The current ";
- protected final String TEXT_85 = " model could not be saved.\", e.getStatus());" + NL + "\t\t}" + NL + "\t}" + NL;
- protected final String TEXT_86 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void configurePalette(";
- protected final String TEXT_87 = " paletteRoot) {";
- protected final String TEXT_88 = NL + "\t\tnew ";
- protected final String TEXT_89 = "(getDomainAdapterFactory()).contributeToPalette(paletteRoot);";
- protected final String TEXT_90 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_91 = " getDiagramRoot() {" + NL + "\t\treturn diagramRoot;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_92 = " getDiagram() {" + NL + "\t\treturn diagram;" + NL + "\t}" + NL;
- protected final String TEXT_93 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_94 = " getPropertySheetPage() {" + NL + "\t\tif (myPropertySheetPage == null) {" + NL + "\t\t\tmyPropertySheetPage = new ";
- protected final String TEXT_95 = "(new ";
- protected final String TEXT_96 = "() {" + NL + "\t\t\t\tpublic String getContributorId() {" + NL + "\t\t\t\t\treturn ";
- protected final String TEXT_97 = ".ID;" + NL + "\t\t\t\t}" + NL + "\t\t\t});" + NL + "\t\t}" + NL + "\t\treturn myPropertySheetPage;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate org.eclipse.ui.views.properties.IPropertySheetPage myPropertySheetPage;";
- protected final String TEXT_98 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void init(";
- protected final String TEXT_99 = " site, ";
- protected final String TEXT_100 = " input) throws ";
- protected final String TEXT_101 = " {" + NL + "\t\t";
- protected final String TEXT_102 = " file = getURIFromInput(input);" + NL + "\t\tif (file == null) {" + NL + "\t\t\tthrow new ";
- protected final String TEXT_103 = "(\"The specified input is not valid.\");" + NL + "\t\t}" + NL + "\t\tsuper.init(site, input);" + NL + "\t\t// validate" + NL + "\t\tif (getDiagramRoot() == null) {" + NL + "\t\t\tthrow new ";
- protected final String TEXT_104 = "(\"The specified input is not valid.\");" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void setInput(";
- protected final String TEXT_105 = " input) {";
- protected final String TEXT_106 = NL + "\t\t";
- protected final String TEXT_107 = " oldResource = getFileFromInput(getEditorInput());" + NL + "\t\tif (oldResource != null) {" + NL + "\t\t\toldResource.getWorkspace().removeResourceChangeListener(getResourceTracker());" + NL + "\t\t}";
- protected final String TEXT_108 = NL + "\t\t";
- protected final String TEXT_109 = " file = getURIFromInput(input);" + NL + "\t\tload(file);" + NL + "\t\tsetPartName(file.lastSegment());" + NL + "\t\tsuper.setInput(input);";
- protected final String TEXT_110 = NL + "\t\t";
- protected final String TEXT_111 = " newResource = getFileFromInput(getEditorInput());" + NL + "\t\tif (newResource != null) {" + NL + "\t\t\tnewResource.getWorkspace().addResourceChangeListener(getResourceTracker());" + NL + "\t\t}";
- protected final String TEXT_112 = NL + "\t}" + NL;
- protected final String TEXT_113 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_114 = " getFileFromInput(";
- protected final String TEXT_115 = " input) {" + NL + "\t\tif (input instanceof ";
- protected final String TEXT_116 = ") {" + NL + "\t\t\treturn ((";
- protected final String TEXT_117 = ") input).getFile();" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_118 = " uri = getURIFromInput(input);" + NL + "\t\tif (uri != null) {" + NL + "\t\t\tif (\"platform\".equals(uri.scheme()) && (uri.segmentCount() > 2)) { //$NON-NLS-1$" + NL + "\t\t\t\tif (\"resource\".equals(uri.segment(0))) { //$NON-NLS-1$" + NL + "\t\t\t\t\t";
- protected final String TEXT_119 = " path = new ";
- protected final String TEXT_120 = "(";
- protected final String TEXT_121 = ".decode(uri.path())).removeFirstSegments(1);" + NL + "\t\t\t\t\treturn ";
- protected final String TEXT_122 = ".getWorkspace().getRoot().getFile(path);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn null;" + NL + "\t}" + NL;
- protected final String TEXT_123 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_124 = " getURIFromInput(";
- protected final String TEXT_125 = " input) {" + NL + "\t\tif (input == null) {" + NL + "\t\t\treturn null;" + NL + "\t\t}";
- protected final String TEXT_126 = NL + "\t\tif (input instanceof ";
- protected final String TEXT_127 = ") {" + NL + "\t\t\treturn ";
- protected final String TEXT_128 = ".createPlatformResourceURI(((";
- protected final String TEXT_129 = ")input).getFile().getFullPath().toString(), true);" + NL + "\t\t}";
- protected final String TEXT_130 = NL + "\t\tif (input instanceof ";
- protected final String TEXT_131 = ") {" + NL + "\t\t\treturn ((";
- protected final String TEXT_132 = ") input).getURI();" + NL + "\t\t}" + NL + "\t\tif (input instanceof ";
- protected final String TEXT_133 = ") {" + NL + "\t\t\treturn ";
- protected final String TEXT_134 = ".createFileURI(((";
- protected final String TEXT_135 = ")input).getPath().toOSString());" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_136 = " uri = (";
- protected final String TEXT_137 = ") input.getAdapter(";
- protected final String TEXT_138 = ".class);" + NL + "\t\tif (uri != null) {" + NL + "\t\t\treturn uri;" + NL + "\t\t}" + NL + "\t\treturn null;" + NL + "\t}" + NL;
- protected final String TEXT_139 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_140 = " getDomainAdapterFactory() {" + NL + "\t\tif (domainAdapterFactory == null) {" + NL + "\t\t\t";
- protected final String TEXT_141 = " factories = new ";
- protected final String TEXT_142 = "();" + NL + "\t\t\tfactories.add(new ";
- protected final String TEXT_143 = "());";
- protected final String TEXT_144 = NL + "\t\t\tfactories.add(new ";
- protected final String TEXT_145 = "());";
- protected final String TEXT_146 = NL + "\t\t\tfactories.add(new ";
- protected final String TEXT_147 = "());" + NL + "\t\t\tfactories.add(new ";
- protected final String TEXT_148 = "());" + NL + "\t\t\tdomainAdapterFactory = new ";
- protected final String TEXT_149 = "(factories);" + NL + "\t\t}" + NL + "\t\treturn domainAdapterFactory;" + NL + "\t}" + NL;
- protected final String TEXT_150 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void createPartControl(";
- protected final String TEXT_151 = " parent) {" + NL + "\t\tsuper.createPartControl(parent);" + NL + "\t\t";
- protected final String TEXT_152 = " bars = getViewSite().getActionBars();" + NL + "\t\tmyActionBarContributor = new ";
- protected final String TEXT_153 = "();" + NL + "\t\tmyActionBarContributor.init(bars, getSite().getPage());" + NL + "\t\tbars.updateActionBars();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void setInput(";
- protected final String TEXT_154 = " diagramURI) throws ";
- protected final String TEXT_155 = " {" + NL + "\t\tload(diagramURI);" + NL + "\t\tif (diagram == null || diagramRoot == null) {" + NL + "\t\t\tthrow new ";
- protected final String TEXT_156 = "(new ";
- protected final String TEXT_157 = "(";
- protected final String TEXT_158 = ".ERROR," + NL + "\t\t\t\t";
- protected final String TEXT_159 = ".ID, 0, \"Failed to load diagram\", null));" + NL + "\t\t}" + NL + "\t}";
- protected final String TEXT_160 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void load(";
- protected final String TEXT_161 = " diagramFile) {" + NL + "\t\tdiagramRoot = null;" + NL + "\t\tdiagram = null;" + NL + "\t\tif (diagramFile == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tfinal ";
- protected final String TEXT_162 = " diagramFileURI = diagramFile;" + NL + "\t\t";
- protected final String TEXT_163 = " editingDomain = getEditingDomain();" + NL + "\t\tfinal ";
- protected final String TEXT_164 = " resourceSet = editingDomain.getResourceSet();" + NL + "\t\tfinal ";
- protected final String TEXT_165 = " diagramResource = resourceSet.getResource(diagramFile.trimFragment(), true);" + NL + "\t\tif (diagramResource == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_166 = " operation = new ";
- protected final String TEXT_167 = "(editingDomain, \"Load diagram\", null) {" + NL + "\t\t\tprotected ";
- protected final String TEXT_168 = " doExecute(";
- protected final String TEXT_169 = " monitor, ";
- protected final String TEXT_170 = " info) throws ";
- protected final String TEXT_171 = " {" + NL + "\t\t\t\tif (diagramFileURI.fragment() != null) {" + NL + "\t\t\t\t\t";
- protected final String TEXT_172 = " possibleDiagram = diagramResource.getEObject(diagramFileURI.fragment());" + NL + "\t\t\t\t\tif (possibleDiagram instanceof ";
- protected final String TEXT_173 = ") {" + NL + "\t\t\t\t\t\tdiagram = (";
- protected final String TEXT_174 = ") possibleDiagram;" + NL + "\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\treturn ";
- protected final String TEXT_175 = ".CANCEL_STATUS;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t} else {" + NL + "\t\t\t\t\tdiagram = (";
- protected final String TEXT_176 = ") findInResource(diagramResource, ";
- protected final String TEXT_177 = ".class);" + NL + "\t\t\t\t\tif (diagram == null) {" + NL + "\t\t\t\t\t\tdiagram = ";
- protected final String TEXT_178 = ".eINSTANCE.createDiagram();" + NL + "\t\t\t\t\t\tdiagramResource.getContents().add(0, diagram);" + NL + "\t\t\t\t\t\t//Auxiliary creation should not be undoable." + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tdiagramResource.save(";
- protected final String TEXT_179 = ".EMPTY_MAP);" + NL + "\t\t\t\t\t\t} catch (";
- protected final String TEXT_180 = " e) {" + NL + "\t\t\t\t\t\t\tdiagram = null;" + NL + "\t\t\t\t\t\t\tdiagramRoot = null;" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_181 = ".CANCEL_STATUS;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\tdiagramRoot = (";
- protected final String TEXT_182 = ") diagram.getElement();" + NL + "\t\t\t\tif (diagramRoot == null) {";
- protected final String TEXT_183 = NL + "\t\t\t\t\t";
- protected final String TEXT_184 = " modelFile = ";
- protected final String TEXT_185 = ".getModelFileURI(diagramFileURI);" + NL + "\t\t\t\t\t";
- protected final String TEXT_186 = " modelResource = resourceSet.getResource(modelFile, true);" + NL + "\t\t\t\t\tif (modelResource == null) {" + NL + "\t\t\t\t\t\tdiagram = null;" + NL + "\t\t\t\t\t\treturn ";
- protected final String TEXT_187 = ".CANCEL_STATUS;" + NL + "\t\t\t\t\t}";
- protected final String TEXT_188 = NL + "\t\t\t\t\tdiagramRoot = (";
- protected final String TEXT_189 = ") findInResource(";
- protected final String TEXT_190 = ", ";
- protected final String TEXT_191 = ".class);" + NL + "\t\t\t\t\tif (diagramRoot == null) {" + NL + "\t\t\t\t\t\tdiagramRoot = ";
- protected final String TEXT_192 = ".eINSTANCE.create";
- protected final String TEXT_193 = "();" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_194 = ".getContents().add(0, ";
- protected final String TEXT_195 = "(";
- protected final String TEXT_196 = ") ";
- protected final String TEXT_197 = "diagramRoot);" + NL + "\t\t\t\t\t\t//We don't want this auxiliary creation to be undoable." + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\t";
- protected final String TEXT_198 = ".save(";
- protected final String TEXT_199 = ".EMPTY_MAP);" + NL + "\t\t\t\t\t\t} catch (";
- protected final String TEXT_200 = " e) {" + NL + "\t\t\t\t\t\t\tdiagram = null;" + NL + "\t\t\t\t\t\t\tdiagramRoot = null;" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_201 = ".CANCEL_STATUS;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (!diagramRoot.equals(diagram.getElement())) {" + NL + "\t\t\t\t\t\tdiagram.setElement(";
- protected final String TEXT_202 = "(";
- protected final String TEXT_203 = ") ";
- protected final String TEXT_204 = "diagramRoot);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\tif (!diagram.eIsSet(";
- protected final String TEXT_205 = ".eINSTANCE.getView_Type())) {" + NL + "\t\t\t\t\t";
- protected final String TEXT_206 = ".INSTANCE.decorateView(diagram);";
- protected final String TEXT_207 = NL + "\t\t\t\t\tdoSave(new ";
- protected final String TEXT_208 = "());";
- protected final String TEXT_209 = NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tdiagramResource.save(";
- protected final String TEXT_210 = ".EMPTY_MAP);" + NL + "\t\t\t\t\t\t} catch (";
- protected final String TEXT_211 = " e) {" + NL + "\t\t\t\t\t\t\tdiagram = null;" + NL + "\t\t\t\t\t\t\tdiagramRoot = null;" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_212 = ".CANCEL_STATUS;" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_213 = NL + "\t\t\t\t}" + NL + "\t\t\t\treturn ";
- protected final String TEXT_214 = ".OK_STATUS;" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\ttry {" + NL + "\t\t\toperation.execute(new ";
- protected final String TEXT_215 = "(), null);" + NL + "\t\t} catch (";
- protected final String TEXT_216 = " e) {" + NL + "\t\t\tdiagram = null;" + NL + "\t\t\tdiagramRoot = null;" + NL + "\t\t}" + NL + "\t}";
- protected final String TEXT_217 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate Object findInResource(";
- protected final String TEXT_218 = " resource, Class expectedClass) {" + NL + "\t\tfor(";
- protected final String TEXT_219 = " it = resource.getContents().iterator(); it.hasNext(); ) {" + NL + "\t\t\tObject next = it.next();" + NL + "\t\t\tif (expectedClass.isInstance(next)) {" + NL + "\t\t\t\treturn next;" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void initializeGraphicalViewer() {" + NL + "\t\t// initialize the viewer with input" + NL + "\t\t";
- protected final String TEXT_220 = " root = new ";
- protected final String TEXT_221 = "();" + NL + "\t\tgetGraphicalViewer().setRootEditPart(root);" + NL + "\t\tgetGraphicalViewer().setEditPartFactory(new ";
- protected final String TEXT_222 = "());" + NL + "" + NL + "\t\t";
- protected final String TEXT_223 = " printableLayers = (";
- protected final String TEXT_224 = ") root.getLayer(";
- protected final String TEXT_225 = ".PRINTABLE_LAYERS);" + NL + "\t\t";
- protected final String TEXT_226 = " extLabelsLayer = new ";
- protected final String TEXT_227 = "();" + NL + "\t\textLabelsLayer.setLayoutManager(new ";
- protected final String TEXT_228 = "());" + NL + "\t\tprintableLayers.addLayerAfter(extLabelsLayer, ";
- protected final String TEXT_229 = ".EXTERNAL_NODE_LABELS_LAYER, ";
- protected final String TEXT_230 = ".PRIMARY_LAYER);" + NL + "\t\tgetGraphicalViewer().setContents(getDiagram());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void configureGraphicalViewer() {" + NL + "\t\tsuper.configureGraphicalViewer();" + NL + "\t\t";
- protected final String TEXT_231 = " viewer = getGraphicalViewer();" + NL + "\t\t// configure the context menu" + NL + "\t\t";
- protected final String TEXT_232 = " provider = new ";
- protected final String TEXT_233 = "ContextMenuProvider(viewer);" + NL + "\t\tviewer.setContextMenu(provider);" + NL + "\t\tgetSite().registerContextMenu(";
- protected final String TEXT_234 = ".ID + \".editor.contextmenu\", provider, getSite().getSelectionProvider()); //$NON-NLS-1$" + NL + "" + NL + "\t\t";
- protected final String TEXT_235 = " keyHandler = new ";
- protected final String TEXT_236 = "(viewer);" + NL + "\t\tviewer.setKeyHandler(keyHandler);" + NL + "" + NL + "\t\tviewer.setProperty(";
- protected final String TEXT_237 = ".KeyGenerator.getKey(";
- protected final String TEXT_238 = ".CTRL), ";
- protected final String TEXT_239 = ".SINGLETON);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic boolean isFlyoutPalette() {" + NL + "\t\treturn ";
- protected final String TEXT_240 = ";" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class ";
- protected final String TEXT_241 = "ContextMenuProvider extends ";
- protected final String TEXT_242 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ";
- protected final String TEXT_243 = "ContextMenuProvider(";
- protected final String TEXT_244 = " viewer) {" + NL + "\t\t\tsuper(viewer);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t public void buildContextMenu(";
- protected final String TEXT_245 = " menuManager) {" + NL + "\t ";
- protected final String TEXT_246 = ".addStandardActionGroups(menuManager);" + NL + "\t\t\tappendActionToMenu(menuManager, ";
- protected final String TEXT_247 = ".UNDO.getId(), ";
- protected final String TEXT_248 = ".GROUP_UNDO);" + NL + "\t\t\tappendActionToMenu(menuManager, ";
- protected final String TEXT_249 = ".REDO.getId(), ";
- protected final String TEXT_250 = ".GROUP_UNDO);" + NL + "\t" + NL + "\t\t\tappendActionToMenu(menuManager, ";
- protected final String TEXT_251 = ".COPY.getId(), ";
- protected final String TEXT_252 = ".GROUP_EDIT);" + NL + "\t\t\tappendActionToMenu(menuManager, ";
- protected final String TEXT_253 = ".PASTE.getId(), ";
- protected final String TEXT_254 = ".GROUP_EDIT);" + NL + "\t\t\tappendActionToMenu(menuManager, ";
- protected final String TEXT_255 = ".DELETE.getId(), ";
- protected final String TEXT_256 = ".GROUP_EDIT);" + NL + "\t\t\tappendActionToMenu(menuManager, ";
- protected final String TEXT_257 = ".DIRECT_EDIT, ";
- protected final String TEXT_258 = ".GROUP_EDIT);" + NL + "" + NL + "\t\t\tappendActionToMenu(menuManager, ";
- protected final String TEXT_259 = ".LAYOUT_ALL_ACTION, ";
- protected final String TEXT_260 = ".GROUP_REST);" + NL;
- protected final String TEXT_261 = NL + "\t\t\tappendActionToMenu(menuManager, ";
- protected final String TEXT_262 = ".SAVE.getId(), ";
- protected final String TEXT_263 = ".GROUP_SAVE);";
- protected final String TEXT_264 = NL + "\t\t\tappendAlignmentSubmenu(menuManager);" + NL + "\t }" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate void appendAlignmentSubmenu(";
- protected final String TEXT_265 = " menuManager) {" + NL + "\t\t\t// Alignment Actions" + NL + "\t\t\t";
- protected final String TEXT_266 = " submenu = new ";
- protected final String TEXT_267 = "(\"Align\");" + NL + "\t\t\tsubmenu.add(new ";
- protected final String TEXT_268 = "(";
- protected final String TEXT_269 = ".MB_ADDITIONS));" + NL + "\t" + NL + "\t\t\tappendActionToMenu(submenu, ";
- protected final String TEXT_270 = ".ALIGN_LEFT, ";
- protected final String TEXT_271 = ".MB_ADDITIONS);" + NL + "\t\t\tappendActionToMenu(submenu, ";
- protected final String TEXT_272 = ".ALIGN_CENTER, ";
- protected final String TEXT_273 = ".MB_ADDITIONS);" + NL + "\t\t\tappendActionToMenu(submenu, ";
- protected final String TEXT_274 = ".ALIGN_RIGHT, ";
- protected final String TEXT_275 = ".MB_ADDITIONS);" + NL + "\t\t\tappendActionToMenu(submenu, ";
- protected final String TEXT_276 = ".ALIGN_TOP, ";
- protected final String TEXT_277 = ".MB_ADDITIONS);" + NL + "\t\t\tappendActionToMenu(submenu, ";
- protected final String TEXT_278 = ".ALIGN_MIDDLE, ";
- protected final String TEXT_279 = ".MB_ADDITIONS);" + NL + "\t\t\tappendActionToMenu(submenu, ";
- protected final String TEXT_280 = ".ALIGN_BOTTOM, ";
- protected final String TEXT_281 = ".MB_ADDITIONS);" + NL + "\t" + NL + "\t\t\tif (!submenu.isEmpty()) {" + NL + "\t\t\t\tmenuManager.appendToGroup(";
- protected final String TEXT_282 = ".GROUP_REST, submenu);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate void appendActionToMenu(";
- protected final String TEXT_283 = " menu, String actionId, String menuGroup) {" + NL + "\t\t\t";
- protected final String TEXT_284 = " action = getActionRegistry().getAction(actionId);" + NL + "\t\t\tif (action != null && action.isEnabled()) {" + NL + "\t\t\t\tmenu.appendToGroup(menuGroup, action);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "}";
- protected final String TEXT_285 = NL;
-
- public String generate(Object argument)
- {
- final StringBuffer stringBuffer = new StringBuffer();
-
-final GenEditorView genEditor = (GenEditorView) ((Object[]) argument)[0];
-final GenDiagram genDiagram = genEditor.getEditorGen().getDiagram();
-final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];
-final boolean isRichClientPlatform = genDiagram.getEditorGen().getApplication() != null;
-final boolean isEclipseEditor = genEditor.isEclipseEditor();
-
-importManager.emitPackageStatement(stringBuffer);
-importManager.markImportLocation(stringBuffer);
- stringBuffer.append(TEXT_1);
-
-importManager.registerInnerClass(genEditor.getClassName() + "ContextMenuProvider");
-if (!isRichClientPlatform) {
- importManager.registerInnerClass("ResourceTracker");
-}
-
- stringBuffer.append(TEXT_2);
- stringBuffer.append(genEditor.getClassName());
- stringBuffer.append(TEXT_3);
- stringBuffer.append(importManager.getImportedName(isEclipseEditor ? "org.eclipse.gmf.runtime.lite.parts.DiagramEditor" : "org.eclipse.gmf.runtime.lite.parts.DiagramViewPart"));
- stringBuffer.append(TEXT_4);
- stringBuffer.append(genEditor.getID());
- stringBuffer.append(TEXT_5);
-
-if (!isRichClientPlatform && isEclipseEditor) {
-
- stringBuffer.append(TEXT_6);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceChangeListener"));
- stringBuffer.append(TEXT_7);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceChangeEvent"));
- stringBuffer.append(TEXT_8);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta"));
- stringBuffer.append(TEXT_9);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile"));
- stringBuffer.append(TEXT_10);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta"));
- stringBuffer.append(TEXT_11);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta"));
- stringBuffer.append(TEXT_12);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta"));
- stringBuffer.append(TEXT_13);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta"));
- stringBuffer.append(TEXT_14);
- /*XXX: make sure unsaved deleted file is handled correctly*/
- stringBuffer.append(TEXT_15);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile"));
- stringBuffer.append(TEXT_16);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.ResourcesPlugin"));
- stringBuffer.append(TEXT_17);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput"));
- stringBuffer.append(TEXT_18);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput"));
- stringBuffer.append(TEXT_19);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_20);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_21);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_22);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput"));
- stringBuffer.append(TEXT_23);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput"));
- stringBuffer.append(TEXT_24);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.part.FileEditorInput"));
- stringBuffer.append(TEXT_25);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Display"));
- stringBuffer.append(TEXT_26);
-
-}
-if (!isEclipseEditor) {
-
- stringBuffer.append(TEXT_27);
- stringBuffer.append(importManager.getImportedName(genEditor.getActionBarContributorQualifiedClassName()));
- stringBuffer.append(TEXT_28);
-
-}
-
- stringBuffer.append(TEXT_29);
- stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_30);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram"));
- stringBuffer.append(TEXT_31);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ComposedAdapterFactory"));
- stringBuffer.append(TEXT_32);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.UndoAction"));
- stringBuffer.append(TEXT_33);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.RedoAction"));
- stringBuffer.append(TEXT_34);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.DeleteAction"));
- stringBuffer.append(TEXT_35);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart"));
- stringBuffer.append(TEXT_36);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.DirectEditAction"));
- stringBuffer.append(TEXT_37);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart"));
- stringBuffer.append(TEXT_38);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction"));
- stringBuffer.append(TEXT_39);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart"));
- stringBuffer.append(TEXT_40);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants"));
- stringBuffer.append(TEXT_41);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction"));
- stringBuffer.append(TEXT_42);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart"));
- stringBuffer.append(TEXT_43);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants"));
- stringBuffer.append(TEXT_44);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction"));
- stringBuffer.append(TEXT_45);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart"));
- stringBuffer.append(TEXT_46);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants"));
- stringBuffer.append(TEXT_47);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction"));
- stringBuffer.append(TEXT_48);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart"));
- stringBuffer.append(TEXT_49);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants"));
- stringBuffer.append(TEXT_50);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction"));
- stringBuffer.append(TEXT_51);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart"));
- stringBuffer.append(TEXT_52);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants"));
- stringBuffer.append(TEXT_53);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction"));
- stringBuffer.append(TEXT_54);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart"));
- stringBuffer.append(TEXT_55);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants"));
- stringBuffer.append(TEXT_56);
-
-if (isEclipseEditor) {
-
- stringBuffer.append(TEXT_57);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.SaveAction"));
- stringBuffer.append(TEXT_58);
-
-}
-
- stringBuffer.append(TEXT_59);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.PrintAction"));
- stringBuffer.append(TEXT_60);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.ui.actions.LayoutDiagramAction"));
- stringBuffer.append(TEXT_61);
- stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction"));
- stringBuffer.append(TEXT_62);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.ZoomInAction"));
- stringBuffer.append(TEXT_63);
- stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction"));
- stringBuffer.append(TEXT_64);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.ZoomOutAction"));
- stringBuffer.append(TEXT_65);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyHandler"));
- stringBuffer.append(TEXT_66);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyStroke"));
- stringBuffer.append(TEXT_67);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT"));
- stringBuffer.append(TEXT_68);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory"));
- stringBuffer.append(TEXT_69);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyStroke"));
- stringBuffer.append(TEXT_70);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT"));
- stringBuffer.append(TEXT_71);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_72);
-
-if (!isRichClientPlatform && isEclipseEditor) {
-
- stringBuffer.append(TEXT_73);
- stringBuffer.append(genEditor.getClassName());
- stringBuffer.append(TEXT_74);
-
-}
-if (!isEclipseEditor) {
-
- stringBuffer.append(TEXT_75);
-
-}
-
- stringBuffer.append(TEXT_76);
-
-if (!isRichClientPlatform && isEclipseEditor) {
-
- stringBuffer.append(TEXT_77);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile"));
- stringBuffer.append(TEXT_78);
-
-}
-if (!isEclipseEditor) {
-
- stringBuffer.append(TEXT_79);
-
-}
-
- stringBuffer.append(TEXT_80);
-
-if (isEclipseEditor) {
-
- stringBuffer.append(TEXT_81);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IProgressMonitor"));
- stringBuffer.append(TEXT_82);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException"));
- stringBuffer.append(TEXT_83);
- stringBuffer.append(importManager.getImportedName("org.eclipse.jface.dialogs.ErrorDialog"));
- stringBuffer.append(TEXT_84);
- stringBuffer.append(genDiagram.getEditorGen().getDomainGenModel().getModelName());
- stringBuffer.append(TEXT_85);
-
-}
-
- stringBuffer.append(TEXT_86);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.palette.PaletteRoot"));
- stringBuffer.append(TEXT_87);
-
-{
- final Palette palette = genDiagram.getPalette();
- if (palette != null) {
-
- stringBuffer.append(TEXT_88);
- stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_89);
-
- }
-}
-
- stringBuffer.append(TEXT_90);
- stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_91);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram"));
- stringBuffer.append(TEXT_92);
-
-if (genEditor.getEditorGen().getPropertySheet() != null) {
-
- stringBuffer.append(TEXT_93);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.views.properties.IPropertySheetPage"));
- stringBuffer.append(TEXT_94);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage"));
- stringBuffer.append(TEXT_95);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor"));
- stringBuffer.append(TEXT_96);
- stringBuffer.append(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName());
- stringBuffer.append(TEXT_97);
-
-}
-if (isEclipseEditor) {
-
- stringBuffer.append(TEXT_98);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorSite"));
- stringBuffer.append(TEXT_99);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput"));
- stringBuffer.append(TEXT_100);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException"));
- stringBuffer.append(TEXT_101);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_102);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException"));
- stringBuffer.append(TEXT_103);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException"));
- stringBuffer.append(TEXT_104);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput"));
- stringBuffer.append(TEXT_105);
-
- if (!isRichClientPlatform) {
-
- stringBuffer.append(TEXT_106);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile"));
- stringBuffer.append(TEXT_107);
-
- }
-
- stringBuffer.append(TEXT_108);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_109);
-
- if (!isRichClientPlatform) {
-
- stringBuffer.append(TEXT_110);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile"));
- stringBuffer.append(TEXT_111);
-
- }
-
- stringBuffer.append(TEXT_112);
-
- if (!isRichClientPlatform) {
-
- stringBuffer.append(TEXT_113);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile"));
- stringBuffer.append(TEXT_114);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput"));
- stringBuffer.append(TEXT_115);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput"));
- stringBuffer.append(TEXT_116);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput"));
- stringBuffer.append(TEXT_117);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_118);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IPath"));
- stringBuffer.append(TEXT_119);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path"));
- stringBuffer.append(TEXT_120);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_121);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.ResourcesPlugin"));
- stringBuffer.append(TEXT_122);
-
- }
-
- stringBuffer.append(TEXT_123);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_124);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput"));
- stringBuffer.append(TEXT_125);
-
- if (!isRichClientPlatform) {
-
- stringBuffer.append(TEXT_126);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput"));
- stringBuffer.append(TEXT_127);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_128);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput"));
- stringBuffer.append(TEXT_129);
-
- }
-
- stringBuffer.append(TEXT_130);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput"));
- stringBuffer.append(TEXT_131);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput"));
- stringBuffer.append(TEXT_132);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IPathEditorInput"));
- stringBuffer.append(TEXT_133);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_134);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IPathEditorInput"));
- stringBuffer.append(TEXT_135);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_136);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_137);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_138);
-
-} //editor-specific code
-
- stringBuffer.append(TEXT_139);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.AdapterFactory"));
- stringBuffer.append(TEXT_140);
- stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_141);
- stringBuffer.append(importManager.getImportedName("java.util.ArrayList"));
- stringBuffer.append(TEXT_142);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory"));
- stringBuffer.append(TEXT_143);
-
-final EList genPackages = genDiagram.getEditorGen().getAllDomainGenPackages(true);
-for (int i = 0; i < genPackages.size(); i++) {
- GenPackage genPackage = (GenPackage) genPackages.get(i);
-
- stringBuffer.append(TEXT_144);
- stringBuffer.append(importManager.getImportedName(genPackage.getQualifiedItemProviderAdapterFactoryClassName()));
- stringBuffer.append(TEXT_145);
- }
- stringBuffer.append(TEXT_146);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory"));
- stringBuffer.append(TEXT_147);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.provider.NotationItemProviderAdapterFactory"));
- stringBuffer.append(TEXT_148);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ComposedAdapterFactory"));
- stringBuffer.append(TEXT_149);
-
-if (!isEclipseEditor) {
-
- stringBuffer.append(TEXT_150);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite"));
- stringBuffer.append(TEXT_151);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IActionBars"));
- stringBuffer.append(TEXT_152);
- stringBuffer.append(importManager.getImportedName(genEditor.getActionBarContributorQualifiedClassName()));
- stringBuffer.append(TEXT_153);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_154);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException"));
- stringBuffer.append(TEXT_155);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException"));
- stringBuffer.append(TEXT_156);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status"));
- stringBuffer.append(TEXT_157);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IStatus"));
- stringBuffer.append(TEXT_158);
- stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName()));
- stringBuffer.append(TEXT_159);
-
-}
-
- stringBuffer.append(TEXT_160);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_161);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_162);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_163);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.ResourceSet"));
- stringBuffer.append(TEXT_164);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource"));
- stringBuffer.append(TEXT_165);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.workspace.AbstractEMFOperation"));
- stringBuffer.append(TEXT_166);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.workspace.AbstractEMFOperation"));
- stringBuffer.append(TEXT_167);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IStatus"));
- stringBuffer.append(TEXT_168);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IProgressMonitor"));
- stringBuffer.append(TEXT_169);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IAdaptable"));
- stringBuffer.append(TEXT_170);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.commands.ExecutionException"));
- stringBuffer.append(TEXT_171);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_172);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram"));
- stringBuffer.append(TEXT_173);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram"));
- stringBuffer.append(TEXT_174);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status"));
- stringBuffer.append(TEXT_175);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram"));
- stringBuffer.append(TEXT_176);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram"));
- stringBuffer.append(TEXT_177);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory"));
- stringBuffer.append(TEXT_178);
- stringBuffer.append(importManager.getImportedName("java.util.Collections"));
- stringBuffer.append(TEXT_179);
- stringBuffer.append(importManager.getImportedName("java.io.IOException"));
- stringBuffer.append(TEXT_180);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status"));
- stringBuffer.append(TEXT_181);
- stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_182);
-
-{
-
-
- boolean sameFile = genDiagram.getEditorGen().isSameFileForDiagramAndModel();
- String resourceToUse;
- if (!sameFile) {
-
- stringBuffer.append(TEXT_183);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
- stringBuffer.append(TEXT_184);
- stringBuffer.append(genDiagram.getDiagramEditorUtilClassName());
- stringBuffer.append(TEXT_185);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource"));
- stringBuffer.append(TEXT_186);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status"));
- stringBuffer.append(TEXT_187);
-
- resourceToUse = "modelResource";
- } else {
- resourceToUse = "diagramResource";
- }
-
- stringBuffer.append(TEXT_188);
- stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_189);
- stringBuffer.append(resourceToUse);
- stringBuffer.append(TEXT_190);
- stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_191);
- stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getGenPackage().getQualifiedFactoryInterfaceName()));
- stringBuffer.append(TEXT_192);
- stringBuffer.append(genDiagram.getDomainDiagramElement().getClassifierAccessorName());
- stringBuffer.append(TEXT_193);
- stringBuffer.append(resourceToUse);
- stringBuffer.append(TEXT_194);
- if (genDiagram.getDomainDiagramElement().isExternalInterface()) {
- stringBuffer.append(TEXT_195);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_196);
- }
- stringBuffer.append(TEXT_197);
- stringBuffer.append(resourceToUse);
- stringBuffer.append(TEXT_198);
- stringBuffer.append(importManager.getImportedName("java.util.Collections"));
- stringBuffer.append(TEXT_199);
- stringBuffer.append(importManager.getImportedName("java.io.IOException"));
- stringBuffer.append(TEXT_200);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status"));
- stringBuffer.append(TEXT_201);
- if (genDiagram.getDomainDiagramElement().isExternalInterface()) {
- stringBuffer.append(TEXT_202);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_203);
- }
- stringBuffer.append(TEXT_204);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
- stringBuffer.append(TEXT_205);
- stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_206);
-
- if (isEclipseEditor) {
-
- stringBuffer.append(TEXT_207);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor"));
- stringBuffer.append(TEXT_208);
-
- } else {
-
- stringBuffer.append(TEXT_209);
- stringBuffer.append(importManager.getImportedName("java.util.Collections"));
- stringBuffer.append(TEXT_210);
- stringBuffer.append(importManager.getImportedName("java.io.IOException"));
- stringBuffer.append(TEXT_211);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status"));
- stringBuffer.append(TEXT_212);
-
- }
-
- stringBuffer.append(TEXT_213);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status"));
- stringBuffer.append(TEXT_214);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor"));
- stringBuffer.append(TEXT_215);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.commands.ExecutionException"));
- stringBuffer.append(TEXT_216);
-
-}//local declarations
-
- stringBuffer.append(TEXT_217);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource"));
- stringBuffer.append(TEXT_218);
- stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_219);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart"));
- stringBuffer.append(TEXT_220);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart"));
- stringBuffer.append(TEXT_221);
- stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_222);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.LayeredPane"));
- stringBuffer.append(TEXT_223);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.LayeredPane"));
- stringBuffer.append(TEXT_224);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.LayerConstants"));
- stringBuffer.append(TEXT_225);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayer"));
- stringBuffer.append(TEXT_226);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayer"));
- stringBuffer.append(TEXT_227);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.DelegatingLayout"));
- stringBuffer.append(TEXT_228);
- stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_229);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.LayerConstants"));
- stringBuffer.append(TEXT_230);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer"));
- stringBuffer.append(TEXT_231);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ContextMenuProvider"));
- stringBuffer.append(TEXT_232);
- stringBuffer.append(genEditor.getClassName());
- stringBuffer.append(TEXT_233);
- stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName()));
- stringBuffer.append(TEXT_234);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyHandler"));
- stringBuffer.append(TEXT_235);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler"));
- stringBuffer.append(TEXT_236);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.MouseWheelHandler"));
- stringBuffer.append(TEXT_237);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT"));
- stringBuffer.append(TEXT_238);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.MouseWheelZoomHandler"));
- stringBuffer.append(TEXT_239);
- stringBuffer.append(genDiagram.getPalette() != null && genDiagram.getPalette().isFlyout());
- stringBuffer.append(TEXT_240);
- stringBuffer.append(genEditor.getClassName());
- stringBuffer.append(TEXT_241);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ContextMenuProvider"));
- stringBuffer.append(TEXT_242);
- stringBuffer.append(genEditor.getClassName());
- stringBuffer.append(TEXT_243);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPartViewer"));
- stringBuffer.append(TEXT_244);
- stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager"));
- stringBuffer.append(TEXT_245);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_246);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory"));
- stringBuffer.append(TEXT_247);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_248);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory"));
- stringBuffer.append(TEXT_249);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_250);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory"));
- stringBuffer.append(TEXT_251);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_252);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory"));
- stringBuffer.append(TEXT_253);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_254);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory"));
- stringBuffer.append(TEXT_255);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_256);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_257);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_258);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.ui.actions.ActionIds"));
- stringBuffer.append(TEXT_259);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_260);
-
-if (isEclipseEditor) {
-
- stringBuffer.append(TEXT_261);
- stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory"));
- stringBuffer.append(TEXT_262);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_263);
-
-}
-
- stringBuffer.append(TEXT_264);
- stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager"));
- stringBuffer.append(TEXT_265);
- stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_266);
- stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_267);
- stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.Separator"));
- stringBuffer.append(TEXT_268);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_269);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_270);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_271);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_272);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_273);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_274);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_275);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_276);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_277);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_278);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_279);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_280);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_281);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants"));
- stringBuffer.append(TEXT_282);
- stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager"));
- stringBuffer.append(TEXT_283);
- stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction"));
- stringBuffer.append(TEXT_284);
- importManager.emitSortedImports();
- stringBuffer.append(TEXT_285);
- return stringBuffer.toString();
- }
-}
diff --git a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginGenerator.java b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginGenerator.java
deleted file mode 100644
index 910c7172c..000000000
--- a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginGenerator.java
+++ /dev/null
@@ -1,94 +0,0 @@
-package org.eclipse.gmf.codegen.templates.lite.editor;
-
-import org.eclipse.emf.common.util.*;
-import org.eclipse.emf.codegen.ecore.genmodel.*;
-import org.eclipse.gmf.codegen.gmfgen.*;
-import org.eclipse.gmf.common.codegen.*;
-
-public class PluginGenerator
-{
- protected static String nl;
- public static synchronized PluginGenerator create(String lineSeparator)
- {
- nl = lineSeparator;
- PluginGenerator result = new PluginGenerator();
- nl = null;
- return result;
- }
-
- protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
- protected final String TEXT_1 = NL + "import java.util.ArrayList;" + NL + "import java.util.List;" + NL + "" + NL + "import org.eclipse.core.runtime.IStatus;" + NL + "import org.eclipse.core.runtime.Status;" + NL + "" + NL + "import org.eclipse.emf.common.notify.AdapterFactory;" + NL + "import org.eclipse.emf.edit.provider.ComposedAdapterFactory;" + NL + "import org.eclipse.emf.edit.provider.IItemLabelProvider;" + NL + "import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory;" + NL + "import org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory;" + NL + "import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry;" + NL + "import org.eclipse.jface.resource.ImageDescriptor;" + NL + "import org.eclipse.swt.graphics.Image;" + NL + "import org.eclipse.ui.plugin.AbstractUIPlugin;" + NL + "import org.osgi.framework.BundleContext;";
- protected final String TEXT_2 = NL + NL + "/**" + NL + " * @generated" + NL + " */" + NL + "public class ";
- protected final String TEXT_3 = " extends AbstractUIPlugin {" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final String ID = \"";
- protected final String TEXT_4 = "\"; //$NON-NLS-1$" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static ";
- protected final String TEXT_5 = " instance;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ComposedAdapterFactory adapterFactory;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_6 = "() {" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void start(BundleContext context) throws Exception {" + NL + "\t\tsuper.start(context);" + NL + "\t\tinstance = this;" + NL + "\t\tadapterFactory = createAdapterFactory();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void stop(BundleContext context) throws Exception {" + NL + "\t\tadapterFactory.dispose();" + NL + "\t\tadapterFactory = null;" + NL + "\t\tinstance = null;" + NL + "\t\tsuper.stop(context);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static ";
- protected final String TEXT_7 = " getInstance() {" + NL + "\t\treturn instance;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ComposedAdapterFactory createAdapterFactory() {" + NL + "\t\tList factories = new ArrayList();" + NL + "\t\tfillItemProviderFactories(factories);" + NL + "\t\treturn new ComposedAdapterFactory(factories);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void fillItemProviderFactories(List factories) {";
- protected final String TEXT_8 = NL + "\t\tfactories.add(new ";
- protected final String TEXT_9 = "());";
- protected final String TEXT_10 = NL + "\t\tfactories.add(new ResourceItemProviderAdapterFactory());" + NL + "\t\tfactories.add(new ReflectiveItemProviderAdapterFactory());" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic AdapterFactory getItemProvidersAdapterFactory() {" + NL + "\t\treturn adapterFactory;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ImageDescriptor getItemImageDescriptor(Object item) {" + NL + "\t\tIItemLabelProvider labelProvider = (IItemLabelProvider) adapterFactory.adapt(item, IItemLabelProvider.class);" + NL + "\t\tif (labelProvider != null) {";
- protected final String TEXT_11 = NL + "\t\t\treturn ExtendedImageRegistry.getInstance().getImageDescriptor(labelProvider.getImage(item));" + NL + "\t\t}" + NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_12 = " getItemImage(Object item) {" + NL + "\t\tIItemLabelProvider labelProvider = (IItemLabelProvider) adapterFactory.adapt(item, IItemLabelProvider.class);" + NL + "\t\tif (labelProvider != null) {" + NL + "\t\t\treturn ExtendedImageRegistry.getInstance().getImage(labelProvider.getImage(item));" + NL + "\t\t}" + NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns an image descriptor for the image file at the given" + NL + "\t * plug-in relative path." + NL + "\t *" + NL + "\t * @generated" + NL + "\t * @param path the path" + NL + "\t * @return the image descriptor" + NL + "\t */" + NL + "\tpublic static ImageDescriptor getBundledImageDescriptor(String path) {" + NL + "\t\treturn AbstractUIPlugin.imageDescriptorFromPlugin(ID, path);" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * Respects images residing in any plug-in. If path is relative," + NL + "\t * then this bundle is looked up for the image, otherwise, for absolute " + NL + "\t * path, first segment is taken as id of plug-in with image" + NL + "\t *" + NL + "\t * @generated" + NL + "\t * @param path the path to image, either absolute (with plug-in id as first segment), or relative for bundled images" + NL + "\t * @return the image descriptor" + NL + "\t */" + NL + "\tpublic static ImageDescriptor findImageDescriptor(String path) {" + NL + "\t\tfinal ";
- protected final String TEXT_13 = " p = new ";
- protected final String TEXT_14 = "(path);" + NL + "\t\tif (p.isAbsolute() && p.segmentCount() > 1) {" + NL + "\t\t\treturn AbstractUIPlugin.imageDescriptorFromPlugin(p.segment(0), p.removeFirstSegments(1).makeAbsolute().toString());" + NL + "\t\t} else {" + NL + "\t\t\treturn getBundledImageDescriptor(p.makeAbsolute().toString());" + NL + "\t\t} " + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * Returns an image for the image file at the given plug-in relative path." + NL + "\t * Client do not need to dispose this image. Images will be disposed automatically." + NL + "\t *" + NL + "\t * @generated" + NL + "\t * @param path the path" + NL + "\t * @return image instance" + NL + "\t */" + NL + "\tpublic Image getBundledImage(String path) {" + NL + "\t\tImage image = getImageRegistry().get(path);" + NL + "\t\tif (image == null) {" + NL + "\t\t\tgetImageRegistry().put(path, getBundledImageDescriptor(path));" + NL + "\t\t\timage = getImageRegistry().get(path);" + NL + "\t\t}" + NL + "\t\treturn image;" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic String getBundleString(String key) {" + NL + "\t\ttry {" + NL + "\t\t\treturn ";
- protected final String TEXT_15 = ".getResourceBundle(getBundle()).getString(key);" + NL + "\t\t} catch (";
- protected final String TEXT_16 = " e) {" + NL + "\t\t\treturn \"!\" + key + \"!\";\t//$NON-NLS-1$\t//$NON-NLS-2$" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void logError(String error) {" + NL + "\t\tlogError(error, null);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @param throwable actual error or null could be passed" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void logError(String error, Throwable throwable) {" + NL + "\t\tif (error == null && throwable != null) {" + NL + "\t\t\terror = throwable.getMessage();" + NL + "\t\t}" + NL + "\t\tgetLog().log(new Status(IStatus.ERROR, ";
- protected final String TEXT_17 = ".ID, IStatus.OK, error, throwable));" + NL + "\t\tdebug(error, throwable);" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void logInfo(String message) {" + NL + "\t\tlogInfo(message, null);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @param throwable actual error or null could be passed" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void logInfo(String message, Throwable throwable) {" + NL + "\t\tif (message == null && message != null) {" + NL + "\t\t\tmessage = throwable.getMessage();" + NL + "\t\t}" + NL + "\t\tgetLog().log(new Status(IStatus.INFO, ";
- protected final String TEXT_18 = ".ID, IStatus.OK, message, throwable));" + NL + "\t\tdebug(message, throwable);" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void debug(String message, Throwable throwable) {" + NL + "\t\tif (!isDebugging()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (message != null) {" + NL + "\t\t\tSystem.err.println(message);" + NL + "\t\t}" + NL + "\t\tif (throwable != null) {" + NL + "\t\t\tthrowable.printStackTrace();" + NL + "\t\t}" + NL + "\t}" + NL + "\t" + NL + "}";
- protected final String TEXT_19 = NL;
-
- public String generate(Object argument)
- {
- final StringBuffer stringBuffer = new StringBuffer();
-
-final GenPlugin genPlugin = (GenPlugin) ((Object[]) argument)[0];
-final EList genPackages = genPlugin.getEditorGen().getAllDomainGenPackages(true);
-final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];
-
-importManager.emitPackageStatement(stringBuffer);
- stringBuffer.append(TEXT_1);
- importManager.markImportLocation(stringBuffer);
- stringBuffer.append(TEXT_2);
- stringBuffer.append(genPlugin.getActivatorClassName());
- stringBuffer.append(TEXT_3);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_4);
- stringBuffer.append(genPlugin.getActivatorClassName());
- stringBuffer.append(TEXT_5);
- stringBuffer.append(genPlugin.getActivatorClassName());
- stringBuffer.append(TEXT_6);
- stringBuffer.append(genPlugin.getActivatorClassName());
- stringBuffer.append(TEXT_7);
-
-for (int i = 0; i < genPackages.size(); i++) {
- GenPackage genPackage = (GenPackage) genPackages.get(i);
-
- stringBuffer.append(TEXT_8);
- stringBuffer.append(importManager.getImportedName(genPackage.getQualifiedItemProviderAdapterFactoryClassName()));
- stringBuffer.append(TEXT_9);
- }
- stringBuffer.append(TEXT_10);
-
- // XXX dependency org.eclipse.emf.edit.ui is for ExtendedImageRegistry only.
- // FIXME move image registry to plugin class code
-
- stringBuffer.append(TEXT_11);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Image"));
- stringBuffer.append(TEXT_12);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IPath"));
- stringBuffer.append(TEXT_13);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path"));
- stringBuffer.append(TEXT_14);
- stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Platform"));
- stringBuffer.append(TEXT_15);
- stringBuffer.append(importManager.getImportedName("java.util.MissingResourceException"));
- stringBuffer.append(TEXT_16);
- stringBuffer.append(genPlugin.getActivatorClassName());
- stringBuffer.append(TEXT_17);
- stringBuffer.append(genPlugin.getActivatorClassName());
- stringBuffer.append(TEXT_18);
- importManager.emitSortedImports();
- stringBuffer.append(TEXT_19);
- return stringBuffer.toString();
- }
-}
diff --git a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginPropertiesGenerator.java b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginPropertiesGenerator.java
deleted file mode 100644
index b3ebe8bc4..000000000
--- a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginPropertiesGenerator.java
+++ /dev/null
@@ -1,111 +0,0 @@
-package org.eclipse.gmf.codegen.templates.lite.editor;
-
-import org.eclipse.gmf.codegen.gmfgen.*;
-import org.eclipse.emf.codegen.ecore.genmodel.*;
-import java.util.*;
-
-public class PluginPropertiesGenerator
-{
- protected static String nl;
- public static synchronized PluginPropertiesGenerator create(String lineSeparator)
- {
- nl = lineSeparator;
- PluginPropertiesGenerator result = new PluginPropertiesGenerator();
- nl = null;
- return result;
- }
-
- protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
- protected final String TEXT_1 = "pluginName=";
- protected final String TEXT_2 = NL + "providerName=";
- protected final String TEXT_3 = NL + NL + "# gmf generator persistent region begin" + NL + "# gmf generator persistent region end" + NL;
- protected final String TEXT_4 = NL + "_UI_Menu_OpenURI_label=Open ";
- protected final String TEXT_5 = " Diagram &URI..." + NL + "_UI_Menu_OpenURI_description=Opens a ";
- protected final String TEXT_6 = " diagram loading it from a URI" + NL + "_UI_Menu_Open_label=&Open ";
- protected final String TEXT_7 = " Diagram..." + NL + "_UI_Menu_Open_description=Opens a ";
- protected final String TEXT_8 = " diagram" + NL + "" + NL + "_UI_";
- protected final String TEXT_9 = "_ActionSet_label=";
- protected final String TEXT_10 = " Diagram Action Set " + NL + "_UI_";
- protected final String TEXT_11 = "NewDiagramCommand=";
- protected final String TEXT_12 = " diagram" + NL;
- protected final String TEXT_13 = NL + "_UI_Perspective_label = ";
- protected final String TEXT_14 = " Diagram" + NL + "_UI_Application_title=";
- protected final String TEXT_15 = " Diagram Application " + NL + "_UI_Menu_File_label=&File" + NL + "_UI_Menu_New_label=&New" + NL + "_UI_Menu_Edit_label=&Edit" + NL + "_UI_Menu_Window_label=&Window" + NL + "_UI_Menu_Help_label=&Help" + NL + "_UI_Menu_About_label=";
- protected final String TEXT_16 = " Diagram &About..." + NL + "_UI_About_title = ";
- protected final String TEXT_17 = " Diagram Application" + NL + "_UI_About_text = ";
- protected final String TEXT_18 = " Diagram Application about box goes here.";
- protected final String TEXT_19 = NL + "###" + NL + "# Property Sheet";
- protected final String TEXT_20 = NL;
- protected final String TEXT_21 = NL + "tab.";
- protected final String TEXT_22 = "=";
- protected final String TEXT_23 = NL + "###";
- protected final String TEXT_24 = NL;
-
- public String generate(Object argument)
- {
- final StringBuffer stringBuffer = new StringBuffer();
-
-GenPlugin genPlugin = (GenPlugin) argument;
-final GenDiagram genDiagram = genPlugin.getEditorGen().getDiagram();
-final GenModel genModel = genPlugin.getEditorGen().getDomainGenModel();
-final boolean isRichClientPlatform = genPlugin.getEditorGen().getApplication() != null;
-
- stringBuffer.append(TEXT_1);
- stringBuffer.append(genPlugin.getName());
- stringBuffer.append(TEXT_2);
- stringBuffer.append(genPlugin.getProvider());
- stringBuffer.append(TEXT_3);
- if (isRichClientPlatform) {
- stringBuffer.append(TEXT_4);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_5);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_6);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_7);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_8);
- stringBuffer.append(genDiagram.getDiagramEditorUtilQualifiedClassName());
- stringBuffer.append(TEXT_9);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_10);
- stringBuffer.append(genDiagram.getDiagramEditorUtilQualifiedClassName());
- stringBuffer.append(TEXT_11);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_12);
-
- boolean shouldGenerateApplication = true; /*XXX: option in gmfgen*/
- if (shouldGenerateApplication) {
-
- stringBuffer.append(TEXT_13);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_14);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_15);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_16);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_17);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_18);
-
- }
-}
-
- if (genPlugin.getEditorGen().getPropertySheet() != null) {
- final GenPropertySheet propertySheet = genPlugin.getEditorGen().getPropertySheet();
- stringBuffer.append(TEXT_19);
- stringBuffer.append(TEXT_20);
- for (Iterator it = propertySheet.getTabs().iterator(); it.hasNext(); ) {
- final GenPropertyTab tab = (GenPropertyTab) it.next();
- stringBuffer.append(TEXT_21);
- stringBuffer.append(tab.getID());
- stringBuffer.append(TEXT_22);
- stringBuffer.append(tab.getLabel());
- }
- stringBuffer.append(TEXT_23);
- }
- stringBuffer.append(TEXT_24);
- return stringBuffer.toString();
- }
-}
diff --git a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginXML.java b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginXML.java
deleted file mode 100644
index 2f4d51f3f..000000000
--- a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/PluginXML.java
+++ /dev/null
@@ -1,497 +0,0 @@
-package org.eclipse.gmf.codegen.templates.lite.editor;
-
-import org.eclipse.gmf.codegen.gmfgen.*;
-import org.eclipse.emf.codegen.ecore.genmodel.*;
-import org.eclipse.emf.codegen.util.*;
-import java.util.*;
-
-public class PluginXML
-{
- protected static String nl;
- public static synchronized PluginXML create(String lineSeparator)
- {
- nl = lineSeparator;
- PluginXML result = new PluginXML();
- nl = null;
- return result;
- }
-
- protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
- protected final String TEXT_1 = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + NL + "<?eclipse version=\"3.0\"?>" + NL + "<plugin>" + NL + "" + NL + " <extension point=\"org.eclipse.team.core.fileTypes\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <fileTypes" + NL + " type=\"text\"" + NL + " extension=\"";
- protected final String TEXT_2 = "\">" + NL + " </fileTypes>" + NL + " </extension>" + NL;
- protected final String TEXT_3 = NL + " <extension point=\"org.eclipse.ui.editors\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <editor" + NL + " id=\"";
- protected final String TEXT_4 = "\"" + NL + " name=\"";
- protected final String TEXT_5 = " Diagram Editor\"" + NL + " icon=\"";
- protected final String TEXT_6 = "\"" + NL + " extensions=\"";
- protected final String TEXT_7 = "\"" + NL + " default=\"true\"" + NL + " class=\"";
- protected final String TEXT_8 = "\"" + NL + " contributorClass=\"";
- protected final String TEXT_9 = "\">" + NL + " </editor>" + NL + " </extension>";
- protected final String TEXT_10 = NL + " <extension point=\"org.eclipse.ui.views\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <view" + NL + " allowMultiple=\"false\"" + NL + " category=\"";
- protected final String TEXT_11 = "\"";
- protected final String TEXT_12 = NL + " class=\"";
- protected final String TEXT_13 = "\"" + NL + " icon=\"";
- protected final String TEXT_14 = "\"" + NL + " id=\"";
- protected final String TEXT_15 = "\"" + NL + " name=\"";
- protected final String TEXT_16 = " Diagram View\"/>" + NL + " </extension>";
- protected final String TEXT_17 = NL + " <extension" + NL + " point=\"org.eclipse.core.runtime.applications\"" + NL + " id=\"";
- protected final String TEXT_18 = "\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <application>" + NL + " <run" + NL + " class=\"";
- protected final String TEXT_19 = "\">" + NL + " </run>" + NL + " </application>" + NL + " </extension>" + NL + "" + NL + " <extension" + NL + " point=\"org.eclipse.ui.perspectives\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <perspective" + NL + " name=\"%_UI_Perspective_label\"" + NL + " class=\"";
- protected final String TEXT_20 = "\"" + NL + " id=\"";
- protected final String TEXT_21 = "\">" + NL + " </perspective>" + NL + " </extension>";
- protected final String TEXT_22 = NL + " <extension" + NL + " point=\"org.eclipse.ui.commands\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <command" + NL + " name=\"%_UI_Menu_OpenURI_label\"" + NL + " description=\"%_UI_Menu_OpenURI_description\"" + NL + " categoryId=\"org.eclipse.ui.category.file\"" + NL + " id=\"";
- protected final String TEXT_23 = ".OpenURICommand\" /> " + NL + " <command" + NL + " name=\"%_UI_Menu_Open_label\"" + NL + " description=\"%_UI_Menu_Open_description\"" + NL + " categoryId=\"org.eclipse.ui.category.file\"" + NL + " id=\"";
- protected final String TEXT_24 = ".OpenCommand\" /> " + NL + " </extension> " + NL + "" + NL + " <extension" + NL + " point=\"org.eclipse.ui.bindings\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <key" + NL + " commandId=\"";
- protected final String TEXT_25 = ".OpenURICommand\"" + NL + " sequence=\"M1+U\"" + NL + " schemeId=\"org.eclipse.ui.defaultAcceleratorConfiguration\" />" + NL + " <key" + NL + " commandId=\"";
- protected final String TEXT_26 = ".OpenCommand\"" + NL + " sequence=\"M1+O\"" + NL + " schemeId=\"org.eclipse.ui.defaultAcceleratorConfiguration\" />" + NL + " </extension>" + NL + " <extension" + NL + " point=\"org.eclipse.ui.actionSets\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <actionSet" + NL + " label=\"%_UI_";
- protected final String TEXT_27 = "_ActionSet_label\"" + NL + " visible=\"true\"" + NL + " id=\"";
- protected final String TEXT_28 = ".ActionSet\">";
- protected final String TEXT_29 = NL + " <action" + NL + " label=\"%_UI_Menu_About_label\"" + NL + " class=\"";
- protected final String TEXT_30 = "$AboutAction\"" + NL + " menubarPath=\"help/additions\"" + NL + " id=\"";
- protected final String TEXT_31 = ".AboutAction\">" + NL + " </action>";
- protected final String TEXT_32 = NL + " <action" + NL + " label=\"%_UI_Menu_OpenURI_label\"" + NL + " definitionId=\"";
- protected final String TEXT_33 = ".OpenURICommand\"" + NL + " class=\"";
- protected final String TEXT_34 = "$OpenURIAction\"" + NL + " menubarPath=\"file/additions\"" + NL + " id=\"";
- protected final String TEXT_35 = ".OpenURIAction\">" + NL + " </action>" + NL + " <action" + NL + " label=\"%_UI_Menu_Open_label\"" + NL + " definitionId=\"";
- protected final String TEXT_36 = ".OpenCommand\"" + NL + " class=\"";
- protected final String TEXT_37 = "$OpenAction\"" + NL + " menubarPath=\"file/additions\"" + NL + " id=\"";
- protected final String TEXT_38 = "OpenDiagramAction\">" + NL + " </action>" + NL + " <action" + NL + " label=\"%_UI_";
- protected final String TEXT_39 = "NewDiagramCommand\"" + NL + " class=\"";
- protected final String TEXT_40 = "$NewDiagramAction\"" + NL + " menubarPath=\"file/new/additions\"" + NL + " id=\"";
- protected final String TEXT_41 = ".NewDiagramAction\">" + NL + " </action>" + NL + " <action" + NL + " label=\"Initialize ";
- protected final String TEXT_42 = " diagram file\"" + NL + " class=\"";
- protected final String TEXT_43 = "\"" + NL + " menubarPath=\"file/additions\"" + NL + " id=\"";
- protected final String TEXT_44 = "ID\">" + NL + " </action>" + NL + " </actionSet> " + NL + " </extension>";
- protected final String TEXT_45 = NL + " <extension point=\"org.eclipse.ui.newWizards\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " \t <wizard" + NL + " \t name=\"";
- protected final String TEXT_46 = " Diagram\"" + NL + " \t icon=\"";
- protected final String TEXT_47 = "\"" + NL + " \t category=\"";
- protected final String TEXT_48 = "\"" + NL + " \t class=\"";
- protected final String TEXT_49 = "\"" + NL + " \t id=\"";
- protected final String TEXT_50 = "ID\">" + NL + " \t \t <description>" + NL + " \t \t\tCreates ";
- protected final String TEXT_51 = " diagram." + NL + " \t \t </description> " + NL + " </wizard>" + NL + " </extension>" + NL + " <extension point=\"org.eclipse.ui.popupMenus\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <objectContribution" + NL + " id=\"";
- protected final String TEXT_52 = ".ui.objectContribution.IFile1\"" + NL + " nameFilter=\"*.";
- protected final String TEXT_53 = "\"" + NL + " objectClass=\"org.eclipse.core.resources.IFile\">" + NL + " <action" + NL + " label=\"Initialize ";
- protected final String TEXT_54 = " diagram file\"" + NL + " class=\"";
- protected final String TEXT_55 = "\"" + NL + " menubarPath=\"additions\"" + NL + " enablesFor=\"1\"" + NL + " id=\"";
- protected final String TEXT_56 = "ID\">" + NL + " </action>" + NL + " </objectContribution> ";
- protected final String TEXT_57 = NL + " <objectContribution" + NL + " id=\"";
- protected final String TEXT_58 = ".ui.objectContribution.IFile2\"" + NL + " nameFilter=\"*.";
- protected final String TEXT_59 = "\"" + NL + " objectClass=\"org.eclipse.core.resources.IFile\">" + NL + " <action" + NL + " label=\"Open diagram in ";
- protected final String TEXT_60 = " Diagram View\"";
- protected final String TEXT_61 = NL + " class=\"";
- protected final String TEXT_62 = ".";
- protected final String TEXT_63 = "\"" + NL + " menubarPath=\"additions\"" + NL + " enablesFor=\"1\"" + NL + " id=\"";
- protected final String TEXT_64 = ".";
- protected final String TEXT_65 = "ID\">" + NL + " </action>" + NL + " </objectContribution> ";
- protected final String TEXT_66 = NL + " </extension>" + NL;
- protected final String TEXT_67 = NL;
- protected final String TEXT_68 = " <extension point=\"org.eclipse.ui.navigator.viewer\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <viewerContentBinding viewerId=\"org.eclipse.ui.navigator.ProjectExplorer\">" + NL + " <includes>" + NL + " <contentExtension pattern=\"";
- protected final String TEXT_69 = "\"/>";
- protected final String TEXT_70 = NL + " <contentExtension pattern=\"";
- protected final String TEXT_71 = "\"/>";
- protected final String TEXT_72 = NL + " </includes>" + NL + " </viewerContentBinding>" + NL + " <viewerActionBinding viewerId=\"org.eclipse.ui.navigator.ProjectExplorer\">" + NL + " <includes>" + NL + " <actionExtension pattern=\"";
- protected final String TEXT_73 = "\"/>" + NL + " </includes>" + NL + " </viewerActionBinding>" + NL + " </extension>" + NL + " <extension point=\"org.eclipse.ui.navigator.navigatorContent\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <navigatorContent " + NL + " id=\"";
- protected final String TEXT_74 = "\" " + NL + " name=\"";
- protected final String TEXT_75 = "\" " + NL + " priority=\"";
- protected final String TEXT_76 = "\" " + NL + " contentProvider=\"";
- protected final String TEXT_77 = "\" " + NL + " labelProvider=\"";
- protected final String TEXT_78 = "\"" + NL + " icon=\"";
- protected final String TEXT_79 = "\"" + NL + " activeByDefault=\"true\">" + NL + " <triggerPoints>" + NL + " <or>" + NL + "\t <and>" + NL + " \t <instanceof value=\"org.eclipse.core.resources.IFile\"/>" + NL + " \t <test property=\"org.eclipse.core.resources.extension\" value=\"";
- protected final String TEXT_80 = "\"/>" + NL + " </and>" + NL + " <instanceof value=\"";
- protected final String TEXT_81 = "\"/>";
- protected final String TEXT_82 = NL + " \t <adapt type=\"org.eclipse.gmf.runtime.notation.View\">" + NL + " \t <test property=\"";
- protected final String TEXT_83 = ".isShortcut\"/>" + NL + " \t </adapt>";
- protected final String TEXT_84 = NL + " </or>" + NL + " </triggerPoints>" + NL + " <possibleChildren>" + NL + " <or>" + NL + " \t <instanceof value=\"";
- protected final String TEXT_85 = "\"/>";
- protected final String TEXT_86 = NL + " \t <adapt type=\"org.eclipse.gmf.runtime.notation.View\">" + NL + " \t <test property=\"";
- protected final String TEXT_87 = ".isShortcut\"/>" + NL + " \t </adapt>";
- protected final String TEXT_88 = NL + " </or>" + NL + " </possibleChildren>" + NL + " <commonSorter " + NL + " id=\"";
- protected final String TEXT_89 = "\" " + NL + " class=\"";
- protected final String TEXT_90 = "\">" + NL + " <parentExpression>" + NL + " <or>" + NL + "\t <and>" + NL + " \t <instanceof value=\"org.eclipse.core.resources.IFile\"/>" + NL + " \t <test property=\"org.eclipse.core.resources.extension\" value=\"";
- protected final String TEXT_91 = "\"/>" + NL + " </and>" + NL + " <instanceof value=\"";
- protected final String TEXT_92 = "\"/>" + NL + " </or>" + NL + " </parentExpression>" + NL + " </commonSorter>" + NL + " </navigatorContent>" + NL + " <actionProvider" + NL + " id=\"";
- protected final String TEXT_93 = "\"" + NL + " class=\"";
- protected final String TEXT_94 = "\">" + NL + " <enablement>" + NL + " <or>" + NL + " <instanceof value=\"";
- protected final String TEXT_95 = "\"/>";
- protected final String TEXT_96 = NL + " \t <adapt type=\"org.eclipse.gmf.runtime.notation.View\">" + NL + " \t <test property=\"";
- protected final String TEXT_97 = ".isShortcut\"/>" + NL + " \t </adapt>";
- protected final String TEXT_98 = NL + " </or>" + NL + " </enablement>" + NL + " </actionProvider>" + NL + " </extension>" + NL;
- protected final String TEXT_99 = NL + " <extension point=\"org.eclipse.ui.navigator.linkHelper\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <linkHelper" + NL + " id=\"";
- protected final String TEXT_100 = "\"" + NL + " class=\"";
- protected final String TEXT_101 = "\">" + NL + " <editorInputEnablement>" + NL + " \t<or>" + NL + "\t <instanceof value=\"org.eclipse.ui.IFileEditorInput\"/>" + NL + "\t <instanceof value=\"org.eclipse.emf.common.ui.URIEditorInput\"/>" + NL + "\t <instanceof value=\"org.eclipse.gmf.runtime.lite.parts.DiagramEditorInput\"/>" + NL + "\t </or>" + NL + " </editorInputEnablement>" + NL + " <selectionEnablement>" + NL + " <instanceof value=\"";
- protected final String TEXT_102 = "\"/>" + NL + " </selectionEnablement>" + NL + " </linkHelper>" + NL + " </extension>";
- protected final String TEXT_103 = NL;
- protected final String TEXT_104 = NL + " <extension point=\"org.eclipse.ui.views.properties.tabbed.propertyContributor\">" + NL + " <?gmfgen generated=\"true\"?>" + NL + " <propertyContributor contributorId=\"";
- protected final String TEXT_105 = "\"";
- protected final String TEXT_106 = NL + " labelProvider=\"";
- protected final String TEXT_107 = "\"";
- protected final String TEXT_108 = ">" + NL + " <propertyCategory category=\"domain\"/>" + NL + " <propertyCategory category=\"visual\"/>" + NL + " <propertyCategory category=\"extra\"/>" + NL + " </propertyContributor>" + NL + " </extension>" + NL + "" + NL + " <extension point=\"org.eclipse.ui.views.properties.tabbed.propertyTabs\">" + NL + " <?gmfgen generated=\"true\"?> " + NL + " <propertyTabs contributorId=\"";
- protected final String TEXT_109 = "\">";
- protected final String TEXT_110 = NL;
- protected final String TEXT_111 = " <propertyTab" + NL + " category=\"visual\"" + NL + " id=\"property.tab.AppearancePropertySection\"" + NL + " label=\"%tab.appearance\"/>";
- protected final String TEXT_112 = " <propertyTab" + NL + " category=\"visual\"" + NL + " id=\"property.tab.DiagramPropertySection\"" + NL + " label=\"%tab.diagram\"/>";
- protected final String TEXT_113 = " <propertyTab" + NL + " category=\"extra\"" + NL + " id=\"property.tab.AdvancedPropertySection\"" + NL + " label=\"%tab.advanced\"/> ";
- protected final String TEXT_114 = NL;
- protected final String TEXT_115 = " <propertyTab";
- protected final String TEXT_116 = NL + " category=\"domain\"";
- protected final String TEXT_117 = NL + " category=\"extra\"";
- protected final String TEXT_118 = NL + " id=\"property.tab.";
- protected final String TEXT_119 = "\"" + NL + " label=\"%tab.";
- protected final String TEXT_120 = "\"/>";
- protected final String TEXT_121 = NL + " </propertyTabs>" + NL + " </extension>" + NL + "" + NL + " <extension point=\"org.eclipse.ui.views.properties.tabbed.propertySections\">" + NL + " <?gmfgen generated=\"true\"?> " + NL + " <propertySections contributorId=\"";
- protected final String TEXT_122 = "\">";
- protected final String TEXT_123 = NL;
- protected final String TEXT_124 = NL + " <propertySection id=\"property.section.AdvancedPropertySection\"" + NL + " class=\"org.eclipse.gmf.runtime.diagram.ui.properties.sections.AdvancedPropertySection\"" + NL + " filter=\"org.eclipse.gmf.runtime.lite.properties.filters.EditPartPropertySectionFilter\"" + NL + " tab=\"property.tab.AdvancedPropertySection\">" + NL + " </propertySection> ";
- protected final String TEXT_125 = " ";
- protected final String TEXT_126 = NL;
- protected final String TEXT_127 = " <propertySection" + NL + " id=\"property.section.";
- protected final String TEXT_128 = "\" " + NL + " tab=\"property.tab.";
- protected final String TEXT_129 = "\"";
- protected final String TEXT_130 = "filter=\"";
- protected final String TEXT_131 = "\"";
- protected final String TEXT_132 = NL + " class=\"";
- protected final String TEXT_133 = "\">";
- protected final String TEXT_134 = NL + " <input type=\"";
- protected final String TEXT_135 = "\"/>";
- protected final String TEXT_136 = NL + " </propertySection>";
- protected final String TEXT_137 = NL + " </propertySections>" + NL + " </extension>";
- protected final String TEXT_138 = NL + "</plugin>";
- protected final String TEXT_139 = NL;
-
- public String generate(Object argument)
- {
- final StringBuffer stringBuffer = new StringBuffer();
-
-final GenPlugin genPlugin = (GenPlugin) argument;
-final GenEditorGenerator editorGen = genPlugin.getEditorGen();
-final GenDiagram genDiagram = editorGen.getDiagram();
-final GenModel genModel = editorGen.getDomainGenModel();
-final GenApplication application = genDiagram.getEditorGen().getApplication();
-final boolean isRichClientPlatform = application != null;
-
- stringBuffer.append(TEXT_1);
- stringBuffer.append(editorGen.getDiagramFileExtension());
- stringBuffer.append(TEXT_2);
-
-if (editorGen.getEditor().isEclipseEditor()) {
-
- stringBuffer.append(TEXT_3);
- stringBuffer.append(editorGen.getEditor().getID());
- stringBuffer.append(TEXT_4);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_5);
- stringBuffer.append(editorGen.getEditor().getIconPathX());
- stringBuffer.append(TEXT_6);
- stringBuffer.append(editorGen.getDiagramFileExtension());
- stringBuffer.append(TEXT_7);
- stringBuffer.append(editorGen.getEditor().getQualifiedClassName());
- stringBuffer.append(TEXT_8);
- stringBuffer.append(editorGen.getEditor().getActionBarContributorQualifiedClassName());
- stringBuffer.append(TEXT_9);
-
-} else {
-
- stringBuffer.append(TEXT_10);
- stringBuffer.append(genDiagram.getCreationWizardCategoryID());
- stringBuffer.append(TEXT_11);
- /*XXX: replace with gmfgen property*/
- stringBuffer.append(TEXT_12);
- stringBuffer.append(editorGen.getEditor().getQualifiedClassName());
- stringBuffer.append(TEXT_13);
- stringBuffer.append(editorGen.getEditor().getIconPathX());
- stringBuffer.append(TEXT_14);
- stringBuffer.append(editorGen.getEditor().getID());
- stringBuffer.append(TEXT_15);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_16);
-
-}
-
-
-if (isRichClientPlatform) {
- final boolean shouldGenerateApplication = true; /*XXX: option in gmfgen*/
- if (shouldGenerateApplication) {
-
- stringBuffer.append(TEXT_17);
- stringBuffer.append(application.getID());
- stringBuffer.append(TEXT_18);
- stringBuffer.append(application.getQualifiedClassName());
- stringBuffer.append(TEXT_19);
- stringBuffer.append(application.getPerspectiveQualifiedClassName());
- stringBuffer.append(TEXT_20);
- stringBuffer.append(application.getPerspectiveId());
- stringBuffer.append(TEXT_21);
-
- }
-
- stringBuffer.append(TEXT_22);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_23);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_24);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_25);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_26);
- stringBuffer.append(genDiagram.getDiagramEditorUtilQualifiedClassName());
- stringBuffer.append(TEXT_27);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_28);
-
- if (shouldGenerateApplication) {
-
- stringBuffer.append(TEXT_29);
- stringBuffer.append(application.getActionBarAdvisorQualifiedClassName());
- stringBuffer.append(TEXT_30);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_31);
-
- }
-
- stringBuffer.append(TEXT_32);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_33);
- stringBuffer.append(application.getActionBarAdvisorQualifiedClassName());
- stringBuffer.append(TEXT_34);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_35);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_36);
- stringBuffer.append(application.getActionBarAdvisorQualifiedClassName());
- stringBuffer.append(TEXT_37);
- stringBuffer.append(application.getActionBarAdvisorQualifiedClassName());
- stringBuffer.append(TEXT_38);
- stringBuffer.append(genDiagram.getDiagramEditorUtilQualifiedClassName());
- stringBuffer.append(TEXT_39);
- stringBuffer.append(application.getActionBarAdvisorQualifiedClassName());
- stringBuffer.append(TEXT_40);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_41);
- stringBuffer.append(editorGen.getDiagramFileExtension());
- stringBuffer.append(TEXT_42);
- stringBuffer.append(genDiagram.getInitDiagramFileActionQualifiedClassName());
- stringBuffer.append(TEXT_43);
- stringBuffer.append(genDiagram.getInitDiagramFileActionQualifiedClassName());
- stringBuffer.append(TEXT_44);
-
-} else {
-
- stringBuffer.append(TEXT_45);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_46);
- stringBuffer.append(genDiagram.getCreationWizardIconPathX());
- stringBuffer.append(TEXT_47);
- stringBuffer.append(genDiagram.getCreationWizardCategoryID());
- stringBuffer.append(TEXT_48);
- stringBuffer.append(genDiagram.getCreationWizardQualifiedClassName());
- stringBuffer.append(TEXT_49);
- stringBuffer.append(genDiagram.getCreationWizardQualifiedClassName());
- stringBuffer.append(TEXT_50);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_51);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_52);
- stringBuffer.append(editorGen.getDomainFileExtension());
- stringBuffer.append(TEXT_53);
- stringBuffer.append(editorGen.getDiagramFileExtension());
- stringBuffer.append(TEXT_54);
- stringBuffer.append(genDiagram.getInitDiagramFileActionQualifiedClassName());
- stringBuffer.append(TEXT_55);
- stringBuffer.append(genDiagram.getInitDiagramFileActionQualifiedClassName());
- stringBuffer.append(TEXT_56);
-
- if (!editorGen.getEditor().isEclipseEditor()) {
-
- stringBuffer.append(TEXT_57);
- stringBuffer.append(genPlugin.getID());
- stringBuffer.append(TEXT_58);
- stringBuffer.append(editorGen.getDiagramFileExtension());
- stringBuffer.append(TEXT_59);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_60);
-
- /*XXX: property in gmfgen?*/
- String className = "OpenDiagramIn" + genModel.getModelName() + "DiagramViewAction";
- className = CodeGenUtil.validJavaIdentifier(className);
-
- stringBuffer.append(TEXT_61);
- stringBuffer.append(editorGen.getEditor().getPackageName());
- stringBuffer.append(TEXT_62);
- stringBuffer.append(className);
- stringBuffer.append(TEXT_63);
- stringBuffer.append(editorGen.getEditor().getPackageName());
- stringBuffer.append(TEXT_64);
- stringBuffer.append(className);
- stringBuffer.append(TEXT_65);
-
- }
-
- stringBuffer.append(TEXT_66);
-
-}
-
- if (editorGen.getNavigator() != null && !isRichClientPlatform) {
- stringBuffer.append(TEXT_67);
- stringBuffer.append(TEXT_68);
- stringBuffer.append(editorGen.getNavigator().getContentExtensionID());
- stringBuffer.append(TEXT_69);
-
-if (editorGen.getEditor().isEclipseEditor()) {
-
- stringBuffer.append(TEXT_70);
- stringBuffer.append(editorGen.getNavigator().getLinkHelperExtensionID());
- stringBuffer.append(TEXT_71);
-
-}
-
- stringBuffer.append(TEXT_72);
- stringBuffer.append(editorGen.getNavigator().getActionProviderID());
- stringBuffer.append(TEXT_73);
- stringBuffer.append(editorGen.getNavigator().getContentExtensionID());
- stringBuffer.append(TEXT_74);
- stringBuffer.append(editorGen.getNavigator().getContentExtensionName());
- stringBuffer.append(TEXT_75);
- stringBuffer.append(editorGen.getNavigator().getContentExtensionPriority());
- stringBuffer.append(TEXT_76);
- stringBuffer.append(editorGen.getNavigator().getContentProviderQualifiedClassName());
- stringBuffer.append(TEXT_77);
- stringBuffer.append(editorGen.getNavigator().getLabelProviderQualifiedClassName());
- stringBuffer.append(TEXT_78);
- stringBuffer.append(editorGen.getEditor().getIconPathX());
- stringBuffer.append(TEXT_79);
- stringBuffer.append(editorGen.getDiagramFileExtension());
- stringBuffer.append(TEXT_80);
- stringBuffer.append(editorGen.getNavigator().getAbstractNavigatorItemQualifiedClassName());
- stringBuffer.append(TEXT_81);
- if (false && genDiagram.generateShortcutIcon()) { //XXX: no shortcuts yet
- stringBuffer.append(TEXT_82);
- stringBuffer.append(editorGen.getPlugin().getID());
- stringBuffer.append(TEXT_83);
- }
- stringBuffer.append(TEXT_84);
- stringBuffer.append(editorGen.getNavigator().getAbstractNavigatorItemQualifiedClassName());
- stringBuffer.append(TEXT_85);
- if (false && genDiagram.generateShortcutIcon()) { //XXX: no shortcuts yet
- stringBuffer.append(TEXT_86);
- stringBuffer.append(editorGen.getPlugin().getID());
- stringBuffer.append(TEXT_87);
- }
- stringBuffer.append(TEXT_88);
- stringBuffer.append(editorGen.getNavigator().getSorterExtensionID());
- stringBuffer.append(TEXT_89);
- stringBuffer.append(editorGen.getNavigator().getSorterQualifiedClassName());
- stringBuffer.append(TEXT_90);
- stringBuffer.append(editorGen.getDiagramFileExtension());
- stringBuffer.append(TEXT_91);
- stringBuffer.append(editorGen.getNavigator().getAbstractNavigatorItemQualifiedClassName());
- stringBuffer.append(TEXT_92);
- stringBuffer.append(editorGen.getNavigator().getActionProviderID());
- stringBuffer.append(TEXT_93);
- stringBuffer.append(editorGen.getNavigator().getActionProviderQualifiedClassName());
- stringBuffer.append(TEXT_94);
- stringBuffer.append(editorGen.getNavigator().getAbstractNavigatorItemQualifiedClassName());
- stringBuffer.append(TEXT_95);
- if (false && genDiagram.generateShortcutIcon()) { //XXX: no shortcuts yet
- stringBuffer.append(TEXT_96);
- stringBuffer.append(editorGen.getPlugin().getID());
- stringBuffer.append(TEXT_97);
- }
- stringBuffer.append(TEXT_98);
-
-if (editorGen.getEditor().isEclipseEditor()) {
-
- stringBuffer.append(TEXT_99);
- stringBuffer.append(editorGen.getNavigator().getLinkHelperExtensionID());
- stringBuffer.append(TEXT_100);
- stringBuffer.append(editorGen.getNavigator().getLinkHelperQualifiedClassName());
- stringBuffer.append(TEXT_101);
- stringBuffer.append(editorGen.getNavigator().getAbstractNavigatorItemQualifiedClassName());
- stringBuffer.append(TEXT_102);
-
-}
-
- }
- if (editorGen.getPropertySheet() != null) {
- stringBuffer.append(TEXT_103);
- final GenPropertySheet propSheet = editorGen.getPropertySheet();
-final String contributorID = genPlugin.getID();
- stringBuffer.append(TEXT_104);
- stringBuffer.append(contributorID);
- stringBuffer.append(TEXT_105);
- if (propSheet.isNeedsCaption()) {
- stringBuffer.append(TEXT_106);
- stringBuffer.append(propSheet.getLabelProviderQualifiedClassName());
- stringBuffer.append(TEXT_107);
- }
- stringBuffer.append(TEXT_108);
- stringBuffer.append(contributorID);
- stringBuffer.append(TEXT_109);
- for (Iterator it = propSheet.getTabs().iterator(); it.hasNext(); ) {
- final GenPropertyTab tab = (GenPropertyTab) it.next();
- if (tab instanceof GenStandardPropertyTab) {
- stringBuffer.append(TEXT_110);
- if ("appearance".equals(tab.getID())) {
- stringBuffer.append(TEXT_111);
- } else if ("diagram".equals(tab.getID())) {
- stringBuffer.append(TEXT_112);
- } else if ("advanced".equals(tab.getID())) {
- stringBuffer.append(TEXT_113);
- }
- } else if (tab instanceof GenCustomPropertyTab) {
- stringBuffer.append(TEXT_114);
- stringBuffer.append(TEXT_115);
- if ("domain".equals(tab.getID())) /*just to make use of domain category ;)*/ {
- stringBuffer.append(TEXT_116);
- } else {
- stringBuffer.append(TEXT_117);
- }
- stringBuffer.append(TEXT_118);
- stringBuffer.append(tab.getID());
- stringBuffer.append(TEXT_119);
- stringBuffer.append(tab.getID());
- stringBuffer.append(TEXT_120);
- }}
- stringBuffer.append(TEXT_121);
- stringBuffer.append(contributorID);
- stringBuffer.append(TEXT_122);
- for (Iterator it = propSheet.getTabs().iterator(); it.hasNext(); ) {
- final GenPropertyTab tab = (GenPropertyTab) it.next();
- if (tab instanceof GenStandardPropertyTab) {
- stringBuffer.append(TEXT_123);
- if ("advanced".equals(tab.getID())) {
- stringBuffer.append(TEXT_124);
- }
- stringBuffer.append(TEXT_125);
- } else if (tab instanceof GenCustomPropertyTab) {
- stringBuffer.append(TEXT_126);
- stringBuffer.append(TEXT_127);
- stringBuffer.append(tab.getID());
- stringBuffer.append(TEXT_128);
- stringBuffer.append(tab.getID());
- stringBuffer.append(TEXT_129);
- if (((GenCustomPropertyTab) tab).getFilter() instanceof CustomTabFilter) {
- stringBuffer.append(TEXT_130);
- stringBuffer.append(((CustomTabFilter) ((GenCustomPropertyTab) tab).getFilter()).getQualifiedClassName());
- stringBuffer.append(TEXT_131);
- }
- stringBuffer.append(TEXT_132);
- stringBuffer.append(((GenCustomPropertyTab) tab).getQualifiedClassName());
- stringBuffer.append(TEXT_133);
- if (((GenCustomPropertyTab) tab).getFilter() instanceof TypeTabFilter) {
-
-final TypeTabFilter typeTabFilter = (TypeTabFilter) ((GenCustomPropertyTab) tab).getFilter();
-for (Iterator ttfIt = typeTabFilter.getAllTypes().iterator(); ttfIt.hasNext();) {
- String ttfType = (String) ttfIt.next();
- stringBuffer.append(TEXT_134);
- stringBuffer.append(ttfType);
- stringBuffer.append(TEXT_135);
- }
- }
- stringBuffer.append(TEXT_136);
- }}
- stringBuffer.append(TEXT_137);
- }
- stringBuffer.append(TEXT_138);
- stringBuffer.append(TEXT_139);
- return stringBuffer.toString();
- }
-}
diff --git a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/LinkEditPartGenerator.java b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/LinkEditPartGenerator.java
index 136c1e80b..edd3453af 100644
--- a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/LinkEditPartGenerator.java
+++ b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/LinkEditPartGenerator.java
@@ -24,391 +24,399 @@ public class LinkEditPartGenerator
protected final String TEXT_4 = NL + NL + "/**" + NL + " * @generated" + NL + " */" + NL + "public class ";
protected final String TEXT_5 = " extends ";
protected final String TEXT_6 = " implements ";
- protected final String TEXT_7 = " {";
- protected final String TEXT_8 = NL;
- protected final String TEXT_9 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final int VISUAL_ID = ";
- protected final String TEXT_10 = ";";
- protected final String TEXT_11 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_12 = "(";
- protected final String TEXT_13 = " view) {" + NL + "\t\tassert view instanceof ";
- protected final String TEXT_14 = ";" + NL + "\t\tsetModel(view);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_15 = " getDiagramEdge() {" + NL + "\t\treturn (";
- protected final String TEXT_16 = ") getModel();" + NL + "\t}" + NL;
- protected final String TEXT_17 = NL;
- protected final String TEXT_18 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void registerModel() {" + NL + "\t\tsuper.registerModel();" + NL + "\t\t";
- protected final String TEXT_19 = " view = (";
- protected final String TEXT_20 = ") getModel();" + NL + "\t\tif (view != null && view.isSetElement() && view.getElement() != null) {" + NL + "\t\t\tgetViewer().getEditPartRegistry().put(view.getElement(), this);\t" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void unregisterModel() {" + NL + "\t\tsuper.unregisterModel();" + NL + "\t\t";
- protected final String TEXT_21 = " view = (";
- protected final String TEXT_22 = ") getModel();" + NL + "\t\tif (view != null && view.isSetElement() && view.getElement() != null && getViewer().getEditPartRegistry().get(view.getElement()) == this) {" + NL + "\t\t\tgetViewer().getEditPartRegistry().remove(view.getElement());" + NL + "\t\t}" + NL + "\t}";
- protected final String TEXT_23 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void createEditPolicies() {";
- protected final String TEXT_24 = NL;
- protected final String TEXT_25 = "\t\tinstallEditPolicy(";
- protected final String TEXT_26 = ".COMPONENT_ROLE, new ";
- protected final String TEXT_27 = "() {" + NL + "\t\t\tprotected ";
- protected final String TEXT_28 = " createDeleteCommand(";
- protected final String TEXT_29 = " deleteRequest) {" + NL + "\t\t\t\tfinal Edge edgeToRemove = getDiagramEdge();" + NL + "\t\t\t\tfinal View source = edgeToRemove.getSource();" + NL + "\t\t\t\tfinal View target = edgeToRemove.getTarget();" + NL + "\t\t\t\t";
- protected final String TEXT_30 = " editingDomain = ";
- protected final String TEXT_31 = ".getEditingDomain(getDiagramEdge().getDiagram().getElement());" + NL + "\t\t\t\t";
- protected final String TEXT_32 = " cc = new ";
- protected final String TEXT_33 = "();" + NL + "\t\t\t\tcc.append(createDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append(new ";
- protected final String TEXT_34 = "(source.getDiagram(), edgeToRemove));" + NL + "\t\t\t\treturn new ";
- protected final String TEXT_35 = "(editingDomain, cc);" + NL + "\t\t\t}";
- protected final String TEXT_36 = NL;
- protected final String TEXT_37 = NL + "\t\t\tprivate ";
- protected final String TEXT_38 = " createDomainModelRemoveCommand(";
- protected final String TEXT_39 = " editingDomain) {";
- protected final String TEXT_40 = NL + "\t\t\t\t";
- protected final String TEXT_41 = " result = new ";
- protected final String TEXT_42 = "();";
- protected final String TEXT_43 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_44 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_45 = ".getElement().eContainer(), ";
- protected final String TEXT_46 = ".eINSTANCE.get";
- protected final String TEXT_47 = "(), ";
- protected final String TEXT_48 = ".getElement()));";
- protected final String TEXT_49 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_50 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_51 = ".getElement().eContainer(), ";
- protected final String TEXT_52 = ".eINSTANCE.get";
- protected final String TEXT_53 = "(), ";
- protected final String TEXT_54 = ".UNSET_VALUE));";
- protected final String TEXT_55 = NL + "\t\t\t\treturn ";
- protected final String TEXT_56 = ".INSTANCE;";
- protected final String TEXT_57 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_58 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_59 = ".getElement().eContainer(), ";
- protected final String TEXT_60 = ".eINSTANCE.get";
- protected final String TEXT_61 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_62 = ".getElement()));";
- protected final String TEXT_63 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_64 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_65 = ".getElement().eContainer(), ";
- protected final String TEXT_66 = ".eINSTANCE.get";
- protected final String TEXT_67 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_68 = ".UNSET_VALUE));";
- protected final String TEXT_69 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_70 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_71 = ".getElement(), ";
- protected final String TEXT_72 = ".eINSTANCE.get";
- protected final String TEXT_73 = "(), ";
- protected final String TEXT_74 = ".getSource().getElement()));";
- protected final String TEXT_75 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_76 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_77 = ".getElement(), ";
- protected final String TEXT_78 = ".eINSTANCE.get";
- protected final String TEXT_79 = "(), ";
- protected final String TEXT_80 = ".UNSET_VALUE));";
- protected final String TEXT_81 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_82 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_83 = ".getElement(), ";
- protected final String TEXT_84 = ".eINSTANCE.get";
- protected final String TEXT_85 = "(), ";
- protected final String TEXT_86 = ".getTarget().getElement()));";
- protected final String TEXT_87 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_88 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_89 = ".getElement(), ";
- protected final String TEXT_90 = ".eINSTANCE.get";
- protected final String TEXT_91 = "(), ";
- protected final String TEXT_92 = ".UNSET_VALUE));";
- protected final String TEXT_93 = NL + "\t\t\t\treturn result;";
- protected final String TEXT_94 = NL + "\t\t\t\treturn ";
- protected final String TEXT_95 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_96 = ".getSource().getElement(), ";
- protected final String TEXT_97 = ".eINSTANCE.get";
- protected final String TEXT_98 = "(), ";
- protected final String TEXT_99 = ".getTarget().getElement());";
- protected final String TEXT_100 = NL + "\t\t\t\treturn ";
- protected final String TEXT_101 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_102 = ".getSource().getElement(), ";
- protected final String TEXT_103 = ".eINSTANCE.get";
- protected final String TEXT_104 = "(), ";
- protected final String TEXT_105 = ".UNSET_VALUE);";
- protected final String TEXT_106 = NL + "\t\t\t}";
- protected final String TEXT_107 = NL + "\t\t});" + NL + "\t\tinstallEditPolicy(";
- protected final String TEXT_108 = ".CONNECTION_ENDPOINTS_ROLE, new ";
- protected final String TEXT_109 = "());" + NL + "\t\tinstallEditPolicy(";
- protected final String TEXT_110 = ".CONNECTION_BENDPOINTS_ROLE, new ";
- protected final String TEXT_111 = "());";
- protected final String TEXT_112 = NL + "\t\tinstallEditPolicy(";
- protected final String TEXT_113 = ".DIRECT_EDIT_ROLE, new ";
+ protected final String TEXT_7 = ", ";
+ protected final String TEXT_8 = " {";
+ protected final String TEXT_9 = NL;
+ protected final String TEXT_10 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final int VISUAL_ID = ";
+ protected final String TEXT_11 = ";";
+ protected final String TEXT_12 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_13 = " myDecorationManager;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_14 = "(";
+ protected final String TEXT_15 = " view) {" + NL + "\t\tassert view instanceof ";
+ protected final String TEXT_16 = ";" + NL + "\t\tsetModel(view);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_17 = " getDiagramEdge() {" + NL + "\t\treturn (";
+ protected final String TEXT_18 = ") getModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_19 = " getDecorationManager() {" + NL + "\t\treturn myDecorationManager;" + NL + "\t}" + NL;
+ protected final String TEXT_20 = NL;
+ protected final String TEXT_21 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void registerModel() {" + NL + "\t\tsuper.registerModel();" + NL + "\t\t";
+ protected final String TEXT_22 = " view = (";
+ protected final String TEXT_23 = ") getModel();" + NL + "\t\tif (view != null && view.isSetElement() && view.getElement() != null) {" + NL + "\t\t\tgetViewer().getEditPartRegistry().put(view.getElement(), this);\t" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void unregisterModel() {" + NL + "\t\tsuper.unregisterModel();" + NL + "\t\t";
+ protected final String TEXT_24 = " view = (";
+ protected final String TEXT_25 = ") getModel();" + NL + "\t\tif (view != null && view.isSetElement() && view.getElement() != null && getViewer().getEditPartRegistry().get(view.getElement()) == this) {" + NL + "\t\t\tgetViewer().getEditPartRegistry().remove(view.getElement());" + NL + "\t\t}" + NL + "\t}";
+ protected final String TEXT_26 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void createEditPolicies() {";
+ protected final String TEXT_27 = NL;
+ protected final String TEXT_28 = "\t\tinstallEditPolicy(";
+ protected final String TEXT_29 = ".COMPONENT_ROLE, new ";
+ protected final String TEXT_30 = "() {" + NL + "\t\t\tprotected ";
+ protected final String TEXT_31 = " createDeleteCommand(";
+ protected final String TEXT_32 = " deleteRequest) {" + NL + "\t\t\t\tfinal Edge edgeToRemove = getDiagramEdge();" + NL + "\t\t\t\tfinal View source = edgeToRemove.getSource();" + NL + "\t\t\t\tfinal View target = edgeToRemove.getTarget();" + NL + "\t\t\t\t";
+ protected final String TEXT_33 = " editingDomain = ";
+ protected final String TEXT_34 = ".getEditingDomain(getDiagramEdge().getDiagram().getElement());" + NL + "\t\t\t\t";
+ protected final String TEXT_35 = " cc = new ";
+ protected final String TEXT_36 = "();" + NL + "\t\t\t\tcc.append(createDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append(new ";
+ protected final String TEXT_37 = "(source.getDiagram(), edgeToRemove));" + NL + "\t\t\t\treturn new ";
+ protected final String TEXT_38 = "(editingDomain, cc);" + NL + "\t\t\t}";
+ protected final String TEXT_39 = NL;
+ protected final String TEXT_40 = NL + "\t\t\tprivate ";
+ protected final String TEXT_41 = " createDomainModelRemoveCommand(";
+ protected final String TEXT_42 = " editingDomain) {";
+ protected final String TEXT_43 = NL + "\t\t\t\t";
+ protected final String TEXT_44 = " result = new ";
+ protected final String TEXT_45 = "();";
+ protected final String TEXT_46 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_47 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_48 = ".getElement().eContainer(), ";
+ protected final String TEXT_49 = ".eINSTANCE.get";
+ protected final String TEXT_50 = "(), ";
+ protected final String TEXT_51 = ".getElement()));";
+ protected final String TEXT_52 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_53 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_54 = ".getElement().eContainer(), ";
+ protected final String TEXT_55 = ".eINSTANCE.get";
+ protected final String TEXT_56 = "(), ";
+ protected final String TEXT_57 = ".UNSET_VALUE));";
+ protected final String TEXT_58 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_59 = ".INSTANCE;";
+ protected final String TEXT_60 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_61 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_62 = ".getElement().eContainer(), ";
+ protected final String TEXT_63 = ".eINSTANCE.get";
+ protected final String TEXT_64 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_65 = ".getElement()));";
+ protected final String TEXT_66 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_67 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_68 = ".getElement().eContainer(), ";
+ protected final String TEXT_69 = ".eINSTANCE.get";
+ protected final String TEXT_70 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_71 = ".UNSET_VALUE));";
+ protected final String TEXT_72 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_73 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_74 = ".getElement(), ";
+ protected final String TEXT_75 = ".eINSTANCE.get";
+ protected final String TEXT_76 = "(), ";
+ protected final String TEXT_77 = ".getSource().getElement()));";
+ protected final String TEXT_78 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_79 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_80 = ".getElement(), ";
+ protected final String TEXT_81 = ".eINSTANCE.get";
+ protected final String TEXT_82 = "(), ";
+ protected final String TEXT_83 = ".UNSET_VALUE));";
+ protected final String TEXT_84 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_85 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_86 = ".getElement(), ";
+ protected final String TEXT_87 = ".eINSTANCE.get";
+ protected final String TEXT_88 = "(), ";
+ protected final String TEXT_89 = ".getTarget().getElement()));";
+ protected final String TEXT_90 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_91 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_92 = ".getElement(), ";
+ protected final String TEXT_93 = ".eINSTANCE.get";
+ protected final String TEXT_94 = "(), ";
+ protected final String TEXT_95 = ".UNSET_VALUE));";
+ protected final String TEXT_96 = NL + "\t\t\t\treturn result;";
+ protected final String TEXT_97 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_98 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_99 = ".getSource().getElement(), ";
+ protected final String TEXT_100 = ".eINSTANCE.get";
+ protected final String TEXT_101 = "(), ";
+ protected final String TEXT_102 = ".getTarget().getElement());";
+ protected final String TEXT_103 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_104 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_105 = ".getSource().getElement(), ";
+ protected final String TEXT_106 = ".eINSTANCE.get";
+ protected final String TEXT_107 = "(), ";
+ protected final String TEXT_108 = ".UNSET_VALUE);";
+ protected final String TEXT_109 = NL + "\t\t\t}";
+ protected final String TEXT_110 = NL + "\t\t});" + NL + "\t\tinstallEditPolicy(";
+ protected final String TEXT_111 = ".CONNECTION_ENDPOINTS_ROLE, new ";
+ protected final String TEXT_112 = "());" + NL + "\t\tinstallEditPolicy(";
+ protected final String TEXT_113 = ".CONNECTION_BENDPOINTS_ROLE, new ";
protected final String TEXT_114 = "());";
- protected final String TEXT_115 = NL;
- protected final String TEXT_116 = NL + "\t\tinstallEditPolicy(\"";
- protected final String TEXT_117 = "\", new ";
- protected final String TEXT_118 = "()); //$NON-NLS-1$";
- protected final String TEXT_119 = NL;
- protected final String TEXT_120 = NL + "\t\tinstallEditPolicy(";
- protected final String TEXT_121 = ".OPEN_ROLE";
- protected final String TEXT_122 = " + \"";
- protected final String TEXT_123 = "\" ";
- protected final String TEXT_124 = ", new ";
- protected final String TEXT_125 = "());";
- protected final String TEXT_126 = NL + "\t}" + NL;
- protected final String TEXT_127 = NL + NL + "\t/**" + NL + "\t * Returns the label which should be direct-edited by default." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_128 = " getPrimaryLabelEditPart() {" + NL + "\t\tfor(";
- protected final String TEXT_129 = " it = getDiagramEdge().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t";
- protected final String TEXT_130 = " nextChild = (";
- protected final String TEXT_131 = ")it.next();" + NL + "\t\t\tif (";
- protected final String TEXT_132 = ".getVisualID(nextChild) == ";
- protected final String TEXT_133 = ".VISUAL_ID) {" + NL + "\t\t\t\treturn (EditPart) getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest(";
- protected final String TEXT_134 = " req) {" + NL + "\t\tif (";
- protected final String TEXT_135 = ".REQ_DIRECT_EDIT.equals(req.getType())) {" + NL + "\t\t\t";
- protected final String TEXT_136 = " labelToEdit;" + NL + "\t\t\tif (req instanceof ";
- protected final String TEXT_137 = ") {" + NL + "\t\t\t\tlabelToEdit = getLabelEditPart((";
- protected final String TEXT_138 = ")req);" + NL + "\t\t\t} else {" + NL + "\t\t\t\tlabelToEdit = getPrimaryLabelEditPart();" + NL + "\t\t\t}" + NL + "\t\t\tif (labelToEdit != null) {" + NL + "\t\t\t\tlabelToEdit.performRequest(req);" + NL + "\t\t\t}" + NL + "\t\t}";
- protected final String TEXT_139 = NL;
- protected final String TEXT_140 = "if (";
- protected final String TEXT_141 = ".REQ_OPEN.equals(req.getType())) {" + NL + "\t";
- protected final String TEXT_142 = " command = getCommand(req);" + NL + "\tif (command != null && command.canExecute()) {" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(command);" + NL + "\t}" + NL + "\treturn;" + NL + "}" + NL + "\t\tsuper.performRequest(req);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_143 = " getLabelEditPart(";
- protected final String TEXT_144 = " req) {" + NL + "\t\t";
- protected final String TEXT_145 = " result = getViewer().findObjectAt(req.getLocation());" + NL + "\t\tif (result != null) {" + NL + "\t\t\t";
- protected final String TEXT_146 = " view = (";
- protected final String TEXT_147 = ") result.getModel();" + NL + "\t\t\tif (getDiagramEdge().getChildren().contains(view)) {" + NL + "\t\t\t\tint visualId = ";
- protected final String TEXT_148 = ".getVisualID(view);" + NL + "\t\t\t\tswitch (visualId) {";
- protected final String TEXT_149 = NL + "\t\t\t\tcase ";
- protected final String TEXT_150 = ".VISUAL_ID:" + NL + "\t\t\t\t\treturn result;";
- protected final String TEXT_151 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn getPrimaryLabelEditPart();" + NL + "\t}" + NL;
- protected final String TEXT_152 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected List getModelChildren() {" + NL + "\t\treturn ((Edge)getModel()).getChildren();" + NL + "\t}" + NL;
- protected final String TEXT_153 = NL;
- protected final String TEXT_154 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_155 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher(";
- protected final String TEXT_156 = " feature, ";
- protected final String TEXT_157 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {" + NL + "\t\tif (";
- protected final String TEXT_158 = ".class == key) {" + NL + "\t\t\treturn getTreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn super.getAdapter(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter myTreeEditPartAdapter;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter getTreeEditPartAdapter() {" + NL + "\t\tif (myTreeEditPartAdapter == null) {" + NL + "\t\t\tmyTreeEditPartAdapter = new TreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn myTreeEditPartAdapter;" + NL + "\t}" + NL;
- protected final String TEXT_159 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tgetDiagramEdge().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {" + NL + "\t\tgetDiagramEdge().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}" + NL;
- protected final String TEXT_160 = NL;
- protected final String TEXT_161 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_162 = " domainModelRefresher = new ";
- protected final String TEXT_163 = "(this);" + NL;
- protected final String TEXT_164 = NL;
- protected final String TEXT_165 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher(";
- protected final String TEXT_166 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeRefresher(";
- protected final String TEXT_167 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate CompositeRefresher getCompositeRefresher(";
- protected final String TEXT_168 = " feature) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\tRefresher refresher = (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t\tif (refresher instanceof CompositeRefresher) {" + NL + "\t\t\treturn (CompositeRefresher) refresher;" + NL + "\t\t}" + NL + "\t\tCompositeRefresher result = new CompositeRefresher();" + NL + "\t\tif (refresher != null) {" + NL + "\t\t\tresult.addRefresher(refresher);" + NL + "\t\t}" + NL + "\t\tstructuralFeatures2Refresher.put(feature, result);" + NL + "\t\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new HashMap();";
- protected final String TEXT_169 = NL;
- protected final String TEXT_170 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_171 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_172 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_173 = ".eINSTANCE.getView_Styles(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_174 = ".eINSTANCE.getDrawerStyle_Collapsed(), childrenRefresher);" + NL + "\t\t";
- protected final String TEXT_175 = NL;
- protected final String TEXT_176 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_177 = ".eINSTANCE.getView_Visible(), visibilityRefresher);";
+ protected final String TEXT_115 = NL + "\t\tinstallEditPolicy(";
+ protected final String TEXT_116 = ".DIRECT_EDIT_ROLE, new ";
+ protected final String TEXT_117 = "());";
+ protected final String TEXT_118 = NL;
+ protected final String TEXT_119 = NL + "\t\tinstallEditPolicy(\"";
+ protected final String TEXT_120 = "\", new ";
+ protected final String TEXT_121 = "()); //$NON-NLS-1$";
+ protected final String TEXT_122 = NL;
+ protected final String TEXT_123 = NL + "\t\tinstallEditPolicy(";
+ protected final String TEXT_124 = ".OPEN_ROLE";
+ protected final String TEXT_125 = " + \"";
+ protected final String TEXT_126 = "\" ";
+ protected final String TEXT_127 = ", new ";
+ protected final String TEXT_128 = "());";
+ protected final String TEXT_129 = NL + "\t}" + NL;
+ protected final String TEXT_130 = NL + NL + "\t/**" + NL + "\t * Returns the label which should be direct-edited by default." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_131 = " getPrimaryLabelEditPart() {" + NL + "\t\tfor(";
+ protected final String TEXT_132 = " it = getDiagramEdge().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t";
+ protected final String TEXT_133 = " nextChild = (";
+ protected final String TEXT_134 = ")it.next();" + NL + "\t\t\tif (";
+ protected final String TEXT_135 = ".getVisualID(nextChild) == ";
+ protected final String TEXT_136 = ".VISUAL_ID) {" + NL + "\t\t\t\treturn (EditPart) getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest(";
+ protected final String TEXT_137 = " req) {" + NL + "\t\tif (";
+ protected final String TEXT_138 = ".REQ_DIRECT_EDIT.equals(req.getType())) {" + NL + "\t\t\t";
+ protected final String TEXT_139 = " labelToEdit;" + NL + "\t\t\tif (req instanceof ";
+ protected final String TEXT_140 = ") {" + NL + "\t\t\t\tlabelToEdit = getLabelEditPart((";
+ protected final String TEXT_141 = ")req);" + NL + "\t\t\t} else {" + NL + "\t\t\t\tlabelToEdit = getPrimaryLabelEditPart();" + NL + "\t\t\t}" + NL + "\t\t\tif (labelToEdit != null) {" + NL + "\t\t\t\tlabelToEdit.performRequest(req);" + NL + "\t\t\t}" + NL + "\t\t}";
+ protected final String TEXT_142 = NL;
+ protected final String TEXT_143 = "if (";
+ protected final String TEXT_144 = ".REQ_OPEN.equals(req.getType())) {" + NL + "\t";
+ protected final String TEXT_145 = " command = getCommand(req);" + NL + "\tif (command != null && command.canExecute()) {" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(command);" + NL + "\t}" + NL + "\treturn;" + NL + "}" + NL + "\t\tsuper.performRequest(req);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_146 = " getLabelEditPart(";
+ protected final String TEXT_147 = " req) {" + NL + "\t\t";
+ protected final String TEXT_148 = " result = getViewer().findObjectAt(req.getLocation());" + NL + "\t\tif (result != null) {" + NL + "\t\t\t";
+ protected final String TEXT_149 = " view = (";
+ protected final String TEXT_150 = ") result.getModel();" + NL + "\t\t\tif (getDiagramEdge().getChildren().contains(view)) {" + NL + "\t\t\t\tint visualId = ";
+ protected final String TEXT_151 = ".getVisualID(view);" + NL + "\t\t\t\tswitch (visualId) {";
+ protected final String TEXT_152 = NL + "\t\t\t\tcase ";
+ protected final String TEXT_153 = ".VISUAL_ID:" + NL + "\t\t\t\t\treturn result;";
+ protected final String TEXT_154 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn getPrimaryLabelEditPart();" + NL + "\t}" + NL;
+ protected final String TEXT_155 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected List getModelChildren() {" + NL + "\t\treturn ((Edge)getModel()).getChildren();" + NL + "\t}" + NL;
+ protected final String TEXT_156 = NL;
+ protected final String TEXT_157 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_158 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher(";
+ protected final String TEXT_159 = " feature, ";
+ protected final String TEXT_160 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {" + NL + "\t\tif (";
+ protected final String TEXT_161 = ".class == key) {" + NL + "\t\t\treturn getTreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn super.getAdapter(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter myTreeEditPartAdapter;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter getTreeEditPartAdapter() {" + NL + "\t\tif (myTreeEditPartAdapter == null) {" + NL + "\t\t\tmyTreeEditPartAdapter = new TreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn myTreeEditPartAdapter;" + NL + "\t}" + NL;
+ protected final String TEXT_162 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tgetDiagramEdge().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {" + NL + "\t\tgetDiagramEdge().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}" + NL;
+ protected final String TEXT_163 = NL;
+ protected final String TEXT_164 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_165 = " domainModelRefresher = new ";
+ protected final String TEXT_166 = "(this);" + NL;
+ protected final String TEXT_167 = NL;
+ protected final String TEXT_168 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher(";
+ protected final String TEXT_169 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeRefresher(";
+ protected final String TEXT_170 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate CompositeRefresher getCompositeRefresher(";
+ protected final String TEXT_171 = " feature) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\tRefresher refresher = (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t\tif (refresher instanceof CompositeRefresher) {" + NL + "\t\t\treturn (CompositeRefresher) refresher;" + NL + "\t\t}" + NL + "\t\tCompositeRefresher result = new CompositeRefresher();" + NL + "\t\tif (refresher != null) {" + NL + "\t\t\tresult.addRefresher(refresher);" + NL + "\t\t}" + NL + "\t\tstructuralFeatures2Refresher.put(feature, result);" + NL + "\t\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new HashMap();";
+ protected final String TEXT_172 = NL;
+ protected final String TEXT_173 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_174 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_175 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_176 = ".eINSTANCE.getView_Styles(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_177 = ".eINSTANCE.getDrawerStyle_Collapsed(), childrenRefresher);" + NL + "\t\t";
protected final String TEXT_178 = NL;
- protected final String TEXT_179 = "\t\tRefresher bendpointsRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBendpoints();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_180 = ".eINSTANCE.getEdge_Bendpoints(), bendpointsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_181 = ".eINSTANCE.getRelativeBendpoints_Points(), bendpointsRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "//XXX:\t\trefreshBackgroundColor();" + NL + "//XXX:\t\trefreshForegroundColor();" + NL + "//XXX:\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t\trefreshBendpoints();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBendpoints() {" + NL + "\t\t";
- protected final String TEXT_182 = " bendpoints = (";
- protected final String TEXT_183 = ") getDiagramEdge().getBendpoints();" + NL + "\t\tif (bendpoints == null) {" + NL + "\t\t\tgetConnectionFigure().setRoutingConstraint(";
- protected final String TEXT_184 = ".EMPTY_LIST);" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_185 = " modelConstraint = bendpoints.getPoints();" + NL + "\t\t";
- protected final String TEXT_186 = " figureConstraint = new ";
- protected final String TEXT_187 = "();" + NL + "\t\tfor (int i = 0; i < modelConstraint.size(); i++) {" + NL + "\t\t\t";
- protected final String TEXT_188 = " wbp = (";
- protected final String TEXT_189 = ") modelConstraint.get(i);" + NL + "\t\t\t";
- protected final String TEXT_190 = " rbp = new ";
- protected final String TEXT_191 = "(getConnectionFigure());" + NL + "\t\t\trbp.setRelativeDimensions(new ";
- protected final String TEXT_192 = "(wbp.getSourceX(), wbp.getSourceY()), new ";
- protected final String TEXT_193 = "(wbp.getTargetX(), wbp.getTargetY()));" + NL + "\t\t\trbp.setWeight((i + 1) / ((float) modelConstraint.size() + 1));" + NL + "\t\t\tfigureConstraint.add(rbp);" + NL + "\t\t}" + NL + "\t\tgetConnectionFigure().setRoutingConstraint(figureConstraint);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = ((View)getModel()).isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addNotify() {" + NL + "\t\tsuper.addNotify();" + NL + "\t\tgetConnectionFigure().setConnectionRouter(new ";
- protected final String TEXT_194 = "());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Creates figure for this edit part." + NL + "\t * " + NL + "\t * Body of this method does not depend on settings in generation model" + NL + "\t * so you may safely remove <i>generated</i> tag and modify it." + NL + "\t * " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_195 = " createFigure() {";
- protected final String TEXT_196 = NL + "\t\treturn new ";
- protected final String TEXT_197 = "();";
- protected final String TEXT_198 = NL + "\t\treturn ";
- protected final String TEXT_199 = ";";
- protected final String TEXT_200 = NL + " \t\treturn new ";
- protected final String TEXT_201 = "();";
- protected final String TEXT_202 = NL + "\t}" + NL;
- protected final String TEXT_203 = NL;
- protected final String TEXT_204 = NL;
- protected final String TEXT_205 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class MapModeWorkaround {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic int DPtoLP(int dp) {" + NL + "\t\t\treturn dp;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static MapModeWorkaround INSTANCE = new MapModeWorkaround();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate MapModeWorkaround getMapMode() {" + NL + "\t\treturn MapModeWorkaround.INSTANCE;" + NL + "\t}";
- protected final String TEXT_206 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class TreeEditPartAdapter extends ";
- protected final String TEXT_207 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic TreeEditPartAdapter() {" + NL + "\t\t\tsuper(getDiagramEdge(), ";
- protected final String TEXT_208 = ".getInstance().getItemProvidersAdapterFactory());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createEditPolicies() {";
- protected final String TEXT_209 = NL;
- protected final String TEXT_210 = "\t\tinstallEditPolicy(";
- protected final String TEXT_211 = ".COMPONENT_ROLE, new ";
- protected final String TEXT_212 = "() {" + NL + "\t\t\tprotected ";
- protected final String TEXT_213 = " createDeleteCommand(";
- protected final String TEXT_214 = " deleteRequest) {" + NL + "\t\t\t\tfinal Edge edgeToRemove = getDiagramEdge();" + NL + "\t\t\t\tfinal View source = edgeToRemove.getSource();" + NL + "\t\t\t\tfinal View target = edgeToRemove.getTarget();" + NL + "\t\t\t\t";
- protected final String TEXT_215 = " editingDomain = ";
- protected final String TEXT_216 = ".getEditingDomain(getDiagramEdge().getDiagram().getElement());" + NL + "\t\t\t\t";
- protected final String TEXT_217 = " cc = new ";
- protected final String TEXT_218 = "();" + NL + "\t\t\t\tcc.append(createDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append(new ";
- protected final String TEXT_219 = "(source.getDiagram(), edgeToRemove));" + NL + "\t\t\t\treturn new ";
- protected final String TEXT_220 = "(editingDomain, cc);" + NL + "\t\t\t}";
- protected final String TEXT_221 = NL;
- protected final String TEXT_222 = NL + "\t\t\tprivate ";
- protected final String TEXT_223 = " createDomainModelRemoveCommand(";
- protected final String TEXT_224 = " editingDomain) {";
- protected final String TEXT_225 = NL + "\t\t\t\t";
- protected final String TEXT_226 = " result = new ";
- protected final String TEXT_227 = "();";
- protected final String TEXT_228 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_229 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_230 = ".getElement().eContainer(), ";
- protected final String TEXT_231 = ".eINSTANCE.get";
- protected final String TEXT_232 = "(), ";
- protected final String TEXT_233 = ".getElement()));";
- protected final String TEXT_234 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_235 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_236 = ".getElement().eContainer(), ";
- protected final String TEXT_237 = ".eINSTANCE.get";
- protected final String TEXT_238 = "(), ";
- protected final String TEXT_239 = ".UNSET_VALUE));";
- protected final String TEXT_240 = NL + "\t\t\t\treturn ";
- protected final String TEXT_241 = ".INSTANCE;";
+ protected final String TEXT_179 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_180 = ".eINSTANCE.getView_Visible(), visibilityRefresher);";
+ protected final String TEXT_181 = NL;
+ protected final String TEXT_182 = "\t\tRefresher bendpointsRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBendpoints();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_183 = ".eINSTANCE.getEdge_Bendpoints(), bendpointsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_184 = ".eINSTANCE.getRelativeBendpoints_Points(), bendpointsRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "//XXX:\t\trefreshBackgroundColor();" + NL + "//XXX:\t\trefreshForegroundColor();" + NL + "//XXX:\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t\trefreshBendpoints();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBendpoints() {" + NL + "\t\t";
+ protected final String TEXT_185 = " bendpoints = (";
+ protected final String TEXT_186 = ") getDiagramEdge().getBendpoints();" + NL + "\t\tif (bendpoints == null) {" + NL + "\t\t\tgetConnectionFigure().setRoutingConstraint(";
+ protected final String TEXT_187 = ".EMPTY_LIST);" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_188 = " modelConstraint = bendpoints.getPoints();" + NL + "\t\t";
+ protected final String TEXT_189 = " figureConstraint = new ";
+ protected final String TEXT_190 = "();" + NL + "\t\tfor (int i = 0; i < modelConstraint.size(); i++) {" + NL + "\t\t\t";
+ protected final String TEXT_191 = " wbp = (";
+ protected final String TEXT_192 = ") modelConstraint.get(i);" + NL + "\t\t\t";
+ protected final String TEXT_193 = " rbp = new ";
+ protected final String TEXT_194 = "(getConnectionFigure());" + NL + "\t\t\trbp.setRelativeDimensions(new ";
+ protected final String TEXT_195 = "(wbp.getSourceX(), wbp.getSourceY()), new ";
+ protected final String TEXT_196 = "(wbp.getTargetX(), wbp.getTargetY()));" + NL + "\t\t\trbp.setWeight((i + 1) / ((float) modelConstraint.size() + 1));" + NL + "\t\t\tfigureConstraint.add(rbp);" + NL + "\t\t}" + NL + "\t\tgetConnectionFigure().setRoutingConstraint(figureConstraint);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = ((View)getModel()).isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addNotify() {" + NL + "\t\tsuper.addNotify();" + NL + "\t\tgetConnectionFigure().setConnectionRouter(new ";
+ protected final String TEXT_197 = "());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_198 = " createFigure() {" + NL + "\t\t";
+ protected final String TEXT_199 = " result = primCreateFigure();" + NL + "\t\tmyDecorationManager = createDecorationManager(result);" + NL + "\t\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_200 = " createDecorationManager(";
+ protected final String TEXT_201 = " connection) {" + NL + "\t\treturn new ";
+ protected final String TEXT_202 = "(connection);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Creates figure for this edit part." + NL + "\t * " + NL + "\t * Body of this method does not depend on settings in generation model" + NL + "\t * so you may safely remove <i>generated</i> tag and modify it." + NL + "\t * " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_203 = " primCreateFigure() {";
+ protected final String TEXT_204 = NL + "\t\treturn new ";
+ protected final String TEXT_205 = "();";
+ protected final String TEXT_206 = NL + "\t\treturn ";
+ protected final String TEXT_207 = ";";
+ protected final String TEXT_208 = NL + " \t\treturn new ";
+ protected final String TEXT_209 = "();";
+ protected final String TEXT_210 = NL + "\t}" + NL;
+ protected final String TEXT_211 = NL;
+ protected final String TEXT_212 = NL;
+ protected final String TEXT_213 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class MapModeWorkaround {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic int DPtoLP(int dp) {" + NL + "\t\t\treturn dp;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static MapModeWorkaround INSTANCE = new MapModeWorkaround();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate MapModeWorkaround getMapMode() {" + NL + "\t\treturn MapModeWorkaround.INSTANCE;" + NL + "\t}";
+ protected final String TEXT_214 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class TreeEditPartAdapter extends ";
+ protected final String TEXT_215 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic TreeEditPartAdapter() {" + NL + "\t\t\tsuper(getDiagramEdge(), ";
+ protected final String TEXT_216 = ".getInstance().getItemProvidersAdapterFactory());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createEditPolicies() {";
+ protected final String TEXT_217 = NL;
+ protected final String TEXT_218 = "\t\tinstallEditPolicy(";
+ protected final String TEXT_219 = ".COMPONENT_ROLE, new ";
+ protected final String TEXT_220 = "() {" + NL + "\t\t\tprotected ";
+ protected final String TEXT_221 = " createDeleteCommand(";
+ protected final String TEXT_222 = " deleteRequest) {" + NL + "\t\t\t\tfinal Edge edgeToRemove = getDiagramEdge();" + NL + "\t\t\t\tfinal View source = edgeToRemove.getSource();" + NL + "\t\t\t\tfinal View target = edgeToRemove.getTarget();" + NL + "\t\t\t\t";
+ protected final String TEXT_223 = " editingDomain = ";
+ protected final String TEXT_224 = ".getEditingDomain(getDiagramEdge().getDiagram().getElement());" + NL + "\t\t\t\t";
+ protected final String TEXT_225 = " cc = new ";
+ protected final String TEXT_226 = "();" + NL + "\t\t\t\tcc.append(createDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append(new ";
+ protected final String TEXT_227 = "(source.getDiagram(), edgeToRemove));" + NL + "\t\t\t\treturn new ";
+ protected final String TEXT_228 = "(editingDomain, cc);" + NL + "\t\t\t}";
+ protected final String TEXT_229 = NL;
+ protected final String TEXT_230 = NL + "\t\t\tprivate ";
+ protected final String TEXT_231 = " createDomainModelRemoveCommand(";
+ protected final String TEXT_232 = " editingDomain) {";
+ protected final String TEXT_233 = NL + "\t\t\t\t";
+ protected final String TEXT_234 = " result = new ";
+ protected final String TEXT_235 = "();";
+ protected final String TEXT_236 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_237 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_238 = ".getElement().eContainer(), ";
+ protected final String TEXT_239 = ".eINSTANCE.get";
+ protected final String TEXT_240 = "(), ";
+ protected final String TEXT_241 = ".getElement()));";
protected final String TEXT_242 = NL + "\t\t\t\tresult.append(";
protected final String TEXT_243 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
protected final String TEXT_244 = ".getElement().eContainer(), ";
protected final String TEXT_245 = ".eINSTANCE.get";
- protected final String TEXT_246 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_247 = ".getElement()));";
- protected final String TEXT_248 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_249 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_250 = ".getElement().eContainer(), ";
- protected final String TEXT_251 = ".eINSTANCE.get";
- protected final String TEXT_252 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_253 = ".UNSET_VALUE));";
- protected final String TEXT_254 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_255 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_256 = ".getElement(), ";
- protected final String TEXT_257 = ".eINSTANCE.get";
- protected final String TEXT_258 = "(), ";
- protected final String TEXT_259 = ".getSource().getElement()));";
- protected final String TEXT_260 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_261 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_262 = ".getElement(), ";
- protected final String TEXT_263 = ".eINSTANCE.get";
- protected final String TEXT_264 = "(), ";
- protected final String TEXT_265 = ".UNSET_VALUE));";
- protected final String TEXT_266 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_267 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_268 = ".getElement(), ";
- protected final String TEXT_269 = ".eINSTANCE.get";
- protected final String TEXT_270 = "(), ";
- protected final String TEXT_271 = ".getTarget().getElement()));";
- protected final String TEXT_272 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_273 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_274 = ".getElement(), ";
- protected final String TEXT_275 = ".eINSTANCE.get";
- protected final String TEXT_276 = "(), ";
- protected final String TEXT_277 = ".UNSET_VALUE));";
- protected final String TEXT_278 = NL + "\t\t\t\treturn result;";
- protected final String TEXT_279 = NL + "\t\t\t\treturn ";
- protected final String TEXT_280 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_281 = ".getSource().getElement(), ";
- protected final String TEXT_282 = ".eINSTANCE.get";
- protected final String TEXT_283 = "(), ";
- protected final String TEXT_284 = ".getTarget().getElement());";
- protected final String TEXT_285 = NL + "\t\t\t\treturn ";
- protected final String TEXT_286 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
- protected final String TEXT_287 = ".getSource().getElement(), ";
- protected final String TEXT_288 = ".eINSTANCE.get";
- protected final String TEXT_289 = "(), ";
- protected final String TEXT_290 = ".UNSET_VALUE);";
- protected final String TEXT_291 = NL + "\t\t\t}";
- protected final String TEXT_292 = NL + "\t\t});";
- protected final String TEXT_293 = NL;
- protected final String TEXT_294 = "\t\tinstallEditPolicy(";
- protected final String TEXT_295 = ".DIRECT_EDIT_ROLE," + NL + "\t\t\t\tnew ";
- protected final String TEXT_296 = "() {" + NL + "\t\t\t\t\tprotected void showCurrentEditValue(";
- protected final String TEXT_297 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tsetWidgetText(value);" + NL + "\t\t\t\t\t}";
- protected final String TEXT_298 = NL;
- protected final String TEXT_299 = "\t\t\t\t\tprotected ";
- protected final String TEXT_300 = " getDirectEditCommand(";
- protected final String TEXT_301 = " request) {";
- protected final String TEXT_302 = NL + "\t\t\t\t\t\treturn ";
- protected final String TEXT_303 = ".INSTANCE;";
- protected final String TEXT_304 = NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tif (value == null) {" + NL + "\t\t\t\t\t\t\t//Invalid value is transformed into a null by the validator." + NL + "\t\t\t\t\t\t\t//XXX: implement validator" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_305 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tfinal Object[] parseResult;";
- protected final String TEXT_306 = NL + "\t\t\t\t\t\tif (value.length() == 0) {" + NL + "\t\t\t\t\t\t\tparseResult = new Object[] { null };" + NL + "\t\t\t\t\t\t} else {";
- protected final String TEXT_307 = NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tparseResult = new ";
- protected final String TEXT_308 = "(";
- protected final String TEXT_309 = ").parse(value);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_310 = ".INSTANCE;" + NL + "\t\t\t\t\t\t} catch (";
- protected final String TEXT_311 = " e) {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_312 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_313 = NL + "\t\t\t\t\t\t}";
- protected final String TEXT_314 = NL + "\t\t\t\t\t\t";
- protected final String TEXT_315 = " editingDomain = ";
- protected final String TEXT_316 = ".getEditingDomain(";
- protected final String TEXT_317 = ".getDiagram().getElement());" + NL + "\t\t\t\t\t\tif (parseResult.length != ";
- protected final String TEXT_318 = ") {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_319 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_320 = " domainModelCommand = createDomainModelCommand(editingDomain, parseResult);" + NL + "\t\t\t\t\t\treturn new ";
- protected final String TEXT_321 = "(editingDomain, domainModelCommand);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t";
- protected final String TEXT_322 = " createDomainModelCommand(";
- protected final String TEXT_323 = " editingDomain, Object[] values) {" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_324 = " element = ";
- protected final String TEXT_325 = ";" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_326 = " result = new ";
- protected final String TEXT_327 = "();" + NL + "\t\t\t\t\t\tObject valueToSet;";
- protected final String TEXT_328 = NL + "\t\t\t\t\t\t";
- protected final String TEXT_329 = " ";
- protected final String TEXT_330 = "feature = (";
- protected final String TEXT_331 = ") ";
- protected final String TEXT_332 = ".eINSTANCE.get";
- protected final String TEXT_333 = "();" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tvalueToSet = ";
- protected final String TEXT_334 = ".parseValue(feature, values[";
- protected final String TEXT_335 = "]);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_336 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_337 = NL + "\t\t\t\t\t\t";
- protected final String TEXT_338 = " ";
- protected final String TEXT_339 = "values = new ";
- protected final String TEXT_340 = "();" + NL + "\t\t\t\t\t\tvalues.addAll(element.get";
- protected final String TEXT_341 = "());" + NL + "\t\t\t\t\t\tresult.append(";
- protected final String TEXT_342 = ".create(editingDomain, element, feature, values));" + NL + "\t\t\t\t\t\tif (valueToSet != null) {" + NL + "\t\t\t\t\t\t\tresult.append(";
- protected final String TEXT_343 = ".create(editingDomain, element, feature, valueToSet));" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_344 = NL + "\t\t\t\t\t\tresult.append(";
- protected final String TEXT_345 = ".create(editingDomain, element, feature, valueToSet == null ? ";
- protected final String TEXT_346 = ".UNSET_VALUE : valueToSet));";
- protected final String TEXT_347 = NL + "\t\t\t\t\t\treturn result;" + NL + "\t\t\t\t\t}";
- protected final String TEXT_348 = NL + "\t\t\t\t});";
- protected final String TEXT_349 = NL + "\t\t}" + NL;
- protected final String TEXT_350 = NL;
- protected final String TEXT_351 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_352 = " manager;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest(";
- protected final String TEXT_353 = " req) {" + NL + "\t\tif (";
- protected final String TEXT_354 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\tperformDirectEdit();" + NL + "\t\t} else {" + NL + "\t\t\tsuper.performRequest(req);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_355 = " getManager() {" + NL + "\t\tif (manager == null) {" + NL + "\t\t\tmanager = new ";
- protected final String TEXT_356 = "(this, ";
- protected final String TEXT_357 = ".class, new ";
- protected final String TEXT_358 = "() {" + NL + "\t\t\t\tpublic void relocate(";
- protected final String TEXT_359 = " celleditor) {" + NL + "\t\t\t\t\tif (checkTreeItem()) {" + NL + "\t\t\t\t\t\tcelleditor.getControl().setFont(((";
- protected final String TEXT_360 = ") getWidget()).getFont());" + NL + "\t\t\t\t\t\tcelleditor.getControl().setBounds(((";
- protected final String TEXT_361 = ") getWidget()).getBounds());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}) {" + NL + "\t\t\t\tprotected void initCellEditor() {" + NL + "\t\t\t\t\tgetCellEditor().setValue(getEditText());" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t}" + NL + "\t\treturn manager;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void performDirectEdit() {" + NL + "\t\tgetManager().show();" + NL + "\t}" + NL + "" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getEditText() {" + NL + "\t\t\t";
- protected final String TEXT_362 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelEditText();" + NL + "\t\t\t}" + NL + "\t\t\treturn \"\";" + NL + "\t\t}" + NL;
- protected final String TEXT_363 = NL;
- protected final String TEXT_364 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void activate() {" + NL + "\t\t\tsuper.activate();" + NL + "\t\t\tgetDiagramEdge().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void deactivate() {" + NL + "\t\t\tgetDiagramEdge().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\t\tsuper.deactivate();" + NL + "\t\t}" + NL;
- protected final String TEXT_365 = NL;
- protected final String TEXT_366 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_367 = " domainModelRefresher = new ";
- protected final String TEXT_368 = "(this);" + NL;
- protected final String TEXT_369 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createRefreshers() {" + NL + "\t\t\tsuper.createRefreshers();";
- protected final String TEXT_370 = NL + "\t\t\tRefresher labelRefresher = new Refresher() {" + NL + "\t\t\t\tpublic void refresh() {" + NL + "\t\t\t\t\trefreshVisuals();" + NL + "\t\t\t\t}" + NL + "\t\t\t};";
- protected final String TEXT_371 = NL + "\t\t\tregisterRefresher(";
- protected final String TEXT_372 = ".eINSTANCE.get";
- protected final String TEXT_373 = "(), labelRefresher);";
- protected final String TEXT_374 = NL + "\t\t\tregisterRefresher(";
- protected final String TEXT_375 = ".eINSTANCE.get";
- protected final String TEXT_376 = "(), labelRefresher);";
- protected final String TEXT_377 = NL + "\t\t}" + NL;
- protected final String TEXT_378 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getText() {" + NL + "\t\t\t";
- protected final String TEXT_379 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelText();" + NL + "\t\t\t}" + NL + "\t\t\treturn super.getText();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_380 = " getPrimaryLabelEditPart() {" + NL + "\t\t\tfor(";
- protected final String TEXT_381 = " it = getDiagramEdge().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
- protected final String TEXT_382 = " nextChild = (";
- protected final String TEXT_383 = ")it.next();" + NL + "\t\t\t\tif (";
- protected final String TEXT_384 = ".getVisualID(nextChild) == ";
- protected final String TEXT_385 = ".VISUAL_ID) {" + NL + "\t\t\t\t\treturn (";
- protected final String TEXT_386 = ") ";
- protected final String TEXT_387 = ".this.getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
- protected final String TEXT_388 = NL + NL + "\t\t/**" + NL + "\t\t * Since labels are not selectable edit parts, they are filtered from the overview as well." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_389 = " getModelChildren() {" + NL + "\t\t\treturn ";
- protected final String TEXT_390 = ".EMPTY_LIST;" + NL + "\t\t}" + NL + "\t}" + NL + "}";
- protected final String TEXT_391 = NL;
+ protected final String TEXT_246 = "(), ";
+ protected final String TEXT_247 = ".UNSET_VALUE));";
+ protected final String TEXT_248 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_249 = ".INSTANCE;";
+ protected final String TEXT_250 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_251 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_252 = ".getElement().eContainer(), ";
+ protected final String TEXT_253 = ".eINSTANCE.get";
+ protected final String TEXT_254 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_255 = ".getElement()));";
+ protected final String TEXT_256 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_257 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_258 = ".getElement().eContainer(), ";
+ protected final String TEXT_259 = ".eINSTANCE.get";
+ protected final String TEXT_260 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_261 = ".UNSET_VALUE));";
+ protected final String TEXT_262 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_263 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_264 = ".getElement(), ";
+ protected final String TEXT_265 = ".eINSTANCE.get";
+ protected final String TEXT_266 = "(), ";
+ protected final String TEXT_267 = ".getSource().getElement()));";
+ protected final String TEXT_268 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_269 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_270 = ".getElement(), ";
+ protected final String TEXT_271 = ".eINSTANCE.get";
+ protected final String TEXT_272 = "(), ";
+ protected final String TEXT_273 = ".UNSET_VALUE));";
+ protected final String TEXT_274 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_275 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_276 = ".getElement(), ";
+ protected final String TEXT_277 = ".eINSTANCE.get";
+ protected final String TEXT_278 = "(), ";
+ protected final String TEXT_279 = ".getTarget().getElement()));";
+ protected final String TEXT_280 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_281 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_282 = ".getElement(), ";
+ protected final String TEXT_283 = ".eINSTANCE.get";
+ protected final String TEXT_284 = "(), ";
+ protected final String TEXT_285 = ".UNSET_VALUE));";
+ protected final String TEXT_286 = NL + "\t\t\t\treturn result;";
+ protected final String TEXT_287 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_288 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_289 = ".getSource().getElement(), ";
+ protected final String TEXT_290 = ".eINSTANCE.get";
+ protected final String TEXT_291 = "(), ";
+ protected final String TEXT_292 = ".getTarget().getElement());";
+ protected final String TEXT_293 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_294 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t";
+ protected final String TEXT_295 = ".getSource().getElement(), ";
+ protected final String TEXT_296 = ".eINSTANCE.get";
+ protected final String TEXT_297 = "(), ";
+ protected final String TEXT_298 = ".UNSET_VALUE);";
+ protected final String TEXT_299 = NL + "\t\t\t}";
+ protected final String TEXT_300 = NL + "\t\t});";
+ protected final String TEXT_301 = NL;
+ protected final String TEXT_302 = "\t\tinstallEditPolicy(";
+ protected final String TEXT_303 = ".DIRECT_EDIT_ROLE," + NL + "\t\t\t\tnew ";
+ protected final String TEXT_304 = "() {" + NL + "\t\t\t\t\tprotected void showCurrentEditValue(";
+ protected final String TEXT_305 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tsetWidgetText(value);" + NL + "\t\t\t\t\t}";
+ protected final String TEXT_306 = NL;
+ protected final String TEXT_307 = "\t\t\t\t\tprotected ";
+ protected final String TEXT_308 = " getDirectEditCommand(";
+ protected final String TEXT_309 = " request) {";
+ protected final String TEXT_310 = NL + "\t\t\t\t\t\treturn ";
+ protected final String TEXT_311 = ".INSTANCE;";
+ protected final String TEXT_312 = NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tif (value == null) {" + NL + "\t\t\t\t\t\t\t//Invalid value is transformed into a null by the validator." + NL + "\t\t\t\t\t\t\t//XXX: implement validator" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_313 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tfinal Object[] parseResult;";
+ protected final String TEXT_314 = NL + "\t\t\t\t\t\tif (value.length() == 0) {" + NL + "\t\t\t\t\t\t\tparseResult = new Object[] { null };" + NL + "\t\t\t\t\t\t} else {";
+ protected final String TEXT_315 = NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tparseResult = new ";
+ protected final String TEXT_316 = "(";
+ protected final String TEXT_317 = ").parse(value);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_318 = ".INSTANCE;" + NL + "\t\t\t\t\t\t} catch (";
+ protected final String TEXT_319 = " e) {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_320 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_321 = NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_322 = NL + "\t\t\t\t\t\t";
+ protected final String TEXT_323 = " editingDomain = ";
+ protected final String TEXT_324 = ".getEditingDomain(";
+ protected final String TEXT_325 = ".getDiagram().getElement());" + NL + "\t\t\t\t\t\tif (parseResult.length != ";
+ protected final String TEXT_326 = ") {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_327 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_328 = " domainModelCommand = createDomainModelCommand(editingDomain, parseResult);" + NL + "\t\t\t\t\t\treturn new ";
+ protected final String TEXT_329 = "(editingDomain, domainModelCommand);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t";
+ protected final String TEXT_330 = " createDomainModelCommand(";
+ protected final String TEXT_331 = " editingDomain, Object[] values) {" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_332 = " element = ";
+ protected final String TEXT_333 = ";" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_334 = " result = new ";
+ protected final String TEXT_335 = "();" + NL + "\t\t\t\t\t\tObject valueToSet;";
+ protected final String TEXT_336 = NL + "\t\t\t\t\t\t";
+ protected final String TEXT_337 = " ";
+ protected final String TEXT_338 = "feature = (";
+ protected final String TEXT_339 = ") ";
+ protected final String TEXT_340 = ".eINSTANCE.get";
+ protected final String TEXT_341 = "();" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tvalueToSet = ";
+ protected final String TEXT_342 = ".parseValue(feature, values[";
+ protected final String TEXT_343 = "]);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_344 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_345 = NL + "\t\t\t\t\t\t";
+ protected final String TEXT_346 = " ";
+ protected final String TEXT_347 = "values = new ";
+ protected final String TEXT_348 = "();" + NL + "\t\t\t\t\t\tvalues.addAll(element.get";
+ protected final String TEXT_349 = "());" + NL + "\t\t\t\t\t\tresult.append(";
+ protected final String TEXT_350 = ".create(editingDomain, element, feature, values));" + NL + "\t\t\t\t\t\tif (valueToSet != null) {" + NL + "\t\t\t\t\t\t\tresult.append(";
+ protected final String TEXT_351 = ".create(editingDomain, element, feature, valueToSet));" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_352 = NL + "\t\t\t\t\t\tresult.append(";
+ protected final String TEXT_353 = ".create(editingDomain, element, feature, valueToSet == null ? ";
+ protected final String TEXT_354 = ".UNSET_VALUE : valueToSet));";
+ protected final String TEXT_355 = NL + "\t\t\t\t\t\treturn result;" + NL + "\t\t\t\t\t}";
+ protected final String TEXT_356 = NL + "\t\t\t\t});";
+ protected final String TEXT_357 = NL + "\t\t}" + NL;
+ protected final String TEXT_358 = NL;
+ protected final String TEXT_359 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_360 = " manager;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest(";
+ protected final String TEXT_361 = " req) {" + NL + "\t\tif (";
+ protected final String TEXT_362 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\tperformDirectEdit();" + NL + "\t\t} else {" + NL + "\t\t\tsuper.performRequest(req);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_363 = " getManager() {" + NL + "\t\tif (manager == null) {" + NL + "\t\t\tmanager = new ";
+ protected final String TEXT_364 = "(this, ";
+ protected final String TEXT_365 = ".class, new ";
+ protected final String TEXT_366 = "() {" + NL + "\t\t\t\tpublic void relocate(";
+ protected final String TEXT_367 = " celleditor) {" + NL + "\t\t\t\t\tif (checkTreeItem()) {" + NL + "\t\t\t\t\t\tcelleditor.getControl().setFont(((";
+ protected final String TEXT_368 = ") getWidget()).getFont());" + NL + "\t\t\t\t\t\tcelleditor.getControl().setBounds(((";
+ protected final String TEXT_369 = ") getWidget()).getBounds());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}) {" + NL + "\t\t\t\tprotected void initCellEditor() {" + NL + "\t\t\t\t\tgetCellEditor().setValue(getEditText());" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t}" + NL + "\t\treturn manager;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void performDirectEdit() {" + NL + "\t\tgetManager().show();" + NL + "\t}" + NL + "" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getEditText() {" + NL + "\t\t\t";
+ protected final String TEXT_370 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelEditText();" + NL + "\t\t\t}" + NL + "\t\t\treturn \"\";" + NL + "\t\t}" + NL;
+ protected final String TEXT_371 = NL;
+ protected final String TEXT_372 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void activate() {" + NL + "\t\t\tsuper.activate();" + NL + "\t\t\tgetDiagramEdge().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void deactivate() {" + NL + "\t\t\tgetDiagramEdge().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\t\tsuper.deactivate();" + NL + "\t\t}" + NL;
+ protected final String TEXT_373 = NL;
+ protected final String TEXT_374 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_375 = " domainModelRefresher = new ";
+ protected final String TEXT_376 = "(this);" + NL;
+ protected final String TEXT_377 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createRefreshers() {" + NL + "\t\t\tsuper.createRefreshers();";
+ protected final String TEXT_378 = NL + "\t\t\tRefresher labelRefresher = new Refresher() {" + NL + "\t\t\t\tpublic void refresh() {" + NL + "\t\t\t\t\trefreshVisuals();" + NL + "\t\t\t\t}" + NL + "\t\t\t};";
+ protected final String TEXT_379 = NL + "\t\t\tregisterRefresher(";
+ protected final String TEXT_380 = ".eINSTANCE.get";
+ protected final String TEXT_381 = "(), labelRefresher);";
+ protected final String TEXT_382 = NL + "\t\t\tregisterRefresher(";
+ protected final String TEXT_383 = ".eINSTANCE.get";
+ protected final String TEXT_384 = "(), labelRefresher);";
+ protected final String TEXT_385 = NL + "\t\t}" + NL;
+ protected final String TEXT_386 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getText() {" + NL + "\t\t\t";
+ protected final String TEXT_387 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelText();" + NL + "\t\t\t}" + NL + "\t\t\treturn super.getText();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_388 = " getPrimaryLabelEditPart() {" + NL + "\t\t\tfor(";
+ protected final String TEXT_389 = " it = getDiagramEdge().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
+ protected final String TEXT_390 = " nextChild = (";
+ protected final String TEXT_391 = ")it.next();" + NL + "\t\t\t\tif (";
+ protected final String TEXT_392 = ".getVisualID(nextChild) == ";
+ protected final String TEXT_393 = ".VISUAL_ID) {" + NL + "\t\t\t\t\treturn (";
+ protected final String TEXT_394 = ") ";
+ protected final String TEXT_395 = ".this.getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
+ protected final String TEXT_396 = NL + NL + "\t\t/**" + NL + "\t\t * Since labels are not selectable edit parts, they are filtered from the overview as well." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_397 = " getModelChildren() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_398 = ".EMPTY_LIST;" + NL + "\t\t}" + NL + "\t}" + NL + "}";
+ protected final String TEXT_399 = NL;
public String generate(Object argument)
{
@@ -440,34 +448,40 @@ importManager.markImportLocation(stringBuffer);
stringBuffer.append(TEXT_6);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart"));
stringBuffer.append(TEXT_7);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecoratableEditPart"));
+ stringBuffer.append(TEXT_8);
{
GenCommonBase genCommonBase = genLink;
- stringBuffer.append(TEXT_8);
stringBuffer.append(TEXT_9);
- stringBuffer.append(genCommonBase.getVisualID());
stringBuffer.append(TEXT_10);
- }
+ stringBuffer.append(genCommonBase.getVisualID());
stringBuffer.append(TEXT_11);
- stringBuffer.append(genLink.getEditPartClassName());
+ }
stringBuffer.append(TEXT_12);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecorationManager"));
stringBuffer.append(TEXT_13);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
+ stringBuffer.append(genLink.getEditPartClassName());
stringBuffer.append(TEXT_14);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_15);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
stringBuffer.append(TEXT_16);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
stringBuffer.append(TEXT_17);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
stringBuffer.append(TEXT_18);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecorationManager"));
stringBuffer.append(TEXT_19);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_20);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_21);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_22);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ stringBuffer.append(TEXT_23);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ stringBuffer.append(TEXT_24);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ stringBuffer.append(TEXT_25);
GenLinkLabel primaryLabel = null;
for(Iterator it = genLink.getLabels().iterator(); it.hasNext(); ) {
@@ -478,42 +492,42 @@ for(Iterator it = genLink.getLabels().iterator(); it.hasNext(); ) {
}
}
- stringBuffer.append(TEXT_23);
- stringBuffer.append(TEXT_24);
- stringBuffer.append(TEXT_25);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
stringBuffer.append(TEXT_26);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy"));
stringBuffer.append(TEXT_27);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_28);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
stringBuffer.append(TEXT_29);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy"));
stringBuffer.append(TEXT_30);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_31);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest"));
stringBuffer.append(TEXT_32);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
stringBuffer.append(TEXT_33);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.RemoveNotationalEdgeCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
stringBuffer.append(TEXT_34);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
stringBuffer.append(TEXT_35);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(TEXT_36);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.RemoveNotationalEdgeCommand"));
+ stringBuffer.append(TEXT_37);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
+ stringBuffer.append(TEXT_38);
{
String _edge = "getDiagramEdge()";
- stringBuffer.append(TEXT_36);
+ stringBuffer.append(TEXT_39);
//input: _edge : String
- stringBuffer.append(TEXT_37);
+ stringBuffer.append(TEXT_40);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_38);
+ stringBuffer.append(TEXT_41);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_39);
+ stringBuffer.append(TEXT_42);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet();
@@ -540,216 +554,216 @@ for(Iterator it = genLink.getLabels().iterator(); it.hasNext(); ) {
}
}
- stringBuffer.append(TEXT_40);
+ stringBuffer.append(TEXT_43);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_41);
+ stringBuffer.append(TEXT_44);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_42);
+ stringBuffer.append(TEXT_45);
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_43);
+ stringBuffer.append(TEXT_46);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_44);
+ stringBuffer.append(TEXT_47);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_45);
+ stringBuffer.append(TEXT_48);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_46);
+ stringBuffer.append(TEXT_49);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_47);
+ stringBuffer.append(TEXT_50);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_48);
+ stringBuffer.append(TEXT_51);
} else {
- stringBuffer.append(TEXT_49);
+ stringBuffer.append(TEXT_52);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_50);
+ stringBuffer.append(TEXT_53);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_51);
+ stringBuffer.append(TEXT_54);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_52);
+ stringBuffer.append(TEXT_55);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_53);
+ stringBuffer.append(TEXT_56);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_54);
+ stringBuffer.append(TEXT_57);
}
} else {
- stringBuffer.append(TEXT_55);
+ stringBuffer.append(TEXT_58);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand"));
- stringBuffer.append(TEXT_56);
+ stringBuffer.append(TEXT_59);
}
if (removeChild) {
if (childFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_57);
+ stringBuffer.append(TEXT_60);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_58);
+ stringBuffer.append(TEXT_61);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_59);
+ stringBuffer.append(TEXT_62);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_60);
+ stringBuffer.append(TEXT_63);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_61);
+ stringBuffer.append(TEXT_64);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_62);
+ stringBuffer.append(TEXT_65);
} else {
- stringBuffer.append(TEXT_63);
+ stringBuffer.append(TEXT_66);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_64);
+ stringBuffer.append(TEXT_67);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_65);
+ stringBuffer.append(TEXT_68);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_66);
+ stringBuffer.append(TEXT_69);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_67);
+ stringBuffer.append(TEXT_70);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_68);
+ stringBuffer.append(TEXT_71);
}
}
if (removeSource) {
if (sourceFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_69);
+ stringBuffer.append(TEXT_72);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_70);
+ stringBuffer.append(TEXT_73);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_71);
+ stringBuffer.append(TEXT_74);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_72);
+ stringBuffer.append(TEXT_75);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_73);
+ stringBuffer.append(TEXT_76);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_74);
+ stringBuffer.append(TEXT_77);
} else {
- stringBuffer.append(TEXT_75);
+ stringBuffer.append(TEXT_78);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_76);
+ stringBuffer.append(TEXT_79);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_77);
+ stringBuffer.append(TEXT_80);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_78);
+ stringBuffer.append(TEXT_81);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_79);
+ stringBuffer.append(TEXT_82);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_80);
+ stringBuffer.append(TEXT_83);
}
}
if (removeTarget) {
if (targetFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_81);
+ stringBuffer.append(TEXT_84);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_82);
+ stringBuffer.append(TEXT_85);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_83);
+ stringBuffer.append(TEXT_86);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_84);
+ stringBuffer.append(TEXT_87);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_85);
+ stringBuffer.append(TEXT_88);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_86);
+ stringBuffer.append(TEXT_89);
} else {
- stringBuffer.append(TEXT_87);
+ stringBuffer.append(TEXT_90);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_88);
+ stringBuffer.append(TEXT_91);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_89);
+ stringBuffer.append(TEXT_92);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_90);
+ stringBuffer.append(TEXT_93);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_91);
+ stringBuffer.append(TEXT_94);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_92);
+ stringBuffer.append(TEXT_95);
}
}
- stringBuffer.append(TEXT_93);
+ stringBuffer.append(TEXT_96);
} else if (genLink.getModelFacet() instanceof FeatureLinkModelFacet) {
GenFeature metaFeature = ((FeatureLinkModelFacet) genLink.getModelFacet()).getMetaFeature();
if (metaFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_94);
+ stringBuffer.append(TEXT_97);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_95);
+ stringBuffer.append(TEXT_98);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_96);
+ stringBuffer.append(TEXT_99);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_97);
+ stringBuffer.append(TEXT_100);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_98);
+ stringBuffer.append(TEXT_101);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_99);
+ stringBuffer.append(TEXT_102);
} else {
- stringBuffer.append(TEXT_100);
+ stringBuffer.append(TEXT_103);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_101);
+ stringBuffer.append(TEXT_104);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_102);
+ stringBuffer.append(TEXT_105);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_103);
+ stringBuffer.append(TEXT_106);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_104);
+ stringBuffer.append(TEXT_107);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_105);
+ stringBuffer.append(TEXT_108);
}
}
- stringBuffer.append(TEXT_106);
+ stringBuffer.append(TEXT_109);
} //local declarations
- stringBuffer.append(TEXT_107);
+ stringBuffer.append(TEXT_110);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_108);
+ stringBuffer.append(TEXT_111);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy"));
- stringBuffer.append(TEXT_109);
+ stringBuffer.append(TEXT_112);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_110);
+ stringBuffer.append(TEXT_113);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.policies.BendpointEditPolicy"));
- stringBuffer.append(TEXT_111);
+ stringBuffer.append(TEXT_114);
if (primaryLabel != null) {
- stringBuffer.append(TEXT_112);
+ stringBuffer.append(TEXT_115);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_113);
+ stringBuffer.append(TEXT_116);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.policies.DelegatingDirectEditPolicy"));
- stringBuffer.append(TEXT_114);
+ stringBuffer.append(TEXT_117);
}
{
GenCommonBase genCommonBase = genLink;
- stringBuffer.append(TEXT_115);
+ stringBuffer.append(TEXT_118);
for (CustomBehaviour behaviour : genCommonBase.getBehaviour(CustomBehaviour.class)) {
- stringBuffer.append(TEXT_116);
+ stringBuffer.append(TEXT_119);
stringBuffer.append(behaviour.getKey());
- stringBuffer.append(TEXT_117);
+ stringBuffer.append(TEXT_120);
stringBuffer.append(importManager.getImportedName(behaviour.getEditPolicyQualifiedClassName()));
- stringBuffer.append(TEXT_118);
+ stringBuffer.append(TEXT_121);
}
- stringBuffer.append(TEXT_119);
+ stringBuffer.append(TEXT_122);
{
List<OpenDiagramBehaviour> behaviours = genCommonBase.getBehaviour(OpenDiagramBehaviour.class);
@@ -757,67 +771,67 @@ for (CustomBehaviour behaviour : genCommonBase.getBehaviour(CustomBehaviour.clas
/*doesn't make sense to install more than one policy for the same role*/
OpenDiagramBehaviour next = behaviours.get(i);
- stringBuffer.append(TEXT_120);
+ stringBuffer.append(TEXT_123);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.policies.EditPolicyRoles"));
- stringBuffer.append(TEXT_121);
+ stringBuffer.append(TEXT_124);
if (i > 0) {
- stringBuffer.append(TEXT_122);
+ stringBuffer.append(TEXT_125);
stringBuffer.append(i+1);
- stringBuffer.append(TEXT_123);
+ stringBuffer.append(TEXT_126);
}
- stringBuffer.append(TEXT_124);
+ stringBuffer.append(TEXT_127);
stringBuffer.append(importManager.getImportedName(genCommonBase.getBehaviour(OpenDiagramBehaviour.class).get(0).getEditPolicyQualifiedClassName()));
- stringBuffer.append(TEXT_125);
+ stringBuffer.append(TEXT_128);
}
}
}
- stringBuffer.append(TEXT_126);
+ stringBuffer.append(TEXT_129);
if (primaryLabel != null) {
- stringBuffer.append(TEXT_127);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_128);
- stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_129);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_130);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
stringBuffer.append(TEXT_131);
- stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
stringBuffer.append(TEXT_132);
- stringBuffer.append(importManager.getImportedName(primaryLabel.getEditPartQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_133);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_134);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants"));
+ stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
stringBuffer.append(TEXT_135);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
+ stringBuffer.append(importManager.getImportedName(primaryLabel.getEditPartQualifiedClassName()));
stringBuffer.append(TEXT_136);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request"));
stringBuffer.append(TEXT_137);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants"));
stringBuffer.append(TEXT_138);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
stringBuffer.append(TEXT_139);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
stringBuffer.append(TEXT_140);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
stringBuffer.append(TEXT_141);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_142);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
stringBuffer.append(TEXT_143);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants"));
stringBuffer.append(TEXT_144);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_145);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
stringBuffer.append(TEXT_146);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
stringBuffer.append(TEXT_147);
- stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
stringBuffer.append(TEXT_148);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ stringBuffer.append(TEXT_149);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ stringBuffer.append(TEXT_150);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(TEXT_151);
for (Iterator it = genLink.getLabels().iterator(); it.hasNext(); ) {
GenLinkLabel genLabel = (GenLinkLabel) it.next();
@@ -825,60 +839,56 @@ if (primaryLabel != null) {
continue;
}
- stringBuffer.append(TEXT_149);
+ stringBuffer.append(TEXT_152);
stringBuffer.append(importManager.getImportedName(genLabel.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_150);
+ stringBuffer.append(TEXT_153);
}
- stringBuffer.append(TEXT_151);
+ stringBuffer.append(TEXT_154);
} //if (primaryLabel != null, i.e., there are editable labels)
- stringBuffer.append(TEXT_152);
- stringBuffer.append(TEXT_153);
- stringBuffer.append(TEXT_154);
- stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
stringBuffer.append(TEXT_155);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
stringBuffer.append(TEXT_156);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
stringBuffer.append(TEXT_157);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.TreeEditPart"));
+ stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
stringBuffer.append(TEXT_158);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
+ stringBuffer.append(TEXT_159);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
+ stringBuffer.append(TEXT_160);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.TreeEditPart"));
+ stringBuffer.append(TEXT_161);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
//Otherwise, there's no element associated with the element
- stringBuffer.append(TEXT_159);
- stringBuffer.append(TEXT_160);
- stringBuffer.append(TEXT_161);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
stringBuffer.append(TEXT_162);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
stringBuffer.append(TEXT_163);
-
-}
-
stringBuffer.append(TEXT_164);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
stringBuffer.append(TEXT_165);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
stringBuffer.append(TEXT_166);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
+
+}
+
stringBuffer.append(TEXT_167);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
stringBuffer.append(TEXT_168);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
stringBuffer.append(TEXT_169);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
stringBuffer.append(TEXT_170);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
stringBuffer.append(TEXT_171);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_172);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_173);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_174);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_175);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_176);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_177);
@@ -886,36 +896,50 @@ if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
stringBuffer.append(TEXT_179);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_180);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_181);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.RelativeBendpoints"));
stringBuffer.append(TEXT_182);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.RelativeBendpoints"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_183);
- stringBuffer.append(importManager.getImportedName("java.util.Collections"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_184);
- stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.RelativeBendpoints"));
stringBuffer.append(TEXT_185);
- stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.RelativeBendpoints"));
stringBuffer.append(TEXT_186);
- stringBuffer.append(importManager.getImportedName("java.util.ArrayList"));
+ stringBuffer.append(importManager.getImportedName("java.util.Collections"));
stringBuffer.append(TEXT_187);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint"));
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
stringBuffer.append(TEXT_188);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint"));
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
stringBuffer.append(TEXT_189);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.RelativeBendpoint"));
+ stringBuffer.append(importManager.getImportedName("java.util.ArrayList"));
stringBuffer.append(TEXT_190);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.RelativeBendpoint"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint"));
stringBuffer.append(TEXT_191);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint"));
stringBuffer.append(TEXT_192);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.RelativeBendpoint"));
stringBuffer.append(TEXT_193);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BendpointConnectionRouter"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.RelativeBendpoint"));
stringBuffer.append(TEXT_194);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension"));
stringBuffer.append(TEXT_195);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension"));
+ stringBuffer.append(TEXT_196);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BendpointConnectionRouter"));
+ stringBuffer.append(TEXT_197);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
+ stringBuffer.append(TEXT_198);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Connection"));
+ stringBuffer.append(TEXT_199);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecorationManager"));
+ stringBuffer.append(TEXT_200);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Connection"));
+ stringBuffer.append(TEXT_201);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.decorations.ConnectionDecorationManager"));
+ stringBuffer.append(TEXT_202);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Connection"));
+ stringBuffer.append(TEXT_203);
Viewmap viewmap = genLink.getViewmap();
if (viewmap instanceof FigureViewmap) {
@@ -925,78 +949,78 @@ if (viewmap instanceof FigureViewmap) {
figureQualifiedClassName = "org.eclipse.gmf.runtime.draw2d.PolylineConnection";
}
- stringBuffer.append(TEXT_196);
+ stringBuffer.append(TEXT_204);
stringBuffer.append(importManager.getImportedName(figureQualifiedClassName));
- stringBuffer.append(TEXT_197);
+ stringBuffer.append(TEXT_205);
} // instanceof FigureViewmap
else if (viewmap instanceof SnippetViewmap) {
- stringBuffer.append(TEXT_198);
+ stringBuffer.append(TEXT_206);
stringBuffer.append(((SnippetViewmap) viewmap).getBody());
- stringBuffer.append(TEXT_199);
+ stringBuffer.append(TEXT_207);
} // instanceof SnippetViewmap
else if (viewmap instanceof InnerClassViewmap) {
- stringBuffer.append(TEXT_200);
+ stringBuffer.append(TEXT_208);
stringBuffer.append(((InnerClassViewmap) viewmap).getClassName());
- stringBuffer.append(TEXT_201);
+ stringBuffer.append(TEXT_209);
}
- stringBuffer.append(TEXT_202);
+ stringBuffer.append(TEXT_210);
if (genLink.getViewmap() instanceof InnerClassViewmap) {
String classBody = ((InnerClassViewmap) genLink.getViewmap()).getClassBody();
- stringBuffer.append(TEXT_203);
+ stringBuffer.append(TEXT_211);
stringBuffer.append(classBody);
- stringBuffer.append(TEXT_204);
+ stringBuffer.append(TEXT_212);
if (classBody.indexOf("DPtoLP") != -1) {
- stringBuffer.append(TEXT_205);
+ stringBuffer.append(TEXT_213);
}
}
- stringBuffer.append(TEXT_206);
+ stringBuffer.append(TEXT_214);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.tree.BaseTreeEditPart"));
- stringBuffer.append(TEXT_207);
+ stringBuffer.append(TEXT_215);
stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName()));
- stringBuffer.append(TEXT_208);
- stringBuffer.append(TEXT_209);
- stringBuffer.append(TEXT_210);
+ stringBuffer.append(TEXT_216);
+ stringBuffer.append(TEXT_217);
+ stringBuffer.append(TEXT_218);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_211);
+ stringBuffer.append(TEXT_219);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy"));
- stringBuffer.append(TEXT_212);
+ stringBuffer.append(TEXT_220);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_213);
+ stringBuffer.append(TEXT_221);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest"));
- stringBuffer.append(TEXT_214);
+ stringBuffer.append(TEXT_222);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_215);
+ stringBuffer.append(TEXT_223);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_216);
+ stringBuffer.append(TEXT_224);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_217);
+ stringBuffer.append(TEXT_225);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_218);
+ stringBuffer.append(TEXT_226);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.RemoveNotationalEdgeCommand"));
- stringBuffer.append(TEXT_219);
+ stringBuffer.append(TEXT_227);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_220);
+ stringBuffer.append(TEXT_228);
{
String _edge = "getDiagramEdge()";
- stringBuffer.append(TEXT_221);
+ stringBuffer.append(TEXT_229);
//input: _edge : String
- stringBuffer.append(TEXT_222);
+ stringBuffer.append(TEXT_230);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_223);
+ stringBuffer.append(TEXT_231);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_224);
+ stringBuffer.append(TEXT_232);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet();
@@ -1023,184 +1047,184 @@ if (classBody.indexOf("DPtoLP") != -1) {
}
}
- stringBuffer.append(TEXT_225);
+ stringBuffer.append(TEXT_233);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_226);
+ stringBuffer.append(TEXT_234);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_227);
+ stringBuffer.append(TEXT_235);
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_228);
+ stringBuffer.append(TEXT_236);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_229);
+ stringBuffer.append(TEXT_237);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_230);
+ stringBuffer.append(TEXT_238);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_231);
+ stringBuffer.append(TEXT_239);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_232);
+ stringBuffer.append(TEXT_240);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_233);
+ stringBuffer.append(TEXT_241);
} else {
- stringBuffer.append(TEXT_234);
+ stringBuffer.append(TEXT_242);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_235);
+ stringBuffer.append(TEXT_243);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_236);
+ stringBuffer.append(TEXT_244);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_237);
+ stringBuffer.append(TEXT_245);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_238);
+ stringBuffer.append(TEXT_246);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_239);
+ stringBuffer.append(TEXT_247);
}
} else {
- stringBuffer.append(TEXT_240);
+ stringBuffer.append(TEXT_248);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand"));
- stringBuffer.append(TEXT_241);
+ stringBuffer.append(TEXT_249);
}
if (removeChild) {
if (childFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_242);
+ stringBuffer.append(TEXT_250);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_243);
+ stringBuffer.append(TEXT_251);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_244);
+ stringBuffer.append(TEXT_252);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_245);
+ stringBuffer.append(TEXT_253);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_246);
+ stringBuffer.append(TEXT_254);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_247);
+ stringBuffer.append(TEXT_255);
} else {
- stringBuffer.append(TEXT_248);
+ stringBuffer.append(TEXT_256);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_249);
+ stringBuffer.append(TEXT_257);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_250);
+ stringBuffer.append(TEXT_258);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_251);
+ stringBuffer.append(TEXT_259);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_252);
+ stringBuffer.append(TEXT_260);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_253);
+ stringBuffer.append(TEXT_261);
}
}
if (removeSource) {
if (sourceFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_254);
+ stringBuffer.append(TEXT_262);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_255);
+ stringBuffer.append(TEXT_263);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_256);
+ stringBuffer.append(TEXT_264);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_257);
+ stringBuffer.append(TEXT_265);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_258);
+ stringBuffer.append(TEXT_266);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_259);
+ stringBuffer.append(TEXT_267);
} else {
- stringBuffer.append(TEXT_260);
+ stringBuffer.append(TEXT_268);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_261);
+ stringBuffer.append(TEXT_269);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_262);
+ stringBuffer.append(TEXT_270);
stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_263);
+ stringBuffer.append(TEXT_271);
stringBuffer.append(sourceFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_264);
+ stringBuffer.append(TEXT_272);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_265);
+ stringBuffer.append(TEXT_273);
}
}
if (removeTarget) {
if (targetFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_266);
+ stringBuffer.append(TEXT_274);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_267);
+ stringBuffer.append(TEXT_275);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_268);
+ stringBuffer.append(TEXT_276);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_269);
+ stringBuffer.append(TEXT_277);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_270);
+ stringBuffer.append(TEXT_278);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_271);
+ stringBuffer.append(TEXT_279);
} else {
- stringBuffer.append(TEXT_272);
+ stringBuffer.append(TEXT_280);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_273);
+ stringBuffer.append(TEXT_281);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_274);
+ stringBuffer.append(TEXT_282);
stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_275);
+ stringBuffer.append(TEXT_283);
stringBuffer.append(targetFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_276);
+ stringBuffer.append(TEXT_284);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_277);
+ stringBuffer.append(TEXT_285);
}
}
- stringBuffer.append(TEXT_278);
+ stringBuffer.append(TEXT_286);
} else if (genLink.getModelFacet() instanceof FeatureLinkModelFacet) {
GenFeature metaFeature = ((FeatureLinkModelFacet) genLink.getModelFacet()).getMetaFeature();
if (metaFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_279);
+ stringBuffer.append(TEXT_287);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_280);
+ stringBuffer.append(TEXT_288);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_281);
+ stringBuffer.append(TEXT_289);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_282);
+ stringBuffer.append(TEXT_290);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_283);
+ stringBuffer.append(TEXT_291);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_284);
+ stringBuffer.append(TEXT_292);
} else {
- stringBuffer.append(TEXT_285);
+ stringBuffer.append(TEXT_293);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_286);
+ stringBuffer.append(TEXT_294);
stringBuffer.append(_edge);
- stringBuffer.append(TEXT_287);
+ stringBuffer.append(TEXT_295);
stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_288);
+ stringBuffer.append(TEXT_296);
stringBuffer.append(metaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_289);
+ stringBuffer.append(TEXT_297);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_290);
+ stringBuffer.append(TEXT_298);
}
}
- stringBuffer.append(TEXT_291);
+ stringBuffer.append(TEXT_299);
} //local declarations
- stringBuffer.append(TEXT_292);
+ stringBuffer.append(TEXT_300);
if (primaryLabel != null && genLink.getModelFacet() instanceof TypeLinkModelFacet) {
String editPatternCode = importManager.getImportedName(primaryLabel.getEditPartQualifiedClassName()) + ".EDIT_PATTERN";
@@ -1210,201 +1234,201 @@ if (primaryLabel != null && genLink.getModelFacet() instanceof TypeLinkModelFace
LabelModelFacet labelModelFacet = primaryLabel.getModelFacet();
GenClass underlyingMetaClass = typeLinkModelFacet.getMetaClass();
- stringBuffer.append(TEXT_293);
- stringBuffer.append(TEXT_294);
+ stringBuffer.append(TEXT_301);
+ stringBuffer.append(TEXT_302);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_295);
+ stringBuffer.append(TEXT_303);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy"));
- stringBuffer.append(TEXT_296);
+ stringBuffer.append(TEXT_304);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
- stringBuffer.append(TEXT_297);
- stringBuffer.append(TEXT_298);
- stringBuffer.append(TEXT_299);
+ stringBuffer.append(TEXT_305);
+ stringBuffer.append(TEXT_306);
+ stringBuffer.append(TEXT_307);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_300);
+ stringBuffer.append(TEXT_308);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
- stringBuffer.append(TEXT_301);
+ stringBuffer.append(TEXT_309);
if (labelModelFacet instanceof FeatureLabelModelFacet == false) {
- stringBuffer.append(TEXT_302);
+ stringBuffer.append(TEXT_310);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_303);
+ stringBuffer.append(TEXT_311);
} else {
FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet;
List metaFeatures = featureLabelModelFacet.getMetaFeatures();
- stringBuffer.append(TEXT_304);
+ stringBuffer.append(TEXT_312);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_305);
+ stringBuffer.append(TEXT_313);
if (metaFeatures.size() == 1 && String.class.equals(((GenFeature) metaFeatures.get(0)).getEcoreFeature().getEType().getInstanceClass())) {
- stringBuffer.append(TEXT_306);
+ stringBuffer.append(TEXT_314);
}
- stringBuffer.append(TEXT_307);
+ stringBuffer.append(TEXT_315);
stringBuffer.append(importManager.getImportedName("java.text.MessageFormat"));
- stringBuffer.append(TEXT_308);
+ stringBuffer.append(TEXT_316);
stringBuffer.append(editPatternCode);
- stringBuffer.append(TEXT_309);
+ stringBuffer.append(TEXT_317);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_310);
+ stringBuffer.append(TEXT_318);
stringBuffer.append(importManager.getImportedName("java.text.ParseException"));
- stringBuffer.append(TEXT_311);
+ stringBuffer.append(TEXT_319);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_312);
+ stringBuffer.append(TEXT_320);
if (metaFeatures.size() == 1 && String.class.equals(((GenFeature) metaFeatures.get(0)).getEcoreFeature().getEType().getInstanceClass())) {
- stringBuffer.append(TEXT_313);
+ stringBuffer.append(TEXT_321);
}
- stringBuffer.append(TEXT_314);
+ stringBuffer.append(TEXT_322);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_315);
+ stringBuffer.append(TEXT_323);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_316);
+ stringBuffer.append(TEXT_324);
stringBuffer.append(primaryView);
- stringBuffer.append(TEXT_317);
+ stringBuffer.append(TEXT_325);
stringBuffer.append(metaFeatures.size());
- stringBuffer.append(TEXT_318);
+ stringBuffer.append(TEXT_326);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_319);
+ stringBuffer.append(TEXT_327);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_320);
+ stringBuffer.append(TEXT_328);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_321);
+ stringBuffer.append(TEXT_329);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_322);
+ stringBuffer.append(TEXT_330);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_323);
+ stringBuffer.append(TEXT_331);
stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_324);
+ stringBuffer.append(TEXT_332);
stringBuffer.append(resolvedSemanticElement);
- stringBuffer.append(TEXT_325);
+ stringBuffer.append(TEXT_333);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_326);
+ stringBuffer.append(TEXT_334);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_327);
+ stringBuffer.append(TEXT_335);
boolean haveDeclaredValues = false;
for(int i = 0; i < metaFeatures.size(); i++) {
GenFeature nextFeatureToSet = (GenFeature) metaFeatures.get(i);
EStructuralFeature nextEcoreFeature = nextFeatureToSet.getEcoreFeature();
- stringBuffer.append(TEXT_328);
+ stringBuffer.append(TEXT_336);
if (i == 0) {
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute"));
- stringBuffer.append(TEXT_329);
+ stringBuffer.append(TEXT_337);
}
- stringBuffer.append(TEXT_330);
+ stringBuffer.append(TEXT_338);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute"));
- stringBuffer.append(TEXT_331);
+ stringBuffer.append(TEXT_339);
stringBuffer.append(importManager.getImportedName(nextFeatureToSet.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_332);
+ stringBuffer.append(TEXT_340);
stringBuffer.append(nextFeatureToSet.getFeatureAccessorName());
- stringBuffer.append(TEXT_333);
+ stringBuffer.append(TEXT_341);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil"));
- stringBuffer.append(TEXT_334);
+ stringBuffer.append(TEXT_342);
stringBuffer.append(i);
- stringBuffer.append(TEXT_335);
+ stringBuffer.append(TEXT_343);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand"));
- stringBuffer.append(TEXT_336);
+ stringBuffer.append(TEXT_344);
if (nextEcoreFeature.isMany()) {
- stringBuffer.append(TEXT_337);
+ stringBuffer.append(TEXT_345);
if (!haveDeclaredValues) { haveDeclaredValues = true;
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList"));
- stringBuffer.append(TEXT_338);
+ stringBuffer.append(TEXT_346);
}
- stringBuffer.append(TEXT_339);
+ stringBuffer.append(TEXT_347);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList"));
- stringBuffer.append(TEXT_340);
+ stringBuffer.append(TEXT_348);
stringBuffer.append(nextFeatureToSet.getAccessorName());
- stringBuffer.append(TEXT_341);
+ stringBuffer.append(TEXT_349);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_342);
+ stringBuffer.append(TEXT_350);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand"));
- stringBuffer.append(TEXT_343);
+ stringBuffer.append(TEXT_351);
} else {
- stringBuffer.append(TEXT_344);
+ stringBuffer.append(TEXT_352);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_345);
+ stringBuffer.append(TEXT_353);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_346);
+ stringBuffer.append(TEXT_354);
}
}
- stringBuffer.append(TEXT_347);
+ stringBuffer.append(TEXT_355);
}
- stringBuffer.append(TEXT_348);
+ stringBuffer.append(TEXT_356);
}
- stringBuffer.append(TEXT_349);
+ stringBuffer.append(TEXT_357);
if (primaryLabel != null && genLink.getModelFacet() instanceof TypeLinkModelFacet) {
- stringBuffer.append(TEXT_350);
- stringBuffer.append(TEXT_351);
+ stringBuffer.append(TEXT_358);
+ stringBuffer.append(TEXT_359);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager"));
- stringBuffer.append(TEXT_352);
+ stringBuffer.append(TEXT_360);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request"));
- stringBuffer.append(TEXT_353);
+ stringBuffer.append(TEXT_361);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants"));
- stringBuffer.append(TEXT_354);
+ stringBuffer.append(TEXT_362);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager"));
- stringBuffer.append(TEXT_355);
+ stringBuffer.append(TEXT_363);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager"));
- stringBuffer.append(TEXT_356);
+ stringBuffer.append(TEXT_364);
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TextCellEditor"));
- stringBuffer.append(TEXT_357);
+ stringBuffer.append(TEXT_365);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.CellEditorLocator"));
- stringBuffer.append(TEXT_358);
+ stringBuffer.append(TEXT_366);
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.CellEditor"));
- stringBuffer.append(TEXT_359);
+ stringBuffer.append(TEXT_367);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem"));
- stringBuffer.append(TEXT_360);
+ stringBuffer.append(TEXT_368);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem"));
- stringBuffer.append(TEXT_361);
+ stringBuffer.append(TEXT_369);
stringBuffer.append(importManager.getImportedName(primaryLabel.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_362);
+ stringBuffer.append(TEXT_370);
}
- stringBuffer.append(TEXT_363);
+ stringBuffer.append(TEXT_371);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet) {
//Otherwise, there's no element associated with the element
- stringBuffer.append(TEXT_364);
- stringBuffer.append(TEXT_365);
- stringBuffer.append(TEXT_366);
+ stringBuffer.append(TEXT_372);
+ stringBuffer.append(TEXT_373);
+ stringBuffer.append(TEXT_374);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
- stringBuffer.append(TEXT_367);
+ stringBuffer.append(TEXT_375);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
- stringBuffer.append(TEXT_368);
+ stringBuffer.append(TEXT_376);
}
- stringBuffer.append(TEXT_369);
+ stringBuffer.append(TEXT_377);
if (genLink.getModelFacet() instanceof TypeLinkModelFacet || primaryLabel != null) {
//Otherwise, an empty string will be returned, and it will not change no matter what.
- stringBuffer.append(TEXT_370);
+ stringBuffer.append(TEXT_378);
if (primaryLabel != null) {
LabelModelFacet labelModelFacet = primaryLabel.getModelFacet();
@@ -1413,11 +1437,11 @@ if (genLink.getModelFacet() instanceof TypeLinkModelFacet || primaryLabel != nul
for(Iterator it = featureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) {
GenFeature next = (GenFeature) it.next();
- stringBuffer.append(TEXT_371);
+ stringBuffer.append(TEXT_379);
stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_372);
+ stringBuffer.append(TEXT_380);
stringBuffer.append(next.getFeatureAccessorName());
- stringBuffer.append(TEXT_373);
+ stringBuffer.append(TEXT_381);
}
}
@@ -1427,49 +1451,49 @@ if (genLink.getModelFacet() instanceof TypeLinkModelFacet || primaryLabel != nul
for(Iterator it = labelNotifyFeatures.iterator(); it.hasNext(); ) {
GenFeature next = (GenFeature) it.next();
- stringBuffer.append(TEXT_374);
+ stringBuffer.append(TEXT_382);
stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_375);
+ stringBuffer.append(TEXT_383);
stringBuffer.append(next.getFeatureAccessorName());
- stringBuffer.append(TEXT_376);
+ stringBuffer.append(TEXT_384);
}
}
}
- stringBuffer.append(TEXT_377);
+ stringBuffer.append(TEXT_385);
if (primaryLabel != null) {
- stringBuffer.append(TEXT_378);
+ stringBuffer.append(TEXT_386);
stringBuffer.append(importManager.getImportedName(primaryLabel.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_379);
+ stringBuffer.append(TEXT_387);
stringBuffer.append(importManager.getImportedName(primaryLabel.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_380);
+ stringBuffer.append(TEXT_388);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_381);
+ stringBuffer.append(TEXT_389);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_382);
+ stringBuffer.append(TEXT_390);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_383);
+ stringBuffer.append(TEXT_391);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_384);
+ stringBuffer.append(TEXT_392);
stringBuffer.append(importManager.getImportedName(primaryLabel.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_385);
+ stringBuffer.append(TEXT_393);
stringBuffer.append(importManager.getImportedName(primaryLabel.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_386);
+ stringBuffer.append(TEXT_394);
stringBuffer.append(genLink.getEditPartClassName());
- stringBuffer.append(TEXT_387);
+ stringBuffer.append(TEXT_395);
}
- stringBuffer.append(TEXT_388);
+ stringBuffer.append(TEXT_396);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_389);
+ stringBuffer.append(TEXT_397);
stringBuffer.append(importManager.getImportedName("java.util.Collections"));
- stringBuffer.append(TEXT_390);
+ stringBuffer.append(TEXT_398);
importManager.emitSortedImports();
- stringBuffer.append(TEXT_391);
+ stringBuffer.append(TEXT_399);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java
index e20e99d3b..a2f77e273 100644
--- a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java
+++ b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java
@@ -45,1145 +45,1141 @@ public class NodeEditPartGenerator
protected final String TEXT_24 = " extends ";
protected final String TEXT_25 = " implements ";
protected final String TEXT_26 = ", ";
- protected final String TEXT_27 = " {";
- protected final String TEXT_28 = NL;
- protected final String TEXT_29 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final int VISUAL_ID = ";
- protected final String TEXT_30 = ";";
- protected final String TEXT_31 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_32 = " contentPane;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_33 = " primaryShape;" + NL;
- protected final String TEXT_34 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_35 = " childNodesPane;";
- protected final String TEXT_36 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_37 = "(";
- protected final String TEXT_38 = " model) {" + NL + "\t\tassert model instanceof ";
- protected final String TEXT_39 = ";" + NL + "\t\tsetModel(model);" + NL + "\t}" + NL;
- protected final String TEXT_40 = NL;
- protected final String TEXT_41 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void registerModel() {" + NL + "\t\tsuper.registerModel();" + NL + "\t\t";
- protected final String TEXT_42 = " view = (";
- protected final String TEXT_43 = ") getModel();" + NL + "\t\tif (view != null && view.isSetElement() && view.getElement() != null) {" + NL + "\t\t\tgetViewer().getEditPartRegistry().put(view.getElement(), this);\t" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void unregisterModel() {" + NL + "\t\tsuper.unregisterModel();" + NL + "\t\t";
+ protected final String TEXT_27 = ", ";
+ protected final String TEXT_28 = " {";
+ protected final String TEXT_29 = NL;
+ protected final String TEXT_30 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final int VISUAL_ID = ";
+ protected final String TEXT_31 = ";";
+ protected final String TEXT_32 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_33 = " contentPane;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_34 = " primaryShape;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_35 = " myDecorationManager;" + NL;
+ protected final String TEXT_36 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_37 = " childNodesPane;";
+ protected final String TEXT_38 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_39 = "(";
+ protected final String TEXT_40 = " model) {" + NL + "\t\tassert model instanceof ";
+ protected final String TEXT_41 = ";" + NL + "\t\tsetModel(model);" + NL + "\t}" + NL;
+ protected final String TEXT_42 = NL;
+ protected final String TEXT_43 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void registerModel() {" + NL + "\t\tsuper.registerModel();" + NL + "\t\t";
protected final String TEXT_44 = " view = (";
- protected final String TEXT_45 = ") getModel();" + NL + "\t\tif (view != null && view.isSetElement() && view.getElement() != null && getViewer().getEditPartRegistry().get(view.getElement()) == this) {" + NL + "\t\t\tgetViewer().getEditPartRegistry().remove(view.getElement());" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void createEditPolicies() {";
- protected final String TEXT_46 = NL;
- protected final String TEXT_47 = "\t\tinstallEditPolicy(";
- protected final String TEXT_48 = ".COMPONENT_ROLE, new ";
- protected final String TEXT_49 = "() {" + NL + "\t\t\tprotected ";
- protected final String TEXT_50 = " createDeleteCommand(";
- protected final String TEXT_51 = " deleteRequest) {" + NL + "\t\t\t\t";
- protected final String TEXT_52 = " editingDomain = ";
- protected final String TEXT_53 = ".getEditingDomain(getDiagramNode().getDiagram().getElement());" + NL + "\t\t\t\t";
- protected final String TEXT_54 = " cc = new ";
- protected final String TEXT_55 = "();" + NL + "\t\t\t\tcc.append(getDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append(new ";
- protected final String TEXT_56 = "((";
- protected final String TEXT_57 = ") getDiagramNode().eContainer(), getDiagramNode()));" + NL + "\t\t\t\treturn new ";
- protected final String TEXT_58 = "(editingDomain, cc);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprivate org.eclipse.emf.common.command.Command getDomainModelRemoveCommand(";
- protected final String TEXT_59 = " editingDomain) {";
- protected final String TEXT_60 = NL + "\t\t\t\t";
- protected final String TEXT_61 = " result = new ";
- protected final String TEXT_62 = "();";
- protected final String TEXT_63 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_64 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_65 = ".eINSTANCE.get";
- protected final String TEXT_66 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
- protected final String TEXT_67 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_68 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_69 = ".eINSTANCE.get";
- protected final String TEXT_70 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_71 = ".UNSET_VALUE));";
- protected final String TEXT_72 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_73 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_74 = ".eINSTANCE.get";
- protected final String TEXT_75 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
- protected final String TEXT_76 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_77 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_78 = ".eINSTANCE.get";
- protected final String TEXT_79 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_80 = ".UNSET_VALUE));";
- protected final String TEXT_81 = NL + "\t\t\t\treturn result;";
- protected final String TEXT_82 = NL + "\t\t\t\treturn ";
- protected final String TEXT_83 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_84 = ".eINSTANCE.get";
- protected final String TEXT_85 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement());";
- protected final String TEXT_86 = NL + "\t\t\t\treturn ";
- protected final String TEXT_87 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_88 = ".eINSTANCE.get";
- protected final String TEXT_89 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_90 = ".UNSET_VALUE);";
- protected final String TEXT_91 = NL + "\t\t\t}" + NL + "\t\t});";
- protected final String TEXT_92 = NL + "\t\tinstallEditPolicy(";
- protected final String TEXT_93 = ".LAYOUT_ROLE, new ";
- protected final String TEXT_94 = "() {";
- protected final String TEXT_95 = NL;
- protected final String TEXT_96 = NL + "protected Command createAddCommand(final ";
- protected final String TEXT_97 = " child, final Object constraint) {" + NL + "\tif (child.getModel() instanceof ";
- protected final String TEXT_98 = ") {" + NL + "\t\tfinal ";
- protected final String TEXT_99 = " childNode = (";
- protected final String TEXT_100 = ") child.getModel();" + NL + "\t\tfinal ";
- protected final String TEXT_101 = " editingDomain = ";
- protected final String TEXT_102 = ".getEditingDomain(childNode.getDiagram().getElement());" + NL + "\t\tString modelID = ";
- protected final String TEXT_103 = ".getModelID(childNode);" + NL + "\t\tif (";
- protected final String TEXT_104 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\tfinal int visualID = ";
- protected final String TEXT_105 = ".getVisualID(childNode);" + NL + "\t\t\tfinal int newVisualID = ";
- protected final String TEXT_106 = ".INSTANCE.getNodeVisualID(";
- protected final String TEXT_107 = ", childNode.getElement());" + NL + "\t\t\t";
- protected final String TEXT_108 = " command = null;" + NL + "\t\t\tswitch (newVisualID) {";
- protected final String TEXT_109 = NL + "\t\t\tcase ";
- protected final String TEXT_110 = ".VISUAL_ID:" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_111 = " result = new ";
- protected final String TEXT_112 = "();" + NL + "\t\t\t\t\t";
- protected final String TEXT_113 = " element = childNode.getElement();";
- protected final String TEXT_114 = NL + "\t\t\t\t\tswitch (visualID) {";
- protected final String TEXT_115 = NL + "\t\t\t\t\tcase ";
- protected final String TEXT_116 = ".VISUAL_ID:";
- protected final String TEXT_117 = NL + "\t\t\t\t\tresult.append(";
- protected final String TEXT_118 = ".create(" + NL + "\t\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\t\telement.eContainer(), ";
- protected final String TEXT_119 = ".eINSTANCE.get";
- protected final String TEXT_120 = "()," + NL + "\t\t\t\t\t\telement));";
- protected final String TEXT_121 = NL + "\t\t\t\t\tresult.append(";
- protected final String TEXT_122 = ".create(" + NL + "\t\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\t\telement.eContainer(), ";
- protected final String TEXT_123 = ".eINSTANCE.get";
- protected final String TEXT_124 = "()," + NL + "\t\t\t\t\t\t";
- protected final String TEXT_125 = ".UNSET_VALUE));";
- protected final String TEXT_126 = NL + "\t\t\t\t\tresult.append(";
- protected final String TEXT_127 = ".create(" + NL + "\t\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\t\telement.eContainer(), ";
- protected final String TEXT_128 = ".eINSTANCE.get";
- protected final String TEXT_129 = "()," + NL + "\t\t\t\t\t\telement));";
- protected final String TEXT_130 = NL + "\t\t\t\t\tresult.append(";
- protected final String TEXT_131 = ".create(" + NL + "\t\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\t\telement.eContainer(), ";
- protected final String TEXT_132 = ".eINSTANCE.get";
- protected final String TEXT_133 = "()," + NL + "\t\t\t\t\t\t";
- protected final String TEXT_134 = ".UNSET_VALUE));";
- protected final String TEXT_135 = NL + "\t\t\t\t\tbreak;";
- protected final String TEXT_136 = NL + "\t\t\t\t\t}\t";
- protected final String TEXT_137 = NL;
- protected final String TEXT_138 = NL + "\t\tif (";
- protected final String TEXT_139 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_140 = NL + "\t\t}";
- protected final String TEXT_141 = NL + "\t\tif (";
- protected final String TEXT_142 = ".size() >= ";
- protected final String TEXT_143 = ".eINSTANCE.get";
- protected final String TEXT_144 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_145 = NL + "\t\t}";
- protected final String TEXT_146 = NL + "\t\t\t\t\tresult.append(";
- protected final String TEXT_147 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t";
- protected final String TEXT_148 = ".getElement(), ";
- protected final String TEXT_149 = ".eINSTANCE.get";
- protected final String TEXT_150 = "(), element));";
- protected final String TEXT_151 = NL;
- protected final String TEXT_152 = NL + "\t\tif (";
- protected final String TEXT_153 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_154 = NL + "\t\t}";
- protected final String TEXT_155 = NL + "\t\tif (";
- protected final String TEXT_156 = ".size() >= ";
- protected final String TEXT_157 = ".eINSTANCE.get";
- protected final String TEXT_158 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_159 = NL + "\t\t}";
- protected final String TEXT_160 = NL + "\t\t\t\t\tresult.append(";
- protected final String TEXT_161 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t";
- protected final String TEXT_162 = ".getElement(), ";
- protected final String TEXT_163 = ".eINSTANCE.get";
- protected final String TEXT_164 = "(), element));";
- protected final String TEXT_165 = NL + "\t\t\t\t\tresult.append(";
- protected final String TEXT_166 = ".create(editingDomain, childNode.eContainer(), childNode.eContainmentFeature(), childNode));" + NL + "\t\t\t\t\tif (newVisualID == visualID) {" + NL + "\t\t\t\t\t\tresult.append(new ";
- protected final String TEXT_167 = "(";
- protected final String TEXT_168 = "));" + NL + "\t\t\t\t\t\tresult.append(";
- protected final String TEXT_169 = ".create(editingDomain, ";
- protected final String TEXT_170 = ", ";
- protected final String TEXT_171 = ".eINSTANCE.getView_PersistedChildren(), childNode));" + NL + "\t\t\t\t\t\tresult.append(new ";
- protected final String TEXT_172 = "(childNode, ";
- protected final String TEXT_173 = "null";
- protected final String TEXT_174 = "(";
- protected final String TEXT_175 = ") constraint";
- protected final String TEXT_176 = "));" + NL + "\t\t\t\t\t} else {";
- protected final String TEXT_177 = NL + "\t\t\t\t\t\tresult.append(new ";
- protected final String TEXT_178 = "(";
- protected final String TEXT_179 = ", element, ";
- protected final String TEXT_180 = "null";
- protected final String TEXT_181 = "((";
- protected final String TEXT_182 = ") constraint).getCopy().union(new ";
- protected final String TEXT_183 = "(";
- protected final String TEXT_184 = ", ";
- protected final String TEXT_185 = "))";
+ protected final String TEXT_45 = ") getModel();" + NL + "\t\tif (view != null && view.isSetElement() && view.getElement() != null) {" + NL + "\t\t\tgetViewer().getEditPartRegistry().put(view.getElement(), this);\t" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void unregisterModel() {" + NL + "\t\tsuper.unregisterModel();" + NL + "\t\t";
+ protected final String TEXT_46 = " view = (";
+ protected final String TEXT_47 = ") getModel();" + NL + "\t\tif (view != null && view.isSetElement() && view.getElement() != null && getViewer().getEditPartRegistry().get(view.getElement()) == this) {" + NL + "\t\t\tgetViewer().getEditPartRegistry().remove(view.getElement());" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void createEditPolicies() {";
+ protected final String TEXT_48 = NL;
+ protected final String TEXT_49 = "\t\tinstallEditPolicy(";
+ protected final String TEXT_50 = ".COMPONENT_ROLE, new ";
+ protected final String TEXT_51 = "() {" + NL + "\t\t\tprotected ";
+ protected final String TEXT_52 = " createDeleteCommand(";
+ protected final String TEXT_53 = " deleteRequest) {" + NL + "\t\t\t\t";
+ protected final String TEXT_54 = " editingDomain = ";
+ protected final String TEXT_55 = ".getEditingDomain(getDiagramNode().getDiagram().getElement());" + NL + "\t\t\t\t";
+ protected final String TEXT_56 = " cc = new ";
+ protected final String TEXT_57 = "();" + NL + "\t\t\t\tcc.append(getDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append(new ";
+ protected final String TEXT_58 = "((";
+ protected final String TEXT_59 = ") getDiagramNode().eContainer(), getDiagramNode()));" + NL + "\t\t\t\treturn new ";
+ protected final String TEXT_60 = "(editingDomain, cc);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprivate org.eclipse.emf.common.command.Command getDomainModelRemoveCommand(";
+ protected final String TEXT_61 = " editingDomain) {";
+ protected final String TEXT_62 = NL + "\t\t\t\t";
+ protected final String TEXT_63 = " result = new ";
+ protected final String TEXT_64 = "();";
+ protected final String TEXT_65 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_66 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_67 = ".eINSTANCE.get";
+ protected final String TEXT_68 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
+ protected final String TEXT_69 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_70 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_71 = ".eINSTANCE.get";
+ protected final String TEXT_72 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_73 = ".UNSET_VALUE));";
+ protected final String TEXT_74 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_75 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_76 = ".eINSTANCE.get";
+ protected final String TEXT_77 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
+ protected final String TEXT_78 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_79 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_80 = ".eINSTANCE.get";
+ protected final String TEXT_81 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_82 = ".UNSET_VALUE));";
+ protected final String TEXT_83 = NL + "\t\t\t\treturn result;";
+ protected final String TEXT_84 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_85 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_86 = ".eINSTANCE.get";
+ protected final String TEXT_87 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement());";
+ protected final String TEXT_88 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_89 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_90 = ".eINSTANCE.get";
+ protected final String TEXT_91 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_92 = ".UNSET_VALUE);";
+ protected final String TEXT_93 = NL + "\t\t\t}" + NL + "\t\t});";
+ protected final String TEXT_94 = NL + "\t\tinstallEditPolicy(";
+ protected final String TEXT_95 = ".LAYOUT_ROLE, new ";
+ protected final String TEXT_96 = "() {";
+ protected final String TEXT_97 = NL;
+ protected final String TEXT_98 = NL + "protected Command createAddCommand(final ";
+ protected final String TEXT_99 = " child, final Object constraint) {" + NL + "\tif (child.getModel() instanceof ";
+ protected final String TEXT_100 = ") {" + NL + "\t\tfinal ";
+ protected final String TEXT_101 = " childNode = (";
+ protected final String TEXT_102 = ") child.getModel();" + NL + "\t\tfinal ";
+ protected final String TEXT_103 = " editingDomain = ";
+ protected final String TEXT_104 = ".getEditingDomain(childNode.getDiagram().getElement());" + NL + "\t\tString modelID = ";
+ protected final String TEXT_105 = ".getModelID(childNode);" + NL + "\t\tif (";
+ protected final String TEXT_106 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\tfinal int visualID = ";
+ protected final String TEXT_107 = ".getVisualID(childNode);" + NL + "\t\t\tfinal int newVisualID = ";
+ protected final String TEXT_108 = ".INSTANCE.getNodeVisualID(";
+ protected final String TEXT_109 = ", childNode.getElement());" + NL + "\t\t\t";
+ protected final String TEXT_110 = " command = null;" + NL + "\t\t\tswitch (newVisualID) {";
+ protected final String TEXT_111 = NL + "\t\t\tcase ";
+ protected final String TEXT_112 = ".VISUAL_ID:" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
+ protected final String TEXT_113 = " result = new ";
+ protected final String TEXT_114 = "();" + NL + "\t\t\t\t\t";
+ protected final String TEXT_115 = " element = childNode.getElement();";
+ protected final String TEXT_116 = NL + "\t\t\t\t\tswitch (visualID) {";
+ protected final String TEXT_117 = NL + "\t\t\t\t\tcase ";
+ protected final String TEXT_118 = ".VISUAL_ID:";
+ protected final String TEXT_119 = NL + "\t\t\t\t\tresult.append(";
+ protected final String TEXT_120 = ".create(" + NL + "\t\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\t\telement.eContainer(), ";
+ protected final String TEXT_121 = ".eINSTANCE.get";
+ protected final String TEXT_122 = "()," + NL + "\t\t\t\t\t\telement));";
+ protected final String TEXT_123 = NL + "\t\t\t\t\tresult.append(";
+ protected final String TEXT_124 = ".create(" + NL + "\t\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\t\telement.eContainer(), ";
+ protected final String TEXT_125 = ".eINSTANCE.get";
+ protected final String TEXT_126 = "()," + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_127 = ".UNSET_VALUE));";
+ protected final String TEXT_128 = NL + "\t\t\t\t\tresult.append(";
+ protected final String TEXT_129 = ".create(" + NL + "\t\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\t\telement.eContainer(), ";
+ protected final String TEXT_130 = ".eINSTANCE.get";
+ protected final String TEXT_131 = "()," + NL + "\t\t\t\t\t\telement));";
+ protected final String TEXT_132 = NL + "\t\t\t\t\tresult.append(";
+ protected final String TEXT_133 = ".create(" + NL + "\t\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\t\telement.eContainer(), ";
+ protected final String TEXT_134 = ".eINSTANCE.get";
+ protected final String TEXT_135 = "()," + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_136 = ".UNSET_VALUE));";
+ protected final String TEXT_137 = NL + "\t\t\t\t\tbreak;";
+ protected final String TEXT_138 = NL + "\t\t\t\t\t}\t";
+ protected final String TEXT_139 = NL;
+ protected final String TEXT_140 = NL + "\t\tif (";
+ protected final String TEXT_141 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_142 = NL + "\t\t}";
+ protected final String TEXT_143 = NL + "\t\tif (";
+ protected final String TEXT_144 = ".size() >= ";
+ protected final String TEXT_145 = ".eINSTANCE.get";
+ protected final String TEXT_146 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_147 = NL + "\t\t}";
+ protected final String TEXT_148 = NL + "\t\t\t\t\tresult.append(";
+ protected final String TEXT_149 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_150 = ".getElement(), ";
+ protected final String TEXT_151 = ".eINSTANCE.get";
+ protected final String TEXT_152 = "(), element));";
+ protected final String TEXT_153 = NL;
+ protected final String TEXT_154 = NL + "\t\tif (";
+ protected final String TEXT_155 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_156 = NL + "\t\t}";
+ protected final String TEXT_157 = NL + "\t\tif (";
+ protected final String TEXT_158 = ".size() >= ";
+ protected final String TEXT_159 = ".eINSTANCE.get";
+ protected final String TEXT_160 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_161 = NL + "\t\t}";
+ protected final String TEXT_162 = NL + "\t\t\t\t\tresult.append(";
+ protected final String TEXT_163 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_164 = ".getElement(), ";
+ protected final String TEXT_165 = ".eINSTANCE.get";
+ protected final String TEXT_166 = "(), element));";
+ protected final String TEXT_167 = NL + "\t\t\t\t\tresult.append(";
+ protected final String TEXT_168 = ".create(editingDomain, childNode.eContainer(), childNode.eContainmentFeature(), childNode));" + NL + "\t\t\t\t\tif (newVisualID == visualID) {" + NL + "\t\t\t\t\t\tresult.append(new ";
+ protected final String TEXT_169 = "(";
+ protected final String TEXT_170 = "));" + NL + "\t\t\t\t\t\tresult.append(";
+ protected final String TEXT_171 = ".create(editingDomain, ";
+ protected final String TEXT_172 = ", ";
+ protected final String TEXT_173 = ".eINSTANCE.getView_PersistedChildren(), childNode));" + NL + "\t\t\t\t\t\tresult.append(new ";
+ protected final String TEXT_174 = "(childNode, ";
+ protected final String TEXT_175 = "null";
+ protected final String TEXT_176 = "(";
+ protected final String TEXT_177 = ") constraint";
+ protected final String TEXT_178 = "));" + NL + "\t\t\t\t\t} else {";
+ protected final String TEXT_179 = NL + "\t\t\t\t\t\tresult.append(new ";
+ protected final String TEXT_180 = "(";
+ protected final String TEXT_181 = ", element, ";
+ protected final String TEXT_182 = "null";
+ protected final String TEXT_183 = "((";
+ protected final String TEXT_184 = ") constraint).getCopy().union(new ";
+ protected final String TEXT_185 = "(";
protected final String TEXT_186 = ", ";
- protected final String TEXT_187 = ".INSTANCE));";
- protected final String TEXT_188 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcommand = result;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;";
- protected final String TEXT_189 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new ";
- protected final String TEXT_190 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn ";
- protected final String TEXT_191 = ".INSTANCE;" + NL + "}";
- protected final String TEXT_192 = NL;
- protected final String TEXT_193 = NL + "protected ";
- protected final String TEXT_194 = " getCloneCommand(";
- protected final String TEXT_195 = " request) {" + NL + "\t";
- protected final String TEXT_196 = " editParts = request.getEditParts();" + NL + "\t";
- protected final String TEXT_197 = " command = new ";
- protected final String TEXT_198 = "();" + NL + "\tcommand.setDebugLabel(\"Clone in ConstrainedLayoutEditPolicy\");//$NON-NLS-1$" + NL + "\t";
- protected final String TEXT_199 = " childPart;" + NL + "\t";
- protected final String TEXT_200 = " r;" + NL + "\tObject constraint;" + NL + "" + NL + "\tfor (int i = 0; i < editParts.size(); i++) {" + NL + "\t\tchildPart = (";
- protected final String TEXT_201 = ")editParts.get(i);" + NL + "\t\tr = childPart.getFigure().getBounds().getCopy();" + NL + "\t\t//convert r to absolute from childpart figure" + NL + "\t\tchildPart.getFigure().translateToAbsolute(r);" + NL + "\t\tr = request.getTransformedRectangle(r);" + NL + "\t\t//convert this figure to relative " + NL + "\t\tgetLayoutContainer().translateToRelative(r);" + NL + "\t\tgetLayoutContainer().translateFromParent(r);" + NL + "\t\tr.translate(getLayoutOrigin().getNegated());" + NL + "\t\tconstraint = getConstraintFor(r);" + NL + "\t\tcommand.add(createCloneCommand(childPart," + NL + "\t\t\ttranslateToModelConstraint(constraint)));" + NL + "\t}" + NL + "\treturn command.unwrap();" + NL + "}" + NL + "protected ";
- protected final String TEXT_202 = " createCloneCommand(final ";
- protected final String TEXT_203 = " child, final Object constraint) {" + NL + "\tif (child.getModel() instanceof ";
- protected final String TEXT_204 = ") {" + NL + "\t\tfinal ";
- protected final String TEXT_205 = " childNode = (";
- protected final String TEXT_206 = ") child.getModel();" + NL + "\t\tfinal ";
- protected final String TEXT_207 = " editingDomain = ";
- protected final String TEXT_208 = ".getEditingDomain(childNode.getDiagram().getElement());" + NL + "\t\tString modelID = ";
- protected final String TEXT_209 = ".getModelID(childNode);" + NL + "\t\tif (";
- protected final String TEXT_210 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\tfinal int newVisualID = ";
- protected final String TEXT_211 = ".INSTANCE.getNodeVisualID(";
- protected final String TEXT_212 = ", childNode.getElement());" + NL + "\t\t\t";
- protected final String TEXT_213 = " command = null;" + NL + "\t\t\tswitch (newVisualID) {";
- protected final String TEXT_214 = NL + "\t\t\tcase ";
- protected final String TEXT_215 = ".VISUAL_ID:" + NL + "\t\t\t\tcommand = new ";
- protected final String TEXT_216 = "() {" + NL + "\t\t\t\t\tprivate ";
- protected final String TEXT_217 = " afterCopyCommand;" + NL + "\t\t\t\t\tprotected ";
- protected final String TEXT_218 = " createCommand() {" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_219 = " element = childNode.getElement();" + NL + "\t\t\t\t\t\t//We are being optimistic here about whether further commands can be executed." + NL + "\t\t\t\t\t\t//Otherwise, we would have to execute the CopyCommand on every mouse move, which could be much too expensive. " + NL + "\t\t\t\t\t\treturn ";
- protected final String TEXT_220 = ".create(editingDomain, element);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tprotected boolean prepare() {" + NL + "\t\t\t\t\t\tif (!super.prepare()) {" + NL + "\t\t\t\t\t\t\treturn false;" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_221 = NL;
- protected final String TEXT_222 = NL + "\t\tif (";
- protected final String TEXT_223 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_224 = NL + "\t\t}";
- protected final String TEXT_225 = NL + "\t\tif (";
- protected final String TEXT_226 = ".size() >= ";
- protected final String TEXT_227 = ".eINSTANCE.get";
- protected final String TEXT_228 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_229 = NL + "\t\t}";
- protected final String TEXT_230 = NL;
- protected final String TEXT_231 = NL + "\t\tif (";
- protected final String TEXT_232 = " != null) {" + NL + "\t\t\t";
- protected final String TEXT_233 = NL + "\t\t}";
- protected final String TEXT_234 = NL + "\t\tif (";
- protected final String TEXT_235 = ".size() >= ";
- protected final String TEXT_236 = ".eINSTANCE.get";
- protected final String TEXT_237 = "().getUpperBound()) {" + NL + "\t\t\t";
- protected final String TEXT_238 = NL + "\t\t}";
- protected final String TEXT_239 = NL + "\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\t\tsuper.execute();" + NL + "\t\t\t\t\t\tfinal ";
- protected final String TEXT_240 = " results = super.getResult();" + NL + "\t\t\t\t\t\tassert results.size() == 1;" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_241 = " result = (";
- protected final String TEXT_242 = ") results.iterator().next();" + NL + "\t\t\t\t\t\tafterCopyCommand = new ";
- protected final String TEXT_243 = "();";
- protected final String TEXT_244 = NL + "\t\t\t\t\t\tafterCopyCommand.append(";
- protected final String TEXT_245 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t";
- protected final String TEXT_246 = ".getElement(), ";
- protected final String TEXT_247 = ".eINSTANCE.get";
- protected final String TEXT_248 = "(), result));";
- protected final String TEXT_249 = NL + "\t\t\t\t\t\tafterCopyCommand.append(";
- protected final String TEXT_250 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t";
- protected final String TEXT_251 = ".getElement(), ";
- protected final String TEXT_252 = ".eINSTANCE.get";
- protected final String TEXT_253 = "(), result));";
- protected final String TEXT_254 = NL + "\t\t\t\t\t\tafterCopyCommand.append(new ";
- protected final String TEXT_255 = "(";
- protected final String TEXT_256 = ", result, ";
- protected final String TEXT_257 = "null";
- protected final String TEXT_258 = "((";
- protected final String TEXT_259 = ") constraint).getCopy().union(new ";
- protected final String TEXT_260 = "(";
- protected final String TEXT_261 = ", ";
- protected final String TEXT_262 = "))";
+ protected final String TEXT_187 = "))";
+ protected final String TEXT_188 = ", ";
+ protected final String TEXT_189 = ".INSTANCE));";
+ protected final String TEXT_190 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcommand = result;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;";
+ protected final String TEXT_191 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new ";
+ protected final String TEXT_192 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn ";
+ protected final String TEXT_193 = ".INSTANCE;" + NL + "}";
+ protected final String TEXT_194 = NL;
+ protected final String TEXT_195 = NL + "protected ";
+ protected final String TEXT_196 = " getCloneCommand(";
+ protected final String TEXT_197 = " request) {" + NL + "\t";
+ protected final String TEXT_198 = " editParts = request.getEditParts();" + NL + "\t";
+ protected final String TEXT_199 = " command = new ";
+ protected final String TEXT_200 = "();" + NL + "\tcommand.setDebugLabel(\"Clone in ConstrainedLayoutEditPolicy\");//$NON-NLS-1$" + NL + "\t";
+ protected final String TEXT_201 = " childPart;" + NL + "\t";
+ protected final String TEXT_202 = " r;" + NL + "\tObject constraint;" + NL + "" + NL + "\tfor (int i = 0; i < editParts.size(); i++) {" + NL + "\t\tchildPart = (";
+ protected final String TEXT_203 = ")editParts.get(i);" + NL + "\t\tr = childPart.getFigure().getBounds().getCopy();" + NL + "\t\t//convert r to absolute from childpart figure" + NL + "\t\tchildPart.getFigure().translateToAbsolute(r);" + NL + "\t\tr = request.getTransformedRectangle(r);" + NL + "\t\t//convert this figure to relative " + NL + "\t\tgetLayoutContainer().translateToRelative(r);" + NL + "\t\tgetLayoutContainer().translateFromParent(r);" + NL + "\t\tr.translate(getLayoutOrigin().getNegated());" + NL + "\t\tconstraint = getConstraintFor(r);" + NL + "\t\tcommand.add(createCloneCommand(childPart," + NL + "\t\t\ttranslateToModelConstraint(constraint)));" + NL + "\t}" + NL + "\treturn command.unwrap();" + NL + "}" + NL + "protected ";
+ protected final String TEXT_204 = " createCloneCommand(final ";
+ protected final String TEXT_205 = " child, final Object constraint) {" + NL + "\tif (child.getModel() instanceof ";
+ protected final String TEXT_206 = ") {" + NL + "\t\tfinal ";
+ protected final String TEXT_207 = " childNode = (";
+ protected final String TEXT_208 = ") child.getModel();" + NL + "\t\tfinal ";
+ protected final String TEXT_209 = " editingDomain = ";
+ protected final String TEXT_210 = ".getEditingDomain(childNode.getDiagram().getElement());" + NL + "\t\tString modelID = ";
+ protected final String TEXT_211 = ".getModelID(childNode);" + NL + "\t\tif (";
+ protected final String TEXT_212 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\tfinal int newVisualID = ";
+ protected final String TEXT_213 = ".INSTANCE.getNodeVisualID(";
+ protected final String TEXT_214 = ", childNode.getElement());" + NL + "\t\t\t";
+ protected final String TEXT_215 = " command = null;" + NL + "\t\t\tswitch (newVisualID) {";
+ protected final String TEXT_216 = NL + "\t\t\tcase ";
+ protected final String TEXT_217 = ".VISUAL_ID:" + NL + "\t\t\t\tcommand = new ";
+ protected final String TEXT_218 = "() {" + NL + "\t\t\t\t\tprivate ";
+ protected final String TEXT_219 = " afterCopyCommand;" + NL + "\t\t\t\t\tprotected ";
+ protected final String TEXT_220 = " createCommand() {" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_221 = " element = childNode.getElement();" + NL + "\t\t\t\t\t\t//We are being optimistic here about whether further commands can be executed." + NL + "\t\t\t\t\t\t//Otherwise, we would have to execute the CopyCommand on every mouse move, which could be much too expensive. " + NL + "\t\t\t\t\t\treturn ";
+ protected final String TEXT_222 = ".create(editingDomain, element);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tprotected boolean prepare() {" + NL + "\t\t\t\t\t\tif (!super.prepare()) {" + NL + "\t\t\t\t\t\t\treturn false;" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_223 = NL;
+ protected final String TEXT_224 = NL + "\t\tif (";
+ protected final String TEXT_225 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_226 = NL + "\t\t}";
+ protected final String TEXT_227 = NL + "\t\tif (";
+ protected final String TEXT_228 = ".size() >= ";
+ protected final String TEXT_229 = ".eINSTANCE.get";
+ protected final String TEXT_230 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_231 = NL + "\t\t}";
+ protected final String TEXT_232 = NL;
+ protected final String TEXT_233 = NL + "\t\tif (";
+ protected final String TEXT_234 = " != null) {" + NL + "\t\t\t";
+ protected final String TEXT_235 = NL + "\t\t}";
+ protected final String TEXT_236 = NL + "\t\tif (";
+ protected final String TEXT_237 = ".size() >= ";
+ protected final String TEXT_238 = ".eINSTANCE.get";
+ protected final String TEXT_239 = "().getUpperBound()) {" + NL + "\t\t\t";
+ protected final String TEXT_240 = NL + "\t\t}";
+ protected final String TEXT_241 = NL + "\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\t\tsuper.execute();" + NL + "\t\t\t\t\t\tfinal ";
+ protected final String TEXT_242 = " results = super.getResult();" + NL + "\t\t\t\t\t\tassert results.size() == 1;" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_243 = " result = (";
+ protected final String TEXT_244 = ") results.iterator().next();" + NL + "\t\t\t\t\t\tafterCopyCommand = new ";
+ protected final String TEXT_245 = "();";
+ protected final String TEXT_246 = NL + "\t\t\t\t\t\tafterCopyCommand.append(";
+ protected final String TEXT_247 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t";
+ protected final String TEXT_248 = ".getElement(), ";
+ protected final String TEXT_249 = ".eINSTANCE.get";
+ protected final String TEXT_250 = "(), result));";
+ protected final String TEXT_251 = NL + "\t\t\t\t\t\tafterCopyCommand.append(";
+ protected final String TEXT_252 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t";
+ protected final String TEXT_253 = ".getElement(), ";
+ protected final String TEXT_254 = ".eINSTANCE.get";
+ protected final String TEXT_255 = "(), result));";
+ protected final String TEXT_256 = NL + "\t\t\t\t\t\tafterCopyCommand.append(new ";
+ protected final String TEXT_257 = "(";
+ protected final String TEXT_258 = ", result, ";
+ protected final String TEXT_259 = "null";
+ protected final String TEXT_260 = "((";
+ protected final String TEXT_261 = ") constraint).getCopy().union(new ";
+ protected final String TEXT_262 = "(";
protected final String TEXT_263 = ", ";
- protected final String TEXT_264 = ".INSTANCE));" + NL + "\t\t\t\t\t\tif (afterCopyCommand.canExecute()) {" + NL + "\t\t\t\t\t\t\tafterCopyCommand.execute();" + NL + "\t\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t\tassert false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t\t\tafterCopyCommand.undo();" + NL + "\t\t\t\t\t\tsuper.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t\t\tsuper.redo();" + NL + "\t\t\t\t\t\tafterCopyCommand.redo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t\tbreak;";
- protected final String TEXT_265 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new ";
- protected final String TEXT_266 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn ";
- protected final String TEXT_267 = ".INSTANCE;" + NL + "}";
- protected final String TEXT_268 = NL + "\t\t\tprotected ";
- protected final String TEXT_269 = " getCreateCommand(";
- protected final String TEXT_270 = " request) {";
- protected final String TEXT_271 = NL + "\t\t\t\tif (request instanceof ";
- protected final String TEXT_272 = ") {" + NL + "\t\t\t\t\t";
- protected final String TEXT_273 = " requestEx = (";
- protected final String TEXT_274 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t";
- protected final String TEXT_275 = " result = new ";
- protected final String TEXT_276 = "();" + NL + "\t\t\t\t\tfor(int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {";
- protected final String TEXT_277 = NL + "\t\t\t\t\t\tcase ";
- protected final String TEXT_278 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new ";
- protected final String TEXT_279 = "((View) getModel(), requestEx";
- protected final String TEXT_280 = ", " + NL + "\t\t\t\t\t\t\t\t(";
- protected final String TEXT_281 = ")getConstraintFor(request)";
- protected final String TEXT_282 = "));" + NL + "\t\t\t\t\t\t\tbreak;";
- protected final String TEXT_283 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new ";
- protected final String TEXT_284 = "(";
- protected final String TEXT_285 = ".getEditingDomain(((View) getModel()).getDiagram().getElement()), result);" + NL + "\t\t\t\t}";
- protected final String TEXT_286 = NL + "\t\t\t\treturn ";
- protected final String TEXT_287 = ".INSTANCE;" + NL + "\t\t\t}";
- protected final String TEXT_288 = NL + "\t\t\tprotected ";
- protected final String TEXT_289 = " createChangeConstraintCommand(final ";
- protected final String TEXT_290 = " request, final ";
- protected final String TEXT_291 = " child, Object constraint) {" + NL + "\t\t\t\tif (!isDirectChild(child)) {" + NL + "\t\t\t\t\treturn ";
- protected final String TEXT_292 = ".INSTANCE;" + NL + "\t\t\t\t}";
- protected final String TEXT_293 = NL;
- protected final String TEXT_294 = "\t\t\t\tfinal ";
- protected final String TEXT_295 = " node = (";
- protected final String TEXT_296 = ") child.getModel();" + NL + "\t\t\t\t";
- protected final String TEXT_297 = " emfCommand = new ";
- protected final String TEXT_298 = "(node, request, ((";
- protected final String TEXT_299 = ")child).getFigure());" + NL + "\t\t\t\treturn new ";
- protected final String TEXT_300 = "(";
- protected final String TEXT_301 = ".getEditingDomain(node.getDiagram().getElement()), emfCommand);" + NL + "\t\t\t}" + NL + "\t\t\tprotected Command createChangeConstraintCommand(";
- protected final String TEXT_302 = " child, Object constraint) {" + NL + "\t\t\t\tassert false;" + NL + "\t\t\t\treturn ";
- protected final String TEXT_303 = ".INSTANCE;" + NL + "\t\t\t}";
- protected final String TEXT_304 = NL + "\t\t\tprotected Object getConstraintFor(";
- protected final String TEXT_305 = " rect) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor(";
- protected final String TEXT_306 = " point) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected ";
- protected final String TEXT_307 = " createChangeConstraintCommand(";
- protected final String TEXT_308 = " child, Object constraint) {" + NL + "\t\t\t\treturn ";
- protected final String TEXT_309 = ".INSTANCE;" + NL + "\t\t\t}";
- protected final String TEXT_310 = NL + "\t\t\tprotected ";
- protected final String TEXT_311 = " createChildEditPolicy(";
- protected final String TEXT_312 = " child) {";
- protected final String TEXT_313 = NL + "\t\t\t\tif (isDirectChild(child)) {" + NL + "\t\t\t\t\t";
- protected final String TEXT_314 = " result = child.getEditPolicy(";
- protected final String TEXT_315 = ".PRIMARY_DRAG_ROLE);" + NL + "\t\t\t\t\tif (result != null) {" + NL + "\t\t\t\t\t\treturn result;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn super.createChildEditPolicy(child);" + NL + "\t\t\t\t}";
- protected final String TEXT_316 = NL + "\t\t\t\treturn new ";
- protected final String TEXT_317 = "() {" + NL + "\t\t\t\t\tpublic ";
- protected final String TEXT_318 = " getTargetEditPart(";
- protected final String TEXT_319 = " request) {" + NL + "\t\t\t\t\t\tif (";
- protected final String TEXT_320 = ".REQ_SELECTION.equals(request.getType())) {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_321 = ".this;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\treturn super.getTargetEditPart(request);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t\tinstallEditPolicy(";
- protected final String TEXT_322 = ".GRAPHICAL_NODE_ROLE, new ";
- protected final String TEXT_323 = "() {" + NL + "\t\t\tprotected ";
- protected final String TEXT_324 = " getReconnectTargetCommand(";
- protected final String TEXT_325 = " request) {";
- protected final String TEXT_326 = " " + NL + "\t\t\t\treturn ";
- protected final String TEXT_327 = ".INSTANCE;";
- protected final String TEXT_328 = NL + "\t\t\t\t";
- protected final String TEXT_329 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof ";
- protected final String TEXT_330 = " == false) {" + NL + "\t\t\t\t\treturn ";
- protected final String TEXT_331 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
- protected final String TEXT_332 = " edge = (";
- protected final String TEXT_333 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = ";
- protected final String TEXT_334 = ".getModelID(edge);" + NL + "\t\t\t\tif (!";
- protected final String TEXT_335 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn ";
- protected final String TEXT_336 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
- protected final String TEXT_337 = " result = null;" + NL + "\t\t\t\tint visualID = ";
- protected final String TEXT_338 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {";
- protected final String TEXT_339 = NL + "\t\t\t\tcase ";
- protected final String TEXT_340 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new ";
- protected final String TEXT_341 = "(request);" + NL + "\t\t\t\t\tbreak;";
- protected final String TEXT_342 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn ";
- protected final String TEXT_343 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new ";
- protected final String TEXT_344 = "(";
- protected final String TEXT_345 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);";
- protected final String TEXT_346 = NL + "\t\t\t}" + NL + "\t\t\tprotected ";
- protected final String TEXT_347 = " getReconnectSourceCommand(";
- protected final String TEXT_348 = " request) {";
- protected final String TEXT_349 = " " + NL + "\t\t\t\treturn ";
- protected final String TEXT_350 = ".INSTANCE;";
- protected final String TEXT_351 = NL + "\t\t\t\t";
- protected final String TEXT_352 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof ";
- protected final String TEXT_353 = " == false) {" + NL + "\t\t\t\t\treturn ";
- protected final String TEXT_354 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
- protected final String TEXT_355 = " edge = (";
- protected final String TEXT_356 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = ";
- protected final String TEXT_357 = ".getModelID(edge);" + NL + "\t\t\t\tif (!";
- protected final String TEXT_358 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn ";
- protected final String TEXT_359 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
- protected final String TEXT_360 = " result = null;" + NL + "\t\t\t\tint visualID = ";
- protected final String TEXT_361 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {";
- protected final String TEXT_362 = NL + "\t\t\t\tcase ";
- protected final String TEXT_363 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new ";
- protected final String TEXT_364 = "(request);" + NL + "\t\t\t\t\tbreak;";
- protected final String TEXT_365 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn ";
- protected final String TEXT_366 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new ";
- protected final String TEXT_367 = "(";
- protected final String TEXT_368 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);";
- protected final String TEXT_369 = NL + "\t\t\t}" + NL + "\t\t\tprotected ";
- protected final String TEXT_370 = " getConnectionCreateCommand(";
- protected final String TEXT_371 = " request) {";
- protected final String TEXT_372 = NL + "\t\t\t\tif (request instanceof ";
- protected final String TEXT_373 = ") {" + NL + "\t\t\t\t\t";
- protected final String TEXT_374 = " requestEx = (";
- protected final String TEXT_375 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t";
- protected final String TEXT_376 = " result = new ";
- protected final String TEXT_377 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {";
- protected final String TEXT_378 = NL + "\t\t\t\t\t\tcase ";
- protected final String TEXT_379 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.appendIfCanExecute(new ";
- protected final String TEXT_380 = "(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;";
- protected final String TEXT_381 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (!result.canExecute()) {" + NL + "\t\t\t\t\t\t//returning an unexecutable command does not change cursor to \"No\"." + NL + "\t\t\t\t\t\treturn null;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t";
- protected final String TEXT_382 = " wrappedResult = new ";
- protected final String TEXT_383 = "(";
- protected final String TEXT_384 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t\trequest.setStartCommand(wrappedResult);" + NL + "\t\t\t\t\treturn wrappedResult;" + NL + "\t\t\t\t}";
- protected final String TEXT_385 = NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected ";
- protected final String TEXT_386 = " getConnectionCompleteCommand(";
- protected final String TEXT_387 = " request) {";
- protected final String TEXT_388 = NL + "\t\t\t\tif (request.getStartCommand() == null || !request.getStartCommand().canExecute()) {" + NL + "\t\t\t\t\treturn ";
- protected final String TEXT_389 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tif (request instanceof ";
- protected final String TEXT_390 = ") {" + NL + "\t\t\t\t\t";
- protected final String TEXT_391 = " requestEx = (";
- protected final String TEXT_392 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t";
- protected final String TEXT_393 = " result = new ";
- protected final String TEXT_394 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {";
- protected final String TEXT_395 = NL + "\t\t\t\t\t\tcase ";
- protected final String TEXT_396 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.appendIfCanExecute(new ";
- protected final String TEXT_397 = "(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;";
- protected final String TEXT_398 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (result.getCommandList().size() != 1 || !result.canExecute()) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\treturn ";
- protected final String TEXT_399 = ".INSTANCE;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new ";
- protected final String TEXT_400 = "(";
- protected final String TEXT_401 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t}";
- protected final String TEXT_402 = NL + "\t\t\t\treturn ";
- protected final String TEXT_403 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t});";
- protected final String TEXT_404 = NL + "\t\tinstallEditPolicy(";
- protected final String TEXT_405 = ".DIRECT_EDIT_ROLE, new ";
- protected final String TEXT_406 = "());";
- protected final String TEXT_407 = NL;
- protected final String TEXT_408 = NL + "\t\tinstallEditPolicy(\"";
- protected final String TEXT_409 = "\", new ";
- protected final String TEXT_410 = "()); //$NON-NLS-1$";
- protected final String TEXT_411 = NL;
- protected final String TEXT_412 = NL + "\t\tinstallEditPolicy(";
- protected final String TEXT_413 = ".OPEN_ROLE";
- protected final String TEXT_414 = " + \"";
- protected final String TEXT_415 = "\" ";
- protected final String TEXT_416 = ", new ";
- protected final String TEXT_417 = "());";
- protected final String TEXT_418 = NL + "\t\tinstallEditPolicy(org.eclipse.gef.EditPolicy.PRIMARY_DRAG_ROLE, getPrimaryDragEditPolicy());";
- protected final String TEXT_419 = NL + "\t\tinstallNotationModelRefresher();";
- protected final String TEXT_420 = NL + "\t\tinstallLinkNotationModelRefresher();";
- protected final String TEXT_421 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_422 = " getPrimaryDragEditPolicy() {";
- protected final String TEXT_423 = NL + "\t\treturn new ";
- protected final String TEXT_424 = "();";
- protected final String TEXT_425 = NL + "\t\t";
- protected final String TEXT_426 = " result = new ";
- protected final String TEXT_427 = "();";
- protected final String TEXT_428 = NL + "\t\t";
- protected final String TEXT_429 = " result = new ";
- protected final String TEXT_430 = "() {" + NL + "\t\t\tprotected ";
- protected final String TEXT_431 = " createSelectionHandles() {" + NL + "\t\t\t\t";
- protected final String TEXT_432 = " result = super.createSelectionHandles();" + NL + "\t\t\t\tfor(";
- protected final String TEXT_433 = " it = getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t\t";
- protected final String TEXT_434 = " next = (";
- protected final String TEXT_435 = ") it.next();" + NL + "\t\t\t\t\t";
- protected final String TEXT_436 = " nextView = (";
- protected final String TEXT_437 = ") next.getModel();" + NL + "\t\t\t\t\tswitch (";
- protected final String TEXT_438 = ".getVisualID(nextView)) {";
- protected final String TEXT_439 = NL + "\t\t\t\t\tcase ";
- protected final String TEXT_440 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\tresult.addAll(((";
- protected final String TEXT_441 = ") next).createSelectionHandles());" + NL + "\t\t\t\t\t\tbreak;";
- protected final String TEXT_442 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn result;" + NL + "\t\t\t}" + NL + "\t\t};";
- protected final String TEXT_443 = NL + "\t\tresult.setResizeDirections(";
- protected final String TEXT_444 = ".NONE);";
+ protected final String TEXT_264 = "))";
+ protected final String TEXT_265 = ", ";
+ protected final String TEXT_266 = ".INSTANCE));" + NL + "\t\t\t\t\t\tif (afterCopyCommand.canExecute()) {" + NL + "\t\t\t\t\t\t\tafterCopyCommand.execute();" + NL + "\t\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t\tassert false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t\t\tafterCopyCommand.undo();" + NL + "\t\t\t\t\t\tsuper.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t\t\tsuper.redo();" + NL + "\t\t\t\t\t\tafterCopyCommand.redo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t\tbreak;";
+ protected final String TEXT_267 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new ";
+ protected final String TEXT_268 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn ";
+ protected final String TEXT_269 = ".INSTANCE;" + NL + "}";
+ protected final String TEXT_270 = NL + "\t\t\tprotected ";
+ protected final String TEXT_271 = " getCreateCommand(";
+ protected final String TEXT_272 = " request) {";
+ protected final String TEXT_273 = NL + "\t\t\t\tif (request instanceof ";
+ protected final String TEXT_274 = ") {" + NL + "\t\t\t\t\t";
+ protected final String TEXT_275 = " requestEx = (";
+ protected final String TEXT_276 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t";
+ protected final String TEXT_277 = " result = new ";
+ protected final String TEXT_278 = "();" + NL + "\t\t\t\t\tfor(int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {";
+ protected final String TEXT_279 = NL + "\t\t\t\t\t\tcase ";
+ protected final String TEXT_280 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new ";
+ protected final String TEXT_281 = "((View) getModel(), requestEx";
+ protected final String TEXT_282 = ", " + NL + "\t\t\t\t\t\t\t\t(";
+ protected final String TEXT_283 = ")getConstraintFor(request)";
+ protected final String TEXT_284 = "));" + NL + "\t\t\t\t\t\t\tbreak;";
+ protected final String TEXT_285 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new ";
+ protected final String TEXT_286 = "(";
+ protected final String TEXT_287 = ".getEditingDomain(((View) getModel()).getDiagram().getElement()), result);" + NL + "\t\t\t\t}";
+ protected final String TEXT_288 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_289 = ".INSTANCE;" + NL + "\t\t\t}";
+ protected final String TEXT_290 = NL + "\t\t\tprotected ";
+ protected final String TEXT_291 = " createChangeConstraintCommand(final ";
+ protected final String TEXT_292 = " request, final ";
+ protected final String TEXT_293 = " child, Object constraint) {" + NL + "\t\t\t\tif (!isDirectChild(child)) {" + NL + "\t\t\t\t\treturn ";
+ protected final String TEXT_294 = ".INSTANCE;" + NL + "\t\t\t\t}";
+ protected final String TEXT_295 = NL;
+ protected final String TEXT_296 = "\t\t\t\tfinal ";
+ protected final String TEXT_297 = " node = (";
+ protected final String TEXT_298 = ") child.getModel();" + NL + "\t\t\t\t";
+ protected final String TEXT_299 = " emfCommand = new ";
+ protected final String TEXT_300 = "(node, request, ((";
+ protected final String TEXT_301 = ")child).getFigure());" + NL + "\t\t\t\treturn new ";
+ protected final String TEXT_302 = "(";
+ protected final String TEXT_303 = ".getEditingDomain(node.getDiagram().getElement()), emfCommand);" + NL + "\t\t\t}" + NL + "\t\t\tprotected Command createChangeConstraintCommand(";
+ protected final String TEXT_304 = " child, Object constraint) {" + NL + "\t\t\t\tassert false;" + NL + "\t\t\t\treturn ";
+ protected final String TEXT_305 = ".INSTANCE;" + NL + "\t\t\t}";
+ protected final String TEXT_306 = NL + "\t\t\tprotected Object getConstraintFor(";
+ protected final String TEXT_307 = " rect) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor(";
+ protected final String TEXT_308 = " point) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected ";
+ protected final String TEXT_309 = " createChangeConstraintCommand(";
+ protected final String TEXT_310 = " child, Object constraint) {" + NL + "\t\t\t\treturn ";
+ protected final String TEXT_311 = ".INSTANCE;" + NL + "\t\t\t}";
+ protected final String TEXT_312 = NL + "\t\t\tprotected ";
+ protected final String TEXT_313 = " createChildEditPolicy(";
+ protected final String TEXT_314 = " child) {";
+ protected final String TEXT_315 = NL + "\t\t\t\tif (isDirectChild(child)) {" + NL + "\t\t\t\t\t";
+ protected final String TEXT_316 = " result = child.getEditPolicy(";
+ protected final String TEXT_317 = ".PRIMARY_DRAG_ROLE);" + NL + "\t\t\t\t\tif (result != null) {" + NL + "\t\t\t\t\t\treturn result;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn super.createChildEditPolicy(child);" + NL + "\t\t\t\t}";
+ protected final String TEXT_318 = NL + "\t\t\t\treturn new ";
+ protected final String TEXT_319 = "() {" + NL + "\t\t\t\t\tpublic ";
+ protected final String TEXT_320 = " getTargetEditPart(";
+ protected final String TEXT_321 = " request) {" + NL + "\t\t\t\t\t\tif (";
+ protected final String TEXT_322 = ".REQ_SELECTION.equals(request.getType())) {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_323 = ".this;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\treturn super.getTargetEditPart(request);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t\tinstallEditPolicy(";
+ protected final String TEXT_324 = ".GRAPHICAL_NODE_ROLE, new ";
+ protected final String TEXT_325 = "() {" + NL + "\t\t\tprotected ";
+ protected final String TEXT_326 = " getReconnectTargetCommand(";
+ protected final String TEXT_327 = " request) {";
+ protected final String TEXT_328 = " " + NL + "\t\t\t\treturn ";
+ protected final String TEXT_329 = ".INSTANCE;";
+ protected final String TEXT_330 = NL + "\t\t\t\t";
+ protected final String TEXT_331 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof ";
+ protected final String TEXT_332 = " == false) {" + NL + "\t\t\t\t\treturn ";
+ protected final String TEXT_333 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
+ protected final String TEXT_334 = " edge = (";
+ protected final String TEXT_335 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = ";
+ protected final String TEXT_336 = ".getModelID(edge);" + NL + "\t\t\t\tif (!";
+ protected final String TEXT_337 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn ";
+ protected final String TEXT_338 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
+ protected final String TEXT_339 = " result = null;" + NL + "\t\t\t\tint visualID = ";
+ protected final String TEXT_340 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {";
+ protected final String TEXT_341 = NL + "\t\t\t\tcase ";
+ protected final String TEXT_342 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new ";
+ protected final String TEXT_343 = "(request);" + NL + "\t\t\t\t\tbreak;";
+ protected final String TEXT_344 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn ";
+ protected final String TEXT_345 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new ";
+ protected final String TEXT_346 = "(";
+ protected final String TEXT_347 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);";
+ protected final String TEXT_348 = NL + "\t\t\t}" + NL + "\t\t\tprotected ";
+ protected final String TEXT_349 = " getReconnectSourceCommand(";
+ protected final String TEXT_350 = " request) {";
+ protected final String TEXT_351 = " " + NL + "\t\t\t\treturn ";
+ protected final String TEXT_352 = ".INSTANCE;";
+ protected final String TEXT_353 = NL + "\t\t\t\t";
+ protected final String TEXT_354 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof ";
+ protected final String TEXT_355 = " == false) {" + NL + "\t\t\t\t\treturn ";
+ protected final String TEXT_356 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
+ protected final String TEXT_357 = " edge = (";
+ protected final String TEXT_358 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = ";
+ protected final String TEXT_359 = ".getModelID(edge);" + NL + "\t\t\t\tif (!";
+ protected final String TEXT_360 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn ";
+ protected final String TEXT_361 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
+ protected final String TEXT_362 = " result = null;" + NL + "\t\t\t\tint visualID = ";
+ protected final String TEXT_363 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {";
+ protected final String TEXT_364 = NL + "\t\t\t\tcase ";
+ protected final String TEXT_365 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new ";
+ protected final String TEXT_366 = "(request);" + NL + "\t\t\t\t\tbreak;";
+ protected final String TEXT_367 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn ";
+ protected final String TEXT_368 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new ";
+ protected final String TEXT_369 = "(";
+ protected final String TEXT_370 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);";
+ protected final String TEXT_371 = NL + "\t\t\t}" + NL + "\t\t\tprotected ";
+ protected final String TEXT_372 = " getConnectionCreateCommand(";
+ protected final String TEXT_373 = " request) {";
+ protected final String TEXT_374 = NL + "\t\t\t\tif (request instanceof ";
+ protected final String TEXT_375 = ") {" + NL + "\t\t\t\t\t";
+ protected final String TEXT_376 = " requestEx = (";
+ protected final String TEXT_377 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t";
+ protected final String TEXT_378 = " result = new ";
+ protected final String TEXT_379 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {";
+ protected final String TEXT_380 = NL + "\t\t\t\t\t\tcase ";
+ protected final String TEXT_381 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.appendIfCanExecute(new ";
+ protected final String TEXT_382 = "(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;";
+ protected final String TEXT_383 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (!result.canExecute()) {" + NL + "\t\t\t\t\t\t//returning an unexecutable command does not change cursor to \"No\"." + NL + "\t\t\t\t\t\treturn null;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t";
+ protected final String TEXT_384 = " wrappedResult = new ";
+ protected final String TEXT_385 = "(";
+ protected final String TEXT_386 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t\trequest.setStartCommand(wrappedResult);" + NL + "\t\t\t\t\treturn wrappedResult;" + NL + "\t\t\t\t}";
+ protected final String TEXT_387 = NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected ";
+ protected final String TEXT_388 = " getConnectionCompleteCommand(";
+ protected final String TEXT_389 = " request) {";
+ protected final String TEXT_390 = NL + "\t\t\t\tif (request.getStartCommand() == null || !request.getStartCommand().canExecute()) {" + NL + "\t\t\t\t\treturn ";
+ protected final String TEXT_391 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tif (request instanceof ";
+ protected final String TEXT_392 = ") {" + NL + "\t\t\t\t\t";
+ protected final String TEXT_393 = " requestEx = (";
+ protected final String TEXT_394 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t";
+ protected final String TEXT_395 = " result = new ";
+ protected final String TEXT_396 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {";
+ protected final String TEXT_397 = NL + "\t\t\t\t\t\tcase ";
+ protected final String TEXT_398 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.appendIfCanExecute(new ";
+ protected final String TEXT_399 = "(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;";
+ protected final String TEXT_400 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (result.getCommandList().size() != 1 || !result.canExecute()) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\treturn ";
+ protected final String TEXT_401 = ".INSTANCE;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new ";
+ protected final String TEXT_402 = "(";
+ protected final String TEXT_403 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t}";
+ protected final String TEXT_404 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_405 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t});";
+ protected final String TEXT_406 = NL + "\t\tinstallEditPolicy(";
+ protected final String TEXT_407 = ".DIRECT_EDIT_ROLE, new ";
+ protected final String TEXT_408 = "());";
+ protected final String TEXT_409 = NL;
+ protected final String TEXT_410 = NL + "\t\tinstallEditPolicy(\"";
+ protected final String TEXT_411 = "\", new ";
+ protected final String TEXT_412 = "()); //$NON-NLS-1$";
+ protected final String TEXT_413 = NL;
+ protected final String TEXT_414 = NL + "\t\tinstallEditPolicy(";
+ protected final String TEXT_415 = ".OPEN_ROLE";
+ protected final String TEXT_416 = " + \"";
+ protected final String TEXT_417 = "\" ";
+ protected final String TEXT_418 = ", new ";
+ protected final String TEXT_419 = "());";
+ protected final String TEXT_420 = NL + "\t\tinstallEditPolicy(org.eclipse.gef.EditPolicy.PRIMARY_DRAG_ROLE, getPrimaryDragEditPolicy());";
+ protected final String TEXT_421 = NL + "\t\tinstallNotationModelRefresher();";
+ protected final String TEXT_422 = NL + "\t\tinstallLinkNotationModelRefresher();";
+ protected final String TEXT_423 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_424 = " getPrimaryDragEditPolicy() {";
+ protected final String TEXT_425 = NL + "\t\treturn new ";
+ protected final String TEXT_426 = "();";
+ protected final String TEXT_427 = NL + "\t\t";
+ protected final String TEXT_428 = " result = new ";
+ protected final String TEXT_429 = "();";
+ protected final String TEXT_430 = NL + "\t\t";
+ protected final String TEXT_431 = " result = new ";
+ protected final String TEXT_432 = "() {" + NL + "\t\t\tprotected ";
+ protected final String TEXT_433 = " createSelectionHandles() {" + NL + "\t\t\t\t";
+ protected final String TEXT_434 = " result = super.createSelectionHandles();" + NL + "\t\t\t\tfor(";
+ protected final String TEXT_435 = " it = getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t\t";
+ protected final String TEXT_436 = " next = (";
+ protected final String TEXT_437 = ") it.next();" + NL + "\t\t\t\t\t";
+ protected final String TEXT_438 = " nextView = (";
+ protected final String TEXT_439 = ") next.getModel();" + NL + "\t\t\t\t\tswitch (";
+ protected final String TEXT_440 = ".getVisualID(nextView)) {";
+ protected final String TEXT_441 = NL + "\t\t\t\t\tcase ";
+ protected final String TEXT_442 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\tresult.addAll(((";
+ protected final String TEXT_443 = ") next).createSelectionHandles());" + NL + "\t\t\t\t\t\tbreak;";
+ protected final String TEXT_444 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn result;" + NL + "\t\t\t}" + NL + "\t\t};";
protected final String TEXT_445 = NL + "\t\tresult.setResizeDirections(";
- protected final String TEXT_446 = ".";
- protected final String TEXT_447 = " | ";
- protected final String TEXT_448 = ");";
- protected final String TEXT_449 = NL + "\t\treturn result;";
- protected final String TEXT_450 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_451 = " createFigure() {" + NL + "\t\t";
- protected final String TEXT_452 = " invisibleRectangle = new ";
- protected final String TEXT_453 = "();" + NL + "\t\tinvisibleRectangle.setLayoutManager(new ";
- protected final String TEXT_454 = "());" + NL + "\t\t";
- protected final String TEXT_455 = " shape = createNodeShape();" + NL + "\t\tinvisibleRectangle.add(shape);" + NL + "\t\tcontentPane = setupContentPane(shape);";
- protected final String TEXT_456 = NL + "\t\tchildNodesPane = createChildNodesPane();" + NL + "\t\tshape.add(childNodesPane);";
- protected final String TEXT_457 = NL + NL + "\t\t";
- protected final String TEXT_458 = " decorationShape = createDecorationPane();" + NL + "\t\tif (decorationShape != null) {" + NL + "\t\t\tinvisibleRectangle.add(decorationShape);" + NL + "\t\t}" + NL + "" + NL + "\t\treturn invisibleRectangle;" + NL + "\t}" + NL;
- protected final String TEXT_459 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_460 = " createChildNodesPane() {" + NL + "\t\t";
- protected final String TEXT_461 = " result = new ";
- protected final String TEXT_462 = "();" + NL + "\t\tsetupContentPane(result);" + NL + "\t\treturn result;" + NL + "\t}";
- protected final String TEXT_463 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_464 = " createNodeShape() {";
- protected final String TEXT_465 = NL + "\t\tprimaryShape = new ";
- protected final String TEXT_466 = "()";
- protected final String TEXT_467 = " {" + NL + "\t\t\tprotected boolean useLocalCoordinates() {" + NL + "\t\t\t\treturn true;" + NL + "\t\t\t}" + NL + "\t\t}";
- protected final String TEXT_468 = ";";
- protected final String TEXT_469 = NL + "\t\tprimaryShape = ";
- protected final String TEXT_470 = ";";
- protected final String TEXT_471 = NL + "\t\t";
- protected final String TEXT_472 = " figure = new ";
- protected final String TEXT_473 = "();";
- protected final String TEXT_474 = NL + " \t\tfigure.setUseLocalCoordinates(true);";
- protected final String TEXT_475 = NL + " \t\tprimaryShape = figure;";
- protected final String TEXT_476 = NL + "\t\treturn primaryShape;" + NL + "\t}";
- protected final String TEXT_477 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_478 = " getPrimaryShape() {" + NL + "\t\treturn (";
- protected final String TEXT_479 = ") primaryShape;" + NL + "\t}";
- protected final String TEXT_480 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_481 = " createDecorationPane() {" + NL + "\t\t";
- protected final String TEXT_482 = " view = (";
- protected final String TEXT_483 = ") getModel();" + NL + "\t\t";
- protected final String TEXT_484 = " annotation = view.getEAnnotation(\"Shortcut\"); //$NON-NLS-1$" + NL + "\t\tif (annotation == null) {" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t";
- protected final String TEXT_485 = " decorationPane = new ";
- protected final String TEXT_486 = "();" + NL + "\t\tdecorationPane.setLayoutManager(new ";
- protected final String TEXT_487 = "());" + NL + "" + NL + "\t\t";
- protected final String TEXT_488 = " imageFigure = new ";
- protected final String TEXT_489 = "(";
- protected final String TEXT_490 = ".getInstance().getBundledImage(\"icons/shortcut.gif\"), ";
- protected final String TEXT_491 = ".EAST);" + NL + "\t\tdecorationPane.add(imageFigure, ";
- protected final String TEXT_492 = ".BOTTOM);" + NL + " \t\treturn decorationPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Default implementation treats passed figure as content pane." + NL + "\t * Respects layout one may have set for generated figure." + NL + "\t * @param nodeShape instance of generated figure class" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_493 = " setupContentPane(";
- protected final String TEXT_494 = " nodeShape) {" + NL + "\t\tif (nodeShape.getLayoutManager() == null) {";
- protected final String TEXT_495 = NL + "\t\t\t";
- protected final String TEXT_496 = " layout = new ";
- protected final String TEXT_497 = "();" + NL + "\t\t\tlayout.setSpacing(5);" + NL + "\t\t\tnodeShape.setLayoutManager(layout);";
- protected final String TEXT_498 = NL + "\t\tnodeShape.setLayoutManager(new ";
- protected final String TEXT_499 = "() {" + NL + "" + NL + "\t\t\tpublic Object getConstraint(";
- protected final String TEXT_500 = " figure) {" + NL + "\t\t\t\tObject result = constraints.get(figure);" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\tresult = new ";
- protected final String TEXT_501 = "(0, 0, -1, -1);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn result;" + NL + "\t\t\t}" + NL + "\t\t});";
- protected final String TEXT_502 = NL + "\t\t}" + NL + "\t\treturn nodeShape; // use nodeShape itself as contentPane" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_503 = " getContentPane() {" + NL + "\t\tif (contentPane == null) {" + NL + "\t\t\treturn super.getContentPane();" + NL + "\t\t}" + NL + "\t\treturn contentPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_504 = " getDiagramNode() {" + NL + "\t\treturn (";
- protected final String TEXT_505 = ") getModel();" + NL + "\t}" + NL;
- protected final String TEXT_506 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean addFixedChild(";
- protected final String TEXT_507 = " childEditPart) {";
- protected final String TEXT_508 = NL + "\t\tif (childEditPart instanceof ";
- protected final String TEXT_509 = ") {" + NL + "\t\t\t((";
- protected final String TEXT_510 = ") childEditPart).";
- protected final String TEXT_511 = "(getPrimaryShape().";
- protected final String TEXT_512 = "());" + NL + "\t\t\treturn true;" + NL + "\t\t}";
- protected final String TEXT_513 = NL + "\t\tif (childEditPart instanceof ";
- protected final String TEXT_514 = ") {" + NL + "\t\t\t";
- protected final String TEXT_515 = " pane = getPrimaryShape().";
- protected final String TEXT_516 = "();" + NL + "\t\t\tsetupContentPane(pane); // FIXME each comparment should handle his content pane in his own way " + NL + "\t\t\tpane.add(((";
- protected final String TEXT_517 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t";
- protected final String TEXT_518 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean removeFixedChild(EditPart childEditPart) {";
- protected final String TEXT_519 = "\t\t" + NL + "\t\tif (childEditPart instanceof ";
- protected final String TEXT_520 = ") {" + NL + "\t\t\t";
- protected final String TEXT_521 = " pane = getPrimaryShape().";
- protected final String TEXT_522 = "();" + NL + "\t\t\tpane.remove(((";
- protected final String TEXT_523 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t";
- protected final String TEXT_524 = NL + "\t\treturn false;" + NL + "\t}";
- protected final String TEXT_525 = NL + NL + "\t/**" + NL + "\t * Returns the label which should be direct-edited by default." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_526 = " getPrimaryLabelEditPart() {";
- protected final String TEXT_527 = NL + "\t\tfor(";
- protected final String TEXT_528 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t";
- protected final String TEXT_529 = " nextChild = (";
- protected final String TEXT_530 = ")it.next();" + NL + "\t\t\tif (";
- protected final String TEXT_531 = ".getVisualID(nextChild) == ";
- protected final String TEXT_532 = ".VISUAL_ID) {" + NL + "\t\t\t\treturn (";
- protected final String TEXT_533 = ") getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t}" + NL + "\t\t}";
- protected final String TEXT_534 = NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest(";
- protected final String TEXT_535 = " req) {" + NL + "\t\tif (";
- protected final String TEXT_536 = ".REQ_DIRECT_EDIT.equals(req.getType())) {" + NL + "\t\t\t";
- protected final String TEXT_537 = " labelToEdit;" + NL + "\t\t\tif (req instanceof ";
- protected final String TEXT_538 = ") {" + NL + "\t\t\t\tlabelToEdit = getLabelEditPart((";
- protected final String TEXT_539 = ")req);" + NL + "\t\t\t} else {" + NL + "\t\t\t\tlabelToEdit = getPrimaryLabelEditPart();" + NL + "\t\t\t}" + NL + "\t\t\tif (labelToEdit != null) {" + NL + "\t\t\t\tlabelToEdit.performRequest(req);" + NL + "\t\t\t}" + NL + "\t\t}";
- protected final String TEXT_540 = NL;
- protected final String TEXT_541 = "if (";
- protected final String TEXT_542 = ".REQ_OPEN.equals(req.getType())) {" + NL + "\t";
- protected final String TEXT_543 = " command = getCommand(req);" + NL + "\tif (command != null && command.canExecute()) {" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(command);" + NL + "\t}" + NL + "\treturn;" + NL + "}" + NL + "\t\tsuper.performRequest(req);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_544 = " getLabelEditPart(";
- protected final String TEXT_545 = " req) {" + NL + "\t\t";
- protected final String TEXT_546 = " result = getViewer().findObjectAt(req.getLocation());" + NL + "\t\tif (result != null) {" + NL + "\t\t\t";
- protected final String TEXT_547 = " view = (";
- protected final String TEXT_548 = ") result.getModel();" + NL + "\t\t\tif (getDiagramNode().getChildren().contains(view)) {" + NL + "\t\t\t\tint visualId = ";
- protected final String TEXT_549 = ".getVisualID(view);" + NL + "\t\t\t\tswitch (visualId) {";
- protected final String TEXT_550 = NL + "\t\t\t\tcase ";
- protected final String TEXT_551 = ".VISUAL_ID:" + NL + "\t\t\t\t\treturn result;";
- protected final String TEXT_552 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn getPrimaryLabelEditPart();" + NL + "\t}" + NL;
- protected final String TEXT_553 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isExternalLabel(";
- protected final String TEXT_554 = " childEditPart) {";
- protected final String TEXT_555 = NL + "\t\tif (childEditPart instanceof ";
- protected final String TEXT_556 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}";
- protected final String TEXT_557 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_558 = " getExternalLabelsContainer() {" + NL + "\t\t";
- protected final String TEXT_559 = " root = (";
- protected final String TEXT_560 = ") getRoot();" + NL + "\t\treturn root.getLayer(";
- protected final String TEXT_561 = ".EXTERNAL_NODE_LABELS_LAYER);" + NL + "\t}" + NL;
- protected final String TEXT_562 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isDirectChild(";
- protected final String TEXT_563 = " childEditPart) {";
- protected final String TEXT_564 = NL + "\t\tif (childEditPart instanceof ";
- protected final String TEXT_565 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}";
- protected final String TEXT_566 = NL + "\t\treturn false;" + NL + "\t}";
- protected final String TEXT_567 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void addChildVisual(";
- protected final String TEXT_568 = " childEditPart, int index) {";
- protected final String TEXT_569 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t";
- protected final String TEXT_570 = " labelFigure = ((";
- protected final String TEXT_571 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().add(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}";
- protected final String TEXT_572 = NL + "\t\tif (addFixedChild(childEditPart)) {" + NL + "\t\t\treturn;" + NL + "\t\t}";
- protected final String TEXT_573 = NL + "\t\tif (isDirectChild(childEditPart)) {" + NL + "\t\t\t";
- protected final String TEXT_574 = " childFigure = ((";
- protected final String TEXT_575 = ") childEditPart).getFigure();" + NL + "\t\t\tchildNodesPane.add(childFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}";
- protected final String TEXT_576 = NL + "\t\tsuper.addChildVisual(childEditPart, -1);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void removeChildVisual(";
- protected final String TEXT_577 = " childEditPart) {";
- protected final String TEXT_578 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t";
- protected final String TEXT_579 = " labelFigure = ((";
- protected final String TEXT_580 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}";
- protected final String TEXT_581 = NL + "\t\tif (removeFixedChild(childEditPart)){" + NL + "\t\t\treturn;" + NL + "\t\t}";
- protected final String TEXT_582 = NL + "\t\tif (isDirectChild(childEditPart)) {" + NL + "\t\t\t";
- protected final String TEXT_583 = " childFigure = ((";
- protected final String TEXT_584 = ") childEditPart).getFigure();" + NL + "\t\t\tchildNodesPane.remove(childFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}";
- protected final String TEXT_585 = NL + "\t\tsuper.removeChildVisual(childEditPart);" + NL + "\t}";
- protected final String TEXT_586 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeNotify() {" + NL + "\t\tfor (";
- protected final String TEXT_587 = " it = getChildren().iterator(); it.hasNext();) {" + NL + "\t\t\t";
- protected final String TEXT_588 = " childEditPart = (";
- protected final String TEXT_589 = ") it.next();" + NL + "\t\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t\tIFigure labelFigure = ((";
- protected final String TEXT_590 = ") childEditPart).getFigure();" + NL + "\t\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tsuper.removeNotify();" + NL + "\t}";
- protected final String TEXT_591 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "\t\trefreshBounds();" + NL + "\t\trefreshBackgroundColor();" + NL + "\t\trefreshForegroundColor();" + NL + "\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = getDiagramNode().isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBounds() {" + NL + "\t\t";
- protected final String TEXT_592 = " node = getDiagramNode();" + NL + "\t\tif (node.getLayoutConstraint() == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tassert node.getLayoutConstraint() instanceof ";
- protected final String TEXT_593 = ";" + NL + "\t\t";
- protected final String TEXT_594 = " bounds = (";
- protected final String TEXT_595 = ") node.getLayoutConstraint();" + NL + "\t\tint x = bounds.getX();" + NL + "\t\tint y = bounds.getY();" + NL + "\t\tint width = bounds.getWidth();" + NL + "\t\tint height = bounds.getHeight();" + NL + "\t\tif (width < 0) {" + NL + "\t\t\tx -= width;" + NL + "\t\t\twidth = -width;" + NL + "\t\t}" + NL + "\t\tif (height < 0) {" + NL + "\t\t\ty -= height;" + NL + "\t\t\theight = -height;" + NL + "\t\t}" + NL + "\t\t((";
- protected final String TEXT_596 = ") getParent()).setLayoutConstraint(this, getFigure(), " + NL + "\t\t\tnew ";
- protected final String TEXT_597 = "(x, y, width, height));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_598 = " getModelChildren() {" + NL + "\t\treturn getDiagramNode().getVisibleChildren();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_599 = " getModelSourceConnections() {" + NL + "\t\treturn getDiagramNode().getSourceEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_600 = " getModelTargetConnections() {" + NL + "\t\treturn getDiagramNode().getTargetEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_601 = " getSourceConnectionAnchor(";
- protected final String TEXT_602 = " connection) {" + NL + "\t\treturn new ";
- protected final String TEXT_603 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_604 = " getSourceConnectionAnchor(";
- protected final String TEXT_605 = " request) {" + NL + "\t\treturn new ";
- protected final String TEXT_606 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_607 = " getTargetConnectionAnchor(";
- protected final String TEXT_608 = " connection) {" + NL + "\t\treturn new ";
- protected final String TEXT_609 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_610 = " getTargetConnectionAnchor(";
- protected final String TEXT_611 = " request) {" + NL + "\t\treturn new ";
- protected final String TEXT_612 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {";
- protected final String TEXT_613 = NL + "\t\tif (";
- protected final String TEXT_614 = ".class == key) {" + NL + "\t\t\treturn new ";
- protected final String TEXT_615 = "(this);" + NL + "\t\t}";
- protected final String TEXT_616 = NL + "\t\tif (";
- protected final String TEXT_617 = ".class == key) {" + NL + "\t\t\treturn getTreeEditPartAdapter();" + NL + "\t\t}";
- protected final String TEXT_618 = NL + "\t\treturn super.getAdapter(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter myTreeEditPartAdapter;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter getTreeEditPartAdapter() {" + NL + "\t\tif (myTreeEditPartAdapter == null) {" + NL + "\t\t\tmyTreeEditPartAdapter = new TreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn myTreeEditPartAdapter;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);";
- protected final String TEXT_619 = NL + "\t\tinstallNotationModelRefresher();";
- protected final String TEXT_620 = NL + "\t\tinstallLinkNotationModelRefresher();";
- protected final String TEXT_621 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {";
- protected final String TEXT_622 = NL + "\t\tuninstallLinkNotationModelRefresher();";
- protected final String TEXT_623 = NL + "\t\tuninstallNotationModelRefresher();";
- protected final String TEXT_624 = NL + "\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}";
- protected final String TEXT_625 = NL;
- protected final String TEXT_626 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t";
- protected final String TEXT_627 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_628 = " domainModelEditDomain = ";
- protected final String TEXT_629 = ".getEditingDomain(";
- protected final String TEXT_630 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_631 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_632 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends ";
- protected final String TEXT_633 = " {";
- protected final String TEXT_634 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in ";
- protected final String TEXT_635 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_636 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn ";
- protected final String TEXT_637 = ".NOT_TOUCH;" + NL + "\t\t}";
- protected final String TEXT_638 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_639 = " createFilter() {";
- protected final String TEXT_640 = NL + "\t\t\t";
- protected final String TEXT_641 = " filter = ";
+ protected final String TEXT_446 = ".NONE);";
+ protected final String TEXT_447 = NL + "\t\tresult.setResizeDirections(";
+ protected final String TEXT_448 = ".";
+ protected final String TEXT_449 = " | ";
+ protected final String TEXT_450 = ");";
+ protected final String TEXT_451 = NL + "\t\treturn result;";
+ protected final String TEXT_452 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_453 = " createFigure() {" + NL + "\t\t";
+ protected final String TEXT_454 = " invisibleRectangle = new ";
+ protected final String TEXT_455 = "();" + NL + "\t\tinvisibleRectangle.setLayoutManager(new ";
+ protected final String TEXT_456 = "());" + NL + "\t\t";
+ protected final String TEXT_457 = " shape = createNodeShape();" + NL + "\t\tinvisibleRectangle.add(shape);" + NL + "\t\tcontentPane = setupContentPane(shape);";
+ protected final String TEXT_458 = NL + "\t\tchildNodesPane = createChildNodesPane();" + NL + "\t\tshape.add(childNodesPane);";
+ protected final String TEXT_459 = NL + NL + "\t\t";
+ protected final String TEXT_460 = " decorationShape = createDecorationPane();" + NL + "\t\tif (decorationShape != null) {" + NL + "\t\t\tmyDecorationManager = createDecorationManager(decorationShape);" + NL + "\t\t\tinvisibleRectangle.add(decorationShape);" + NL + "\t\t}" + NL + "" + NL + "\t\treturn invisibleRectangle;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_461 = " createDecorationManager(";
+ protected final String TEXT_462 = " decorationShape) {" + NL + "\t\treturn new ";
+ protected final String TEXT_463 = "(decorationShape);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_464 = " getDecorationManager() {" + NL + "\t\treturn myDecorationManager;" + NL + "\t}" + NL;
+ protected final String TEXT_465 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_466 = " createChildNodesPane() {" + NL + "\t\t";
+ protected final String TEXT_467 = " result = new ";
+ protected final String TEXT_468 = "();" + NL + "\t\tsetupContentPane(result);" + NL + "\t\treturn result;" + NL + "\t}";
+ protected final String TEXT_469 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_470 = " createNodeShape() {";
+ protected final String TEXT_471 = NL + "\t\tprimaryShape = new ";
+ protected final String TEXT_472 = "()";
+ protected final String TEXT_473 = " {" + NL + "\t\t\tprotected boolean useLocalCoordinates() {" + NL + "\t\t\t\treturn true;" + NL + "\t\t\t}" + NL + "\t\t}";
+ protected final String TEXT_474 = ";";
+ protected final String TEXT_475 = NL + "\t\tprimaryShape = ";
+ protected final String TEXT_476 = ";";
+ protected final String TEXT_477 = NL + "\t\t";
+ protected final String TEXT_478 = " figure = new ";
+ protected final String TEXT_479 = "();";
+ protected final String TEXT_480 = NL + " \t\tfigure.setUseLocalCoordinates(true);";
+ protected final String TEXT_481 = NL + " \t\tprimaryShape = figure;";
+ protected final String TEXT_482 = NL + "\t\treturn primaryShape;" + NL + "\t}";
+ protected final String TEXT_483 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_484 = " getPrimaryShape() {" + NL + "\t\treturn (";
+ protected final String TEXT_485 = ") primaryShape;" + NL + "\t}";
+ protected final String TEXT_486 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_487 = " createDecorationPane() {" + NL + "\t\treturn new ";
+ protected final String TEXT_488 = "();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Default implementation treats passed figure as content pane." + NL + "\t * Respects layout one may have set for generated figure." + NL + "\t * @param nodeShape instance of generated figure class" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_489 = " setupContentPane(";
+ protected final String TEXT_490 = " nodeShape) {" + NL + "\t\tif (nodeShape.getLayoutManager() == null) {";
+ protected final String TEXT_491 = NL + "\t\t\t";
+ protected final String TEXT_492 = " layout = new ";
+ protected final String TEXT_493 = "();" + NL + "\t\t\tlayout.setSpacing(5);" + NL + "\t\t\tnodeShape.setLayoutManager(layout);";
+ protected final String TEXT_494 = NL + "\t\tnodeShape.setLayoutManager(new ";
+ protected final String TEXT_495 = "() {" + NL + "" + NL + "\t\t\tpublic Object getConstraint(";
+ protected final String TEXT_496 = " figure) {" + NL + "\t\t\t\tObject result = constraints.get(figure);" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\tresult = new ";
+ protected final String TEXT_497 = "(0, 0, -1, -1);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn result;" + NL + "\t\t\t}" + NL + "\t\t});";
+ protected final String TEXT_498 = NL + "\t\t}" + NL + "\t\treturn nodeShape; // use nodeShape itself as contentPane" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_499 = " getContentPane() {" + NL + "\t\tif (contentPane == null) {" + NL + "\t\t\treturn super.getContentPane();" + NL + "\t\t}" + NL + "\t\treturn contentPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_500 = " getDiagramNode() {" + NL + "\t\treturn (";
+ protected final String TEXT_501 = ") getModel();" + NL + "\t}" + NL;
+ protected final String TEXT_502 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean addFixedChild(";
+ protected final String TEXT_503 = " childEditPart) {";
+ protected final String TEXT_504 = NL + "\t\tif (childEditPart instanceof ";
+ protected final String TEXT_505 = ") {" + NL + "\t\t\t((";
+ protected final String TEXT_506 = ") childEditPart).";
+ protected final String TEXT_507 = "(getPrimaryShape().";
+ protected final String TEXT_508 = "());" + NL + "\t\t\treturn true;" + NL + "\t\t}";
+ protected final String TEXT_509 = NL + "\t\tif (childEditPart instanceof ";
+ protected final String TEXT_510 = ") {" + NL + "\t\t\t";
+ protected final String TEXT_511 = " pane = getPrimaryShape().";
+ protected final String TEXT_512 = "();" + NL + "\t\t\tsetupContentPane(pane); // FIXME each comparment should handle his content pane in his own way " + NL + "\t\t\tpane.add(((";
+ protected final String TEXT_513 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t";
+ protected final String TEXT_514 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean removeFixedChild(EditPart childEditPart) {";
+ protected final String TEXT_515 = "\t\t" + NL + "\t\tif (childEditPart instanceof ";
+ protected final String TEXT_516 = ") {" + NL + "\t\t\t";
+ protected final String TEXT_517 = " pane = getPrimaryShape().";
+ protected final String TEXT_518 = "();" + NL + "\t\t\tpane.remove(((";
+ protected final String TEXT_519 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t";
+ protected final String TEXT_520 = NL + "\t\treturn false;" + NL + "\t}";
+ protected final String TEXT_521 = NL + NL + "\t/**" + NL + "\t * Returns the label which should be direct-edited by default." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_522 = " getPrimaryLabelEditPart() {";
+ protected final String TEXT_523 = NL + "\t\tfor(";
+ protected final String TEXT_524 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t";
+ protected final String TEXT_525 = " nextChild = (";
+ protected final String TEXT_526 = ")it.next();" + NL + "\t\t\tif (";
+ protected final String TEXT_527 = ".getVisualID(nextChild) == ";
+ protected final String TEXT_528 = ".VISUAL_ID) {" + NL + "\t\t\t\treturn (";
+ protected final String TEXT_529 = ") getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t}" + NL + "\t\t}";
+ protected final String TEXT_530 = NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest(";
+ protected final String TEXT_531 = " req) {" + NL + "\t\tif (";
+ protected final String TEXT_532 = ".REQ_DIRECT_EDIT.equals(req.getType())) {" + NL + "\t\t\t";
+ protected final String TEXT_533 = " labelToEdit;" + NL + "\t\t\tif (req instanceof ";
+ protected final String TEXT_534 = ") {" + NL + "\t\t\t\tlabelToEdit = getLabelEditPart((";
+ protected final String TEXT_535 = ")req);" + NL + "\t\t\t} else {" + NL + "\t\t\t\tlabelToEdit = getPrimaryLabelEditPart();" + NL + "\t\t\t}" + NL + "\t\t\tif (labelToEdit != null) {" + NL + "\t\t\t\tlabelToEdit.performRequest(req);" + NL + "\t\t\t}" + NL + "\t\t}";
+ protected final String TEXT_536 = NL;
+ protected final String TEXT_537 = "if (";
+ protected final String TEXT_538 = ".REQ_OPEN.equals(req.getType())) {" + NL + "\t";
+ protected final String TEXT_539 = " command = getCommand(req);" + NL + "\tif (command != null && command.canExecute()) {" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(command);" + NL + "\t}" + NL + "\treturn;" + NL + "}" + NL + "\t\tsuper.performRequest(req);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_540 = " getLabelEditPart(";
+ protected final String TEXT_541 = " req) {" + NL + "\t\t";
+ protected final String TEXT_542 = " result = getViewer().findObjectAt(req.getLocation());" + NL + "\t\tif (result != null) {" + NL + "\t\t\t";
+ protected final String TEXT_543 = " view = (";
+ protected final String TEXT_544 = ") result.getModel();" + NL + "\t\t\tif (getDiagramNode().getChildren().contains(view)) {" + NL + "\t\t\t\tint visualId = ";
+ protected final String TEXT_545 = ".getVisualID(view);" + NL + "\t\t\t\tswitch (visualId) {";
+ protected final String TEXT_546 = NL + "\t\t\t\tcase ";
+ protected final String TEXT_547 = ".VISUAL_ID:" + NL + "\t\t\t\t\treturn result;";
+ protected final String TEXT_548 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn getPrimaryLabelEditPart();" + NL + "\t}" + NL;
+ protected final String TEXT_549 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isExternalLabel(";
+ protected final String TEXT_550 = " childEditPart) {";
+ protected final String TEXT_551 = NL + "\t\tif (childEditPart instanceof ";
+ protected final String TEXT_552 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}";
+ protected final String TEXT_553 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_554 = " getExternalLabelsContainer() {" + NL + "\t\t";
+ protected final String TEXT_555 = " root = (";
+ protected final String TEXT_556 = ") getRoot();" + NL + "\t\treturn root.getLayer(";
+ protected final String TEXT_557 = ".EXTERNAL_NODE_LABELS_LAYER);" + NL + "\t}" + NL;
+ protected final String TEXT_558 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isDirectChild(";
+ protected final String TEXT_559 = " childEditPart) {";
+ protected final String TEXT_560 = NL + "\t\tif (childEditPart instanceof ";
+ protected final String TEXT_561 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}";
+ protected final String TEXT_562 = NL + "\t\treturn false;" + NL + "\t}";
+ protected final String TEXT_563 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void addChildVisual(";
+ protected final String TEXT_564 = " childEditPart, int index) {";
+ protected final String TEXT_565 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t";
+ protected final String TEXT_566 = " labelFigure = ((";
+ protected final String TEXT_567 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().add(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}";
+ protected final String TEXT_568 = NL + "\t\tif (addFixedChild(childEditPart)) {" + NL + "\t\t\treturn;" + NL + "\t\t}";
+ protected final String TEXT_569 = NL + "\t\tif (isDirectChild(childEditPart)) {" + NL + "\t\t\t";
+ protected final String TEXT_570 = " childFigure = ((";
+ protected final String TEXT_571 = ") childEditPart).getFigure();" + NL + "\t\t\tchildNodesPane.add(childFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}";
+ protected final String TEXT_572 = NL + "\t\tsuper.addChildVisual(childEditPart, -1);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void removeChildVisual(";
+ protected final String TEXT_573 = " childEditPart) {";
+ protected final String TEXT_574 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t";
+ protected final String TEXT_575 = " labelFigure = ((";
+ protected final String TEXT_576 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}";
+ protected final String TEXT_577 = NL + "\t\tif (removeFixedChild(childEditPart)){" + NL + "\t\t\treturn;" + NL + "\t\t}";
+ protected final String TEXT_578 = NL + "\t\tif (isDirectChild(childEditPart)) {" + NL + "\t\t\t";
+ protected final String TEXT_579 = " childFigure = ((";
+ protected final String TEXT_580 = ") childEditPart).getFigure();" + NL + "\t\t\tchildNodesPane.remove(childFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}";
+ protected final String TEXT_581 = NL + "\t\tsuper.removeChildVisual(childEditPart);" + NL + "\t}";
+ protected final String TEXT_582 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeNotify() {" + NL + "\t\tfor (";
+ protected final String TEXT_583 = " it = getChildren().iterator(); it.hasNext();) {" + NL + "\t\t\t";
+ protected final String TEXT_584 = " childEditPart = (";
+ protected final String TEXT_585 = ") it.next();" + NL + "\t\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t\tIFigure labelFigure = ((";
+ protected final String TEXT_586 = ") childEditPart).getFigure();" + NL + "\t\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tsuper.removeNotify();" + NL + "\t}";
+ protected final String TEXT_587 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "\t\trefreshBounds();" + NL + "\t\trefreshBackgroundColor();" + NL + "\t\trefreshForegroundColor();" + NL + "\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = getDiagramNode().isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBounds() {" + NL + "\t\t";
+ protected final String TEXT_588 = " node = getDiagramNode();" + NL + "\t\tif (node.getLayoutConstraint() == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tassert node.getLayoutConstraint() instanceof ";
+ protected final String TEXT_589 = ";" + NL + "\t\t";
+ protected final String TEXT_590 = " bounds = (";
+ protected final String TEXT_591 = ") node.getLayoutConstraint();" + NL + "\t\tint x = bounds.getX();" + NL + "\t\tint y = bounds.getY();" + NL + "\t\tint width = bounds.getWidth();" + NL + "\t\tint height = bounds.getHeight();" + NL + "\t\tif (width < 0) {" + NL + "\t\t\tx -= width;" + NL + "\t\t\twidth = -width;" + NL + "\t\t}" + NL + "\t\tif (height < 0) {" + NL + "\t\t\ty -= height;" + NL + "\t\t\theight = -height;" + NL + "\t\t}" + NL + "\t\t((";
+ protected final String TEXT_592 = ") getParent()).setLayoutConstraint(this, getFigure(), " + NL + "\t\t\tnew ";
+ protected final String TEXT_593 = "(x, y, width, height));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_594 = " getModelChildren() {" + NL + "\t\treturn getDiagramNode().getVisibleChildren();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_595 = " getModelSourceConnections() {" + NL + "\t\treturn getDiagramNode().getSourceEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_596 = " getModelTargetConnections() {" + NL + "\t\treturn getDiagramNode().getTargetEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_597 = " getSourceConnectionAnchor(";
+ protected final String TEXT_598 = " connection) {" + NL + "\t\treturn new ";
+ protected final String TEXT_599 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_600 = " getSourceConnectionAnchor(";
+ protected final String TEXT_601 = " request) {" + NL + "\t\treturn new ";
+ protected final String TEXT_602 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_603 = " getTargetConnectionAnchor(";
+ protected final String TEXT_604 = " connection) {" + NL + "\t\treturn new ";
+ protected final String TEXT_605 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_606 = " getTargetConnectionAnchor(";
+ protected final String TEXT_607 = " request) {" + NL + "\t\treturn new ";
+ protected final String TEXT_608 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {";
+ protected final String TEXT_609 = NL + "\t\tif (";
+ protected final String TEXT_610 = ".class == key) {" + NL + "\t\t\treturn new ";
+ protected final String TEXT_611 = "(this);" + NL + "\t\t}";
+ protected final String TEXT_612 = NL + "\t\tif (";
+ protected final String TEXT_613 = ".class == key) {" + NL + "\t\t\treturn getTreeEditPartAdapter();" + NL + "\t\t}";
+ protected final String TEXT_614 = NL + "\t\treturn super.getAdapter(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter myTreeEditPartAdapter;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter getTreeEditPartAdapter() {" + NL + "\t\tif (myTreeEditPartAdapter == null) {" + NL + "\t\t\tmyTreeEditPartAdapter = new TreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn myTreeEditPartAdapter;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);";
+ protected final String TEXT_615 = NL + "\t\tinstallNotationModelRefresher();";
+ protected final String TEXT_616 = NL + "\t\tinstallLinkNotationModelRefresher();";
+ protected final String TEXT_617 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {";
+ protected final String TEXT_618 = NL + "\t\tuninstallLinkNotationModelRefresher();";
+ protected final String TEXT_619 = NL + "\t\tuninstallNotationModelRefresher();";
+ protected final String TEXT_620 = NL + "\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}";
+ protected final String TEXT_621 = NL;
+ protected final String TEXT_622 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t";
+ protected final String TEXT_623 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_624 = " domainModelEditDomain = ";
+ protected final String TEXT_625 = ".getEditingDomain(";
+ protected final String TEXT_626 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_627 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_628 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends ";
+ protected final String TEXT_629 = " {";
+ protected final String TEXT_630 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in ";
+ protected final String TEXT_631 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_632 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_633 = ".NOT_TOUCH;" + NL + "\t\t}";
+ protected final String TEXT_634 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_635 = " createFilter() {";
+ protected final String TEXT_636 = NL + "\t\t\t";
+ protected final String TEXT_637 = " filter = ";
+ protected final String TEXT_638 = ".createFeatureFilter(";
+ protected final String TEXT_639 = ".eINSTANCE.get";
+ protected final String TEXT_640 = "());";
+ protected final String TEXT_641 = NL + "\t\t\tfilter = filter.or(";
protected final String TEXT_642 = ".createFeatureFilter(";
protected final String TEXT_643 = ".eINSTANCE.get";
- protected final String TEXT_644 = "());";
- protected final String TEXT_645 = NL + "\t\t\tfilter = filter.or(";
- protected final String TEXT_646 = ".createFeatureFilter(";
- protected final String TEXT_647 = ".eINSTANCE.get";
- protected final String TEXT_648 = "()));";
- protected final String TEXT_649 = NL + "\t\t\tfilter = filter.and(";
+ protected final String TEXT_644 = "()));";
+ protected final String TEXT_645 = NL + "\t\t\tfilter = filter.and(";
+ protected final String TEXT_646 = ".createNotifierFilter(";
+ protected final String TEXT_647 = ".getElement()));";
+ protected final String TEXT_648 = NL + "\t\t\t";
+ protected final String TEXT_649 = " filter = ";
protected final String TEXT_650 = ".createNotifierFilter(";
- protected final String TEXT_651 = ".getElement()));";
- protected final String TEXT_652 = NL + "\t\t\t";
- protected final String TEXT_653 = " filter = ";
- protected final String TEXT_654 = ".createNotifierFilter(";
- protected final String TEXT_655 = ".getElement());";
- protected final String TEXT_656 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);";
- protected final String TEXT_657 = NL + "\t\t\t";
- protected final String TEXT_658 = " filter = getConstrainedChildrenFilter();";
- protected final String TEXT_659 = NL + "\t\t\t";
- protected final String TEXT_660 = " filter = ";
- protected final String TEXT_661 = ".NOT_TOUCH;";
- protected final String TEXT_662 = NL + "\t\t\treturn filter;";
- protected final String TEXT_663 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_664 = " getCreateNotationalElementCommand(";
- protected final String TEXT_665 = " descriptor) {";
- protected final String TEXT_666 = NL;
- protected final String TEXT_667 = "\t\t\t";
- protected final String TEXT_668 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {";
- protected final String TEXT_669 = NL + "\t\t\tcase ";
- protected final String TEXT_670 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof ";
- protected final String TEXT_671 = ") {" + NL + "\t\t\t\t\treturn new ";
- protected final String TEXT_672 = "(";
- protected final String TEXT_673 = ", domainElement, ";
- protected final String TEXT_674 = "new ";
- protected final String TEXT_675 = "(0, 0, ";
- protected final String TEXT_676 = ", ";
- protected final String TEXT_677 = ")";
- protected final String TEXT_678 = NL + "null";
- protected final String TEXT_679 = ", ";
- protected final String TEXT_680 = ".INSTANCE, false);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;";
- protected final String TEXT_681 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}";
- protected final String TEXT_682 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_683 = " getSemanticChildNodes() {";
- protected final String TEXT_684 = NL;
- protected final String TEXT_685 = NL + "\treturn ";
- protected final String TEXT_686 = ".EMPTY_LIST;";
- protected final String TEXT_687 = NL + "\t";
- protected final String TEXT_688 = " result = new ";
- protected final String TEXT_689 = "();";
- protected final String TEXT_690 = NL + "\t";
- protected final String TEXT_691 = " viewObject = ";
- protected final String TEXT_692 = ";" + NL + "\t";
- protected final String TEXT_693 = " modelObject = viewObject.getElement();" + NL + "\t";
- protected final String TEXT_694 = " nextValue;" + NL + "\tint nodeVID;";
- protected final String TEXT_695 = NL + "\tfor(";
- protected final String TEXT_696 = " it = ";
- protected final String TEXT_697 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
- protected final String TEXT_698 = ") it.next();";
- protected final String TEXT_699 = NL + "\tnextValue = (";
- protected final String TEXT_700 = ")";
- protected final String TEXT_701 = ";";
- protected final String TEXT_702 = NL + "\tnodeVID = ";
- protected final String TEXT_703 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);";
- protected final String TEXT_704 = NL + "\tswitch (nodeVID) {";
- protected final String TEXT_705 = NL + "\tcase ";
- protected final String TEXT_706 = ".VISUAL_ID: {";
- protected final String TEXT_707 = NL + "\tif (";
- protected final String TEXT_708 = ".VISUAL_ID == nodeVID) {";
- protected final String TEXT_709 = NL + "\t\tresult.add(new ";
- protected final String TEXT_710 = "(nextValue, nodeVID));";
- protected final String TEXT_711 = NL + "\t\tbreak;" + NL + "\t\t}";
- protected final String TEXT_712 = NL + "\t\t}";
- protected final String TEXT_713 = NL + "\t}";
- protected final String TEXT_714 = NL + "\t}";
- protected final String TEXT_715 = NL + "\treturn result;";
- protected final String TEXT_716 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns ";
- protected final String TEXT_717 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView(";
- protected final String TEXT_718 = " descriptor) {" + NL + "\t\t\treturn ";
- protected final String TEXT_719 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_720 = " getHost() {" + NL + "\t\t\treturn ";
- protected final String TEXT_721 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t";
- protected final String TEXT_722 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_723 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_724 = " domainModelEditDomain = ";
- protected final String TEXT_725 = ".getEditingDomain(";
- protected final String TEXT_726 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new ";
- protected final String TEXT_727 = "(domainModelEditDomain, command));" + NL + "\t}" + NL;
- protected final String TEXT_728 = NL;
- protected final String TEXT_729 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installLinkNotationModelRefresher() {" + NL + "\t\tLinkNotationModelRefresher refresher = getLinkNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_730 = " domainModelEditDomain = ";
- protected final String TEXT_731 = ".getEditingDomain(";
- protected final String TEXT_732 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshLinkNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallLinkNotationModelRefresher() {" + NL + "\t\tgetLinkNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher linkNotationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * Service to find a notational element that corresponds to the given underlying domain element. " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_733 = " viewService;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_734 = " getViewService() {" + NL + "\t\tif (viewService == null) {" + NL + "\t\t\tviewService = new ";
- protected final String TEXT_735 = "(getViewer());" + NL + "\t\t}" + NL + "\t\treturn viewService;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher getLinkNotationModelRefresher() {" + NL + "\t\tif (linkNotationModelRefresher == null) {" + NL + "\t\t\tlinkNotationModelRefresher = new LinkNotationModelRefresher(getViewService());" + NL + "\t\t}" + NL + "\t\treturn linkNotationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class LinkNotationModelRefresher extends ";
- protected final String TEXT_736 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic LinkNotationModelRefresher(";
- protected final String TEXT_737 = " viewService) {" + NL + "\t\t\tsuper(viewService);" + NL + "\t\t}";
- protected final String TEXT_738 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Child links of this element are selected based on constraint declared in ";
- protected final String TEXT_739 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_740 = " getConstrainedChildLinksFilter() {" + NL + "\t\t\treturn ";
- protected final String TEXT_741 = ".NOT_TOUCH;" + NL + "\t\t}";
- protected final String TEXT_742 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly result in uncontained links. " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_743 = " createUncontainedLinksFilter() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_651 = ".getElement());";
+ protected final String TEXT_652 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);";
+ protected final String TEXT_653 = NL + "\t\t\t";
+ protected final String TEXT_654 = " filter = getConstrainedChildrenFilter();";
+ protected final String TEXT_655 = NL + "\t\t\t";
+ protected final String TEXT_656 = " filter = ";
+ protected final String TEXT_657 = ".NOT_TOUCH;";
+ protected final String TEXT_658 = NL + "\t\t\treturn filter;";
+ protected final String TEXT_659 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_660 = " getCreateNotationalElementCommand(";
+ protected final String TEXT_661 = " descriptor) {";
+ protected final String TEXT_662 = NL;
+ protected final String TEXT_663 = "\t\t\t";
+ protected final String TEXT_664 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {";
+ protected final String TEXT_665 = NL + "\t\t\tcase ";
+ protected final String TEXT_666 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof ";
+ protected final String TEXT_667 = ") {" + NL + "\t\t\t\t\treturn new ";
+ protected final String TEXT_668 = "(";
+ protected final String TEXT_669 = ", domainElement, ";
+ protected final String TEXT_670 = "new ";
+ protected final String TEXT_671 = "(0, 0, ";
+ protected final String TEXT_672 = ", ";
+ protected final String TEXT_673 = ")";
+ protected final String TEXT_674 = NL + "null";
+ protected final String TEXT_675 = ", ";
+ protected final String TEXT_676 = ".INSTANCE, false);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;";
+ protected final String TEXT_677 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}";
+ protected final String TEXT_678 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_679 = " getSemanticChildNodes() {";
+ protected final String TEXT_680 = NL;
+ protected final String TEXT_681 = NL + "\treturn ";
+ protected final String TEXT_682 = ".EMPTY_LIST;";
+ protected final String TEXT_683 = NL + "\t";
+ protected final String TEXT_684 = " result = new ";
+ protected final String TEXT_685 = "();";
+ protected final String TEXT_686 = NL + "\t";
+ protected final String TEXT_687 = " viewObject = ";
+ protected final String TEXT_688 = ";" + NL + "\t";
+ protected final String TEXT_689 = " modelObject = viewObject.getElement();" + NL + "\t";
+ protected final String TEXT_690 = " nextValue;" + NL + "\tint nodeVID;";
+ protected final String TEXT_691 = NL + "\tfor(";
+ protected final String TEXT_692 = " it = ";
+ protected final String TEXT_693 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
+ protected final String TEXT_694 = ") it.next();";
+ protected final String TEXT_695 = NL + "\tnextValue = (";
+ protected final String TEXT_696 = ")";
+ protected final String TEXT_697 = ";";
+ protected final String TEXT_698 = NL + "\tnodeVID = ";
+ protected final String TEXT_699 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);";
+ protected final String TEXT_700 = NL + "\tswitch (nodeVID) {";
+ protected final String TEXT_701 = NL + "\tcase ";
+ protected final String TEXT_702 = ".VISUAL_ID: {";
+ protected final String TEXT_703 = NL + "\tif (";
+ protected final String TEXT_704 = ".VISUAL_ID == nodeVID) {";
+ protected final String TEXT_705 = NL + "\t\tresult.add(new ";
+ protected final String TEXT_706 = "(nextValue, nodeVID));";
+ protected final String TEXT_707 = NL + "\t\tbreak;" + NL + "\t\t}";
+ protected final String TEXT_708 = NL + "\t\t}";
+ protected final String TEXT_709 = NL + "\t}";
+ protected final String TEXT_710 = NL + "\t}";
+ protected final String TEXT_711 = NL + "\treturn result;";
+ protected final String TEXT_712 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns ";
+ protected final String TEXT_713 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView(";
+ protected final String TEXT_714 = " descriptor) {" + NL + "\t\t\treturn ";
+ protected final String TEXT_715 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_716 = " getHost() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_717 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t";
+ protected final String TEXT_718 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_719 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_720 = " domainModelEditDomain = ";
+ protected final String TEXT_721 = ".getEditingDomain(";
+ protected final String TEXT_722 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new ";
+ protected final String TEXT_723 = "(domainModelEditDomain, command));" + NL + "\t}" + NL;
+ protected final String TEXT_724 = NL;
+ protected final String TEXT_725 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installLinkNotationModelRefresher() {" + NL + "\t\tLinkNotationModelRefresher refresher = getLinkNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_726 = " domainModelEditDomain = ";
+ protected final String TEXT_727 = ".getEditingDomain(";
+ protected final String TEXT_728 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshLinkNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallLinkNotationModelRefresher() {" + NL + "\t\tgetLinkNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher linkNotationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * Service to find a notational element that corresponds to the given underlying domain element. " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_729 = " viewService;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_730 = " getViewService() {" + NL + "\t\tif (viewService == null) {" + NL + "\t\t\tviewService = new ";
+ protected final String TEXT_731 = "(getViewer());" + NL + "\t\t}" + NL + "\t\treturn viewService;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher getLinkNotationModelRefresher() {" + NL + "\t\tif (linkNotationModelRefresher == null) {" + NL + "\t\t\tlinkNotationModelRefresher = new LinkNotationModelRefresher(getViewService());" + NL + "\t\t}" + NL + "\t\treturn linkNotationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class LinkNotationModelRefresher extends ";
+ protected final String TEXT_732 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic LinkNotationModelRefresher(";
+ protected final String TEXT_733 = " viewService) {" + NL + "\t\t\tsuper(viewService);" + NL + "\t\t}";
+ protected final String TEXT_734 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Child links of this element are selected based on constraint declared in ";
+ protected final String TEXT_735 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_736 = " getConstrainedChildLinksFilter() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_737 = ".NOT_TOUCH;" + NL + "\t\t}";
+ protected final String TEXT_738 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly result in uncontained links. " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_739 = " createUncontainedLinksFilter() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_740 = ".createEventTypeFilter(";
+ protected final String TEXT_741 = ".SET).or(" + NL + "\t\t\t\t";
+ protected final String TEXT_742 = ".createEventTypeFilter(";
+ protected final String TEXT_743 = ".UNSET).or(" + NL + "\t\t\t\t";
protected final String TEXT_744 = ".createEventTypeFilter(";
- protected final String TEXT_745 = ".SET).or(" + NL + "\t\t\t\t";
+ protected final String TEXT_745 = ".REMOVE).or(" + NL + "\t\t\t\t";
protected final String TEXT_746 = ".createEventTypeFilter(";
- protected final String TEXT_747 = ".UNSET).or(" + NL + "\t\t\t\t";
- protected final String TEXT_748 = ".createEventTypeFilter(";
- protected final String TEXT_749 = ".REMOVE).or(" + NL + "\t\t\t\t";
- protected final String TEXT_750 = ".createEventTypeFilter(";
- protected final String TEXT_751 = ".REMOVE_MANY)" + NL + "\t\t\t)));" + NL + "\t\t}";
- protected final String TEXT_752 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_753 = " createFilter() {";
- protected final String TEXT_754 = NL;
- protected final String TEXT_755 = NL + "\t\t\t";
- protected final String TEXT_756 = " filter = ";
+ protected final String TEXT_747 = ".REMOVE_MANY)" + NL + "\t\t\t)));" + NL + "\t\t}";
+ protected final String TEXT_748 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_749 = " createFilter() {";
+ protected final String TEXT_750 = NL;
+ protected final String TEXT_751 = NL + "\t\t\t";
+ protected final String TEXT_752 = " filter = ";
+ protected final String TEXT_753 = ".createFeatureFilter(";
+ protected final String TEXT_754 = ".eINSTANCE.get";
+ protected final String TEXT_755 = "());";
+ protected final String TEXT_756 = NL + "\t\t\tfilter = filter.or(";
protected final String TEXT_757 = ".createFeatureFilter(";
protected final String TEXT_758 = ".eINSTANCE.get";
- protected final String TEXT_759 = "());";
- protected final String TEXT_760 = NL + "\t\t\tfilter = filter.or(";
- protected final String TEXT_761 = ".createFeatureFilter(";
- protected final String TEXT_762 = ".eINSTANCE.get";
- protected final String TEXT_763 = "()));";
- protected final String TEXT_764 = NL;
- protected final String TEXT_765 = NL + "\t\t\t";
- protected final String TEXT_766 = " filter = ";
+ protected final String TEXT_759 = "()));";
+ protected final String TEXT_760 = NL;
+ protected final String TEXT_761 = NL + "\t\t\t";
+ protected final String TEXT_762 = " filter = ";
+ protected final String TEXT_763 = ".createFeatureFilter(";
+ protected final String TEXT_764 = ".eINSTANCE.get";
+ protected final String TEXT_765 = "());";
+ protected final String TEXT_766 = NL + "\t\t\tfilter = filter.or(";
protected final String TEXT_767 = ".createFeatureFilter(";
protected final String TEXT_768 = ".eINSTANCE.get";
- protected final String TEXT_769 = "());";
- protected final String TEXT_770 = NL + "\t\t\tfilter = filter.or(";
- protected final String TEXT_771 = ".createFeatureFilter(";
- protected final String TEXT_772 = ".eINSTANCE.get";
- protected final String TEXT_773 = "()));";
- protected final String TEXT_774 = NL;
- protected final String TEXT_775 = NL + "\t\t\t";
- protected final String TEXT_776 = " filter = ";
+ protected final String TEXT_769 = "()));";
+ protected final String TEXT_770 = NL;
+ protected final String TEXT_771 = NL + "\t\t\t";
+ protected final String TEXT_772 = " filter = ";
+ protected final String TEXT_773 = ".createFeatureFilter(";
+ protected final String TEXT_774 = ".eINSTANCE.get";
+ protected final String TEXT_775 = "());";
+ protected final String TEXT_776 = NL + "\t\t\tfilter = filter.or(";
protected final String TEXT_777 = ".createFeatureFilter(";
protected final String TEXT_778 = ".eINSTANCE.get";
- protected final String TEXT_779 = "());";
- protected final String TEXT_780 = NL + "\t\t\tfilter = filter.or(";
- protected final String TEXT_781 = ".createFeatureFilter(";
- protected final String TEXT_782 = ".eINSTANCE.get";
- protected final String TEXT_783 = "()));";
- protected final String TEXT_784 = NL;
- protected final String TEXT_785 = NL + "\t\t\t";
- protected final String TEXT_786 = " filter = ";
+ protected final String TEXT_779 = "()));";
+ protected final String TEXT_780 = NL;
+ protected final String TEXT_781 = NL + "\t\t\t";
+ protected final String TEXT_782 = " filter = ";
+ protected final String TEXT_783 = ".createFeatureFilter(";
+ protected final String TEXT_784 = ".eINSTANCE.get";
+ protected final String TEXT_785 = "());";
+ protected final String TEXT_786 = NL + "\t\t\tfilter = filter.or(";
protected final String TEXT_787 = ".createFeatureFilter(";
protected final String TEXT_788 = ".eINSTANCE.get";
- protected final String TEXT_789 = "());";
- protected final String TEXT_790 = NL + "\t\t\tfilter = filter.or(";
- protected final String TEXT_791 = ".createFeatureFilter(";
- protected final String TEXT_792 = ".eINSTANCE.get";
- protected final String TEXT_793 = "()));";
- protected final String TEXT_794 = NL + "\t\t\tfilter = getConstrainedChildLinksFilter().or(filter);";
- protected final String TEXT_795 = NL + "\t\t\t";
- protected final String TEXT_796 = " filter = getConstrainedChildLinksFilter();";
- protected final String TEXT_797 = NL + "\t\t\tfilter = filter.or(createUncontainedLinksFilter());";
- protected final String TEXT_798 = NL + "\t\t\t";
- protected final String TEXT_799 = " filter = createUncontainedLinksFilter();";
- protected final String TEXT_800 = NL + "\t\t\t";
- protected final String TEXT_801 = " filter = ";
- protected final String TEXT_802 = ".NOT_TOUCH;";
- protected final String TEXT_803 = NL + "\t\t\treturn filter;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t \t * @generated" + NL + "\t \t */" + NL + "\t\tprotected ";
- protected final String TEXT_804 = " getCreateNotationalElementCommand(";
- protected final String TEXT_805 = " descriptor) {" + NL + "\t\t\t";
- protected final String TEXT_806 = " linkDescriptor = (";
- protected final String TEXT_807 = ") descriptor;";
- protected final String TEXT_808 = NL;
- protected final String TEXT_809 = "\t\t\t";
- protected final String TEXT_810 = " sourceView = getViewService().findView(linkDescriptor.getSource());" + NL + "\t\t\t";
- protected final String TEXT_811 = " targetView = getViewService().findView(linkDescriptor.getDestination());" + NL + "\t\t\t";
- protected final String TEXT_812 = " decorator = null;" + NL + "\t\t\tif (sourceView == null || targetView == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tswitch (linkDescriptor.getVisualID()) {";
+ protected final String TEXT_789 = "()));";
+ protected final String TEXT_790 = NL + "\t\t\tfilter = getConstrainedChildLinksFilter().or(filter);";
+ protected final String TEXT_791 = NL + "\t\t\t";
+ protected final String TEXT_792 = " filter = getConstrainedChildLinksFilter();";
+ protected final String TEXT_793 = NL + "\t\t\tfilter = filter.or(createUncontainedLinksFilter());";
+ protected final String TEXT_794 = NL + "\t\t\t";
+ protected final String TEXT_795 = " filter = createUncontainedLinksFilter();";
+ protected final String TEXT_796 = NL + "\t\t\t";
+ protected final String TEXT_797 = " filter = ";
+ protected final String TEXT_798 = ".NOT_TOUCH;";
+ protected final String TEXT_799 = NL + "\t\t\treturn filter;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t \t * @generated" + NL + "\t \t */" + NL + "\t\tprotected ";
+ protected final String TEXT_800 = " getCreateNotationalElementCommand(";
+ protected final String TEXT_801 = " descriptor) {" + NL + "\t\t\t";
+ protected final String TEXT_802 = " linkDescriptor = (";
+ protected final String TEXT_803 = ") descriptor;";
+ protected final String TEXT_804 = NL;
+ protected final String TEXT_805 = "\t\t\t";
+ protected final String TEXT_806 = " sourceView = getViewService().findView(linkDescriptor.getSource());" + NL + "\t\t\t";
+ protected final String TEXT_807 = " targetView = getViewService().findView(linkDescriptor.getDestination());" + NL + "\t\t\t";
+ protected final String TEXT_808 = " decorator = null;" + NL + "\t\t\tif (sourceView == null || targetView == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tswitch (linkDescriptor.getVisualID()) {";
+ protected final String TEXT_809 = NL + "\t\t\tcase ";
+ protected final String TEXT_810 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() instanceof ";
+ protected final String TEXT_811 = ") {" + NL + "\t\t\t\t\tdecorator = ";
+ protected final String TEXT_812 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;";
protected final String TEXT_813 = NL + "\t\t\tcase ";
- protected final String TEXT_814 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() instanceof ";
- protected final String TEXT_815 = ") {" + NL + "\t\t\t\t\tdecorator = ";
- protected final String TEXT_816 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;";
- protected final String TEXT_817 = NL + "\t\t\tcase ";
- protected final String TEXT_818 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() == null) {" + NL + "\t\t\t\t\tdecorator = ";
- protected final String TEXT_819 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;";
- protected final String TEXT_820 = NL + "\t\t\t}" + NL + "\t\t\tif (decorator == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\treturn new ";
- protected final String TEXT_821 = "(";
- protected final String TEXT_822 = ", linkDescriptor.getElement(), sourceView, targetView, decorator);";
- protected final String TEXT_823 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_824 = " getSemanticChildLinks() {";
- protected final String TEXT_825 = NL;
- protected final String TEXT_826 = "\t";
- protected final String TEXT_827 = " result = new ";
- protected final String TEXT_828 = "();";
- protected final String TEXT_829 = NL + "\t";
- protected final String TEXT_830 = " modelObject = ";
- protected final String TEXT_831 = ".getElement();" + NL + "\t";
- protected final String TEXT_832 = " nextValue;";
- protected final String TEXT_833 = NL + "\tint linkVID;";
- protected final String TEXT_834 = NL + "\tfor(";
- protected final String TEXT_835 = " it = ";
- protected final String TEXT_836 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
- protected final String TEXT_837 = ") it.next();";
- protected final String TEXT_838 = NL + "\tnextValue = (";
- protected final String TEXT_839 = ")";
- protected final String TEXT_840 = ";";
- protected final String TEXT_841 = NL + "\tlinkVID = ";
- protected final String TEXT_842 = ".INSTANCE.getLinkWithClassVisualID(nextValue);";
- protected final String TEXT_843 = NL + "\tswitch (linkVID) {";
- protected final String TEXT_844 = NL + "\tcase ";
- protected final String TEXT_845 = ".VISUAL_ID: {";
- protected final String TEXT_846 = NL + "\tif (";
- protected final String TEXT_847 = ".VISUAL_ID == linkVID) {";
+ protected final String TEXT_814 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() == null) {" + NL + "\t\t\t\t\tdecorator = ";
+ protected final String TEXT_815 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;";
+ protected final String TEXT_816 = NL + "\t\t\t}" + NL + "\t\t\tif (decorator == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\treturn new ";
+ protected final String TEXT_817 = "(";
+ protected final String TEXT_818 = ", linkDescriptor.getElement(), sourceView, targetView, decorator);";
+ protected final String TEXT_819 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_820 = " getSemanticChildLinks() {";
+ protected final String TEXT_821 = NL;
+ protected final String TEXT_822 = "\t";
+ protected final String TEXT_823 = " result = new ";
+ protected final String TEXT_824 = "();";
+ protected final String TEXT_825 = NL + "\t";
+ protected final String TEXT_826 = " modelObject = ";
+ protected final String TEXT_827 = ".getElement();" + NL + "\t";
+ protected final String TEXT_828 = " nextValue;";
+ protected final String TEXT_829 = NL + "\tint linkVID;";
+ protected final String TEXT_830 = NL + "\tfor(";
+ protected final String TEXT_831 = " it = ";
+ protected final String TEXT_832 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
+ protected final String TEXT_833 = ") it.next();";
+ protected final String TEXT_834 = NL + "\tnextValue = (";
+ protected final String TEXT_835 = ")";
+ protected final String TEXT_836 = ";";
+ protected final String TEXT_837 = NL + "\tlinkVID = ";
+ protected final String TEXT_838 = ".INSTANCE.getLinkWithClassVisualID(nextValue);";
+ protected final String TEXT_839 = NL + "\tswitch (linkVID) {";
+ protected final String TEXT_840 = NL + "\tcase ";
+ protected final String TEXT_841 = ".VISUAL_ID: {";
+ protected final String TEXT_842 = NL + "\tif (";
+ protected final String TEXT_843 = ".VISUAL_ID == linkVID) {";
+ protected final String TEXT_844 = NL + "\t\t";
+ protected final String TEXT_845 = " source = (";
+ protected final String TEXT_846 = ")";
+ protected final String TEXT_847 = ";";
protected final String TEXT_848 = NL + "\t\t";
- protected final String TEXT_849 = " source = (";
- protected final String TEXT_850 = ")";
- protected final String TEXT_851 = ";";
- protected final String TEXT_852 = NL + "\t\t";
- protected final String TEXT_853 = " source = ";
- protected final String TEXT_854 = ".getElement();";
+ protected final String TEXT_849 = " source = ";
+ protected final String TEXT_850 = ".getElement();";
+ protected final String TEXT_851 = NL + "\t\t";
+ protected final String TEXT_852 = " target = (";
+ protected final String TEXT_853 = ")";
+ protected final String TEXT_854 = ";";
protected final String TEXT_855 = NL + "\t\t";
- protected final String TEXT_856 = " target = (";
- protected final String TEXT_857 = ")";
- protected final String TEXT_858 = ";";
- protected final String TEXT_859 = NL + "\t\t";
- protected final String TEXT_860 = " target = ";
- protected final String TEXT_861 = ".getElement();";
- protected final String TEXT_862 = NL + "\t\tif (source != null && target != null) {" + NL + "\t\t\tresult.add(new ";
- protected final String TEXT_863 = "(source, target, nextValue, linkVID));" + NL + "\t\t}";
- protected final String TEXT_864 = NL + "\t\tbreak;" + NL + "\t}";
- protected final String TEXT_865 = NL + "\t}";
- protected final String TEXT_866 = NL + "\t}";
- protected final String TEXT_867 = NL + "\t}";
- protected final String TEXT_868 = NL + "\tfor(";
- protected final String TEXT_869 = " it = ";
- protected final String TEXT_870 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
- protected final String TEXT_871 = ") it.next();";
- protected final String TEXT_872 = NL + "\tnextValue = (";
- protected final String TEXT_873 = ")";
- protected final String TEXT_874 = ";";
- protected final String TEXT_875 = NL + "\tif (nextValue != null) {";
- protected final String TEXT_876 = NL + "\t\tresult.add(new ";
- protected final String TEXT_877 = "(modelObject, nextValue, null, ";
- protected final String TEXT_878 = ".VISUAL_ID));";
- protected final String TEXT_879 = NL + "\t}";
- protected final String TEXT_880 = NL + "\t}";
- protected final String TEXT_881 = NL + "\treturn result;";
- protected final String TEXT_882 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_883 = " getNotationalChildLinks() {" + NL + "\t\t\t";
- protected final String TEXT_884 = " result = new ";
- protected final String TEXT_885 = "();" + NL + "\t\t\t";
- protected final String TEXT_886 = " allLinks = ";
- protected final String TEXT_887 = ".getEdges();" + NL + "\t\t\tfor(";
- protected final String TEXT_888 = " it = allLinks.iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
- protected final String TEXT_889 = " next = (";
- protected final String TEXT_890 = ") it.next();";
- protected final String TEXT_891 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null && next.getElement().eResource() == null) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
- protected final String TEXT_892 = " source = next.getSource();" + NL + "\t\t\t\tif (source == null || (source.isSetElement() && source.getElement() != null && source.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
- protected final String TEXT_893 = " target = next.getTarget();" + NL + "\t\t\t\tif (target == null || (target.isSetElement() && target.getElement() != null && target.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}";
- protected final String TEXT_894 = NL + "\t\t\t\tif (!next.isSetElement() || next.getElement() == null) {" + NL + "\t\t\t\t\tif (next.getSource() == ";
- protected final String TEXT_895 = ") {" + NL + "\t\t\t\t\t\tint linkVID = ";
- protected final String TEXT_896 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {";
- protected final String TEXT_897 = NL + "\t\t\t\t\t\tcase ";
- protected final String TEXT_898 = ".VISUAL_ID:";
- protected final String TEXT_899 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}";
- protected final String TEXT_900 = NL + "\t\t\t\t} else {";
- protected final String TEXT_901 = NL + "\t\t\t\t}";
- protected final String TEXT_902 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null) {";
- protected final String TEXT_903 = NL + "\t\t\t\t\tif (next.getElement().eContainer() == ";
- protected final String TEXT_904 = ".getElement()) {" + NL + "\t\t\t\t\t\tint linkVID = ";
- protected final String TEXT_905 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {";
- protected final String TEXT_906 = NL + "\t\t\t\t\t\tcase ";
- protected final String TEXT_907 = ".VISUAL_ID:";
- protected final String TEXT_908 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}";
- protected final String TEXT_909 = NL + "\t\t\t}" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational edge should be created for the given domain element. " + NL + "\t\t * The generated code always returns ";
- protected final String TEXT_910 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView(";
- protected final String TEXT_911 = " descriptor) {" + NL + "\t\t\treturn ";
- protected final String TEXT_912 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_913 = " getHost() {" + NL + "\t\t\treturn ";
- protected final String TEXT_914 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshLinkNotationModel() {" + NL + "\t\t";
- protected final String TEXT_915 = " linkRefresher = getLinkNotationModelRefresher();" + NL + "\t\tif (!linkRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_916 = " command = linkRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
- protected final String TEXT_917 = " domainModelEditDomain = ";
- protected final String TEXT_918 = ".getEditingDomain(";
- protected final String TEXT_919 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new ";
- protected final String TEXT_920 = "(domainModelEditDomain, command));" + NL + "\t}";
- protected final String TEXT_921 = NL;
+ protected final String TEXT_856 = " target = ";
+ protected final String TEXT_857 = ".getElement();";
+ protected final String TEXT_858 = NL + "\t\tif (source != null && target != null) {" + NL + "\t\t\tresult.add(new ";
+ protected final String TEXT_859 = "(source, target, nextValue, linkVID));" + NL + "\t\t}";
+ protected final String TEXT_860 = NL + "\t\tbreak;" + NL + "\t}";
+ protected final String TEXT_861 = NL + "\t}";
+ protected final String TEXT_862 = NL + "\t}";
+ protected final String TEXT_863 = NL + "\t}";
+ protected final String TEXT_864 = NL + "\tfor(";
+ protected final String TEXT_865 = " it = ";
+ protected final String TEXT_866 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = (";
+ protected final String TEXT_867 = ") it.next();";
+ protected final String TEXT_868 = NL + "\tnextValue = (";
+ protected final String TEXT_869 = ")";
+ protected final String TEXT_870 = ";";
+ protected final String TEXT_871 = NL + "\tif (nextValue != null) {";
+ protected final String TEXT_872 = NL + "\t\tresult.add(new ";
+ protected final String TEXT_873 = "(modelObject, nextValue, null, ";
+ protected final String TEXT_874 = ".VISUAL_ID));";
+ protected final String TEXT_875 = NL + "\t}";
+ protected final String TEXT_876 = NL + "\t}";
+ protected final String TEXT_877 = NL + "\treturn result;";
+ protected final String TEXT_878 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_879 = " getNotationalChildLinks() {" + NL + "\t\t\t";
+ protected final String TEXT_880 = " result = new ";
+ protected final String TEXT_881 = "();" + NL + "\t\t\t";
+ protected final String TEXT_882 = " allLinks = ";
+ protected final String TEXT_883 = ".getEdges();" + NL + "\t\t\tfor(";
+ protected final String TEXT_884 = " it = allLinks.iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
+ protected final String TEXT_885 = " next = (";
+ protected final String TEXT_886 = ") it.next();";
+ protected final String TEXT_887 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null && next.getElement().eResource() == null) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
+ protected final String TEXT_888 = " source = next.getSource();" + NL + "\t\t\t\tif (source == null || (source.isSetElement() && source.getElement() != null && source.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
+ protected final String TEXT_889 = " target = next.getTarget();" + NL + "\t\t\t\tif (target == null || (target.isSetElement() && target.getElement() != null && target.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}";
+ protected final String TEXT_890 = NL + "\t\t\t\tif (!next.isSetElement() || next.getElement() == null) {" + NL + "\t\t\t\t\tif (next.getSource() == ";
+ protected final String TEXT_891 = ") {" + NL + "\t\t\t\t\t\tint linkVID = ";
+ protected final String TEXT_892 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {";
+ protected final String TEXT_893 = NL + "\t\t\t\t\t\tcase ";
+ protected final String TEXT_894 = ".VISUAL_ID:";
+ protected final String TEXT_895 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}";
+ protected final String TEXT_896 = NL + "\t\t\t\t} else {";
+ protected final String TEXT_897 = NL + "\t\t\t\t}";
+ protected final String TEXT_898 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null) {";
+ protected final String TEXT_899 = NL + "\t\t\t\t\tif (next.getElement().eContainer() == ";
+ protected final String TEXT_900 = ".getElement()) {" + NL + "\t\t\t\t\t\tint linkVID = ";
+ protected final String TEXT_901 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {";
+ protected final String TEXT_902 = NL + "\t\t\t\t\t\tcase ";
+ protected final String TEXT_903 = ".VISUAL_ID:";
+ protected final String TEXT_904 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}";
+ protected final String TEXT_905 = NL + "\t\t\t}" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational edge should be created for the given domain element. " + NL + "\t\t * The generated code always returns ";
+ protected final String TEXT_906 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView(";
+ protected final String TEXT_907 = " descriptor) {" + NL + "\t\t\treturn ";
+ protected final String TEXT_908 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_909 = " getHost() {" + NL + "\t\t\treturn ";
+ protected final String TEXT_910 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshLinkNotationModel() {" + NL + "\t\t";
+ protected final String TEXT_911 = " linkRefresher = getLinkNotationModelRefresher();" + NL + "\t\tif (!linkRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_912 = " command = linkRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_913 = " domainModelEditDomain = ";
+ protected final String TEXT_914 = ".getEditingDomain(";
+ protected final String TEXT_915 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new ";
+ protected final String TEXT_916 = "(domainModelEditDomain, command));" + NL + "\t}";
+ protected final String TEXT_917 = NL;
+ protected final String TEXT_918 = NL;
+ protected final String TEXT_919 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_920 = " domainModelRefresher = new ";
+ protected final String TEXT_921 = "(this);" + NL;
protected final String TEXT_922 = NL;
- protected final String TEXT_923 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_924 = " domainModelRefresher = new ";
- protected final String TEXT_925 = "(this);" + NL;
- protected final String TEXT_926 = NL;
- protected final String TEXT_927 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher(";
- protected final String TEXT_928 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeRefresher(";
- protected final String TEXT_929 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate CompositeRefresher getCompositeRefresher(";
- protected final String TEXT_930 = " feature) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\tRefresher refresher = (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t\tif (refresher instanceof CompositeRefresher) {" + NL + "\t\t\treturn (CompositeRefresher) refresher;" + NL + "\t\t}" + NL + "\t\tCompositeRefresher result = new CompositeRefresher();" + NL + "\t\tif (refresher != null) {" + NL + "\t\t\tresult.addRefresher(refresher);" + NL + "\t\t}" + NL + "\t\tstructuralFeatures2Refresher.put(feature, result);" + NL + "\t\treturn result;" + NL + "\t}" + NL;
- protected final String TEXT_931 = NL;
- protected final String TEXT_932 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshFont() {";
- protected final String TEXT_933 = NL + "\t\t";
- protected final String TEXT_934 = " style =" + NL + "\t\t\t(";
- protected final String TEXT_935 = ") ";
- protected final String TEXT_936 = ".getStyle(" + NL + "\t\t\t\t";
- protected final String TEXT_937 = ".eINSTANCE.getFontStyle());" + NL + "\t\t";
- protected final String TEXT_938 = " toDispose = createdFont;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tString fontName = style.getFontName();" + NL + "\t\t\tint fontHeight = style.getFontHeight();" + NL + "\t\t\tint fontStyle = ";
- protected final String TEXT_939 = ".NORMAL;" + NL + "\t\t\tif (style.isBold()) {" + NL + "\t\t\t\tfontStyle |= ";
- protected final String TEXT_940 = ".BOLD;" + NL + "\t\t\t}" + NL + "\t\t\tif (style.isItalic()) {" + NL + "\t\t\t\tfontStyle |= ";
- protected final String TEXT_941 = ".ITALIC;" + NL + "\t\t\t}" + NL + "\t\t\t";
- protected final String TEXT_942 = " currentFont = getFigure().getFont();" + NL + "\t\t\tif (currentFont != null) {" + NL + "\t\t\t\t";
- protected final String TEXT_943 = " currentFontData = currentFont.getFontData()[0];" + NL + "\t\t\t\tif (currentFontData.getName().equals(fontName) && currentFontData.getHeight() == fontHeight && currentFontData.getStyle() == fontStyle) {" + NL + "\t\t\t\t\treturn;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tcreatedFont = new ";
- protected final String TEXT_944 = "(null, fontName, fontHeight, fontStyle);" + NL + "\t\t\tgetFigure().setFont(createdFont);" + NL + "\t\t} else {" + NL + "\t\t\t//revert to the default font" + NL + "\t\t\tgetFigure().setFont(getViewer().getControl().getFont());" + NL + "\t\t\tcreatedFont = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}";
- protected final String TEXT_945 = "\t" + NL + "\t}";
- protected final String TEXT_946 = NL + NL + "\t/**" + NL + "\t * The font (created by {@link #refreshFont()}) currently assigned to the label (unless the default font is assigned)." + NL + "\t * Whenever another non-default font is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_947 = " createdFont;";
- protected final String TEXT_948 = "\t" + NL;
- protected final String TEXT_949 = NL;
- protected final String TEXT_950 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshForegroundColor() {" + NL + "\t\t";
- protected final String TEXT_951 = " style = (";
- protected final String TEXT_952 = ") ";
- protected final String TEXT_953 = ".getStyle(";
- protected final String TEXT_954 = ".eINSTANCE.getLineStyle());" + NL + "\t\t";
- protected final String TEXT_955 = " toDispose = createdForegroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint foregroundColor = style.getLineColor();" + NL + "\t\t\tint red = foregroundColor & 0x000000FF;" + NL + "\t\t\tint green = (foregroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (foregroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t";
- protected final String TEXT_956 = " currentColor = getFigure().getForegroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedForegroundColor = new ";
- protected final String TEXT_957 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setForegroundColor(createdForegroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setForegroundColor(getViewer().getControl().getForeground());" + NL + "\t\t\tcreatedForegroundColor = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshForegroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_958 = " createdForegroundColor;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBackgroundColor() {" + NL + "\t\t";
- protected final String TEXT_959 = " style = (";
- protected final String TEXT_960 = ") ";
- protected final String TEXT_961 = ".getStyle(";
- protected final String TEXT_962 = ".eINSTANCE.getFillStyle());" + NL + "\t\t";
- protected final String TEXT_963 = " toDispose = createdBackgroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint backgroundColor = style.getFillColor();" + NL + "\t\t\tint red = backgroundColor & 0x000000FF;" + NL + "\t\t\tint green = (backgroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (backgroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t";
- protected final String TEXT_964 = " currentColor = getFigure().getBackgroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedBackgroundColor = new ";
- protected final String TEXT_965 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setBackgroundColor(createdBackgroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setBackgroundColor(getViewer().getControl().getBackground());" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshBackgroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_966 = " createdBackgroundColor;" + NL;
- protected final String TEXT_967 = NL;
- protected final String TEXT_968 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_969 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher(";
- protected final String TEXT_970 = " feature, ";
- protected final String TEXT_971 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new ";
- protected final String TEXT_972 = "();";
- protected final String TEXT_973 = NL;
- protected final String TEXT_974 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_975 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_976 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_977 = ".eINSTANCE.getView_Styles(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_978 = ".eINSTANCE.getDrawerStyle_Collapsed(), childrenRefresher);" + NL + "\t\t";
- protected final String TEXT_979 = NL;
- protected final String TEXT_980 = "\t\tRefresher boundsRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBounds();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_981 = ".eINSTANCE.getNode_LayoutConstraint(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_982 = ".eINSTANCE.getSize_Width(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_983 = ".eINSTANCE.getSize_Height(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_984 = ".eINSTANCE.getLocation_X(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_985 = ".eINSTANCE.getLocation_Y(), boundsRefresher);";
- protected final String TEXT_986 = NL;
- protected final String TEXT_987 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_988 = ".eINSTANCE.getView_Visible(), visibilityRefresher);";
- protected final String TEXT_989 = NL;
- protected final String TEXT_990 = "\t\tRefresher sourceEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshSourceConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_991 = ".eINSTANCE.getView_SourceEdges(), sourceEdgesRefresher);";
- protected final String TEXT_992 = NL;
- protected final String TEXT_993 = "\t\tRefresher targetEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshTargetConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_994 = ".eINSTANCE.getView_TargetEdges(), targetEdgesRefresher);";
- protected final String TEXT_995 = NL;
- protected final String TEXT_996 = "\t\tRefresher fontRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshFont();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_997 = ".eINSTANCE.getFontStyle_FontHeight(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_998 = ".eINSTANCE.getFontStyle_FontName(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_999 = ".eINSTANCE.getFontStyle_Bold(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_1000 = ".eINSTANCE.getFontStyle_Italic(), fontRefresher);" + NL + "\t\t";
+ protected final String TEXT_923 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher(";
+ protected final String TEXT_924 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeRefresher(";
+ protected final String TEXT_925 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate CompositeRefresher getCompositeRefresher(";
+ protected final String TEXT_926 = " feature) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\tRefresher refresher = (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t\tif (refresher instanceof CompositeRefresher) {" + NL + "\t\t\treturn (CompositeRefresher) refresher;" + NL + "\t\t}" + NL + "\t\tCompositeRefresher result = new CompositeRefresher();" + NL + "\t\tif (refresher != null) {" + NL + "\t\t\tresult.addRefresher(refresher);" + NL + "\t\t}" + NL + "\t\tstructuralFeatures2Refresher.put(feature, result);" + NL + "\t\treturn result;" + NL + "\t}" + NL;
+ protected final String TEXT_927 = NL;
+ protected final String TEXT_928 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshFont() {";
+ protected final String TEXT_929 = NL + "\t\t";
+ protected final String TEXT_930 = " style =" + NL + "\t\t\t(";
+ protected final String TEXT_931 = ") ";
+ protected final String TEXT_932 = ".getStyle(" + NL + "\t\t\t\t";
+ protected final String TEXT_933 = ".eINSTANCE.getFontStyle());" + NL + "\t\t";
+ protected final String TEXT_934 = " toDispose = createdFont;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tString fontName = style.getFontName();" + NL + "\t\t\tint fontHeight = style.getFontHeight();" + NL + "\t\t\tint fontStyle = ";
+ protected final String TEXT_935 = ".NORMAL;" + NL + "\t\t\tif (style.isBold()) {" + NL + "\t\t\t\tfontStyle |= ";
+ protected final String TEXT_936 = ".BOLD;" + NL + "\t\t\t}" + NL + "\t\t\tif (style.isItalic()) {" + NL + "\t\t\t\tfontStyle |= ";
+ protected final String TEXT_937 = ".ITALIC;" + NL + "\t\t\t}" + NL + "\t\t\t";
+ protected final String TEXT_938 = " currentFont = getFigure().getFont();" + NL + "\t\t\tif (currentFont != null) {" + NL + "\t\t\t\t";
+ protected final String TEXT_939 = " currentFontData = currentFont.getFontData()[0];" + NL + "\t\t\t\tif (currentFontData.getName().equals(fontName) && currentFontData.getHeight() == fontHeight && currentFontData.getStyle() == fontStyle) {" + NL + "\t\t\t\t\treturn;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tcreatedFont = new ";
+ protected final String TEXT_940 = "(null, fontName, fontHeight, fontStyle);" + NL + "\t\t\tgetFigure().setFont(createdFont);" + NL + "\t\t} else {" + NL + "\t\t\t//revert to the default font" + NL + "\t\t\tgetFigure().setFont(getViewer().getControl().getFont());" + NL + "\t\t\tcreatedFont = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}";
+ protected final String TEXT_941 = "\t" + NL + "\t}";
+ protected final String TEXT_942 = NL + NL + "\t/**" + NL + "\t * The font (created by {@link #refreshFont()}) currently assigned to the label (unless the default font is assigned)." + NL + "\t * Whenever another non-default font is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_943 = " createdFont;";
+ protected final String TEXT_944 = "\t" + NL;
+ protected final String TEXT_945 = NL;
+ protected final String TEXT_946 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshForegroundColor() {" + NL + "\t\t";
+ protected final String TEXT_947 = " style = (";
+ protected final String TEXT_948 = ") ";
+ protected final String TEXT_949 = ".getStyle(";
+ protected final String TEXT_950 = ".eINSTANCE.getLineStyle());" + NL + "\t\t";
+ protected final String TEXT_951 = " toDispose = createdForegroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint foregroundColor = style.getLineColor();" + NL + "\t\t\tint red = foregroundColor & 0x000000FF;" + NL + "\t\t\tint green = (foregroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (foregroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t";
+ protected final String TEXT_952 = " currentColor = getFigure().getForegroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedForegroundColor = new ";
+ protected final String TEXT_953 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setForegroundColor(createdForegroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setForegroundColor(getViewer().getControl().getForeground());" + NL + "\t\t\tcreatedForegroundColor = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshForegroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_954 = " createdForegroundColor;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBackgroundColor() {" + NL + "\t\t";
+ protected final String TEXT_955 = " style = (";
+ protected final String TEXT_956 = ") ";
+ protected final String TEXT_957 = ".getStyle(";
+ protected final String TEXT_958 = ".eINSTANCE.getFillStyle());" + NL + "\t\t";
+ protected final String TEXT_959 = " toDispose = createdBackgroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint backgroundColor = style.getFillColor();" + NL + "\t\t\tint red = backgroundColor & 0x000000FF;" + NL + "\t\t\tint green = (backgroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (backgroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t";
+ protected final String TEXT_960 = " currentColor = getFigure().getBackgroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedBackgroundColor = new ";
+ protected final String TEXT_961 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setBackgroundColor(createdBackgroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setBackgroundColor(getViewer().getControl().getBackground());" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshBackgroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_962 = " createdBackgroundColor;" + NL;
+ protected final String TEXT_963 = NL;
+ protected final String TEXT_964 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_965 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher(";
+ protected final String TEXT_966 = " feature, ";
+ protected final String TEXT_967 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new ";
+ protected final String TEXT_968 = "();";
+ protected final String TEXT_969 = NL;
+ protected final String TEXT_970 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_971 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_972 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_973 = ".eINSTANCE.getView_Styles(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_974 = ".eINSTANCE.getDrawerStyle_Collapsed(), childrenRefresher);" + NL + "\t\t";
+ protected final String TEXT_975 = NL;
+ protected final String TEXT_976 = "\t\tRefresher boundsRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBounds();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_977 = ".eINSTANCE.getNode_LayoutConstraint(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_978 = ".eINSTANCE.getSize_Width(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_979 = ".eINSTANCE.getSize_Height(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_980 = ".eINSTANCE.getLocation_X(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_981 = ".eINSTANCE.getLocation_Y(), boundsRefresher);";
+ protected final String TEXT_982 = NL;
+ protected final String TEXT_983 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_984 = ".eINSTANCE.getView_Visible(), visibilityRefresher);";
+ protected final String TEXT_985 = NL;
+ protected final String TEXT_986 = "\t\tRefresher sourceEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshSourceConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_987 = ".eINSTANCE.getView_SourceEdges(), sourceEdgesRefresher);";
+ protected final String TEXT_988 = NL;
+ protected final String TEXT_989 = "\t\tRefresher targetEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshTargetConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_990 = ".eINSTANCE.getView_TargetEdges(), targetEdgesRefresher);";
+ protected final String TEXT_991 = NL;
+ protected final String TEXT_992 = "\t\tRefresher fontRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshFont();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_993 = ".eINSTANCE.getFontStyle_FontHeight(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_994 = ".eINSTANCE.getFontStyle_FontName(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_995 = ".eINSTANCE.getFontStyle_Bold(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_996 = ".eINSTANCE.getFontStyle_Italic(), fontRefresher);" + NL + "\t\t";
+ protected final String TEXT_997 = NL;
+ protected final String TEXT_998 = "\t\tRefresher backgroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBackgroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_999 = ".eINSTANCE.getFillStyle_FillColor(), backgroundColorRefresher);" + NL + "\t\tRefresher foregroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshForegroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
+ protected final String TEXT_1000 = ".eINSTANCE.getLineStyle_LineColor(), foregroundColorRefresher);" + NL + "\t}" + NL;
protected final String TEXT_1001 = NL;
- protected final String TEXT_1002 = "\t\tRefresher backgroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBackgroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_1003 = ".eINSTANCE.getFillStyle_FillColor(), backgroundColorRefresher);" + NL + "\t\tRefresher foregroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshForegroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put(";
- protected final String TEXT_1004 = ".eINSTANCE.getLineStyle_LineColor(), foregroundColorRefresher);" + NL + "\t}" + NL;
- protected final String TEXT_1005 = NL;
- protected final String TEXT_1006 = NL;
- protected final String TEXT_1007 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class MapModeWorkaround {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic int DPtoLP(int dp) {" + NL + "\t\t\treturn dp;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static MapModeWorkaround INSTANCE = new MapModeWorkaround();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate MapModeWorkaround getMapMode() {" + NL + "\t\treturn MapModeWorkaround.INSTANCE;" + NL + "\t}";
- protected final String TEXT_1008 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class TreeEditPartAdapter extends ";
- protected final String TEXT_1009 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic TreeEditPartAdapter() {" + NL + "\t\t\tsuper(getDiagramNode(), ";
- protected final String TEXT_1010 = ".getInstance().getItemProvidersAdapterFactory());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createEditPolicies() {";
- protected final String TEXT_1011 = NL;
- protected final String TEXT_1012 = "\t\tinstallEditPolicy(";
- protected final String TEXT_1013 = ".COMPONENT_ROLE, new ";
- protected final String TEXT_1014 = "() {" + NL + "\t\t\tprotected ";
- protected final String TEXT_1015 = " createDeleteCommand(";
- protected final String TEXT_1016 = " deleteRequest) {" + NL + "\t\t\t\t";
- protected final String TEXT_1017 = " editingDomain = ";
- protected final String TEXT_1018 = ".getEditingDomain(getDiagramNode().getDiagram().getElement());" + NL + "\t\t\t\t";
- protected final String TEXT_1019 = " cc = new ";
- protected final String TEXT_1020 = "();" + NL + "\t\t\t\tcc.append(getDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append(new ";
- protected final String TEXT_1021 = "((";
- protected final String TEXT_1022 = ") getDiagramNode().eContainer(), getDiagramNode()));" + NL + "\t\t\t\treturn new ";
- protected final String TEXT_1023 = "(editingDomain, cc);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprivate org.eclipse.emf.common.command.Command getDomainModelRemoveCommand(";
- protected final String TEXT_1024 = " editingDomain) {";
- protected final String TEXT_1025 = NL + "\t\t\t\t";
- protected final String TEXT_1026 = " result = new ";
- protected final String TEXT_1027 = "();";
+ protected final String TEXT_1002 = NL;
+ protected final String TEXT_1003 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class MapModeWorkaround {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic int DPtoLP(int dp) {" + NL + "\t\t\treturn dp;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static MapModeWorkaround INSTANCE = new MapModeWorkaround();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate MapModeWorkaround getMapMode() {" + NL + "\t\treturn MapModeWorkaround.INSTANCE;" + NL + "\t}";
+ protected final String TEXT_1004 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class TreeEditPartAdapter extends ";
+ protected final String TEXT_1005 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic TreeEditPartAdapter() {" + NL + "\t\t\tsuper(getDiagramNode(), ";
+ protected final String TEXT_1006 = ".getInstance().getItemProvidersAdapterFactory());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createEditPolicies() {";
+ protected final String TEXT_1007 = NL;
+ protected final String TEXT_1008 = "\t\tinstallEditPolicy(";
+ protected final String TEXT_1009 = ".COMPONENT_ROLE, new ";
+ protected final String TEXT_1010 = "() {" + NL + "\t\t\tprotected ";
+ protected final String TEXT_1011 = " createDeleteCommand(";
+ protected final String TEXT_1012 = " deleteRequest) {" + NL + "\t\t\t\t";
+ protected final String TEXT_1013 = " editingDomain = ";
+ protected final String TEXT_1014 = ".getEditingDomain(getDiagramNode().getDiagram().getElement());" + NL + "\t\t\t\t";
+ protected final String TEXT_1015 = " cc = new ";
+ protected final String TEXT_1016 = "();" + NL + "\t\t\t\tcc.append(getDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append(new ";
+ protected final String TEXT_1017 = "((";
+ protected final String TEXT_1018 = ") getDiagramNode().eContainer(), getDiagramNode()));" + NL + "\t\t\t\treturn new ";
+ protected final String TEXT_1019 = "(editingDomain, cc);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprivate org.eclipse.emf.common.command.Command getDomainModelRemoveCommand(";
+ protected final String TEXT_1020 = " editingDomain) {";
+ protected final String TEXT_1021 = NL + "\t\t\t\t";
+ protected final String TEXT_1022 = " result = new ";
+ protected final String TEXT_1023 = "();";
+ protected final String TEXT_1024 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1025 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_1026 = ".eINSTANCE.get";
+ protected final String TEXT_1027 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
protected final String TEXT_1028 = NL + "\t\t\t\tresult.append(";
protected final String TEXT_1029 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
protected final String TEXT_1030 = ".eINSTANCE.get";
- protected final String TEXT_1031 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
- protected final String TEXT_1032 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1033 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_1034 = ".eINSTANCE.get";
- protected final String TEXT_1035 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_1036 = ".UNSET_VALUE));";
+ protected final String TEXT_1031 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1032 = ".UNSET_VALUE));";
+ protected final String TEXT_1033 = NL + "\t\t\t\tresult.append(";
+ protected final String TEXT_1034 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_1035 = ".eINSTANCE.get";
+ protected final String TEXT_1036 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
protected final String TEXT_1037 = NL + "\t\t\t\tresult.append(";
protected final String TEXT_1038 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
protected final String TEXT_1039 = ".eINSTANCE.get";
- protected final String TEXT_1040 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));";
- protected final String TEXT_1041 = NL + "\t\t\t\tresult.append(";
- protected final String TEXT_1042 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_1043 = ".eINSTANCE.get";
- protected final String TEXT_1044 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_1045 = ".UNSET_VALUE));";
- protected final String TEXT_1046 = NL + "\t\t\t\treturn result;";
+ protected final String TEXT_1040 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1041 = ".UNSET_VALUE));";
+ protected final String TEXT_1042 = NL + "\t\t\t\treturn result;";
+ protected final String TEXT_1043 = NL + "\t\t\t\treturn ";
+ protected final String TEXT_1044 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
+ protected final String TEXT_1045 = ".eINSTANCE.get";
+ protected final String TEXT_1046 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement());";
protected final String TEXT_1047 = NL + "\t\t\t\treturn ";
protected final String TEXT_1048 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
protected final String TEXT_1049 = ".eINSTANCE.get";
- protected final String TEXT_1050 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement());";
- protected final String TEXT_1051 = NL + "\t\t\t\treturn ";
- protected final String TEXT_1052 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), ";
- protected final String TEXT_1053 = ".eINSTANCE.get";
- protected final String TEXT_1054 = "()," + NL + "\t\t\t\t\t";
- protected final String TEXT_1055 = ".UNSET_VALUE);";
- protected final String TEXT_1056 = NL + "\t\t\t}" + NL + "\t\t});";
- protected final String TEXT_1057 = NL;
- protected final String TEXT_1058 = "\t\tinstallEditPolicy(";
- protected final String TEXT_1059 = ".DIRECT_EDIT_ROLE," + NL + "\t\t\t\tnew ";
- protected final String TEXT_1060 = "() {" + NL + "\t\t\t\t\tprotected void showCurrentEditValue(";
- protected final String TEXT_1061 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tsetWidgetText(value);" + NL + "\t\t\t\t\t}";
- protected final String TEXT_1062 = NL;
- protected final String TEXT_1063 = "\t\t\t\t\tprotected ";
- protected final String TEXT_1064 = " getDirectEditCommand(";
- protected final String TEXT_1065 = " request) {";
- protected final String TEXT_1066 = NL + "\t\t\t\t\t\treturn ";
- protected final String TEXT_1067 = ".INSTANCE;";
- protected final String TEXT_1068 = NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tif (value == null) {" + NL + "\t\t\t\t\t\t\t//Invalid value is transformed into a null by the validator." + NL + "\t\t\t\t\t\t\t//XXX: implement validator" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_1069 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tfinal Object[] parseResult;";
- protected final String TEXT_1070 = NL + "\t\t\t\t\t\tif (value.length() == 0) {" + NL + "\t\t\t\t\t\t\tparseResult = new Object[] { null };" + NL + "\t\t\t\t\t\t} else {";
- protected final String TEXT_1071 = NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tparseResult = new ";
- protected final String TEXT_1072 = "(";
- protected final String TEXT_1073 = ").parse(value);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_1074 = ".INSTANCE;" + NL + "\t\t\t\t\t\t} catch (";
- protected final String TEXT_1075 = " e) {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_1076 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_1077 = NL + "\t\t\t\t\t\t}";
- protected final String TEXT_1078 = NL + "\t\t\t\t\t\t";
- protected final String TEXT_1079 = " editingDomain = ";
- protected final String TEXT_1080 = ".getEditingDomain(";
- protected final String TEXT_1081 = ".getDiagram().getElement());" + NL + "\t\t\t\t\t\tif (parseResult.length != ";
- protected final String TEXT_1082 = ") {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_1083 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_1084 = " domainModelCommand = createDomainModelCommand(editingDomain, parseResult);" + NL + "\t\t\t\t\t\treturn new ";
- protected final String TEXT_1085 = "(editingDomain, domainModelCommand);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t";
- protected final String TEXT_1086 = " createDomainModelCommand(";
- protected final String TEXT_1087 = " editingDomain, Object[] values) {" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_1088 = " element = ";
- protected final String TEXT_1089 = ";" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_1090 = " result = new ";
- protected final String TEXT_1091 = "();" + NL + "\t\t\t\t\t\tObject valueToSet;";
- protected final String TEXT_1092 = NL + "\t\t\t\t\t\t";
- protected final String TEXT_1093 = " ";
- protected final String TEXT_1094 = "feature = (";
- protected final String TEXT_1095 = ") ";
- protected final String TEXT_1096 = ".eINSTANCE.get";
- protected final String TEXT_1097 = "();" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tvalueToSet = ";
- protected final String TEXT_1098 = ".parseValue(feature, values[";
- protected final String TEXT_1099 = "]);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
- protected final String TEXT_1100 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_1101 = NL + "\t\t\t\t\t\t";
- protected final String TEXT_1102 = " ";
- protected final String TEXT_1103 = "values = new ";
- protected final String TEXT_1104 = "();" + NL + "\t\t\t\t\t\tvalues.addAll(element.get";
- protected final String TEXT_1105 = "());" + NL + "\t\t\t\t\t\tresult.append(";
- protected final String TEXT_1106 = ".create(editingDomain, element, feature, values));" + NL + "\t\t\t\t\t\tif (valueToSet != null) {" + NL + "\t\t\t\t\t\t\tresult.append(";
- protected final String TEXT_1107 = ".create(editingDomain, element, feature, valueToSet));" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_1108 = NL + "\t\t\t\t\t\tresult.append(";
- protected final String TEXT_1109 = ".create(editingDomain, element, feature, valueToSet == null ? ";
- protected final String TEXT_1110 = ".UNSET_VALUE : valueToSet));";
- protected final String TEXT_1111 = NL + "\t\t\t\t\t\treturn result;" + NL + "\t\t\t\t\t}";
- protected final String TEXT_1112 = NL + "\t\t\t\t});";
- protected final String TEXT_1113 = NL + "\t\t}" + NL;
- protected final String TEXT_1114 = NL;
- protected final String TEXT_1115 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_1116 = " manager;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest(";
- protected final String TEXT_1117 = " req) {" + NL + "\t\tif (";
- protected final String TEXT_1118 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\tperformDirectEdit();" + NL + "\t\t} else {" + NL + "\t\t\tsuper.performRequest(req);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_1119 = " getManager() {" + NL + "\t\tif (manager == null) {" + NL + "\t\t\tmanager = new ";
- protected final String TEXT_1120 = "(this, ";
- protected final String TEXT_1121 = ".class, new ";
- protected final String TEXT_1122 = "() {" + NL + "\t\t\t\tpublic void relocate(";
- protected final String TEXT_1123 = " celleditor) {" + NL + "\t\t\t\t\tif (checkTreeItem()) {" + NL + "\t\t\t\t\t\tcelleditor.getControl().setFont(((";
- protected final String TEXT_1124 = ") getWidget()).getFont());" + NL + "\t\t\t\t\t\tcelleditor.getControl().setBounds(((";
- protected final String TEXT_1125 = ") getWidget()).getBounds());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}) {" + NL + "\t\t\t\tprotected void initCellEditor() {" + NL + "\t\t\t\t\tgetCellEditor().setValue(getEditText());" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t}" + NL + "\t\treturn manager;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void performDirectEdit() {" + NL + "\t\tgetManager().show();" + NL + "\t}" + NL + "" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getEditText() {" + NL + "\t\t\t";
- protected final String TEXT_1126 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelEditText();" + NL + "\t\t\t}" + NL + "\t\t\treturn \"\";" + NL + "\t\t}" + NL;
- protected final String TEXT_1127 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void activate() {" + NL + "\t\t\tsuper.activate();" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void deactivate() {" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\t\tsuper.deactivate();" + NL + "\t\t}" + NL;
- protected final String TEXT_1128 = NL;
- protected final String TEXT_1129 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
- protected final String TEXT_1130 = " domainModelRefresher = new ";
- protected final String TEXT_1131 = "(this);" + NL;
- protected final String TEXT_1132 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getText() {" + NL + "\t\t\t";
- protected final String TEXT_1133 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelText();" + NL + "\t\t\t}" + NL + "\t\t\treturn super.getText();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
- protected final String TEXT_1134 = " getPrimaryLabelEditPart() {" + NL + "\t\t\tfor(";
- protected final String TEXT_1135 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
- protected final String TEXT_1136 = " nextChild = (";
- protected final String TEXT_1137 = ")it.next();" + NL + "\t\t\t\tif (";
- protected final String TEXT_1138 = ".getVisualID(nextChild) == ";
- protected final String TEXT_1139 = ".VISUAL_ID) {" + NL + "\t\t\t\t\treturn (";
- protected final String TEXT_1140 = ") ";
- protected final String TEXT_1141 = ".this.getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
- protected final String TEXT_1142 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createRefreshers() {" + NL + "\t\t\tsuper.createRefreshers();" + NL + "\t\t\tRefresher labelRefresher = new Refresher() {" + NL + "\t\t\t\tpublic void refresh() {" + NL + "\t\t\t\t\trefreshVisuals();" + NL + "\t\t\t\t}" + NL + "\t\t\t};";
- protected final String TEXT_1143 = NL + "\t\t\tregisterRefresher(";
- protected final String TEXT_1144 = ".eINSTANCE.get";
- protected final String TEXT_1145 = "(), labelRefresher);";
- protected final String TEXT_1146 = NL + "\t\t\tregisterRefresher(";
- protected final String TEXT_1147 = ".eINSTANCE.get";
- protected final String TEXT_1148 = "(), labelRefresher);";
- protected final String TEXT_1149 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Since compartments and labels are not selectable edit parts, they are filtered from the overview as well." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_1150 = " getModelChildren() {" + NL + "\t\t\t";
- protected final String TEXT_1151 = " result = new ";
- protected final String TEXT_1152 = "();" + NL + "\t\t\tfor(";
- protected final String TEXT_1153 = " it = getDiagramNode().getVisibleChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
- protected final String TEXT_1154 = " next = (";
- protected final String TEXT_1155 = ") it.next();" + NL + "\t\t\t\t";
- protected final String TEXT_1156 = " style = (";
- protected final String TEXT_1157 = ") next.getStyle(";
- protected final String TEXT_1158 = ".eINSTANCE.getDrawerStyle());" + NL + "\t\t\t\tif (style != null && style.isCollapsed()) {" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tswitch (";
- protected final String TEXT_1159 = ".getVisualID(next)) {";
- protected final String TEXT_1160 = NL + "\t\t\t\tcase ";
- protected final String TEXT_1161 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tbreak;";
- protected final String TEXT_1162 = NL + "\t\t\t\tcase ";
- protected final String TEXT_1163 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.addAll(next.getChildren());" + NL + "\t\t\t\t\tbreak;";
- protected final String TEXT_1164 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tresult.addAll(getDiagramNode().getSourceEdges());" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "\t}" + NL + "}";
- protected final String TEXT_1165 = NL;
+ protected final String TEXT_1050 = "()," + NL + "\t\t\t\t\t";
+ protected final String TEXT_1051 = ".UNSET_VALUE);";
+ protected final String TEXT_1052 = NL + "\t\t\t}" + NL + "\t\t});";
+ protected final String TEXT_1053 = NL;
+ protected final String TEXT_1054 = "\t\tinstallEditPolicy(";
+ protected final String TEXT_1055 = ".DIRECT_EDIT_ROLE," + NL + "\t\t\t\tnew ";
+ protected final String TEXT_1056 = "() {" + NL + "\t\t\t\t\tprotected void showCurrentEditValue(";
+ protected final String TEXT_1057 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tsetWidgetText(value);" + NL + "\t\t\t\t\t}";
+ protected final String TEXT_1058 = NL;
+ protected final String TEXT_1059 = "\t\t\t\t\tprotected ";
+ protected final String TEXT_1060 = " getDirectEditCommand(";
+ protected final String TEXT_1061 = " request) {";
+ protected final String TEXT_1062 = NL + "\t\t\t\t\t\treturn ";
+ protected final String TEXT_1063 = ".INSTANCE;";
+ protected final String TEXT_1064 = NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tif (value == null) {" + NL + "\t\t\t\t\t\t\t//Invalid value is transformed into a null by the validator." + NL + "\t\t\t\t\t\t\t//XXX: implement validator" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_1065 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tfinal Object[] parseResult;";
+ protected final String TEXT_1066 = NL + "\t\t\t\t\t\tif (value.length() == 0) {" + NL + "\t\t\t\t\t\t\tparseResult = new Object[] { null };" + NL + "\t\t\t\t\t\t} else {";
+ protected final String TEXT_1067 = NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tparseResult = new ";
+ protected final String TEXT_1068 = "(";
+ protected final String TEXT_1069 = ").parse(value);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_1070 = ".INSTANCE;" + NL + "\t\t\t\t\t\t} catch (";
+ protected final String TEXT_1071 = " e) {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_1072 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_1073 = NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_1074 = NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1075 = " editingDomain = ";
+ protected final String TEXT_1076 = ".getEditingDomain(";
+ protected final String TEXT_1077 = ".getDiagram().getElement());" + NL + "\t\t\t\t\t\tif (parseResult.length != ";
+ protected final String TEXT_1078 = ") {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_1079 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1080 = " domainModelCommand = createDomainModelCommand(editingDomain, parseResult);" + NL + "\t\t\t\t\t\treturn new ";
+ protected final String TEXT_1081 = "(editingDomain, domainModelCommand);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t";
+ protected final String TEXT_1082 = " createDomainModelCommand(";
+ protected final String TEXT_1083 = " editingDomain, Object[] values) {" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1084 = " element = ";
+ protected final String TEXT_1085 = ";" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1086 = " result = new ";
+ protected final String TEXT_1087 = "();" + NL + "\t\t\t\t\t\tObject valueToSet;";
+ protected final String TEXT_1088 = NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1089 = " ";
+ protected final String TEXT_1090 = "feature = (";
+ protected final String TEXT_1091 = ") ";
+ protected final String TEXT_1092 = ".eINSTANCE.get";
+ protected final String TEXT_1093 = "();" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tvalueToSet = ";
+ protected final String TEXT_1094 = ".parseValue(feature, values[";
+ protected final String TEXT_1095 = "]);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn ";
+ protected final String TEXT_1096 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_1097 = NL + "\t\t\t\t\t\t";
+ protected final String TEXT_1098 = " ";
+ protected final String TEXT_1099 = "values = new ";
+ protected final String TEXT_1100 = "();" + NL + "\t\t\t\t\t\tvalues.addAll(element.get";
+ protected final String TEXT_1101 = "());" + NL + "\t\t\t\t\t\tresult.append(";
+ protected final String TEXT_1102 = ".create(editingDomain, element, feature, values));" + NL + "\t\t\t\t\t\tif (valueToSet != null) {" + NL + "\t\t\t\t\t\t\tresult.append(";
+ protected final String TEXT_1103 = ".create(editingDomain, element, feature, valueToSet));" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_1104 = NL + "\t\t\t\t\t\tresult.append(";
+ protected final String TEXT_1105 = ".create(editingDomain, element, feature, valueToSet == null ? ";
+ protected final String TEXT_1106 = ".UNSET_VALUE : valueToSet));";
+ protected final String TEXT_1107 = NL + "\t\t\t\t\t\treturn result;" + NL + "\t\t\t\t\t}";
+ protected final String TEXT_1108 = NL + "\t\t\t\t});";
+ protected final String TEXT_1109 = NL + "\t\t}" + NL;
+ protected final String TEXT_1110 = NL;
+ protected final String TEXT_1111 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_1112 = " manager;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest(";
+ protected final String TEXT_1113 = " req) {" + NL + "\t\tif (";
+ protected final String TEXT_1114 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\tperformDirectEdit();" + NL + "\t\t} else {" + NL + "\t\t\tsuper.performRequest(req);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_1115 = " getManager() {" + NL + "\t\tif (manager == null) {" + NL + "\t\t\tmanager = new ";
+ protected final String TEXT_1116 = "(this, ";
+ protected final String TEXT_1117 = ".class, new ";
+ protected final String TEXT_1118 = "() {" + NL + "\t\t\t\tpublic void relocate(";
+ protected final String TEXT_1119 = " celleditor) {" + NL + "\t\t\t\t\tif (checkTreeItem()) {" + NL + "\t\t\t\t\t\tcelleditor.getControl().setFont(((";
+ protected final String TEXT_1120 = ") getWidget()).getFont());" + NL + "\t\t\t\t\t\tcelleditor.getControl().setBounds(((";
+ protected final String TEXT_1121 = ") getWidget()).getBounds());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}) {" + NL + "\t\t\t\tprotected void initCellEditor() {" + NL + "\t\t\t\t\tgetCellEditor().setValue(getEditText());" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t}" + NL + "\t\treturn manager;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void performDirectEdit() {" + NL + "\t\tgetManager().show();" + NL + "\t}" + NL + "" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getEditText() {" + NL + "\t\t\t";
+ protected final String TEXT_1122 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelEditText();" + NL + "\t\t\t}" + NL + "\t\t\treturn \"\";" + NL + "\t\t}" + NL;
+ protected final String TEXT_1123 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void activate() {" + NL + "\t\t\tsuper.activate();" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void deactivate() {" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\t\tsuper.deactivate();" + NL + "\t\t}" + NL;
+ protected final String TEXT_1124 = NL;
+ protected final String TEXT_1125 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate ";
+ protected final String TEXT_1126 = " domainModelRefresher = new ";
+ protected final String TEXT_1127 = "(this);" + NL;
+ protected final String TEXT_1128 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getText() {" + NL + "\t\t\t";
+ protected final String TEXT_1129 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelText();" + NL + "\t\t\t}" + NL + "\t\t\treturn super.getText();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_1130 = " getPrimaryLabelEditPart() {" + NL + "\t\t\tfor(";
+ protected final String TEXT_1131 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
+ protected final String TEXT_1132 = " nextChild = (";
+ protected final String TEXT_1133 = ")it.next();" + NL + "\t\t\t\tif (";
+ protected final String TEXT_1134 = ".getVisualID(nextChild) == ";
+ protected final String TEXT_1135 = ".VISUAL_ID) {" + NL + "\t\t\t\t\treturn (";
+ protected final String TEXT_1136 = ") ";
+ protected final String TEXT_1137 = ".this.getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}";
+ protected final String TEXT_1138 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createRefreshers() {" + NL + "\t\t\tsuper.createRefreshers();" + NL + "\t\t\tRefresher labelRefresher = new Refresher() {" + NL + "\t\t\t\tpublic void refresh() {" + NL + "\t\t\t\t\trefreshVisuals();" + NL + "\t\t\t\t}" + NL + "\t\t\t};";
+ protected final String TEXT_1139 = NL + "\t\t\tregisterRefresher(";
+ protected final String TEXT_1140 = ".eINSTANCE.get";
+ protected final String TEXT_1141 = "(), labelRefresher);";
+ protected final String TEXT_1142 = NL + "\t\t\tregisterRefresher(";
+ protected final String TEXT_1143 = ".eINSTANCE.get";
+ protected final String TEXT_1144 = "(), labelRefresher);";
+ protected final String TEXT_1145 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Since compartments and labels are not selectable edit parts, they are filtered from the overview as well." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_1146 = " getModelChildren() {" + NL + "\t\t\t";
+ protected final String TEXT_1147 = " result = new ";
+ protected final String TEXT_1148 = "();" + NL + "\t\t\tfor(";
+ protected final String TEXT_1149 = " it = getDiagramNode().getVisibleChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t";
+ protected final String TEXT_1150 = " next = (";
+ protected final String TEXT_1151 = ") it.next();" + NL + "\t\t\t\t";
+ protected final String TEXT_1152 = " style = (";
+ protected final String TEXT_1153 = ") next.getStyle(";
+ protected final String TEXT_1154 = ".eINSTANCE.getDrawerStyle());" + NL + "\t\t\t\tif (style != null && style.isCollapsed()) {" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tswitch (";
+ protected final String TEXT_1155 = ".getVisualID(next)) {";
+ protected final String TEXT_1156 = NL + "\t\t\t\tcase ";
+ protected final String TEXT_1157 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tbreak;";
+ protected final String TEXT_1158 = NL + "\t\t\t\tcase ";
+ protected final String TEXT_1159 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.addAll(next.getChildren());" + NL + "\t\t\t\t\tbreak;";
+ protected final String TEXT_1160 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tresult.addAll(getDiagramNode().getSourceEdges());" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "\t}" + NL + "}";
+ protected final String TEXT_1161 = NL;
public String generate(Object argument)
{
@@ -1481,70 +1477,74 @@ importManager.markImportLocation(stringBuffer);
stringBuffer.append(TEXT_26);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart"));
stringBuffer.append(TEXT_27);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecoratableEditPart"));
+ stringBuffer.append(TEXT_28);
{
GenCommonBase genCommonBase = genNode;
- stringBuffer.append(TEXT_28);
stringBuffer.append(TEXT_29);
- stringBuffer.append(genCommonBase.getVisualID());
stringBuffer.append(TEXT_30);
- }
+ stringBuffer.append(genCommonBase.getVisualID());
stringBuffer.append(TEXT_31);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
+ }
stringBuffer.append(TEXT_32);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
stringBuffer.append(TEXT_33);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
+ stringBuffer.append(TEXT_34);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecorationManager"));
+ stringBuffer.append(TEXT_35);
if (myHelper.hasBothChildrenAndCompartments()) {
- stringBuffer.append(TEXT_34);
+ stringBuffer.append(TEXT_36);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_35);
+ stringBuffer.append(TEXT_37);
}
- stringBuffer.append(TEXT_36);
- stringBuffer.append(genNode.getEditPartClassName());
- stringBuffer.append(TEXT_37);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_38);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
+ stringBuffer.append(genNode.getEditPartClassName());
stringBuffer.append(TEXT_39);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_40);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_41);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_42);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_43);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_44);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_45);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_46);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_47);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
stringBuffer.append(TEXT_48);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy"));
stringBuffer.append(TEXT_49);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
stringBuffer.append(TEXT_50);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy"));
stringBuffer.append(TEXT_51);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_52);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest"));
stringBuffer.append(TEXT_53);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
stringBuffer.append(TEXT_54);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
stringBuffer.append(TEXT_55);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.RemoveNotationalElementCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
stringBuffer.append(TEXT_56);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
stringBuffer.append(TEXT_57);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.RemoveNotationalElementCommand"));
stringBuffer.append(TEXT_58);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
stringBuffer.append(TEXT_59);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
+ stringBuffer.append(TEXT_60);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
+ stringBuffer.append(TEXT_61);
{
TypeModelFacet facet = genNode.getModelFacet();
@@ -1552,90 +1552,90 @@ GenFeature childFeature = facet.getChildMetaFeature();
GenFeature containmentFeature = facet.getContainmentMetaFeature();
if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) {
- stringBuffer.append(TEXT_60);
+ stringBuffer.append(TEXT_62);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_61);
+ stringBuffer.append(TEXT_63);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_62);
+ stringBuffer.append(TEXT_64);
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_63);
+ stringBuffer.append(TEXT_65);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_64);
+ stringBuffer.append(TEXT_66);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_65);
+ stringBuffer.append(TEXT_67);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_66);
+ stringBuffer.append(TEXT_68);
} else {
- stringBuffer.append(TEXT_67);
+ stringBuffer.append(TEXT_69);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_68);
+ stringBuffer.append(TEXT_70);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_69);
+ stringBuffer.append(TEXT_71);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_70);
+ stringBuffer.append(TEXT_72);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_71);
+ stringBuffer.append(TEXT_73);
}
if (childFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_72);
+ stringBuffer.append(TEXT_74);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_73);
+ stringBuffer.append(TEXT_75);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_74);
+ stringBuffer.append(TEXT_76);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_75);
+ stringBuffer.append(TEXT_77);
} else {
- stringBuffer.append(TEXT_76);
+ stringBuffer.append(TEXT_78);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_77);
+ stringBuffer.append(TEXT_79);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_78);
+ stringBuffer.append(TEXT_80);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_79);
+ stringBuffer.append(TEXT_81);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_80);
+ stringBuffer.append(TEXT_82);
}
- stringBuffer.append(TEXT_81);
+ stringBuffer.append(TEXT_83);
} else {
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_82);
+ stringBuffer.append(TEXT_84);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_83);
+ stringBuffer.append(TEXT_85);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_84);
+ stringBuffer.append(TEXT_86);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_85);
+ stringBuffer.append(TEXT_87);
} else {
- stringBuffer.append(TEXT_86);
+ stringBuffer.append(TEXT_88);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_87);
+ stringBuffer.append(TEXT_89);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_88);
+ stringBuffer.append(TEXT_90);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_89);
+ stringBuffer.append(TEXT_91);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_90);
+ stringBuffer.append(TEXT_92);
}
}
- stringBuffer.append(TEXT_91);
+ stringBuffer.append(TEXT_93);
} /*restrict local vars used in component edit policy*/
@@ -1647,65 +1647,65 @@ if (!genNode.getChildNodes().isEmpty() && isXYLayout) {
layoutEditPolicyBaseClass = "org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy";
}
- stringBuffer.append(TEXT_92);
+ stringBuffer.append(TEXT_94);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_93);
+ stringBuffer.append(TEXT_95);
stringBuffer.append(importManager.getImportedName(layoutEditPolicyBaseClass));
- stringBuffer.append(TEXT_94);
+ stringBuffer.append(TEXT_96);
{
String _getViewCode = "getDiagramNode()";
List childNodes = genNode.getChildNodes();
boolean isListLayout = !isXYLayout;
- stringBuffer.append(TEXT_95);
+ stringBuffer.append(TEXT_97);
if (!childNodes.isEmpty()) {
- stringBuffer.append(TEXT_96);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_97);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_98);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
stringBuffer.append(TEXT_99);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_100);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_101);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_102);
- stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
stringBuffer.append(TEXT_103);
- stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
stringBuffer.append(TEXT_104);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
stringBuffer.append(TEXT_105);
- stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName()));
stringBuffer.append(TEXT_106);
- stringBuffer.append(_getViewCode);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
stringBuffer.append(TEXT_107);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
+ stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
stringBuffer.append(TEXT_108);
+ stringBuffer.append(_getViewCode);
+ stringBuffer.append(TEXT_109);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
+ stringBuffer.append(TEXT_110);
for(Iterator it = childNodes.iterator(); it.hasNext(); ) {
GenNode next = (GenNode) it.next();
- stringBuffer.append(TEXT_109);
+ stringBuffer.append(TEXT_111);
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_110);
+ stringBuffer.append(TEXT_112);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_111);
+ stringBuffer.append(TEXT_113);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_112);
+ stringBuffer.append(TEXT_114);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_113);
+ stringBuffer.append(TEXT_115);
{
Collection<GenNode> relatedNodes = myRelatedNodesFinder.getRelatedGenNodes(next.getDomainMetaClass());
if (relatedNodes.size() != 1) {
- stringBuffer.append(TEXT_114);
+ stringBuffer.append(TEXT_116);
}
for(GenNode nextRelated : relatedNodes) {
@@ -1714,68 +1714,68 @@ if (!childNodes.isEmpty()) {
GenFeature containmentFeature = facet.getContainmentMetaFeature();
if (relatedNodes.size() != 1) {
- stringBuffer.append(TEXT_115);
+ stringBuffer.append(TEXT_117);
stringBuffer.append(importManager.getImportedName(nextRelated.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_116);
+ stringBuffer.append(TEXT_118);
}
if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) {
if (childFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_117);
+ stringBuffer.append(TEXT_119);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_118);
+ stringBuffer.append(TEXT_120);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_119);
+ stringBuffer.append(TEXT_121);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_120);
+ stringBuffer.append(TEXT_122);
} else {
- stringBuffer.append(TEXT_121);
+ stringBuffer.append(TEXT_123);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_122);
+ stringBuffer.append(TEXT_124);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_123);
+ stringBuffer.append(TEXT_125);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_124);
+ stringBuffer.append(TEXT_126);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_125);
+ stringBuffer.append(TEXT_127);
}
}
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_126);
+ stringBuffer.append(TEXT_128);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_127);
+ stringBuffer.append(TEXT_129);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_128);
+ stringBuffer.append(TEXT_130);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_129);
+ stringBuffer.append(TEXT_131);
} else {
- stringBuffer.append(TEXT_130);
+ stringBuffer.append(TEXT_132);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_131);
+ stringBuffer.append(TEXT_133);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_132);
+ stringBuffer.append(TEXT_134);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_133);
+ stringBuffer.append(TEXT_135);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_134);
+ stringBuffer.append(TEXT_136);
}
if (relatedNodes.size() != 1) {
- stringBuffer.append(TEXT_135);
+ stringBuffer.append(TEXT_137);
}
} //for(GenNode nextRelated : relatedNodes)
if (relatedNodes.size() != 1) {
- stringBuffer.append(TEXT_136);
+ stringBuffer.append(TEXT_138);
/*switch(visualID)*/
}
@@ -1788,42 +1788,42 @@ if (!childNodes.isEmpty()) {
String _exceedsUpperBound = "return " + importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand") + ".INSTANCE;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_137);
+ stringBuffer.append(TEXT_139);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound == 1) {
- stringBuffer.append(TEXT_138);
+ stringBuffer.append(TEXT_140);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_139);
+ stringBuffer.append(TEXT_141);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_140);
+ stringBuffer.append(TEXT_142);
} else {
if (upperBound > 0) {
- stringBuffer.append(TEXT_141);
+ stringBuffer.append(TEXT_143);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_142);
+ stringBuffer.append(TEXT_144);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_143);
+ stringBuffer.append(TEXT_145);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_144);
+ stringBuffer.append(TEXT_146);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_145);
+ stringBuffer.append(TEXT_147);
}
}
- stringBuffer.append(TEXT_146);
+ stringBuffer.append(TEXT_148);
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_147);
+ stringBuffer.append(TEXT_149);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_148);
+ stringBuffer.append(TEXT_150);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_149);
+ stringBuffer.append(TEXT_151);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_150);
+ stringBuffer.append(TEXT_152);
}
{
@@ -1832,29 +1832,29 @@ if (upperBound == 1) {
String _exceedsUpperBound = "return " + importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand") + ".INSTANCE;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_151);
+ stringBuffer.append(TEXT_153);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound == 1) {
- stringBuffer.append(TEXT_152);
+ stringBuffer.append(TEXT_154);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_153);
+ stringBuffer.append(TEXT_155);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_154);
+ stringBuffer.append(TEXT_156);
} else {
if (upperBound > 0) {
- stringBuffer.append(TEXT_155);
+ stringBuffer.append(TEXT_157);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_156);
+ stringBuffer.append(TEXT_158);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_157);
+ stringBuffer.append(TEXT_159);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_158);
+ stringBuffer.append(TEXT_160);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_159);
+ stringBuffer.append(TEXT_161);
}
}
@@ -1862,41 +1862,41 @@ if (upperBound == 1) {
}
- stringBuffer.append(TEXT_160);
+ stringBuffer.append(TEXT_162);
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_161);
+ stringBuffer.append(TEXT_163);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_162);
+ stringBuffer.append(TEXT_164);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_163);
+ stringBuffer.append(TEXT_165);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_164);
+ stringBuffer.append(TEXT_166);
} //local declaration for related nodes.
- stringBuffer.append(TEXT_165);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_166);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.ExpandDrawerCommand"));
stringBuffer.append(TEXT_167);
- stringBuffer.append(_getViewCode);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
stringBuffer.append(TEXT_168);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.ExpandDrawerCommand"));
stringBuffer.append(TEXT_169);
stringBuffer.append(_getViewCode);
stringBuffer.append(TEXT_170);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand"));
stringBuffer.append(TEXT_171);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.SetBoundsCommand"));
+ stringBuffer.append(_getViewCode);
stringBuffer.append(TEXT_172);
- if (isListLayout) {
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_173);
- } else {
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.SetBoundsCommand"));
stringBuffer.append(TEXT_174);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
+ if (isListLayout) {
stringBuffer.append(TEXT_175);
- }
+ } else {
stringBuffer.append(TEXT_176);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
+ stringBuffer.append(TEXT_177);
+ }
+ stringBuffer.append(TEXT_178);
{
int defaultWidth = 40;
@@ -1907,90 +1907,90 @@ if (upperBound == 1) {
defaultHeight = defSizeAttrs.getHeight();
}
- stringBuffer.append(TEXT_177);
+ stringBuffer.append(TEXT_179);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand"));
- stringBuffer.append(TEXT_178);
+ stringBuffer.append(TEXT_180);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_179);
+ stringBuffer.append(TEXT_181);
if (isListLayout) {
- stringBuffer.append(TEXT_180);
+ stringBuffer.append(TEXT_182);
} else {
- stringBuffer.append(TEXT_181);
+ stringBuffer.append(TEXT_183);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
- stringBuffer.append(TEXT_182);
+ stringBuffer.append(TEXT_184);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension"));
- stringBuffer.append(TEXT_183);
+ stringBuffer.append(TEXT_185);
stringBuffer.append(defaultWidth);
- stringBuffer.append(TEXT_184);
+ stringBuffer.append(TEXT_186);
stringBuffer.append(defaultHeight);
- stringBuffer.append(TEXT_185);
+ stringBuffer.append(TEXT_187);
}
- stringBuffer.append(TEXT_186);
+ stringBuffer.append(TEXT_188);
stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_187);
+ stringBuffer.append(TEXT_189);
}
- stringBuffer.append(TEXT_188);
+ stringBuffer.append(TEXT_190);
} //for
- stringBuffer.append(TEXT_189);
+ stringBuffer.append(TEXT_191);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_190);
+ stringBuffer.append(TEXT_192);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_191);
+ stringBuffer.append(TEXT_193);
} //if (!childNodes.isEmpty()) in createAddCommand
- stringBuffer.append(TEXT_192);
+ stringBuffer.append(TEXT_194);
/* delegation from getCloneCommand to createCloneCommand is 100% analogous to delegation from getAddCommand() to createAddCommand() in ConstrainedLayoutEditPolicy. */
if (!childNodes.isEmpty()) {
- stringBuffer.append(TEXT_193);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_194);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ChangeBoundsRequest"));
stringBuffer.append(TEXT_195);
- stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_196);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ChangeBoundsRequest"));
stringBuffer.append(TEXT_197);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
stringBuffer.append(TEXT_198);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand"));
stringBuffer.append(TEXT_199);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand"));
stringBuffer.append(TEXT_200);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart"));
stringBuffer.append(TEXT_201);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
stringBuffer.append(TEXT_202);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart"));
stringBuffer.append(TEXT_203);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_204);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
stringBuffer.append(TEXT_205);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_206);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_207);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_208);
- stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
stringBuffer.append(TEXT_209);
- stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
stringBuffer.append(TEXT_210);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
stringBuffer.append(TEXT_211);
- stringBuffer.append(_getViewCode);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName()));
stringBuffer.append(TEXT_212);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
+ stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
stringBuffer.append(TEXT_213);
+ stringBuffer.append(_getViewCode);
+ stringBuffer.append(TEXT_214);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
+ stringBuffer.append(TEXT_215);
for(Iterator it = childNodes.iterator(); it.hasNext(); ) {
GenNode next = (GenNode) it.next();
@@ -1998,19 +1998,19 @@ if (!childNodes.isEmpty()) {
GenFeature childFeature = facet.getChildMetaFeature();
GenFeature containmentFeature = facet.getContainmentMetaFeature();
- stringBuffer.append(TEXT_214);
+ stringBuffer.append(TEXT_216);
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_215);
+ stringBuffer.append(TEXT_217);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CommandWrapper"));
- stringBuffer.append(TEXT_216);
+ stringBuffer.append(TEXT_218);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_217);
+ stringBuffer.append(TEXT_219);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_218);
+ stringBuffer.append(TEXT_220);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_219);
+ stringBuffer.append(TEXT_221);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.CopyCommand"));
- stringBuffer.append(TEXT_220);
+ stringBuffer.append(TEXT_222);
if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) {
GenFeature _feature = childFeature;
@@ -2018,29 +2018,29 @@ if (!childNodes.isEmpty()) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_221);
+ stringBuffer.append(TEXT_223);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound == 1) {
- stringBuffer.append(TEXT_222);
+ stringBuffer.append(TEXT_224);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_223);
+ stringBuffer.append(TEXT_225);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_224);
+ stringBuffer.append(TEXT_226);
} else {
if (upperBound > 0) {
- stringBuffer.append(TEXT_225);
+ stringBuffer.append(TEXT_227);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_226);
+ stringBuffer.append(TEXT_228);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_227);
+ stringBuffer.append(TEXT_229);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_228);
+ stringBuffer.append(TEXT_230);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_229);
+ stringBuffer.append(TEXT_231);
}
}
@@ -2053,29 +2053,29 @@ if (upperBound == 1) {
String _exceedsUpperBound = "return false;";
GenClass _ownerGenClass = null;
- stringBuffer.append(TEXT_230);
+ stringBuffer.append(TEXT_232);
int upperBound = _feature.getEcoreFeature().getUpperBound();
if (upperBound == 1) {
- stringBuffer.append(TEXT_231);
+ stringBuffer.append(TEXT_233);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);
- stringBuffer.append(TEXT_232);
+ stringBuffer.append(TEXT_234);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_233);
+ stringBuffer.append(TEXT_235);
} else {
if (upperBound > 0) {
- stringBuffer.append(TEXT_234);
+ stringBuffer.append(TEXT_236);
myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);
- stringBuffer.append(TEXT_235);
+ stringBuffer.append(TEXT_237);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_236);
+ stringBuffer.append(TEXT_238);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_237);
+ stringBuffer.append(TEXT_239);
stringBuffer.append(_exceedsUpperBound);
- stringBuffer.append(TEXT_238);
+ stringBuffer.append(TEXT_240);
}
}
@@ -2083,39 +2083,39 @@ if (upperBound == 1) {
}
- stringBuffer.append(TEXT_239);
+ stringBuffer.append(TEXT_241);
stringBuffer.append(importManager.getImportedName("java.util.Collection"));
- stringBuffer.append(TEXT_240);
+ stringBuffer.append(TEXT_242);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_241);
+ stringBuffer.append(TEXT_243);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_242);
+ stringBuffer.append(TEXT_244);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_243);
+ stringBuffer.append(TEXT_245);
if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) {
- stringBuffer.append(TEXT_244);
+ stringBuffer.append(TEXT_246);
stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_245);
+ stringBuffer.append(TEXT_247);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_246);
+ stringBuffer.append(TEXT_248);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_247);
+ stringBuffer.append(TEXT_249);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_248);
+ stringBuffer.append(TEXT_250);
}
- stringBuffer.append(TEXT_249);
+ stringBuffer.append(TEXT_251);
stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_250);
+ stringBuffer.append(TEXT_252);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_251);
+ stringBuffer.append(TEXT_253);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_252);
+ stringBuffer.append(TEXT_254);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_253);
+ stringBuffer.append(TEXT_255);
{
int defaultWidth = 40;
@@ -2126,204 +2126,204 @@ if (upperBound == 1) {
defaultHeight = defSizeAttrs.getHeight();
}
- stringBuffer.append(TEXT_254);
+ stringBuffer.append(TEXT_256);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand"));
- stringBuffer.append(TEXT_255);
+ stringBuffer.append(TEXT_257);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_256);
+ stringBuffer.append(TEXT_258);
if (isListLayout) {
- stringBuffer.append(TEXT_257);
+ stringBuffer.append(TEXT_259);
} else {
- stringBuffer.append(TEXT_258);
+ stringBuffer.append(TEXT_260);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
- stringBuffer.append(TEXT_259);
+ stringBuffer.append(TEXT_261);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension"));
- stringBuffer.append(TEXT_260);
+ stringBuffer.append(TEXT_262);
stringBuffer.append(defaultWidth);
- stringBuffer.append(TEXT_261);
+ stringBuffer.append(TEXT_263);
stringBuffer.append(defaultHeight);
- stringBuffer.append(TEXT_262);
+ stringBuffer.append(TEXT_264);
}
- stringBuffer.append(TEXT_263);
+ stringBuffer.append(TEXT_265);
stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_264);
+ stringBuffer.append(TEXT_266);
}
} //for
- stringBuffer.append(TEXT_265);
+ stringBuffer.append(TEXT_267);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_266);
+ stringBuffer.append(TEXT_268);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_267);
+ stringBuffer.append(TEXT_269);
} //if (!childNodes.isEmpty())
}
- stringBuffer.append(TEXT_268);
+ stringBuffer.append(TEXT_270);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_269);
+ stringBuffer.append(TEXT_271);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateRequest"));
- stringBuffer.append(TEXT_270);
+ stringBuffer.append(TEXT_272);
if (palette != null && !genNode.getChildNodes().isEmpty()) {
- stringBuffer.append(TEXT_271);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx"));
- stringBuffer.append(TEXT_272);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx"));
stringBuffer.append(TEXT_273);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx"));
stringBuffer.append(TEXT_274);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx"));
stringBuffer.append(TEXT_275);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx"));
stringBuffer.append(TEXT_276);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(TEXT_277);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(TEXT_278);
for(Iterator it = genNode.getChildNodes().iterator(); it.hasNext(); ) {
GenChildNode next = (GenChildNode)it.next();
- stringBuffer.append(TEXT_277);
+ stringBuffer.append(TEXT_279);
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_278);
+ stringBuffer.append(TEXT_280);
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".Create" + next.getDomainMetaClass().getName() + next.getVisualID() + "Command"));
- stringBuffer.append(TEXT_279);
+ stringBuffer.append(TEXT_281);
if (isXYLayout) {
- stringBuffer.append(TEXT_280);
+ stringBuffer.append(TEXT_282);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
- stringBuffer.append(TEXT_281);
+ stringBuffer.append(TEXT_283);
}
- stringBuffer.append(TEXT_282);
+ stringBuffer.append(TEXT_284);
}
- stringBuffer.append(TEXT_283);
+ stringBuffer.append(TEXT_285);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_284);
+ stringBuffer.append(TEXT_286);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_285);
+ stringBuffer.append(TEXT_287);
}
- stringBuffer.append(TEXT_286);
+ stringBuffer.append(TEXT_288);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_287);
+ stringBuffer.append(TEXT_289);
if (!genNode.getChildNodes().isEmpty() && isXYLayout) {
- stringBuffer.append(TEXT_288);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_289);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ChangeBoundsRequest"));
stringBuffer.append(TEXT_290);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_291);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ChangeBoundsRequest"));
stringBuffer.append(TEXT_292);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
stringBuffer.append(TEXT_293);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
stringBuffer.append(TEXT_294);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_295);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_296);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_297);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.ChangeBoundsCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
stringBuffer.append(TEXT_298);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
stringBuffer.append(TEXT_299);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.ChangeBoundsCommand"));
stringBuffer.append(TEXT_300);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart"));
stringBuffer.append(TEXT_301);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
stringBuffer.append(TEXT_302);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
stringBuffer.append(TEXT_303);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
+ stringBuffer.append(TEXT_304);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
+ stringBuffer.append(TEXT_305);
} else {
- stringBuffer.append(TEXT_304);
+ stringBuffer.append(TEXT_306);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
- stringBuffer.append(TEXT_305);
+ stringBuffer.append(TEXT_307);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point"));
- stringBuffer.append(TEXT_306);
+ stringBuffer.append(TEXT_308);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_307);
+ stringBuffer.append(TEXT_309);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_308);
+ stringBuffer.append(TEXT_310);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_309);
+ stringBuffer.append(TEXT_311);
}
- stringBuffer.append(TEXT_310);
+ stringBuffer.append(TEXT_312);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_311);
+ stringBuffer.append(TEXT_313);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_312);
+ stringBuffer.append(TEXT_314);
if (!genNode.getChildNodes().isEmpty()) {
- stringBuffer.append(TEXT_313);
+ stringBuffer.append(TEXT_315);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_314);
+ stringBuffer.append(TEXT_316);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_315);
+ stringBuffer.append(TEXT_317);
}
- stringBuffer.append(TEXT_316);
+ stringBuffer.append(TEXT_318);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy"));
- stringBuffer.append(TEXT_317);
+ stringBuffer.append(TEXT_319);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_318);
+ stringBuffer.append(TEXT_320);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request"));
- stringBuffer.append(TEXT_319);
+ stringBuffer.append(TEXT_321);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants"));
- stringBuffer.append(TEXT_320);
+ stringBuffer.append(TEXT_322);
stringBuffer.append(genNode.getEditPartClassName());
- stringBuffer.append(TEXT_321);
+ stringBuffer.append(TEXT_323);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_322);
+ stringBuffer.append(TEXT_324);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy"));
- stringBuffer.append(TEXT_323);
+ stringBuffer.append(TEXT_325);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_324);
+ stringBuffer.append(TEXT_326);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest"));
- stringBuffer.append(TEXT_325);
+ stringBuffer.append(TEXT_327);
if (!myHelper.hasIncomingLinks()) {
- stringBuffer.append(TEXT_326);
+ stringBuffer.append(TEXT_328);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_327);
+ stringBuffer.append(TEXT_329);
} else {
- stringBuffer.append(TEXT_328);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart"));
- stringBuffer.append(TEXT_329);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
stringBuffer.append(TEXT_330);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart"));
stringBuffer.append(TEXT_331);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
stringBuffer.append(TEXT_332);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
stringBuffer.append(TEXT_333);
- stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
stringBuffer.append(TEXT_334);
- stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
stringBuffer.append(TEXT_335);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
+ stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
stringBuffer.append(TEXT_336);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName()));
stringBuffer.append(TEXT_337);
- stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
stringBuffer.append(TEXT_338);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
+ stringBuffer.append(TEXT_339);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(TEXT_340);
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) {
GenLink genLink = (GenLink)it.next();
@@ -2347,59 +2347,59 @@ if (!myHelper.hasIncomingLinks()) {
continue;
}
- stringBuffer.append(TEXT_339);
+ stringBuffer.append(TEXT_341);
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_340);
+ stringBuffer.append(TEXT_342);
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".Reconnect" + reconnectCommandNameInfix + genLink.getVisualID() + "TargetCommand"));
- stringBuffer.append(TEXT_341);
+ stringBuffer.append(TEXT_343);
}
- stringBuffer.append(TEXT_342);
+ stringBuffer.append(TEXT_344);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_343);
+ stringBuffer.append(TEXT_345);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_344);
+ stringBuffer.append(TEXT_346);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_345);
+ stringBuffer.append(TEXT_347);
}
- stringBuffer.append(TEXT_346);
+ stringBuffer.append(TEXT_348);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_347);
+ stringBuffer.append(TEXT_349);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest"));
- stringBuffer.append(TEXT_348);
+ stringBuffer.append(TEXT_350);
if (!myHelper.hasOutgoingLinks()) {
- stringBuffer.append(TEXT_349);
+ stringBuffer.append(TEXT_351);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_350);
+ stringBuffer.append(TEXT_352);
} else {
- stringBuffer.append(TEXT_351);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart"));
- stringBuffer.append(TEXT_352);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
stringBuffer.append(TEXT_353);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart"));
stringBuffer.append(TEXT_354);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
stringBuffer.append(TEXT_355);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
stringBuffer.append(TEXT_356);
- stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
stringBuffer.append(TEXT_357);
- stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
stringBuffer.append(TEXT_358);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
+ stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
stringBuffer.append(TEXT_359);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName()));
stringBuffer.append(TEXT_360);
- stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
stringBuffer.append(TEXT_361);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
+ stringBuffer.append(TEXT_362);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(TEXT_363);
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) {
GenLink genLink = (GenLink)it.next();
@@ -2425,41 +2425,41 @@ if (!myHelper.hasOutgoingLinks()) {
continue;
}
- stringBuffer.append(TEXT_362);
+ stringBuffer.append(TEXT_364);
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_363);
+ stringBuffer.append(TEXT_365);
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".Reconnect" + reconnectCommandNameInfix + genLink.getVisualID() + "SourceCommand"));
- stringBuffer.append(TEXT_364);
+ stringBuffer.append(TEXT_366);
}
- stringBuffer.append(TEXT_365);
+ stringBuffer.append(TEXT_367);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_366);
+ stringBuffer.append(TEXT_368);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_367);
+ stringBuffer.append(TEXT_369);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_368);
+ stringBuffer.append(TEXT_370);
}
- stringBuffer.append(TEXT_369);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_370);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest"));
stringBuffer.append(TEXT_371);
- if (palette != null && myHelper.hasOutgoingLinks()) {
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_372);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest"));
stringBuffer.append(TEXT_373);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
+ if (palette != null && myHelper.hasOutgoingLinks()) {
stringBuffer.append(TEXT_374);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
stringBuffer.append(TEXT_375);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
stringBuffer.append(TEXT_376);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
stringBuffer.append(TEXT_377);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(TEXT_378);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(TEXT_379);
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) {
GenLink genLink = (GenLink)it.next();
@@ -2485,41 +2485,41 @@ for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) {
continue;
}
- stringBuffer.append(TEXT_378);
+ stringBuffer.append(TEXT_380);
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_379);
+ stringBuffer.append(TEXT_381);
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".Create" + createCommandNameInfix + genLink.getVisualID() + "StartCommand"));
- stringBuffer.append(TEXT_380);
+ stringBuffer.append(TEXT_382);
}
- stringBuffer.append(TEXT_381);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_382);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
stringBuffer.append(TEXT_383);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_384);
- }/*when there's palette*/
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
stringBuffer.append(TEXT_385);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
stringBuffer.append(TEXT_386);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest"));
+ }/*when there's palette*/
stringBuffer.append(TEXT_387);
- if (palette != null && myHelper.hasIncomingLinks()) {
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_388);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest"));
stringBuffer.append(TEXT_389);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
+ if (palette != null && myHelper.hasIncomingLinks()) {
stringBuffer.append(TEXT_390);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
stringBuffer.append(TEXT_391);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
stringBuffer.append(TEXT_392);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
stringBuffer.append(TEXT_393);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx"));
stringBuffer.append(TEXT_394);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(TEXT_395);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
+ stringBuffer.append(TEXT_396);
for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) {
GenLink genLink = (GenLink)it.next();
@@ -2543,49 +2543,49 @@ for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) {
continue;
}
- stringBuffer.append(TEXT_395);
+ stringBuffer.append(TEXT_397);
stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_396);
+ stringBuffer.append(TEXT_398);
stringBuffer.append(importManager.getImportedName(genDiagram.getEditCommandsPackageName() + ".Create" + createCommandNameInfix + genLink.getVisualID() + "Command"));
- stringBuffer.append(TEXT_397);
+ stringBuffer.append(TEXT_399);
}
- stringBuffer.append(TEXT_398);
+ stringBuffer.append(TEXT_400);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_399);
+ stringBuffer.append(TEXT_401);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_400);
+ stringBuffer.append(TEXT_402);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_401);
+ stringBuffer.append(TEXT_403);
}/*when there's palette*/
- stringBuffer.append(TEXT_402);
+ stringBuffer.append(TEXT_404);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_403);
+ stringBuffer.append(TEXT_405);
if (myHelper.getPrimaryLabel() != null) {
- stringBuffer.append(TEXT_404);
+ stringBuffer.append(TEXT_406);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_405);
+ stringBuffer.append(TEXT_407);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.policies.DelegatingDirectEditPolicy"));
- stringBuffer.append(TEXT_406);
+ stringBuffer.append(TEXT_408);
}
{
GenCommonBase genCommonBase = genNode;
- stringBuffer.append(TEXT_407);
+ stringBuffer.append(TEXT_409);
for (CustomBehaviour behaviour : genCommonBase.getBehaviour(CustomBehaviour.class)) {
- stringBuffer.append(TEXT_408);
+ stringBuffer.append(TEXT_410);
stringBuffer.append(behaviour.getKey());
- stringBuffer.append(TEXT_409);
+ stringBuffer.append(TEXT_411);
stringBuffer.append(importManager.getImportedName(behaviour.getEditPolicyQualifiedClassName()));
- stringBuffer.append(TEXT_410);
+ stringBuffer.append(TEXT_412);
}
- stringBuffer.append(TEXT_411);
+ stringBuffer.append(TEXT_413);
{
List<OpenDiagramBehaviour> behaviours = genCommonBase.getBehaviour(OpenDiagramBehaviour.class);
@@ -2593,165 +2593,173 @@ for (CustomBehaviour behaviour : genCommonBase.getBehaviour(CustomBehaviour.clas
/*doesn't make sense to install more than one policy for the same role*/
OpenDiagramBehaviour next = behaviours.get(i);
- stringBuffer.append(TEXT_412);
+ stringBuffer.append(TEXT_414);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.policies.EditPolicyRoles"));
- stringBuffer.append(TEXT_413);
+ stringBuffer.append(TEXT_415);
if (i > 0) {
- stringBuffer.append(TEXT_414);
+ stringBuffer.append(TEXT_416);
stringBuffer.append(i+1);
- stringBuffer.append(TEXT_415);
+ stringBuffer.append(TEXT_417);
}
- stringBuffer.append(TEXT_416);
+ stringBuffer.append(TEXT_418);
stringBuffer.append(importManager.getImportedName(genCommonBase.getBehaviour(OpenDiagramBehaviour.class).get(0).getEditPolicyQualifiedClassName()));
- stringBuffer.append(TEXT_417);
+ stringBuffer.append(TEXT_419);
}
}
}
- stringBuffer.append(TEXT_418);
+ stringBuffer.append(TEXT_420);
if (!genNode.getChildNodes().isEmpty()) {
- stringBuffer.append(TEXT_419);
+ stringBuffer.append(TEXT_421);
}
if (myHelper.containsLinks()) {
- stringBuffer.append(TEXT_420);
+ stringBuffer.append(TEXT_422);
}
- stringBuffer.append(TEXT_421);
+ stringBuffer.append(TEXT_423);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_422);
+ stringBuffer.append(TEXT_424);
if (genNode.getPrimaryDragEditPolicyQualifiedClassName() != null) {
- stringBuffer.append(TEXT_423);
+ stringBuffer.append(TEXT_425);
stringBuffer.append(importManager.getImportedName(genNode.getPrimaryDragEditPolicyQualifiedClassName()));
- stringBuffer.append(TEXT_424);
+ stringBuffer.append(TEXT_426);
} else {
if (genNode.getCompartments().isEmpty()) {
- stringBuffer.append(TEXT_425);
+ stringBuffer.append(TEXT_427);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy"));
- stringBuffer.append(TEXT_426);
+ stringBuffer.append(TEXT_428);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy"));
- stringBuffer.append(TEXT_427);
+ stringBuffer.append(TEXT_429);
} else {
- stringBuffer.append(TEXT_428);
+ stringBuffer.append(TEXT_430);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy"));
- stringBuffer.append(TEXT_429);
+ stringBuffer.append(TEXT_431);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy"));
- stringBuffer.append(TEXT_430);
+ stringBuffer.append(TEXT_432);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_431);
+ stringBuffer.append(TEXT_433);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_432);
+ stringBuffer.append(TEXT_434);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_433);
+ stringBuffer.append(TEXT_435);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_434);
+ stringBuffer.append(TEXT_436);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_435);
+ stringBuffer.append(TEXT_437);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_436);
+ stringBuffer.append(TEXT_438);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_437);
+ stringBuffer.append(TEXT_439);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_438);
+ stringBuffer.append(TEXT_440);
for (Iterator compartments = genNode.getCompartments().iterator(); compartments.hasNext();){
GenCompartment next = (GenCompartment) compartments.next();
- stringBuffer.append(TEXT_439);
+ stringBuffer.append(TEXT_441);
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_440);
+ stringBuffer.append(TEXT_442);
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_441);
+ stringBuffer.append(TEXT_443);
}
- stringBuffer.append(TEXT_442);
+ stringBuffer.append(TEXT_444);
}
ResizeConstraints rc = (ResizeConstraints) genNode.getViewmap().find(ResizeConstraints.class);
if (rc != null) {
if (rc.getResizeHandles() == 0) {
- stringBuffer.append(TEXT_443);
+ stringBuffer.append(TEXT_445);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants"));
- stringBuffer.append(TEXT_444);
+ stringBuffer.append(TEXT_446);
} else {
- stringBuffer.append(TEXT_445);
+ stringBuffer.append(TEXT_447);
for (Iterator it = rc.getResizeHandleNames().iterator(); it.hasNext(); ) {
String next = (String) it.next();
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants"));
- stringBuffer.append(TEXT_446);
+ stringBuffer.append(TEXT_448);
stringBuffer.append(next);
if (it.hasNext()) {
- stringBuffer.append(TEXT_447);
+ stringBuffer.append(TEXT_449);
}
}
- stringBuffer.append(TEXT_448);
+ stringBuffer.append(TEXT_450);
}
}
- stringBuffer.append(TEXT_449);
+ stringBuffer.append(TEXT_451);
}
- stringBuffer.append(TEXT_450);
+ stringBuffer.append(TEXT_452);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_451);
+ stringBuffer.append(TEXT_453);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_452);
+ stringBuffer.append(TEXT_454);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure"));
- stringBuffer.append(TEXT_453);
+ stringBuffer.append(TEXT_455);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.StackLayout"));
- stringBuffer.append(TEXT_454);
+ stringBuffer.append(TEXT_456);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_455);
+ stringBuffer.append(TEXT_457);
if (myHelper.hasBothChildrenAndCompartments()) {
- stringBuffer.append(TEXT_456);
+ stringBuffer.append(TEXT_458);
}
- stringBuffer.append(TEXT_457);
+ stringBuffer.append(TEXT_459);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_458);
+ stringBuffer.append(TEXT_460);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecorationManager"));
+ stringBuffer.append(TEXT_461);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
+ stringBuffer.append(TEXT_462);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.decorations.PaneDecorationManager"));
+ stringBuffer.append(TEXT_463);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.decorations.IDecorationManager"));
+ stringBuffer.append(TEXT_464);
if (!genNode.getCompartments().isEmpty() && !genNode.getChildNodes().isEmpty()) {
- stringBuffer.append(TEXT_459);
+ stringBuffer.append(TEXT_465);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_460);
+ stringBuffer.append(TEXT_466);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_461);
+ stringBuffer.append(TEXT_467);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.RectangleFigure"));
- stringBuffer.append(TEXT_462);
+ stringBuffer.append(TEXT_468);
}
- stringBuffer.append(TEXT_463);
+ stringBuffer.append(TEXT_469);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_464);
+ stringBuffer.append(TEXT_470);
String figureQualifiedClassName = null;
Viewmap viewmap = genNode.getViewmap();
@@ -2761,98 +2769,78 @@ if (viewmap instanceof FigureViewmap) {
figureQualifiedClassName = "org.eclipse.draw2d.RectangleFigure";
}
- stringBuffer.append(TEXT_465);
+ stringBuffer.append(TEXT_471);
stringBuffer.append(importManager.getImportedName(figureQualifiedClassName));
- stringBuffer.append(TEXT_466);
+ stringBuffer.append(TEXT_472);
if (isXYLayout) {
- stringBuffer.append(TEXT_467);
+ stringBuffer.append(TEXT_473);
} /* use flow layout*/
- stringBuffer.append(TEXT_468);
+ stringBuffer.append(TEXT_474);
} else if (viewmap instanceof SnippetViewmap) {
- stringBuffer.append(TEXT_469);
+ stringBuffer.append(TEXT_475);
stringBuffer.append(((SnippetViewmap) viewmap).getBody());
- stringBuffer.append(TEXT_470);
+ stringBuffer.append(TEXT_476);
} else if (viewmap instanceof InnerClassViewmap) {
figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName();
- stringBuffer.append(TEXT_471);
- stringBuffer.append(figureQualifiedClassName);
- stringBuffer.append(TEXT_472);
- stringBuffer.append(figureQualifiedClassName);
- stringBuffer.append(TEXT_473);
- if (!genNode.getChildNodes().isEmpty() && isXYLayout) { /*otherwise, leave to figure's default value*/
- stringBuffer.append(TEXT_474);
- }
- stringBuffer.append(TEXT_475);
- }
- stringBuffer.append(TEXT_476);
- if (figureQualifiedClassName != null) {
stringBuffer.append(TEXT_477);
stringBuffer.append(figureQualifiedClassName);
stringBuffer.append(TEXT_478);
stringBuffer.append(figureQualifiedClassName);
stringBuffer.append(TEXT_479);
- }
+ if (!genNode.getChildNodes().isEmpty() && isXYLayout) { /*otherwise, leave to figure's default value*/
stringBuffer.append(TEXT_480);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
+ }
stringBuffer.append(TEXT_481);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ }
stringBuffer.append(TEXT_482);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
+ if (figureQualifiedClassName != null) {
stringBuffer.append(TEXT_483);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation"));
+ stringBuffer.append(figureQualifiedClassName);
stringBuffer.append(TEXT_484);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure"));
+ stringBuffer.append(figureQualifiedClassName);
stringBuffer.append(TEXT_485);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure"));
+ }
stringBuffer.append(TEXT_486);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
stringBuffer.append(TEXT_487);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure"));
stringBuffer.append(TEXT_488);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure"));
- stringBuffer.append(TEXT_489);
- stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName()));
- stringBuffer.append(TEXT_490);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants"));
- stringBuffer.append(TEXT_491);
- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout"));
- stringBuffer.append(TEXT_492);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_493);
+ stringBuffer.append(TEXT_489);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_494);
+ stringBuffer.append(TEXT_490);
if (!isXYLayout) {
String layoutClassName = importManager.getImportedName("org.eclipse.draw2d.ToolbarLayout");
- stringBuffer.append(TEXT_495);
+ stringBuffer.append(TEXT_491);
stringBuffer.append(layoutClassName);
- stringBuffer.append(TEXT_496);
+ stringBuffer.append(TEXT_492);
stringBuffer.append(layoutClassName);
- stringBuffer.append(TEXT_497);
+ stringBuffer.append(TEXT_493);
} else {
- stringBuffer.append(TEXT_498);
+ stringBuffer.append(TEXT_494);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout"));
- stringBuffer.append(TEXT_499);
+ stringBuffer.append(TEXT_495);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_500);
+ stringBuffer.append(TEXT_496);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
- stringBuffer.append(TEXT_501);
+ stringBuffer.append(TEXT_497);
}
- stringBuffer.append(TEXT_502);
+ stringBuffer.append(TEXT_498);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_503);
+ stringBuffer.append(TEXT_499);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
- stringBuffer.append(TEXT_504);
+ stringBuffer.append(TEXT_500);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
- stringBuffer.append(TEXT_505);
+ stringBuffer.append(TEXT_501);
if (myHelper.hasFixedChildren()) {
- stringBuffer.append(TEXT_506);
+ stringBuffer.append(TEXT_502);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_507);
+ stringBuffer.append(TEXT_503);
for (Iterator it = myHelper.getInnerFixedLabels(); it.hasNext(); ) {
GenNodeLabel genLabel = (GenNodeLabel) it.next();
@@ -2860,15 +2848,15 @@ for (Iterator it = myHelper.getInnerFixedLabels(); it.hasNext(); ) {
final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) genLabel.getViewmap();
final String childSetterName = childViewmap.getSetterName() == null ? "setLabel" : childViewmap.getSetterName();
- stringBuffer.append(TEXT_508);
+ stringBuffer.append(TEXT_504);
stringBuffer.append(labelEditPart);
- stringBuffer.append(TEXT_509);
+ stringBuffer.append(TEXT_505);
stringBuffer.append(labelEditPart);
- stringBuffer.append(TEXT_510);
+ stringBuffer.append(TEXT_506);
stringBuffer.append(childSetterName);
- stringBuffer.append(TEXT_511);
+ stringBuffer.append(TEXT_507);
stringBuffer.append(childViewmap.getGetterName());
- stringBuffer.append(TEXT_512);
+ stringBuffer.append(TEXT_508);
}
@@ -2877,19 +2865,19 @@ for (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) {
final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap();
String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName());
- stringBuffer.append(TEXT_513);
+ stringBuffer.append(TEXT_509);
stringBuffer.append(compartmentEditPartFQN);
- stringBuffer.append(TEXT_514);
+ stringBuffer.append(TEXT_510);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_515);
+ stringBuffer.append(TEXT_511);
stringBuffer.append(childViewmap.getGetterName());
- stringBuffer.append(TEXT_516);
+ stringBuffer.append(TEXT_512);
stringBuffer.append(compartmentEditPartFQN);
- stringBuffer.append(TEXT_517);
+ stringBuffer.append(TEXT_513);
} // for pinned compartments
- stringBuffer.append(TEXT_518);
+ stringBuffer.append(TEXT_514);
//XXX: ignore labels assuming that they never may be removed
for (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) {
@@ -2897,73 +2885,73 @@ for (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) {
final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap();
String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName());
- stringBuffer.append(TEXT_519);
+ stringBuffer.append(TEXT_515);
stringBuffer.append(compartmentEditPartFQN);
- stringBuffer.append(TEXT_520);
+ stringBuffer.append(TEXT_516);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_521);
+ stringBuffer.append(TEXT_517);
stringBuffer.append(childViewmap.getGetterName());
- stringBuffer.append(TEXT_522);
+ stringBuffer.append(TEXT_518);
stringBuffer.append(compartmentEditPartFQN);
- stringBuffer.append(TEXT_523);
+ stringBuffer.append(TEXT_519);
} // for pinned compartments
- stringBuffer.append(TEXT_524);
+ stringBuffer.append(TEXT_520);
} // if myHelper.hasFixedChildren()
- stringBuffer.append(TEXT_525);
+ stringBuffer.append(TEXT_521);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_526);
+ stringBuffer.append(TEXT_522);
if (myHelper.getPrimaryLabel() != null) {
- stringBuffer.append(TEXT_527);
+ stringBuffer.append(TEXT_523);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_528);
+ stringBuffer.append(TEXT_524);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_529);
+ stringBuffer.append(TEXT_525);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_530);
+ stringBuffer.append(TEXT_526);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_531);
+ stringBuffer.append(TEXT_527);
stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_532);
+ stringBuffer.append(TEXT_528);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_533);
+ stringBuffer.append(TEXT_529);
}
- stringBuffer.append(TEXT_534);
+ stringBuffer.append(TEXT_530);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request"));
- stringBuffer.append(TEXT_535);
+ stringBuffer.append(TEXT_531);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants"));
- stringBuffer.append(TEXT_536);
+ stringBuffer.append(TEXT_532);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_537);
+ stringBuffer.append(TEXT_533);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
- stringBuffer.append(TEXT_538);
+ stringBuffer.append(TEXT_534);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
- stringBuffer.append(TEXT_539);
- stringBuffer.append(TEXT_540);
- stringBuffer.append(TEXT_541);
+ stringBuffer.append(TEXT_535);
+ stringBuffer.append(TEXT_536);
+ stringBuffer.append(TEXT_537);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants"));
- stringBuffer.append(TEXT_542);
+ stringBuffer.append(TEXT_538);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_543);
+ stringBuffer.append(TEXT_539);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_544);
+ stringBuffer.append(TEXT_540);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
- stringBuffer.append(TEXT_545);
+ stringBuffer.append(TEXT_541);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_546);
+ stringBuffer.append(TEXT_542);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_547);
+ stringBuffer.append(TEXT_543);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_548);
+ stringBuffer.append(TEXT_544);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_549);
+ stringBuffer.append(TEXT_545);
for (Iterator it = myHelper.getAllLabels(); it.hasNext(); ) {
GenNodeLabel genLabel = (GenNodeLabel) it.next();
@@ -2971,224 +2959,224 @@ for (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) {
continue;
}
- stringBuffer.append(TEXT_550);
+ stringBuffer.append(TEXT_546);
stringBuffer.append(importManager.getImportedName(genLabel.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_551);
+ stringBuffer.append(TEXT_547);
}
- stringBuffer.append(TEXT_552);
+ stringBuffer.append(TEXT_548);
if (myHelper.hasExternalLabels()) {
- stringBuffer.append(TEXT_553);
+ stringBuffer.append(TEXT_549);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_554);
+ stringBuffer.append(TEXT_550);
for (Iterator externalLabels = myHelper.getExternalLabels(); externalLabels.hasNext();) {
GenNodeLabel next = (GenNodeLabel) externalLabels.next();
- stringBuffer.append(TEXT_555);
+ stringBuffer.append(TEXT_551);
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_556);
+ stringBuffer.append(TEXT_552);
}
- stringBuffer.append(TEXT_557);
+ stringBuffer.append(TEXT_553);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_558);
+ stringBuffer.append(TEXT_554);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager"));
- stringBuffer.append(TEXT_559);
+ stringBuffer.append(TEXT_555);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager"));
- stringBuffer.append(TEXT_560);
+ stringBuffer.append(TEXT_556);
stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_561);
+ stringBuffer.append(TEXT_557);
}
if (!genNode.getChildNodes().isEmpty()) {
- stringBuffer.append(TEXT_562);
+ stringBuffer.append(TEXT_558);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_563);
+ stringBuffer.append(TEXT_559);
for(Iterator directChildren = genNode.getChildNodes().iterator(); directChildren.hasNext(); ) {
GenChildNode next = (GenChildNode) directChildren.next();
- stringBuffer.append(TEXT_564);
+ stringBuffer.append(TEXT_560);
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_565);
+ stringBuffer.append(TEXT_561);
}
- stringBuffer.append(TEXT_566);
+ stringBuffer.append(TEXT_562);
}
if (myHelper.hasExternalLabels() || myHelper.hasFixedChildren() || myHelper.hasBothChildrenAndCompartments()) {
- stringBuffer.append(TEXT_567);
+ stringBuffer.append(TEXT_563);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_568);
+ stringBuffer.append(TEXT_564);
if (myHelper.hasExternalLabels()) {
- stringBuffer.append(TEXT_569);
+ stringBuffer.append(TEXT_565);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_570);
+ stringBuffer.append(TEXT_566);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart"));
- stringBuffer.append(TEXT_571);
+ stringBuffer.append(TEXT_567);
}
if (myHelper.hasFixedChildren()) {
- stringBuffer.append(TEXT_572);
+ stringBuffer.append(TEXT_568);
}
if (myHelper.hasBothChildrenAndCompartments()) {
- stringBuffer.append(TEXT_573);
+ stringBuffer.append(TEXT_569);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_574);
+ stringBuffer.append(TEXT_570);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart"));
- stringBuffer.append(TEXT_575);
+ stringBuffer.append(TEXT_571);
}
- stringBuffer.append(TEXT_576);
+ stringBuffer.append(TEXT_572);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_577);
+ stringBuffer.append(TEXT_573);
if (myHelper.hasExternalLabels()) {
- stringBuffer.append(TEXT_578);
+ stringBuffer.append(TEXT_574);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_579);
+ stringBuffer.append(TEXT_575);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart"));
- stringBuffer.append(TEXT_580);
+ stringBuffer.append(TEXT_576);
}
if (myHelper.hasFixedChildren()){
- stringBuffer.append(TEXT_581);
+ stringBuffer.append(TEXT_577);
}
if (myHelper.hasBothChildrenAndCompartments()) {
- stringBuffer.append(TEXT_582);
+ stringBuffer.append(TEXT_578);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure"));
- stringBuffer.append(TEXT_583);
+ stringBuffer.append(TEXT_579);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart"));
- stringBuffer.append(TEXT_584);
+ stringBuffer.append(TEXT_580);
}
- stringBuffer.append(TEXT_585);
+ stringBuffer.append(TEXT_581);
}
if (myHelper.hasExternalLabels()) {
- stringBuffer.append(TEXT_586);
+ stringBuffer.append(TEXT_582);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_587);
+ stringBuffer.append(TEXT_583);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_588);
+ stringBuffer.append(TEXT_584);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart"));
- stringBuffer.append(TEXT_589);
+ stringBuffer.append(TEXT_585);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart"));
- stringBuffer.append(TEXT_590);
+ stringBuffer.append(TEXT_586);
}
- stringBuffer.append(TEXT_591);
+ stringBuffer.append(TEXT_587);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node"));
- stringBuffer.append(TEXT_592);
+ stringBuffer.append(TEXT_588);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds"));
- stringBuffer.append(TEXT_593);
+ stringBuffer.append(TEXT_589);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds"));
- stringBuffer.append(TEXT_594);
+ stringBuffer.append(TEXT_590);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds"));
- stringBuffer.append(TEXT_595);
+ stringBuffer.append(TEXT_591);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart"));
- stringBuffer.append(TEXT_596);
+ stringBuffer.append(TEXT_592);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
- stringBuffer.append(TEXT_597);
+ stringBuffer.append(TEXT_593);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_598);
+ stringBuffer.append(TEXT_594);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_599);
+ stringBuffer.append(TEXT_595);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_600);
+ stringBuffer.append(TEXT_596);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor"));
- stringBuffer.append(TEXT_601);
+ stringBuffer.append(TEXT_597);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart"));
- stringBuffer.append(TEXT_602);
+ stringBuffer.append(TEXT_598);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor"));
- stringBuffer.append(TEXT_603);
+ stringBuffer.append(TEXT_599);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor"));
- stringBuffer.append(TEXT_604);
+ stringBuffer.append(TEXT_600);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request"));
- stringBuffer.append(TEXT_605);
+ stringBuffer.append(TEXT_601);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor"));
- stringBuffer.append(TEXT_606);
+ stringBuffer.append(TEXT_602);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor"));
- stringBuffer.append(TEXT_607);
+ stringBuffer.append(TEXT_603);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart"));
- stringBuffer.append(TEXT_608);
+ stringBuffer.append(TEXT_604);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor"));
- stringBuffer.append(TEXT_609);
+ stringBuffer.append(TEXT_605);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor"));
- stringBuffer.append(TEXT_610);
+ stringBuffer.append(TEXT_606);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request"));
- stringBuffer.append(TEXT_611);
+ stringBuffer.append(TEXT_607);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor"));
- stringBuffer.append(TEXT_612);
+ stringBuffer.append(TEXT_608);
if (!genNode.getChildNodes().isEmpty() && isXYLayout) {
- stringBuffer.append(TEXT_613);
+ stringBuffer.append(TEXT_609);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.SnapToHelper"));
- stringBuffer.append(TEXT_614);
+ stringBuffer.append(TEXT_610);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.SnapToGrid"));
- stringBuffer.append(TEXT_615);
+ stringBuffer.append(TEXT_611);
}
- stringBuffer.append(TEXT_616);
+ stringBuffer.append(TEXT_612);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.TreeEditPart"));
- stringBuffer.append(TEXT_617);
+ stringBuffer.append(TEXT_613);
/*@ include file="adapters/propertySource.javajetinc"*/
- stringBuffer.append(TEXT_618);
+ stringBuffer.append(TEXT_614);
if (!genNode.getChildNodes().isEmpty()) {
- stringBuffer.append(TEXT_619);
+ stringBuffer.append(TEXT_615);
}
if (myHelper.containsLinks()) {
- stringBuffer.append(TEXT_620);
+ stringBuffer.append(TEXT_616);
}
- stringBuffer.append(TEXT_621);
+ stringBuffer.append(TEXT_617);
if (myHelper.containsLinks()) {
- stringBuffer.append(TEXT_622);
+ stringBuffer.append(TEXT_618);
}
if (!genNode.getChildNodes().isEmpty()) {
- stringBuffer.append(TEXT_623);
+ stringBuffer.append(TEXT_619);
}
- stringBuffer.append(TEXT_624);
+ stringBuffer.append(TEXT_620);
{
final String _getViewCode = "getDiagramNode()";
@@ -3198,22 +3186,22 @@ if (!genNode.getChildNodes().isEmpty()) {
final boolean isListLayout = !isXYLayout;
final List childNodes = genNode.getChildNodes();
- stringBuffer.append(TEXT_625);
- stringBuffer.append(TEXT_626);
+ stringBuffer.append(TEXT_621);
+ stringBuffer.append(TEXT_622);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_627);
+ stringBuffer.append(TEXT_623);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_628);
+ stringBuffer.append(TEXT_624);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_629);
+ stringBuffer.append(TEXT_625);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_630);
+ stringBuffer.append(TEXT_626);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_631);
+ stringBuffer.append(TEXT_627);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_632);
+ stringBuffer.append(TEXT_628);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher"));
- stringBuffer.append(TEXT_633);
+ stringBuffer.append(TEXT_629);
boolean hasConstraintsInChildren = false;
for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
@@ -3228,19 +3216,19 @@ for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
if (hasConstraintsInChildren) {
- stringBuffer.append(TEXT_634);
+ stringBuffer.append(TEXT_630);
stringBuffer.append(genDiagram.getVisualIDRegistryQualifiedClassName());
- stringBuffer.append(TEXT_635);
+ stringBuffer.append(TEXT_631);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_636);
+ stringBuffer.append(TEXT_632);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_637);
+ stringBuffer.append(TEXT_633);
}
- stringBuffer.append(TEXT_638);
+ stringBuffer.append(TEXT_634);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_639);
+ stringBuffer.append(TEXT_635);
{
boolean hasDeclaredFilter = false;
@@ -3259,25 +3247,25 @@ if (hasConstraintsInChildren) {
if (!hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_640);
+ stringBuffer.append(TEXT_636);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_641);
+ stringBuffer.append(TEXT_637);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_642);
+ stringBuffer.append(TEXT_638);
stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_643);
+ stringBuffer.append(TEXT_639);
stringBuffer.append(childMetaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_644);
+ stringBuffer.append(TEXT_640);
} else {
- stringBuffer.append(TEXT_645);
+ stringBuffer.append(TEXT_641);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_646);
+ stringBuffer.append(TEXT_642);
stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_647);
+ stringBuffer.append(TEXT_643);
stringBuffer.append(childMetaFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_648);
+ stringBuffer.append(TEXT_644);
}
} //for
@@ -3285,22 +3273,22 @@ if (hasConstraintsInChildren) {
if (hasDeclaredFilter) {
- stringBuffer.append(TEXT_649);
+ stringBuffer.append(TEXT_645);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_650);
+ stringBuffer.append(TEXT_646);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_651);
+ stringBuffer.append(TEXT_647);
} else {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_652);
+ stringBuffer.append(TEXT_648);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_653);
+ stringBuffer.append(TEXT_649);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_654);
+ stringBuffer.append(TEXT_650);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_655);
+ stringBuffer.append(TEXT_651);
}
@@ -3309,43 +3297,43 @@ if (hasConstraintsInChildren) {
if (hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_656);
+ stringBuffer.append(TEXT_652);
} else {
- stringBuffer.append(TEXT_657);
+ stringBuffer.append(TEXT_653);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_658);
+ stringBuffer.append(TEXT_654);
}
}
if (!hasDeclaredFilter) {
- stringBuffer.append(TEXT_659);
+ stringBuffer.append(TEXT_655);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_660);
+ stringBuffer.append(TEXT_656);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_661);
+ stringBuffer.append(TEXT_657);
}
- stringBuffer.append(TEXT_662);
+ stringBuffer.append(TEXT_658);
} //local declaration of hasDeclaredFilter
- stringBuffer.append(TEXT_663);
+ stringBuffer.append(TEXT_659);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand"));
- stringBuffer.append(TEXT_664);
+ stringBuffer.append(TEXT_660);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_665);
+ stringBuffer.append(TEXT_661);
{
String _parentNode = "getHost()";
- stringBuffer.append(TEXT_666);
- stringBuffer.append(TEXT_667);
+ stringBuffer.append(TEXT_662);
+ stringBuffer.append(TEXT_663);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_668);
+ stringBuffer.append(TEXT_664);
for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
GenNode nextNode = (GenNode) it.next();
@@ -3355,15 +3343,15 @@ for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
}
String childNodeInterfaceName = importManager.getImportedName(nextNode.getDomainMetaClass().getQualifiedInterfaceName());
- stringBuffer.append(TEXT_669);
+ stringBuffer.append(TEXT_665);
stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_670);
+ stringBuffer.append(TEXT_666);
stringBuffer.append(childNodeInterfaceName);
- stringBuffer.append(TEXT_671);
+ stringBuffer.append(TEXT_667);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand"));
- stringBuffer.append(TEXT_672);
+ stringBuffer.append(TEXT_668);
stringBuffer.append(_parentNode);
- stringBuffer.append(TEXT_673);
+ stringBuffer.append(TEXT_669);
if (!isListLayout) {
int defaultWidth = 40;
@@ -3374,48 +3362,48 @@ for (Iterator it = childNodes.iterator(); it.hasNext(); ) {
defaultHeight = defSizeAttrs.getHeight();
}
- stringBuffer.append(TEXT_674);
+ stringBuffer.append(TEXT_670);
stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle"));
- stringBuffer.append(TEXT_675);
+ stringBuffer.append(TEXT_671);
stringBuffer.append(defaultWidth);
- stringBuffer.append(TEXT_676);
+ stringBuffer.append(TEXT_672);
stringBuffer.append(defaultHeight);
- stringBuffer.append(TEXT_677);
+ stringBuffer.append(TEXT_673);
} else {
- stringBuffer.append(TEXT_678);
+ stringBuffer.append(TEXT_674);
}
- stringBuffer.append(TEXT_679);
+ stringBuffer.append(TEXT_675);
stringBuffer.append(importManager.getImportedName(nextNode.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_680);
+ stringBuffer.append(TEXT_676);
}
- stringBuffer.append(TEXT_681);
+ stringBuffer.append(TEXT_677);
}
- stringBuffer.append(TEXT_682);
+ stringBuffer.append(TEXT_678);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_683);
- stringBuffer.append(TEXT_684);
+ stringBuffer.append(TEXT_679);
+ stringBuffer.append(TEXT_680);
if (childNodes.size() == 0) {
- stringBuffer.append(TEXT_685);
+ stringBuffer.append(TEXT_681);
stringBuffer.append(importManager.getImportedName("java.util.Collections"));
- stringBuffer.append(TEXT_686);
+ stringBuffer.append(TEXT_682);
} else {
- stringBuffer.append(TEXT_687);
+ stringBuffer.append(TEXT_683);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_688);
+ stringBuffer.append(TEXT_684);
stringBuffer.append(importManager.getImportedName("java.util.LinkedList"));
- stringBuffer.append(TEXT_689);
+ stringBuffer.append(TEXT_685);
Map genFeature2genNodeMap = new LinkedHashMap();
for (int nodeIndex = 0; nodeIndex < childNodes.size(); nodeIndex++) {
@@ -3433,15 +3421,15 @@ if (childNodes.size() == 0) {
Set entrySet = genFeature2genNodeMap.entrySet();
if (entrySet.size() > 0) {
- stringBuffer.append(TEXT_690);
+ stringBuffer.append(TEXT_686);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_691);
+ stringBuffer.append(TEXT_687);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_692);
+ stringBuffer.append(TEXT_688);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_693);
+ stringBuffer.append(TEXT_689);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_694);
+ stringBuffer.append(TEXT_690);
}
for (Iterator entries = entrySet.iterator(); entries.hasNext();) {
@@ -3450,127 +3438,127 @@ if (childNodes.size() == 0) {
Collection genNodesCollection = (Collection) nextEntry.getValue();
if (childMetaFeature.isListType()) {
- stringBuffer.append(TEXT_695);
+ stringBuffer.append(TEXT_691);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_696);
+ stringBuffer.append(TEXT_692);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, true);
- stringBuffer.append(TEXT_697);
+ stringBuffer.append(TEXT_693);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_698);
+ stringBuffer.append(TEXT_694);
} else {
- stringBuffer.append(TEXT_699);
+ stringBuffer.append(TEXT_695);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_700);
+ stringBuffer.append(TEXT_696);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, false);
- stringBuffer.append(TEXT_701);
+ stringBuffer.append(TEXT_697);
}
- stringBuffer.append(TEXT_702);
+ stringBuffer.append(TEXT_698);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_703);
+ stringBuffer.append(TEXT_699);
boolean generateSwitch = genNodesCollection.size() != 1;
if (generateSwitch) {
- stringBuffer.append(TEXT_704);
+ stringBuffer.append(TEXT_700);
}
for (Iterator genNodesIterator = genNodesCollection.iterator(); genNodesIterator.hasNext();) {
GenNode nextNode = (GenNode) genNodesIterator.next();
if (generateSwitch) {
- stringBuffer.append(TEXT_705);
+ stringBuffer.append(TEXT_701);
stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_706);
+ stringBuffer.append(TEXT_702);
} else {
- stringBuffer.append(TEXT_707);
+ stringBuffer.append(TEXT_703);
stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_708);
+ stringBuffer.append(TEXT_704);
}
- stringBuffer.append(TEXT_709);
+ stringBuffer.append(TEXT_705);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_710);
+ stringBuffer.append(TEXT_706);
if (generateSwitch) {
- stringBuffer.append(TEXT_711);
+ stringBuffer.append(TEXT_707);
} else {
- stringBuffer.append(TEXT_712);
+ stringBuffer.append(TEXT_708);
}
}
if (generateSwitch) {
- stringBuffer.append(TEXT_713);
+ stringBuffer.append(TEXT_709);
}
if (childMetaFeature.isListType()) {
- stringBuffer.append(TEXT_714);
+ stringBuffer.append(TEXT_710);
}
}
- stringBuffer.append(TEXT_715);
+ stringBuffer.append(TEXT_711);
}
- stringBuffer.append(TEXT_716);
+ stringBuffer.append(TEXT_712);
stringBuffer.append(genDiagram.isSynchronized());
- stringBuffer.append(TEXT_717);
+ stringBuffer.append(TEXT_713);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_718);
+ stringBuffer.append(TEXT_714);
stringBuffer.append(genDiagram.isSynchronized());
- stringBuffer.append(TEXT_719);
+ stringBuffer.append(TEXT_715);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_720);
+ stringBuffer.append(TEXT_716);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_721);
+ stringBuffer.append(TEXT_717);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher"));
- stringBuffer.append(TEXT_722);
+ stringBuffer.append(TEXT_718);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_723);
+ stringBuffer.append(TEXT_719);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_724);
+ stringBuffer.append(TEXT_720);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_725);
+ stringBuffer.append(TEXT_721);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_726);
+ stringBuffer.append(TEXT_722);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_727);
+ stringBuffer.append(TEXT_723);
}
- stringBuffer.append(TEXT_728);
+ stringBuffer.append(TEXT_724);
if (myHelper.containsLinks() || _includeUncontainedLinks) {
- stringBuffer.append(TEXT_729);
+ stringBuffer.append(TEXT_725);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_730);
+ stringBuffer.append(TEXT_726);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_731);
+ stringBuffer.append(TEXT_727);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_732);
+ stringBuffer.append(TEXT_728);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService"));
- stringBuffer.append(TEXT_733);
+ stringBuffer.append(TEXT_729);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService"));
- stringBuffer.append(TEXT_734);
+ stringBuffer.append(TEXT_730);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.EditPartRegistryBasedViewService"));
- stringBuffer.append(TEXT_735);
+ stringBuffer.append(TEXT_731);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.OwnedLinksNotationModelRefresher"));
- stringBuffer.append(TEXT_736);
+ stringBuffer.append(TEXT_732);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService"));
- stringBuffer.append(TEXT_737);
+ stringBuffer.append(TEXT_733);
boolean hasConstraintsInContainedLinks = false;
for (Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) {
@@ -3583,19 +3571,27 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
}
if (hasConstraintsInContainedLinks) {
- stringBuffer.append(TEXT_738);
+ stringBuffer.append(TEXT_734);
stringBuffer.append(genDiagram.getVisualIDRegistryQualifiedClassName());
- stringBuffer.append(TEXT_739);
+ stringBuffer.append(TEXT_735);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_740);
+ stringBuffer.append(TEXT_736);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_741);
+ stringBuffer.append(TEXT_737);
}
if (_includeUncontainedLinks) {
- stringBuffer.append(TEXT_742);
+ stringBuffer.append(TEXT_738);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
+ stringBuffer.append(TEXT_739);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
+ stringBuffer.append(TEXT_740);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
+ stringBuffer.append(TEXT_741);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
+ stringBuffer.append(TEXT_742);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
stringBuffer.append(TEXT_743);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
stringBuffer.append(TEXT_744);
@@ -3605,20 +3601,12 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
stringBuffer.append(TEXT_746);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
stringBuffer.append(TEXT_747);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_748);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
- stringBuffer.append(TEXT_749);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_750);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
- stringBuffer.append(TEXT_751);
}
- stringBuffer.append(TEXT_752);
+ stringBuffer.append(TEXT_748);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_753);
+ stringBuffer.append(TEXT_749);
{
boolean hasDeclaredFilter = false;
@@ -3631,7 +3619,7 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
}
GenFeature _feature = modelFacet.getChildMetaFeature();
- stringBuffer.append(TEXT_754);
+ stringBuffer.append(TEXT_750);
/*
* input:
@@ -3645,32 +3633,32 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
if (!hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_755);
+ stringBuffer.append(TEXT_751);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_756);
+ stringBuffer.append(TEXT_752);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_757);
+ stringBuffer.append(TEXT_753);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_758);
+ stringBuffer.append(TEXT_754);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_759);
+ stringBuffer.append(TEXT_755);
} else {
- stringBuffer.append(TEXT_760);
+ stringBuffer.append(TEXT_756);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_761);
+ stringBuffer.append(TEXT_757);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_762);
+ stringBuffer.append(TEXT_758);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_763);
+ stringBuffer.append(TEXT_759);
}
_feature = modelFacet.getSourceMetaFeature();
- stringBuffer.append(TEXT_764);
+ stringBuffer.append(TEXT_760);
/*
* input:
@@ -3684,32 +3672,32 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
if (!hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_765);
+ stringBuffer.append(TEXT_761);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_766);
+ stringBuffer.append(TEXT_762);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_767);
+ stringBuffer.append(TEXT_763);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_768);
+ stringBuffer.append(TEXT_764);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_769);
+ stringBuffer.append(TEXT_765);
} else {
- stringBuffer.append(TEXT_770);
+ stringBuffer.append(TEXT_766);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_771);
+ stringBuffer.append(TEXT_767);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_772);
+ stringBuffer.append(TEXT_768);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_773);
+ stringBuffer.append(TEXT_769);
}
_feature = modelFacet.getTargetMetaFeature();
- stringBuffer.append(TEXT_774);
+ stringBuffer.append(TEXT_770);
/*
* input:
@@ -3723,25 +3711,25 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
if (!hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_775);
+ stringBuffer.append(TEXT_771);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_776);
+ stringBuffer.append(TEXT_772);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_777);
+ stringBuffer.append(TEXT_773);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_778);
+ stringBuffer.append(TEXT_774);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_779);
+ stringBuffer.append(TEXT_775);
} else {
- stringBuffer.append(TEXT_780);
+ stringBuffer.append(TEXT_776);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_781);
+ stringBuffer.append(TEXT_777);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_782);
+ stringBuffer.append(TEXT_778);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_783);
+ stringBuffer.append(TEXT_779);
}
@@ -3751,7 +3739,7 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
GenLink nextLink = (GenLink) it.next();
GenFeature _feature = ((FeatureLinkModelFacet) nextLink.getModelFacet()).getMetaFeature();
- stringBuffer.append(TEXT_784);
+ stringBuffer.append(TEXT_780);
/*
* input:
@@ -3765,25 +3753,25 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
if (!hasDeclaredFilter) {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_785);
+ stringBuffer.append(TEXT_781);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_786);
+ stringBuffer.append(TEXT_782);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_787);
+ stringBuffer.append(TEXT_783);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_788);
+ stringBuffer.append(TEXT_784);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_789);
+ stringBuffer.append(TEXT_785);
} else {
- stringBuffer.append(TEXT_790);
+ stringBuffer.append(TEXT_786);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_791);
+ stringBuffer.append(TEXT_787);
stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_792);
+ stringBuffer.append(TEXT_788);
stringBuffer.append(_feature.getFeatureAccessorName());
- stringBuffer.append(TEXT_793);
+ stringBuffer.append(TEXT_789);
}
@@ -3792,65 +3780,65 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
if (hasConstraintsInContainedLinks) {
if (hasDeclaredFilter) {
- stringBuffer.append(TEXT_794);
+ stringBuffer.append(TEXT_790);
} else {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_795);
+ stringBuffer.append(TEXT_791);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_796);
+ stringBuffer.append(TEXT_792);
}
}
if (_includeUncontainedLinks) {
if (hasDeclaredFilter) {
- stringBuffer.append(TEXT_797);
+ stringBuffer.append(TEXT_793);
} else {
hasDeclaredFilter = true;
- stringBuffer.append(TEXT_798);
+ stringBuffer.append(TEXT_794);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_799);
+ stringBuffer.append(TEXT_795);
}
}
if (!hasDeclaredFilter) {
- stringBuffer.append(TEXT_800);
+ stringBuffer.append(TEXT_796);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_801);
+ stringBuffer.append(TEXT_797);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter"));
- stringBuffer.append(TEXT_802);
+ stringBuffer.append(TEXT_798);
}
} //local declaration of hasDeclaredFilter
- stringBuffer.append(TEXT_803);
+ stringBuffer.append(TEXT_799);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand"));
- stringBuffer.append(TEXT_804);
+ stringBuffer.append(TEXT_800);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_805);
+ stringBuffer.append(TEXT_801);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor"));
- stringBuffer.append(TEXT_806);
+ stringBuffer.append(TEXT_802);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor"));
- stringBuffer.append(TEXT_807);
+ stringBuffer.append(TEXT_803);
{
Iterator _containedTypeModelFacetLinks = myHelper.getContainedTypeModelFacetLinks();
Iterator _containedFeatureModelFacetLinks = myHelper.getContainedFeatureModelFacetLinks();
String _diagramCode = "getHost().getDiagram()";
- stringBuffer.append(TEXT_808);
- stringBuffer.append(TEXT_809);
+ stringBuffer.append(TEXT_804);
+ stringBuffer.append(TEXT_805);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_810);
+ stringBuffer.append(TEXT_806);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_811);
+ stringBuffer.append(TEXT_807);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IViewDecorator"));
- stringBuffer.append(TEXT_812);
+ stringBuffer.append(TEXT_808);
for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) {
GenLink nextLink = (GenLink) it.next();
@@ -3859,48 +3847,48 @@ if (myHelper.containsLinks() || _includeUncontainedLinks) {
continue;
}
- stringBuffer.append(TEXT_813);
+ stringBuffer.append(TEXT_809);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_814);
+ stringBuffer.append(TEXT_810);
stringBuffer.append(importManager.getImportedName(modelFacet.getMetaClass().getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_815);
+ stringBuffer.append(TEXT_811);
stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_816);
+ stringBuffer.append(TEXT_812);
}
for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) {
GenLink nextLink = (GenLink) it.next();
- stringBuffer.append(TEXT_817);
+ stringBuffer.append(TEXT_813);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_818);
+ stringBuffer.append(TEXT_814);
stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName()));
- stringBuffer.append(TEXT_819);
+ stringBuffer.append(TEXT_815);
}
- stringBuffer.append(TEXT_820);
+ stringBuffer.append(TEXT_816);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalEdgeCommand"));
- stringBuffer.append(TEXT_821);
+ stringBuffer.append(TEXT_817);
stringBuffer.append(_diagramCode);
- stringBuffer.append(TEXT_822);
+ stringBuffer.append(TEXT_818);
}
- stringBuffer.append(TEXT_823);
+ stringBuffer.append(TEXT_819);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_824);
+ stringBuffer.append(TEXT_820);
{
Iterator _containedTypeModelFacetLinks = myHelper.getContainedTypeModelFacetLinks();
Iterator _containedFeatureModelFacetLinks = myHelper.getContainedFeatureModelFacetLinks();
- stringBuffer.append(TEXT_825);
- stringBuffer.append(TEXT_826);
+ stringBuffer.append(TEXT_821);
+ stringBuffer.append(TEXT_822);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_827);
+ stringBuffer.append(TEXT_823);
stringBuffer.append(importManager.getImportedName("java.util.LinkedList"));
- stringBuffer.append(TEXT_828);
+ stringBuffer.append(TEXT_824);
Map genFeature2genLinkMap = new LinkedHashMap();
for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) {
@@ -3923,18 +3911,18 @@ for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) {
}
if (!genFeature2genLinkMap.isEmpty() || !genFeature2featureGenLinkMap.isEmpty()) {
- stringBuffer.append(TEXT_829);
+ stringBuffer.append(TEXT_825);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_830);
+ stringBuffer.append(TEXT_826);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_831);
+ stringBuffer.append(TEXT_827);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_832);
+ stringBuffer.append(TEXT_828);
}
if (!genFeature2genLinkMap.isEmpty()) {
- stringBuffer.append(TEXT_833);
+ stringBuffer.append(TEXT_829);
}
for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.hasNext();) {
@@ -3943,32 +3931,32 @@ for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.has
Collection genLinksCollection = (Collection) nextEntry.getValue();
if (metaFeature.isListType()) {
- stringBuffer.append(TEXT_834);
+ stringBuffer.append(TEXT_830);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_835);
+ stringBuffer.append(TEXT_831);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true);
- stringBuffer.append(TEXT_836);
+ stringBuffer.append(TEXT_832);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_837);
+ stringBuffer.append(TEXT_833);
} else {
- stringBuffer.append(TEXT_838);
+ stringBuffer.append(TEXT_834);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_839);
+ stringBuffer.append(TEXT_835);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false);
- stringBuffer.append(TEXT_840);
+ stringBuffer.append(TEXT_836);
}
- stringBuffer.append(TEXT_841);
+ stringBuffer.append(TEXT_837);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_842);
+ stringBuffer.append(TEXT_838);
boolean generateSwitch = genLinksCollection.size() != 1;
if (generateSwitch) {
- stringBuffer.append(TEXT_843);
+ stringBuffer.append(TEXT_839);
}
for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) {
@@ -3976,67 +3964,67 @@ for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.has
TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet();
if (generateSwitch) {
- stringBuffer.append(TEXT_844);
+ stringBuffer.append(TEXT_840);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_845);
+ stringBuffer.append(TEXT_841);
} else {
- stringBuffer.append(TEXT_846);
+ stringBuffer.append(TEXT_842);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_847);
+ stringBuffer.append(TEXT_843);
}
if (modelFacet.getSourceMetaFeature() != null) {
- stringBuffer.append(TEXT_848);
+ stringBuffer.append(TEXT_844);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_849);
+ stringBuffer.append(TEXT_845);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_850);
+ stringBuffer.append(TEXT_846);
myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getSourceMetaFeature(), null, false);
- stringBuffer.append(TEXT_851);
+ stringBuffer.append(TEXT_847);
} else {
- stringBuffer.append(TEXT_852);
+ stringBuffer.append(TEXT_848);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_853);
+ stringBuffer.append(TEXT_849);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_854);
+ stringBuffer.append(TEXT_850);
}
if (modelFacet.getTargetMetaFeature() != null) {
- stringBuffer.append(TEXT_855);
+ stringBuffer.append(TEXT_851);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_856);
+ stringBuffer.append(TEXT_852);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_857);
+ stringBuffer.append(TEXT_853);
myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getTargetMetaFeature(), null, false);
- stringBuffer.append(TEXT_858);
+ stringBuffer.append(TEXT_854);
} else {
- stringBuffer.append(TEXT_859);
+ stringBuffer.append(TEXT_855);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_860);
+ stringBuffer.append(TEXT_856);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_861);
+ stringBuffer.append(TEXT_857);
}
- stringBuffer.append(TEXT_862);
+ stringBuffer.append(TEXT_858);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor"));
- stringBuffer.append(TEXT_863);
+ stringBuffer.append(TEXT_859);
if (generateSwitch) {
- stringBuffer.append(TEXT_864);
+ stringBuffer.append(TEXT_860);
} else {
- stringBuffer.append(TEXT_865);
+ stringBuffer.append(TEXT_861);
}
@@ -4044,12 +4032,12 @@ for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.has
} //iterate over genLinksCollection
if (generateSwitch) {
- stringBuffer.append(TEXT_866);
+ stringBuffer.append(TEXT_862);
}
if (metaFeature.isListType()) {
- stringBuffer.append(TEXT_867);
+ stringBuffer.append(TEXT_863);
}
}
@@ -4059,180 +4047,180 @@ for (Iterator entries = genFeature2featureGenLinkMap.entrySet().iterator(); entr
Collection genLinksCollection = (Collection) nextEntry.getValue();
if (metaFeature.isListType()) {
- stringBuffer.append(TEXT_868);
+ stringBuffer.append(TEXT_864);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_869);
+ stringBuffer.append(TEXT_865);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true);
- stringBuffer.append(TEXT_870);
+ stringBuffer.append(TEXT_866);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_871);
+ stringBuffer.append(TEXT_867);
} else {
- stringBuffer.append(TEXT_872);
+ stringBuffer.append(TEXT_868);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_873);
+ stringBuffer.append(TEXT_869);
myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false);
- stringBuffer.append(TEXT_874);
+ stringBuffer.append(TEXT_870);
}
- stringBuffer.append(TEXT_875);
+ stringBuffer.append(TEXT_871);
for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) {
GenLink nextLink = (GenLink) genLinksIterator.next();
- stringBuffer.append(TEXT_876);
+ stringBuffer.append(TEXT_872);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor"));
- stringBuffer.append(TEXT_877);
+ stringBuffer.append(TEXT_873);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_878);
+ stringBuffer.append(TEXT_874);
}
- stringBuffer.append(TEXT_879);
+ stringBuffer.append(TEXT_875);
if (metaFeature.isListType()) {
- stringBuffer.append(TEXT_880);
+ stringBuffer.append(TEXT_876);
}
}
- stringBuffer.append(TEXT_881);
+ stringBuffer.append(TEXT_877);
}
- stringBuffer.append(TEXT_882);
+ stringBuffer.append(TEXT_878);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_883);
+ stringBuffer.append(TEXT_879);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_884);
+ stringBuffer.append(TEXT_880);
stringBuffer.append(importManager.getImportedName("java.util.LinkedList"));
- stringBuffer.append(TEXT_885);
+ stringBuffer.append(TEXT_881);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_886);
+ stringBuffer.append(TEXT_882);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_887);
+ stringBuffer.append(TEXT_883);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_888);
+ stringBuffer.append(TEXT_884);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
- stringBuffer.append(TEXT_889);
+ stringBuffer.append(TEXT_885);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge"));
- stringBuffer.append(TEXT_890);
+ stringBuffer.append(TEXT_886);
if (_includeUncontainedLinks) {
- stringBuffer.append(TEXT_891);
+ stringBuffer.append(TEXT_887);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_892);
+ stringBuffer.append(TEXT_888);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_893);
+ stringBuffer.append(TEXT_889);
}
if (myHelper.containsFeatureModelFacetLinks()) {
- stringBuffer.append(TEXT_894);
+ stringBuffer.append(TEXT_890);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_895);
+ stringBuffer.append(TEXT_891);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_896);
+ stringBuffer.append(TEXT_892);
for(Iterator it = myHelper.getContainedFeatureModelFacetLinks(); it.hasNext(); ) {
GenLink nextLink = (GenLink) it.next();
- stringBuffer.append(TEXT_897);
+ stringBuffer.append(TEXT_893);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_898);
+ stringBuffer.append(TEXT_894);
}
- stringBuffer.append(TEXT_899);
+ stringBuffer.append(TEXT_895);
if (myHelper.containsTypeModelFacetLinks()) {
- stringBuffer.append(TEXT_900);
+ stringBuffer.append(TEXT_896);
} else {
- stringBuffer.append(TEXT_901);
+ stringBuffer.append(TEXT_897);
}
}
if (myHelper.containsTypeModelFacetLinks()) {
if (!myHelper.containsFeatureModelFacetLinks()) {
- stringBuffer.append(TEXT_902);
+ stringBuffer.append(TEXT_898);
}
- stringBuffer.append(TEXT_903);
+ stringBuffer.append(TEXT_899);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_904);
+ stringBuffer.append(TEXT_900);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_905);
+ stringBuffer.append(TEXT_901);
for(Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) {
GenLink nextLink = (GenLink) it.next();
- stringBuffer.append(TEXT_906);
+ stringBuffer.append(TEXT_902);
stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_907);
+ stringBuffer.append(TEXT_903);
}
- stringBuffer.append(TEXT_908);
+ stringBuffer.append(TEXT_904);
}
- stringBuffer.append(TEXT_909);
+ stringBuffer.append(TEXT_905);
stringBuffer.append(genDiagram.isSynchronized());
- stringBuffer.append(TEXT_910);
+ stringBuffer.append(TEXT_906);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor"));
- stringBuffer.append(TEXT_911);
+ stringBuffer.append(TEXT_907);
stringBuffer.append(genDiagram.isSynchronized());
- stringBuffer.append(TEXT_912);
+ stringBuffer.append(TEXT_908);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_913);
+ stringBuffer.append(TEXT_909);
stringBuffer.append(_getViewCode);
- stringBuffer.append(TEXT_914);
+ stringBuffer.append(TEXT_910);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher"));
- stringBuffer.append(TEXT_915);
+ stringBuffer.append(TEXT_911);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_916);
+ stringBuffer.append(TEXT_912);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_917);
+ stringBuffer.append(TEXT_913);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_918);
+ stringBuffer.append(TEXT_914);
stringBuffer.append(_getDiagramCode);
- stringBuffer.append(TEXT_919);
+ stringBuffer.append(TEXT_915);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_920);
+ stringBuffer.append(TEXT_916);
}
} //end of local declarations
+ stringBuffer.append(TEXT_917);
+ stringBuffer.append(TEXT_918);
+ stringBuffer.append(TEXT_919);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
+ stringBuffer.append(TEXT_920);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
stringBuffer.append(TEXT_921);
stringBuffer.append(TEXT_922);
stringBuffer.append(TEXT_923);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
- stringBuffer.append(TEXT_924);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
- stringBuffer.append(TEXT_925);
- stringBuffer.append(TEXT_926);
- stringBuffer.append(TEXT_927);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
- stringBuffer.append(TEXT_928);
+ stringBuffer.append(TEXT_924);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
- stringBuffer.append(TEXT_929);
+ stringBuffer.append(TEXT_925);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
- stringBuffer.append(TEXT_930);
+ stringBuffer.append(TEXT_926);
final String primaryView = "getDiagramNode()";
- stringBuffer.append(TEXT_931);
+ stringBuffer.append(TEXT_927);
boolean isFixedFontSetInFigure;
{
@@ -4240,189 +4228,189 @@ boolean isFixedFontSetInFigure;
isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont();
}
- stringBuffer.append(TEXT_932);
+ stringBuffer.append(TEXT_928);
if (!isFixedFontSetInFigure) {
- stringBuffer.append(TEXT_933);
+ stringBuffer.append(TEXT_929);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle"));
- stringBuffer.append(TEXT_934);
+ stringBuffer.append(TEXT_930);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle"));
- stringBuffer.append(TEXT_935);
+ stringBuffer.append(TEXT_931);
stringBuffer.append(primaryView);
- stringBuffer.append(TEXT_936);
+ stringBuffer.append(TEXT_932);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
- stringBuffer.append(TEXT_937);
+ stringBuffer.append(TEXT_933);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font"));
- stringBuffer.append(TEXT_938);
+ stringBuffer.append(TEXT_934);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT"));
- stringBuffer.append(TEXT_939);
+ stringBuffer.append(TEXT_935);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT"));
- stringBuffer.append(TEXT_940);
+ stringBuffer.append(TEXT_936);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT"));
- stringBuffer.append(TEXT_941);
+ stringBuffer.append(TEXT_937);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font"));
- stringBuffer.append(TEXT_942);
+ stringBuffer.append(TEXT_938);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData"));
- stringBuffer.append(TEXT_943);
+ stringBuffer.append(TEXT_939);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font"));
- stringBuffer.append(TEXT_944);
+ stringBuffer.append(TEXT_940);
}
- stringBuffer.append(TEXT_945);
+ stringBuffer.append(TEXT_941);
if (!isFixedFontSetInFigure) {
- stringBuffer.append(TEXT_946);
+ stringBuffer.append(TEXT_942);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font"));
- stringBuffer.append(TEXT_947);
+ stringBuffer.append(TEXT_943);
}
+ stringBuffer.append(TEXT_944);
+ stringBuffer.append(TEXT_945);
+ stringBuffer.append(TEXT_946);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle"));
+ stringBuffer.append(TEXT_947);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle"));
stringBuffer.append(TEXT_948);
+ stringBuffer.append(primaryView);
stringBuffer.append(TEXT_949);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_950);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_951);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_952);
- stringBuffer.append(primaryView);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_953);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
- stringBuffer.append(TEXT_954);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(TEXT_954);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle"));
stringBuffer.append(TEXT_955);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle"));
stringBuffer.append(TEXT_956);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(primaryView);
stringBuffer.append(TEXT_957);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_958);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_959);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_960);
- stringBuffer.append(primaryView);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_961);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
- stringBuffer.append(TEXT_962);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(TEXT_962);
stringBuffer.append(TEXT_963);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
stringBuffer.append(TEXT_964);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
stringBuffer.append(TEXT_965);
- stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
stringBuffer.append(TEXT_966);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
stringBuffer.append(TEXT_967);
- stringBuffer.append(TEXT_968);
stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
+ stringBuffer.append(TEXT_968);
stringBuffer.append(TEXT_969);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
stringBuffer.append(TEXT_970);
- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_971);
- stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_972);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_973);
- stringBuffer.append(TEXT_974);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(TEXT_974);
stringBuffer.append(TEXT_975);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_976);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_977);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_978);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_979);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_980);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_981);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_982);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_983);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_984);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_985);
stringBuffer.append(TEXT_986);
- stringBuffer.append(TEXT_987);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(TEXT_987);
stringBuffer.append(TEXT_988);
stringBuffer.append(TEXT_989);
- stringBuffer.append(TEXT_990);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(TEXT_990);
stringBuffer.append(TEXT_991);
stringBuffer.append(TEXT_992);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_993);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_994);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_995);
- stringBuffer.append(TEXT_996);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
+ stringBuffer.append(TEXT_996);
stringBuffer.append(TEXT_997);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_998);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_999);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
stringBuffer.append(TEXT_1000);
- stringBuffer.append(TEXT_1001);
- stringBuffer.append(TEXT_1002);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
- stringBuffer.append(TEXT_1003);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
- stringBuffer.append(TEXT_1004);
if (genNode.getViewmap() instanceof InnerClassViewmap) {
String classBody = ((InnerClassViewmap) genNode.getViewmap()).getClassBody();
- stringBuffer.append(TEXT_1005);
+ stringBuffer.append(TEXT_1001);
stringBuffer.append(classBody);
- stringBuffer.append(TEXT_1006);
+ stringBuffer.append(TEXT_1002);
if (classBody.indexOf("DPtoLP") != -1) {
- stringBuffer.append(TEXT_1007);
+ stringBuffer.append(TEXT_1003);
}
}
- stringBuffer.append(TEXT_1008);
+ stringBuffer.append(TEXT_1004);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.tree.BaseTreeEditPart"));
- stringBuffer.append(TEXT_1009);
+ stringBuffer.append(TEXT_1005);
stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName()));
- stringBuffer.append(TEXT_1010);
- stringBuffer.append(TEXT_1011);
- stringBuffer.append(TEXT_1012);
+ stringBuffer.append(TEXT_1006);
+ stringBuffer.append(TEXT_1007);
+ stringBuffer.append(TEXT_1008);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
- stringBuffer.append(TEXT_1013);
+ stringBuffer.append(TEXT_1009);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy"));
- stringBuffer.append(TEXT_1014);
+ stringBuffer.append(TEXT_1010);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_1015);
+ stringBuffer.append(TEXT_1011);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest"));
- stringBuffer.append(TEXT_1016);
+ stringBuffer.append(TEXT_1012);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1017);
+ stringBuffer.append(TEXT_1013);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_1018);
+ stringBuffer.append(TEXT_1014);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1019);
+ stringBuffer.append(TEXT_1015);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1020);
+ stringBuffer.append(TEXT_1016);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.RemoveNotationalElementCommand"));
- stringBuffer.append(TEXT_1021);
+ stringBuffer.append(TEXT_1017);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1022);
+ stringBuffer.append(TEXT_1018);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_1023);
+ stringBuffer.append(TEXT_1019);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1024);
+ stringBuffer.append(TEXT_1020);
{
TypeModelFacet facet = genNode.getModelFacet();
@@ -4430,90 +4418,90 @@ GenFeature childFeature = facet.getChildMetaFeature();
GenFeature containmentFeature = facet.getContainmentMetaFeature();
if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) {
- stringBuffer.append(TEXT_1025);
+ stringBuffer.append(TEXT_1021);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1026);
+ stringBuffer.append(TEXT_1022);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1027);
+ stringBuffer.append(TEXT_1023);
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1028);
+ stringBuffer.append(TEXT_1024);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1029);
+ stringBuffer.append(TEXT_1025);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1030);
+ stringBuffer.append(TEXT_1026);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1031);
+ stringBuffer.append(TEXT_1027);
} else {
- stringBuffer.append(TEXT_1032);
+ stringBuffer.append(TEXT_1028);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1033);
+ stringBuffer.append(TEXT_1029);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1034);
+ stringBuffer.append(TEXT_1030);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1035);
+ stringBuffer.append(TEXT_1031);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1036);
+ stringBuffer.append(TEXT_1032);
}
if (childFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1037);
+ stringBuffer.append(TEXT_1033);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1038);
+ stringBuffer.append(TEXT_1034);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1039);
+ stringBuffer.append(TEXT_1035);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1040);
+ stringBuffer.append(TEXT_1036);
} else {
- stringBuffer.append(TEXT_1041);
+ stringBuffer.append(TEXT_1037);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1042);
+ stringBuffer.append(TEXT_1038);
stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1043);
+ stringBuffer.append(TEXT_1039);
stringBuffer.append(childFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1044);
+ stringBuffer.append(TEXT_1040);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1045);
+ stringBuffer.append(TEXT_1041);
}
- stringBuffer.append(TEXT_1046);
+ stringBuffer.append(TEXT_1042);
} else {
if (containmentFeature.getEcoreFeature().isMany()) {
- stringBuffer.append(TEXT_1047);
+ stringBuffer.append(TEXT_1043);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1048);
+ stringBuffer.append(TEXT_1044);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1049);
+ stringBuffer.append(TEXT_1045);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1050);
+ stringBuffer.append(TEXT_1046);
} else {
- stringBuffer.append(TEXT_1051);
+ stringBuffer.append(TEXT_1047);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1052);
+ stringBuffer.append(TEXT_1048);
stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1053);
+ stringBuffer.append(TEXT_1049);
stringBuffer.append(containmentFeature.getFeatureAccessorName());
- stringBuffer.append(TEXT_1054);
+ stringBuffer.append(TEXT_1050);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1055);
+ stringBuffer.append(TEXT_1051);
}
}
- stringBuffer.append(TEXT_1056);
+ stringBuffer.append(TEXT_1052);
} /*restrict local vars used in component edit policy*/
@@ -4524,213 +4512,213 @@ if (myHelper.getPrimaryLabel() != null) {
LabelModelFacet labelModelFacet = myHelper.getPrimaryLabel().getModelFacet();
GenClass underlyingMetaClass = genNode.getDomainMetaClass();
+ stringBuffer.append(TEXT_1053);
+ stringBuffer.append(TEXT_1054);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
+ stringBuffer.append(TEXT_1055);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy"));
+ stringBuffer.append(TEXT_1056);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
stringBuffer.append(TEXT_1057);
stringBuffer.append(TEXT_1058);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy"));
stringBuffer.append(TEXT_1059);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy"));
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
stringBuffer.append(TEXT_1060);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
stringBuffer.append(TEXT_1061);
- stringBuffer.append(TEXT_1062);
- stringBuffer.append(TEXT_1063);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command"));
- stringBuffer.append(TEXT_1064);
- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest"));
- stringBuffer.append(TEXT_1065);
if (labelModelFacet instanceof FeatureLabelModelFacet == false) {
- stringBuffer.append(TEXT_1066);
+ stringBuffer.append(TEXT_1062);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_1067);
+ stringBuffer.append(TEXT_1063);
} else {
FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet;
List metaFeatures = featureLabelModelFacet.getMetaFeatures();
- stringBuffer.append(TEXT_1068);
+ stringBuffer.append(TEXT_1064);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_1069);
+ stringBuffer.append(TEXT_1065);
if (metaFeatures.size() == 1 && String.class.equals(((GenFeature) metaFeatures.get(0)).getEcoreFeature().getEType().getInstanceClass())) {
- stringBuffer.append(TEXT_1070);
+ stringBuffer.append(TEXT_1066);
}
- stringBuffer.append(TEXT_1071);
+ stringBuffer.append(TEXT_1067);
stringBuffer.append(importManager.getImportedName("java.text.MessageFormat"));
- stringBuffer.append(TEXT_1072);
+ stringBuffer.append(TEXT_1068);
stringBuffer.append(editPatternCode);
- stringBuffer.append(TEXT_1073);
+ stringBuffer.append(TEXT_1069);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_1074);
+ stringBuffer.append(TEXT_1070);
stringBuffer.append(importManager.getImportedName("java.text.ParseException"));
- stringBuffer.append(TEXT_1075);
+ stringBuffer.append(TEXT_1071);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_1076);
+ stringBuffer.append(TEXT_1072);
if (metaFeatures.size() == 1 && String.class.equals(((GenFeature) metaFeatures.get(0)).getEcoreFeature().getEType().getInstanceClass())) {
- stringBuffer.append(TEXT_1077);
+ stringBuffer.append(TEXT_1073);
}
- stringBuffer.append(TEXT_1078);
+ stringBuffer.append(TEXT_1074);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1079);
+ stringBuffer.append(TEXT_1075);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil"));
- stringBuffer.append(TEXT_1080);
+ stringBuffer.append(TEXT_1076);
stringBuffer.append(primaryView);
- stringBuffer.append(TEXT_1081);
+ stringBuffer.append(TEXT_1077);
stringBuffer.append(metaFeatures.size());
- stringBuffer.append(TEXT_1082);
+ stringBuffer.append(TEXT_1078);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand"));
- stringBuffer.append(TEXT_1083);
+ stringBuffer.append(TEXT_1079);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1084);
+ stringBuffer.append(TEXT_1080);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand"));
- stringBuffer.append(TEXT_1085);
+ stringBuffer.append(TEXT_1081);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command"));
- stringBuffer.append(TEXT_1086);
+ stringBuffer.append(TEXT_1082);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain"));
- stringBuffer.append(TEXT_1087);
+ stringBuffer.append(TEXT_1083);
stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName()));
- stringBuffer.append(TEXT_1088);
+ stringBuffer.append(TEXT_1084);
stringBuffer.append(resolvedSemanticElement);
- stringBuffer.append(TEXT_1089);
+ stringBuffer.append(TEXT_1085);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1090);
+ stringBuffer.append(TEXT_1086);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand"));
- stringBuffer.append(TEXT_1091);
+ stringBuffer.append(TEXT_1087);
boolean haveDeclaredValues = false;
for(int i = 0; i < metaFeatures.size(); i++) {
GenFeature nextFeatureToSet = (GenFeature) metaFeatures.get(i);
EStructuralFeature nextEcoreFeature = nextFeatureToSet.getEcoreFeature();
- stringBuffer.append(TEXT_1092);
+ stringBuffer.append(TEXT_1088);
if (i == 0) {
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute"));
- stringBuffer.append(TEXT_1093);
+ stringBuffer.append(TEXT_1089);
}
- stringBuffer.append(TEXT_1094);
+ stringBuffer.append(TEXT_1090);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute"));
- stringBuffer.append(TEXT_1095);
+ stringBuffer.append(TEXT_1091);
stringBuffer.append(importManager.getImportedName(nextFeatureToSet.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1096);
+ stringBuffer.append(TEXT_1092);
stringBuffer.append(nextFeatureToSet.getFeatureAccessorName());
- stringBuffer.append(TEXT_1097);
+ stringBuffer.append(TEXT_1093);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil"));
- stringBuffer.append(TEXT_1098);
+ stringBuffer.append(TEXT_1094);
stringBuffer.append(i);
- stringBuffer.append(TEXT_1099);
+ stringBuffer.append(TEXT_1095);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand"));
- stringBuffer.append(TEXT_1100);
+ stringBuffer.append(TEXT_1096);
if (nextEcoreFeature.isMany()) {
- stringBuffer.append(TEXT_1101);
+ stringBuffer.append(TEXT_1097);
if (!haveDeclaredValues) { haveDeclaredValues = true;
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList"));
- stringBuffer.append(TEXT_1102);
+ stringBuffer.append(TEXT_1098);
}
- stringBuffer.append(TEXT_1103);
+ stringBuffer.append(TEXT_1099);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList"));
- stringBuffer.append(TEXT_1104);
+ stringBuffer.append(TEXT_1100);
stringBuffer.append(nextFeatureToSet.getAccessorName());
- stringBuffer.append(TEXT_1105);
+ stringBuffer.append(TEXT_1101);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand"));
- stringBuffer.append(TEXT_1106);
+ stringBuffer.append(TEXT_1102);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand"));
- stringBuffer.append(TEXT_1107);
+ stringBuffer.append(TEXT_1103);
} else {
- stringBuffer.append(TEXT_1108);
+ stringBuffer.append(TEXT_1104);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1109);
+ stringBuffer.append(TEXT_1105);
stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand"));
- stringBuffer.append(TEXT_1110);
+ stringBuffer.append(TEXT_1106);
}
}
- stringBuffer.append(TEXT_1111);
+ stringBuffer.append(TEXT_1107);
}
- stringBuffer.append(TEXT_1112);
+ stringBuffer.append(TEXT_1108);
}
- stringBuffer.append(TEXT_1113);
+ stringBuffer.append(TEXT_1109);
if (myHelper.getPrimaryLabel() != null) {
- stringBuffer.append(TEXT_1114);
- stringBuffer.append(TEXT_1115);
+ stringBuffer.append(TEXT_1110);
+ stringBuffer.append(TEXT_1111);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager"));
- stringBuffer.append(TEXT_1116);
+ stringBuffer.append(TEXT_1112);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request"));
- stringBuffer.append(TEXT_1117);
+ stringBuffer.append(TEXT_1113);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants"));
- stringBuffer.append(TEXT_1118);
+ stringBuffer.append(TEXT_1114);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager"));
- stringBuffer.append(TEXT_1119);
+ stringBuffer.append(TEXT_1115);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager"));
- stringBuffer.append(TEXT_1120);
+ stringBuffer.append(TEXT_1116);
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TextCellEditor"));
- stringBuffer.append(TEXT_1121);
+ stringBuffer.append(TEXT_1117);
stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.CellEditorLocator"));
- stringBuffer.append(TEXT_1122);
+ stringBuffer.append(TEXT_1118);
stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.CellEditor"));
- stringBuffer.append(TEXT_1123);
+ stringBuffer.append(TEXT_1119);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem"));
- stringBuffer.append(TEXT_1124);
+ stringBuffer.append(TEXT_1120);
stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem"));
- stringBuffer.append(TEXT_1125);
+ stringBuffer.append(TEXT_1121);
stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1126);
+ stringBuffer.append(TEXT_1122);
}
- stringBuffer.append(TEXT_1127);
- stringBuffer.append(TEXT_1128);
- stringBuffer.append(TEXT_1129);
+ stringBuffer.append(TEXT_1123);
+ stringBuffer.append(TEXT_1124);
+ stringBuffer.append(TEXT_1125);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
- stringBuffer.append(TEXT_1130);
+ stringBuffer.append(TEXT_1126);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter"));
- stringBuffer.append(TEXT_1131);
+ stringBuffer.append(TEXT_1127);
if (myHelper.getPrimaryLabel() != null) {
- stringBuffer.append(TEXT_1132);
+ stringBuffer.append(TEXT_1128);
stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1133);
+ stringBuffer.append(TEXT_1129);
stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1134);
+ stringBuffer.append(TEXT_1130);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_1135);
+ stringBuffer.append(TEXT_1131);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1136);
+ stringBuffer.append(TEXT_1132);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1137);
+ stringBuffer.append(TEXT_1133);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_1138);
+ stringBuffer.append(TEXT_1134);
stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1139);
+ stringBuffer.append(TEXT_1135);
stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1140);
+ stringBuffer.append(TEXT_1136);
stringBuffer.append(genNode.getEditPartClassName());
- stringBuffer.append(TEXT_1141);
+ stringBuffer.append(TEXT_1137);
}
- stringBuffer.append(TEXT_1142);
+ stringBuffer.append(TEXT_1138);
if (myHelper.getPrimaryLabel() != null) {
LabelModelFacet labelModelFacet = myHelper.getPrimaryLabel().getModelFacet();
@@ -4739,11 +4727,11 @@ if (myHelper.getPrimaryLabel() != null) {
for(Iterator it = featureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) {
GenFeature next = (GenFeature) it.next();
- stringBuffer.append(TEXT_1143);
+ stringBuffer.append(TEXT_1139);
stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1144);
+ stringBuffer.append(TEXT_1140);
stringBuffer.append(next.getFeatureAccessorName());
- stringBuffer.append(TEXT_1145);
+ stringBuffer.append(TEXT_1141);
}
}
@@ -4754,11 +4742,11 @@ if (myHelper.getPrimaryLabel() != null) {
for(Iterator it = labelNotifyFeatures.iterator(); it.hasNext(); ) {
GenFeature next = (GenFeature) it.next();
- stringBuffer.append(TEXT_1146);
+ stringBuffer.append(TEXT_1142);
stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName()));
- stringBuffer.append(TEXT_1147);
+ stringBuffer.append(TEXT_1143);
stringBuffer.append(next.getFeatureAccessorName());
- stringBuffer.append(TEXT_1148);
+ stringBuffer.append(TEXT_1144);
}
}
@@ -4766,34 +4754,34 @@ if (myHelper.getPrimaryLabel() != null) {
}
- stringBuffer.append(TEXT_1149);
+ stringBuffer.append(TEXT_1145);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_1150);
+ stringBuffer.append(TEXT_1146);
stringBuffer.append(importManager.getImportedName("java.util.List"));
- stringBuffer.append(TEXT_1151);
+ stringBuffer.append(TEXT_1147);
stringBuffer.append(importManager.getImportedName("java.util.ArrayList"));
- stringBuffer.append(TEXT_1152);
+ stringBuffer.append(TEXT_1148);
stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_1153);
+ stringBuffer.append(TEXT_1149);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1154);
+ stringBuffer.append(TEXT_1150);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View"));
- stringBuffer.append(TEXT_1155);
+ stringBuffer.append(TEXT_1151);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.DrawerStyle"));
- stringBuffer.append(TEXT_1156);
+ stringBuffer.append(TEXT_1152);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.DrawerStyle"));
- stringBuffer.append(TEXT_1157);
+ stringBuffer.append(TEXT_1153);
stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage"));
- stringBuffer.append(TEXT_1158);
+ stringBuffer.append(TEXT_1154);
stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
- stringBuffer.append(TEXT_1159);
+ stringBuffer.append(TEXT_1155);
for(Iterator it = genNode.getChildNodes().iterator(); it.hasNext(); ) {
GenChildNode next = (GenChildNode)it.next();
- stringBuffer.append(TEXT_1160);
+ stringBuffer.append(TEXT_1156);
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1161);
+ stringBuffer.append(TEXT_1157);
}
@@ -4801,15 +4789,15 @@ if (myHelper.getPrimaryLabel() != null) {
for (Iterator compartments = genNode.getCompartments().iterator(); compartments.hasNext();){
GenCompartment next = (GenCompartment) compartments.next();
- stringBuffer.append(TEXT_1162);
+ stringBuffer.append(TEXT_1158);
stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName()));
- stringBuffer.append(TEXT_1163);
+ stringBuffer.append(TEXT_1159);
}
- stringBuffer.append(TEXT_1164);
+ stringBuffer.append(TEXT_1160);
importManager.emitSortedImports();
- stringBuffer.append(TEXT_1165);
+ stringBuffer.append(TEXT_1161);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/providers/MetricProviderGenerator.java b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/providers/MetricProviderGenerator.java
new file mode 100644
index 000000000..5e940b8bf
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/providers/MetricProviderGenerator.java
@@ -0,0 +1,784 @@
+package org.eclipse.gmf.codegen.templates.lite.providers;
+
+import java.util.*;
+import org.eclipse.gmf.codegen.gmfgen.*;
+import org.eclipse.gmf.common.codegen.*;
+import org.eclipse.emf.codegen.ecore.genmodel.*;
+
+public class MetricProviderGenerator
+{
+ protected static String nl;
+ public static synchronized MetricProviderGenerator create(String lineSeparator)
+ {
+ nl = lineSeparator;
+ MetricProviderGenerator result = new MetricProviderGenerator();
+ nl = null;
+ return result;
+ }
+
+ protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
+ protected final String TEXT_1 = "";
+ protected final String TEXT_2 = NL + "/*" + NL + " * ";
+ protected final String TEXT_3 = NL + " */";
+ protected final String TEXT_4 = NL + "/**" + NL + " * @generated" + NL + " */" + NL + "public class ";
+ protected final String TEXT_5 = " {" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static ";
+ protected final String TEXT_6 = " context2MetricsMap;" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static ";
+ protected final String TEXT_7 = " metricsRegistry;" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */\t" + NL + "\tprivate static ";
+ protected final String TEXT_8 = " key2MetricMap;" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */\t" + NL + "\tprivate static int MAX_VISIBLE_KEY_CHAR_COUNT = 8;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class MetricsAction extends ";
+ protected final String TEXT_9 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static final String ACTION_KEY = \"metricsAction\"; //$NON-NLS-1$" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate IWorkbenchPart myWorkbenchPart;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic MetricsAction(IWorkbenchPart workbenchPart) {" + NL + "\t\t\tsetId(ACTION_KEY);" + NL + "\t\t\tsetText(\"Metrics\");" + NL + "\t\t\tmyWorkbenchPart = workbenchPart;" + NL + "\t\t\tsetEnabled(myWorkbenchPart instanceof ";
+ protected final String TEXT_10 = ");" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void run() {" + NL + "\t\t\t";
+ protected final String TEXT_11 = " metricsView = null;" + NL + "\t\t\ttry {" + NL + "\t\t\t\tmetricsView = ";
+ protected final String TEXT_12 = ".getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(ResultView.VIEW_ID);\t\t\t\t\t\t\t" + NL + "\t\t\t\tif(metricsView == null) {" + NL + "\t\t\t\t\tmetricsView = ";
+ protected final String TEXT_13 = ".getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(ResultView.VIEW_ID);\t\t\t\t\t";
+ protected final String TEXT_14 = NL + "\t\t\t\t} else {";
+ protected final String TEXT_15 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (metricsView != null) {";
+ protected final String TEXT_16 = NL + "\t\t\t\t\tfinal ";
+ protected final String TEXT_17 = " part = (";
+ protected final String TEXT_18 = ") myWorkbenchPart;" + NL + "\t\t\t\t\t((ResultView)metricsView).setInput(part);" + NL + "\t\t\t\t}" + NL + "\t\t\t\tmyWorkbenchPart.getSite().getPage().activate(metricsView);\t\t\t\t\t" + NL + "\t\t\t} catch (";
+ protected final String TEXT_19 = " e) {" + NL + "\t\t\t\t";
+ protected final String TEXT_20 = ".getInstance().logError(\"Diagram metric view failure\", e); //$NON-NLS-1$" + NL + "\t\t\t}\t\t\t" + NL + "\t\t}\t" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */\t" + NL + "\tstatic ";
+ protected final String TEXT_21 = " calculateMetrics(";
+ protected final String TEXT_22 = " diagramPart) {" + NL + "\t\t";
+ protected final String TEXT_23 = " viewer = (";
+ protected final String TEXT_24 = ") diagramPart.getAdapter(";
+ protected final String TEXT_25 = ".class);" + NL + "\t\tfinal ";
+ protected final String TEXT_26 = " diagram = diagramPart.getDiagram();" + NL + "\t\tif (viewer == null || diagram == null) {" + NL + "\t\t\treturn ";
+ protected final String TEXT_27 = ".EMPTY_LIST;" + NL + "\t\t}" + NL + "\t\tfinal ";
+ protected final String TEXT_28 = " viewService = new ";
+ protected final String TEXT_29 = "(viewer);" + NL + "\t\ttry {" + NL + "\t\t\treturn (";
+ protected final String TEXT_30 = ")diagramPart.getEditingDomain().runExclusive(" + NL + "\t\t\t\tnew org.eclipse.emf.transaction.RunnableWithResult.Impl() {" + NL + "\t\t\t\t\tpublic void run() {" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_31 = " metrics = " + NL + "\t\t\t\t\t\t\tcalculateMetrics(diagram, new ";
+ protected final String TEXT_32 = "(50));" + NL + "\t\t\t\t\t\tif(diagram.getElement() != null) {" + NL + "\t\t\t\t\t\t\tcalculateMetrics(diagram.getElement(), metrics);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t// detach from EObject and bind to viewID" + NL + "\t\t\t\t\t\tjava.util.HashSet elements = new java.util.HashSet();" + NL + "\t\t\t\t\t\tfor (java.util.Iterator it = metrics.iterator(); it.hasNext();) {" + NL + "\t\t\t\t\t\t\tElementMetrics elementMetrics = (ElementMetrics) it.next();" + NL + "\t\t\t\t\t\t\telements.add(elementMetrics.target);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tfor (java.util.Iterator it = metrics.iterator(); it.hasNext();) {" + NL + "\t\t\t\t\t\t\tElementMetrics elementMetrics = (ElementMetrics) it.next();" + NL + "\t\t\t\t\t\t\tView targetView = elementMetrics.target instanceof View ? (View) elementMetrics.target : viewService.findView(elementMetrics.target);" + NL + "\t\t\t\t\t\t\tif (targetView != null) {" + NL + "\t\t\t\t\t\t\t\telementMetrics.target = null; // detach EObject" + NL + "\t\t\t\t\t\t\t\telementMetrics.diagramElementID = targetView.eResource().getURIFragment(targetView);" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t" + NL + "\t\t\t\t\t\tsetResult(metrics);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t});" + NL + "\t\t} catch(InterruptedException e) {" + NL + "\t\t\treturn ";
+ protected final String TEXT_33 = ".EMPTY_LIST;\t\t" + NL + "\t\t}\t\t" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tstatic ";
+ protected final String TEXT_34 = " calculateMetrics(EObject target, ";
+ protected final String TEXT_35 = " metricsList) {" + NL + "\t\tfinal EObject root = target;" + NL + "\t\t";
+ protected final String TEXT_36 = " it = new ";
+ protected final String TEXT_37 = "() {" + NL + "\t\t\t";
+ protected final String TEXT_38 = " contentsIt = root.eAllContents();" + NL + "\t\t\tboolean isInRoot = true;" + NL + "\t\t\tpublic boolean hasNext() {" + NL + "\t\t\t\treturn isInRoot || contentsIt.hasNext();" + NL + "\t\t\t}" + NL + "\t\t\tpublic Object next() {" + NL + "\t\t\t\tif(isInRoot) {" + NL + "\t\t\t\t\tisInRoot = false;" + NL + "\t\t\t\t\treturn root;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn contentsIt.next();" + NL + "\t\t\t}" + NL + "\t\t\tpublic void remove() {" + NL + "\t\t\t\tthrow new UnsupportedOperationException();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t" + NL + "\t\t";
+ protected final String TEXT_39 = " metricsPerContext = new ";
+ protected final String TEXT_40 = "();" + NL + "\t\twhile(it.hasNext()) {" + NL + "\t\t\tObject nextElement = it.next();" + NL + "\t\t\tif(nextElement instanceof EObject) {" + NL + "\t\t\t\tEObject nextEObj = (EObject)nextElement;" + NL + "\t\t\t\tEClass nextTarget = nextEObj.eClass();" + NL + "\t\t\t\t";
+ protected final String TEXT_41 = " superTypeIt = nextTarget.getEAllSuperTypes().iterator();" + NL + "\t\t\t\twhile(nextTarget != null) {" + NL + "\t\t\t\t\t";
+ protected final String TEXT_42 = " metricList = getMetricsForTarget(nextTarget);" + NL + "\t\t\t\t\tif(metricList != null) {" + NL + "\t\t\t\t\t\tfor (";
+ protected final String TEXT_43 = " metricIt = metricList.iterator(); metricIt.hasNext(); ) {" + NL + "\t\t\t\t\t\t\tMetricDef nextMetric = (MetricDef) metricIt.next();" + NL + "\t\t\t\t\t\t\tif(nextMetric.appliesTo(nextEObj)) {" + NL + "\t\t\t\t\t\t\t\tMetric metric = new Metric(nextMetric, nextEObj);" + NL + "\t\t\t\t\t\t\t\tmetricsPerContext.add(metric);" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tnextTarget = superTypeIt.hasNext() ? (EClass)superTypeIt.next() : null; " + NL + "\t\t\t\t}" + NL + "\t\t\t\t" + NL + "\t\t\t\tif(!metricsPerContext.isEmpty()) {" + NL + "\t\t\t\t\tmetricsList.add(new ElementMetrics(nextEObj, " + NL + "\t\t\t\t\t\t\t(Metric[])metricsPerContext.toArray(new Metric[metricsPerContext.size()])));" + NL + "\t\t\t\t\tmetricsPerContext.clear();\t\t\t\t" + NL + "\t\t\t\t}\t\t\t\t" + NL + "\t\t\t}\t\t\t" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\treturn metricsList;" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */\t" + NL + "\tpublic static class ResultView extends ";
+ protected final String TEXT_44 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static final String VIEW_ID = \"";
+ protected final String TEXT_45 = "\"; //$NON-NLS-1$" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */ " + NL + "\t\tprivate TableViewer viewer;";
+ protected final String TEXT_46 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_47 = " editorInput;";
+ protected final String TEXT_48 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate ";
+ protected final String TEXT_49 = " diagramURI;";
+ protected final String TEXT_50 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */\t " + NL + "\t void setInput(";
+ protected final String TEXT_51 = " diagramPart) {" + NL + "\t\t\t";
+ protected final String TEXT_52 = " resource = diagramPart.getDiagram().eResource();";
+ protected final String TEXT_53 = NL + "\t\t\tthis.editorInput = diagramPart.getEditorInput();";
+ protected final String TEXT_54 = NL + "\t\t\tthis.diagramURI = resource.getURI();";
+ protected final String TEXT_55 = NL + "\t\t\tsetTitleToolTip(resource.getURI().path());" + NL + "" + NL + "\t\t\t";
+ protected final String TEXT_56 = " metrics = calculateMetrics(diagramPart);" + NL + "\t \tadjustLayout(metrics);" + NL + "\t \tviewer.setInput(metrics);" + NL + "\t }" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */\t " + NL + "\t private void adjustLayout(";
+ protected final String TEXT_57 = " metricResultList) {" + NL + "\t \t";
+ protected final String TEXT_58 = " maxValStrMap = calcMetricMaxValueStrLenMap(metricResultList);" + NL + "\t\t\tTable table = viewer.getTable();" + NL + "\t\t\tTableLayout layout = new TableLayout();" + NL + "\t\t\t" + NL + "\t\t\t";
+ protected final String TEXT_59 = " gc = new ";
+ protected final String TEXT_60 = "(table);" + NL + "\t\t\tgc.setFont(";
+ protected final String TEXT_61 = ".getDialogFont());" + NL + "\t\t\tint padding = gc.stringExtent(\"X\").x * 2; //$NON-NLS-1$" + NL + "\t\t\tfor (int i = 0; i < getMetrics().size(); i++) {" + NL + "\t\t\t\tMetricDef nextMetric = (MetricDef)getMetrics().get(i);" + NL + "\t\t\t\tString valueStr = (String)maxValStrMap.get(nextMetric.key);" + NL + "\t\t\t\tint minWidth = valueStr != null ? gc.stringExtent(valueStr).x + padding : 20;\t\t\t" + NL + "\t\t\t\tlayout.addColumnData(new ColumnPixelData(minWidth, true));" + NL + "\t\t\t}" + NL + "\t\t\tgc.dispose();" + NL + "\t\t\t" + NL + "\t\t\tlayout.addColumnData(new ColumnWeightData(1, 50, true));" + NL + "\t\t\tviewer.getTable().setLayout(layout);" + NL + "\t\t\tviewer.getTable().layout(true, true);" + NL + "\t }" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void createPartControl(Composite parent) {" + NL + "\t\t\tthis.viewer = new TableViewer(parent, SWT.FULL_SELECTION);" + NL + "\t\t\tfinal Table table = viewer.getTable();" + NL + "\t\t\ttable.setHeaderVisible(true);" + NL + "\t\t\ttable.setLinesVisible(true);" + NL + "" + NL + "\t\t\tfor (int i = 0; i < getMetrics().size(); i++) {" + NL + "\t\t\t\tMetricDef nextMetric = ((MetricDef)getMetrics().get(i));" + NL + "\t\t\t\tTableColumn column = new TableColumn(table, SWT.NONE);" + NL + "\t\t\t\tcolumn.setAlignment(SWT.RIGHT);" + NL + "\t\t\t\tcolumn.setMoveable(true);" + NL + "\t\t\t\tcolumn.setText(nextMetric.key);" + NL + "\t\t\t\tcolumn.setToolTipText(nextMetric.getToolTipText());" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tTableColumn objectColumn = new TableColumn(table, SWT.NONE);" + NL + "\t\t\tobjectColumn.setText(\"Element\");" + NL + "\t\t\tobjectColumn.setToolTipText(\"Measurement element\");" + NL + "" + NL + "\t\t\tviewer.setLabelProvider(new Labels());" + NL + "\t\t\tviewer.setContentProvider(new ArrayContentProvider());" + NL + "\t\t\tviewer.addOpenListener(new IOpenListener() {" + NL + "\t\t\t\tpublic void open(OpenEvent event) {" + NL + "\t\t\t\t\thandleOpen(event);" + NL + "\t\t\t\t}" + NL + "\t\t\t});" + NL + "" + NL + "\t\t\t";
+ protected final String TEXT_62 = " headerSelListener = new ";
+ protected final String TEXT_63 = "() {" + NL + "\t\t\t\tpublic void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {" + NL + "\t\t\t\t\ttable.setSortColumn((TableColumn)e.getSource());" + NL + "\t\t\t\t\ttable.setSortDirection((table.getSortDirection() != SWT.DOWN) ? SWT.DOWN : SWT.UP);" + NL + "\t\t\t\t\tviewer.refresh();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void widgetDefaultSelected(";
+ protected final String TEXT_64 = " e) {" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t\tTableColumn[] columns = viewer.getTable().getColumns();" + NL + "\t\t\tfor (int i = 0; i < columns.length; i++) {" + NL + "\t\t\t\tcolumns[i].addSelectionListener(headerSelListener);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tviewer.setSorter(" + NL + "\t\t\t\tnew ViewerSorter() {" + NL + "\t\t\t\t\tpublic int compare(Viewer viewer, Object e1, Object e2) {" + NL + "\t\t\t\t\t\tTableColumn c = table.getSortColumn();" + NL + "\t\t\t\t\t\tint result = 0;" + NL + "\t\t\t\t\t\tif(c != null) {" + NL + "\t\t\t\t\t\t\tMetric mc1 = ((ElementMetrics)e1).getMetricByKey(c.getText());" + NL + "\t\t\t\t\t\t\tMetric mc2 = ((ElementMetrics)e2).getMetricByKey(c.getText());" + NL + "\t\t\t\t\t\t\tresult = (mc1 != null && mc2 != null) ?" + NL + "\t\t\t\t\t\t\t\tmc1.compareTo(mc2) : (mc1 == null ? -1 : 1);" + NL + "\t\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t\tresult = ((ElementMetrics)e1).targetElementQName.compareTo(((ElementMetrics)e2).targetElementQName);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\treturn table.getSortDirection() == SWT.DOWN ? result : -result;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t);" + NL;
+ protected final String TEXT_65 = NL + "\t ";
+ protected final String TEXT_66 = " editor = getSite().getPage().getActiveEditor();" + NL + "\t if(editor instanceof ";
+ protected final String TEXT_67 = ") {" + NL + "\t\t\t\tsetInput((";
+ protected final String TEXT_68 = ") editor);" + NL + "\t }";
+ protected final String TEXT_69 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate void handleOpen(OpenEvent event) {";
+ protected final String TEXT_70 = NL + "\t\t\t";
+ protected final String TEXT_71 = " diagramPart;" + NL + "\t\t\ttry {" + NL + "\t\t\t\tif (editorInput == null) {" + NL + "\t\t\t\t\treturn;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t";
+ protected final String TEXT_72 = " editorPart = getSite().getPage()" + NL + "\t\t\t\t\t.openEditor(editorInput," + NL + "\t\t\t\t\t\t\t";
+ protected final String TEXT_73 = ".ID);" + NL + "\t\t\t\tif(false == editorPart instanceof ";
+ protected final String TEXT_74 = ") {" + NL + "\t\t\t\t\treturn;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tdiagramPart = (";
+ protected final String TEXT_75 = ") editorPart;" + NL + "\t\t\t} catch (";
+ protected final String TEXT_76 = " e) {" + NL + "\t\t\t\t";
+ protected final String TEXT_77 = ".getInstance().logError(\"Can't open diagram editor\", e); //$NON-NLS-1$" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}";
+ protected final String TEXT_78 = NL + "\t\t\tif (diagramURI == null) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\t";
+ protected final String TEXT_79 = " viewPart = ";
+ protected final String TEXT_80 = ".showView(diagramURI);" + NL + "\t\t\tif(false == viewPart instanceof ";
+ protected final String TEXT_81 = ") {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\t";
+ protected final String TEXT_82 = " diagramPart = (";
+ protected final String TEXT_83 = ") viewPart;";
+ protected final String TEXT_84 = NL + "\t\t\t";
+ protected final String TEXT_85 = " graphicalViewer = (";
+ protected final String TEXT_86 = ") diagramPart.getAdapter(";
+ protected final String TEXT_87 = ".class);" + NL + "\t\t\tElementMetrics selection = (ElementMetrics)((";
+ protected final String TEXT_88 = ")event.getSelection()).getFirstElement();" + NL + "\t\t\tString viewID = selection.diagramElementID;" + NL + "\t\t\tif(viewID != null) {" + NL + "\t\t\t\tView targetView = (View)diagramPart.getDiagram().eResource().getEObject(viewID);" + NL + "\t\t\t\tif(targetView != null) {" + NL + "\t\t\t\t\torg.eclipse.gef.EditPart targetEditPart = (org.eclipse.gef.EditPart)graphicalViewer.getEditPartRegistry().get(targetView);" + NL + "\t\t\t\t\tif(targetEditPart != null) {" + NL + "\t\t\t\t\t\tgraphicalViewer.setSelection(new ";
+ protected final String TEXT_89 = "(targetEditPart));" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */\t\t" + NL + "\t\tprivate static ";
+ protected final String TEXT_90 = " calcMetricMaxValueStrLenMap(";
+ protected final String TEXT_91 = " allMetrics) {" + NL + "\t\t\t";
+ protected final String TEXT_92 = " metric2MaxStrLen = new ";
+ protected final String TEXT_93 = "();" + NL + "\t\t\tfor (int i = 0; i < getMetrics().size(); i++) {" + NL + "\t\t\t\tString nextKey = ((MetricDef)getMetrics().get(i)).key; " + NL + "\t\t\t\tint trimPos = Math.min(nextKey.length(), MAX_VISIBLE_KEY_CHAR_COUNT);" + NL + "\t\t\t\tmetric2MaxStrLen.put(nextKey, nextKey.substring(0, trimPos));\t\t\t" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tfor (";
+ protected final String TEXT_94 = " it = allMetrics.iterator(); it.hasNext();) {" + NL + "\t\t\t\tElementMetrics elementMetrics = (ElementMetrics) it.next();" + NL + "\t\t\t\tfor (int i = 0; i < elementMetrics.metrics.length; i++) {" + NL + "\t\t\t\t\tMetric metric = elementMetrics.metrics[i];" + NL + "\t\t\t\t\tString valueStr = (String)metric2MaxStrLen.get(metric.def.key);" + NL + "\t\t\t\t\tif(valueStr == null || metric.displayValue.length() > valueStr.length()) {" + NL + "\t\t\t\t\t\tmetric2MaxStrLen.put(metric.def.key, metric.displayValue);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn metric2MaxStrLen;\t\t" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void setFocus() {" + NL + "\t\t}\t\t" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */\t\t" + NL + "\t\tprivate class Labels extends LabelProvider implements ITableLabelProvider, ITableColorProvider {" + NL + "\t\t\t/**" + NL + "\t\t\t * @generated" + NL + "\t\t\t */\t\t\t" + NL + "\t\t\tprivate boolean isElementColumn(int columnIndex) {" + NL + "\t\t\t\treturn columnIndex >= getMetrics().size();" + NL + "\t\t\t}" + NL + "\t\t\t" + NL + "\t\t\t/**" + NL + "\t\t\t * @generated" + NL + "\t\t\t */\t\t\t" + NL + "\t\t\tpublic ";
+ protected final String TEXT_95 = " getColumnImage(Object element, int columnIndex) {\t\t\t\t" + NL + "\t\t\t\treturn isElementColumn(columnIndex) ? ((ElementMetrics)element).elementImage : null;" + NL + "\t\t\t}\t\t" + NL + "\t\t\t" + NL + "\t\t\t/**" + NL + "\t\t\t * @generated" + NL + "\t\t\t */\t\t\t" + NL + "\t\t\tpublic String getColumnText(Object element, int columnIndex) {" + NL + "\t\t\t\tElementMetrics elementMetrics = (ElementMetrics)element;" + NL + "\t\t\t\t\t\t\t" + NL + "\t\t\t\tif(columnIndex == getMetrics().size()) {" + NL + "\t\t\t\t\treturn elementMetrics.targetElementQName;" + NL + "\t\t\t\t}" + NL + "" + NL + "\t\t\t\tString key = ((MetricDef)getMetrics().get(columnIndex)).key;" + NL + "\t\t\t\tMetric metric = elementMetrics.getMetricByKey(key);" + NL + "\t\t\t\treturn (metric != null) ? metric.displayValue : \"-\"; //$NON-NLS-1$" + NL + "\t\t\t}" + NL + "\t\t\t" + NL + "\t\t\t/**" + NL + "\t\t\t * @generated" + NL + "\t\t\t */\t\t\t" + NL + "\t\t\tpublic ";
+ protected final String TEXT_96 = " getBackground(Object element, int columnIndex) {" + NL + "\t\t\t\treturn null; " + NL + "\t\t\t}" + NL + "\t\t\t" + NL + "\t\t\t/**" + NL + "\t\t\t * @generated" + NL + "\t\t\t */\t\t\t" + NL + "\t\t\tpublic ";
+ protected final String TEXT_97 = " getForeground(Object element, int columnIndex) {" + NL + "\t\t\t\tif(isElementColumn(columnIndex)) return null;" + NL + "\t\t\t\tElementMetrics columnElement = (ElementMetrics)element;" + NL + "\t\t\t\tString key = ((MetricDef)getMetrics().get(columnIndex)).key;" + NL + "\t\t\t\tMetric metric = columnElement.getMetricByKey(key);\t\t\t" + NL + "\t\t\t\tif(metric != null && metric.value != null) {" + NL + "\t\t\t\t\tif (metric.def.highLimit != null" + NL + "\t\t\t\t\t\t\t&& metric.def.highLimit.longValue() < metric.value.longValue()) {" + NL + "\t\t\t\t\t\treturn ";
+ protected final String TEXT_98 = ".red;" + NL + "\t\t\t\t\t} else if (metric.def.lowLimit != null" + NL + "\t\t\t\t\t\t\t&& metric.def.lowLimit.longValue() > metric.value.longValue()) {" + NL + "\t\t\t\t\t\treturn ";
+ protected final String TEXT_99 = ".blue;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t}\t\t" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class ElementMetrics {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */\t" + NL + "\t\tfinal Metric[] metrics;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */\t\t" + NL + "\t\tfinal String targetElementQName;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tfinal ";
+ protected final String TEXT_100 = " elementImage;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tString diagramElementID;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tEObject target;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tElementMetrics(EObject target, Metric[] metrics) {" + NL + "\t\t\tthis.metrics = metrics;\t" + NL + "\t\t\tassert metrics.length > 0;" + NL + "\t\t\tthis.target = target;" + NL + "\t\t\t" + NL + "\t\t\tEClass imageTarget = target.eClass();\t\t\t" + NL + "\t\t\tif (target instanceof View) {" + NL + "\t\t\t\tView viewTarget = (View) target;" + NL + "\t\t\t\tStringBuffer notationQNameBuf = new StringBuffer();" + NL + "\t\t\t\tnotationQNameBuf.append(formatElement(viewTarget));" + NL + "\t\t\t\tif (\"\".equals(viewTarget.getType()) && viewTarget.getElement() != null) { //$NON-NLS-1$" + NL + "\t\t\t\t\tnotationQNameBuf" + NL + "\t\t\t\t\t\t.append('-').append('>')" + NL + "\t\t\t\t\t\t.append(formatElement(viewTarget.getElement()));" + NL + "\t\t\t\t\timageTarget = viewTarget.getElement().eClass();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tint visualID = ";
+ protected final String TEXT_101 = ".getVisualID(viewTarget);" + NL + "\t\t\t\tnotationQNameBuf.append('[').append(visualID < 0 ? Integer.toString(System.identityHashCode(viewTarget)) : Integer.toString(visualID)).append(']');\t\t\t\t" + NL + "" + NL + "\t\t\t\tthis.targetElementQName = notationQNameBuf.toString();" + NL + "\t\t\t} else {" + NL + "\t\t\t\tthis.targetElementQName = formatElement(target);" + NL + "\t\t\t}" + NL + "\t\t\tthis.elementImage = ";
+ protected final String TEXT_102 = ".getInstance().getItemImage(imageTarget);" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String formatElement(";
+ protected final String TEXT_103 = " object) {" + NL + "\t\t\tif (object == null) {" + NL + "\t\t\t\treturn String.valueOf((Object)null);" + NL + "\t\t\t}" + NL + "\t\t\t";
+ protected final String TEXT_104 = " adapterFactory = ";
+ protected final String TEXT_105 = ".getInstance().getItemProvidersAdapterFactory();" + NL + "\t\t\t";
+ protected final String TEXT_106 = " labelProvider = (";
+ protected final String TEXT_107 = ") adapterFactory.adapt(object, ";
+ protected final String TEXT_108 = ".class);" + NL + "\t\t\tif (labelProvider != null) {" + NL + "\t\t\t\treturn object.eClass() + \" \" + labelProvider.getText(object);" + NL + "\t\t\t}" + NL + "\t\t\treturn object.toString();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tMetric getMetricByKey(String key) {" + NL + "\t\t\tfor (int i = 0; i < metrics.length; i++) {" + NL + "\t\t\t\tif(metrics[i].def.key.equals(key)) {" + NL + "\t\t\t\t\treturn metrics[i]; " + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Metric implements Comparable {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tfinal MetricDef def;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tfinal Number value;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tfinal String displayValue;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tMetric(MetricDef def, EObject target) {" + NL + "\t\t\tthis.def = def;" + NL + "\t\t\tvalue = def.calcMetric(target);" + NL + "\t\t\tthis.displayValue = (value != null) ? java.text.NumberFormat.getInstance().format(value) : \"null\"; //$NON-NLS-1$" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic int compareTo(Object other) {" + NL + "\t\t\tMetric otherMetric = (Metric)other;" + NL + "\t\t\tif(value != null && otherMetric.value != null) {" + NL + "\t\t\t\treturn (value.longValue() < otherMetric.value.longValue()) ? " + NL + "\t\t\t\t\t\t-1 : (value.longValue() == otherMetric.value.longValue() ? 0 : 1);" + NL + "\t\t\t}" + NL + "\t\t\treturn (value == null && otherMetric.value == null) ? " + NL + "\t\t\t\t\t0 : (value == null) ? -1 : 1;" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class MetricDef {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tfinal Double lowLimit;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tfinal Double highLimit;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tfinal String key;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tfinal ";
+ protected final String TEXT_109 = " expression;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tfinal int[] semanticIDs;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tfinal String name;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tfinal String description;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tMetricDef(String key, ";
+ protected final String TEXT_110 = " expression, int[] semanticIDs, " + NL + "\t\t\tDouble low, Double high, String name, String description) {" + NL + "\t\t\tthis.key = key;" + NL + "\t\t\tthis.expression = expression;" + NL + "\t\t\tthis.semanticIDs = semanticIDs;" + NL + "\t\t\tthis.lowLimit = low;" + NL + "\t\t\tthis.highLimit = high;" + NL + "\t\t\tthis.name = name;" + NL + "\t\t\tthis.description = description;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tNumber calcMetric(Object contextInstance) {" + NL + "\t\t\tObject val = expression.evaluate(contextInstance);" + NL + "\t\t\treturn (val instanceof Number) ? (Number)val : null;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tboolean appliesTo(EObject eObject) {" + NL + "\t\t\tif(eObject instanceof View && semanticIDs != null) {" + NL + "\t\t\t\tint eObjectID = ";
+ protected final String TEXT_111 = ".getVisualID((View)eObject);" + NL + "\t\t\t\tfor(int i = 0; i < semanticIDs.length; i++) {" + NL + "\t\t\t\t\tif(semanticIDs[i] == eObjectID) {" + NL + "\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "\t\t\treturn eObject != null && (expression.context() instanceof EClass) && " + NL + "\t\t\t\t((EClass)expression.context()).isSuperTypeOf(eObject.eClass());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tString getToolTipText() {" + NL + "\t\t\tStringBuffer buf = new StringBuffer();" + NL + "\t\t\tif(name != null) buf.append(name);" + NL + "\t\t\tif(description != null) buf.append('\\n').append(description).append('\\n');" + NL + "\t\t\tif(lowLimit != null) buf.append(\"low:\").append(lowLimit);" + NL + "\t\t\tif(highLimit != null) buf.append(\" high:\").append(highLimit);" + NL + "\t\t\treturn buf.toString();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static ";
+ protected final String TEXT_112 = "/*MetricDef*/ getMetricsForTarget(EClass target) {" + NL + "\t\tif(context2MetricsMap == null) {" + NL + "\t\t\tinitializeRegistry();" + NL + "\t\t}" + NL + "\t\treturn (";
+ protected final String TEXT_113 = ")context2MetricsMap.get(target);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static ";
+ protected final String TEXT_114 = " getMetrics() {" + NL + "\t\tif(metricsRegistry == null) {" + NL + "\t\t\tinitializeRegistry();" + NL + "\t\t}" + NL + "\t\treturn metricsRegistry;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static Number calculateMetric(String metricKey, Object contextInstance) {" + NL + "\t\tif (key2MetricMap == null) {" + NL + "\t\t\tinitializeRegistry();" + NL + "\t\t}" + NL + "\t\tMetricDef metric = (MetricDef)key2MetricMap.get(metricKey);" + NL + "\t\tNumber value = (metric != null) ? metric.calcMetric(contextInstance) : null;" + NL + "\t\treturn (value != null && !(value instanceof Double)) ? new Double(value.doubleValue()) : value;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static void initializeRegistry() {" + NL + "\t\tif(context2MetricsMap != null) return;";
+ protected final String TEXT_115 = "\t\t" + NL + "\t\t";
+ protected final String TEXT_116 = NL;
+ protected final String TEXT_117 = " ";
+ protected final String TEXT_118 = " = new ";
+ protected final String TEXT_119 = "(3);";
+ protected final String TEXT_120 = ".put(\"";
+ protected final String TEXT_121 = "\", ";
+ protected final String TEXT_122 = "); //$NON-NLS-1$";
+ protected final String TEXT_123 = NL + "\t\tregister(new MetricDef(";
+ protected final String TEXT_124 = "," + NL + "\t\t\t";
+ protected final String TEXT_125 = "null";
+ protected final String TEXT_126 = ".";
+ protected final String TEXT_127 = "(";
+ protected final String TEXT_128 = ", //$NON-NLS-1$" + NL + "\t";
+ protected final String TEXT_129 = ", ";
+ protected final String TEXT_130 = ")";
+ protected final String TEXT_131 = ".";
+ protected final String TEXT_132 = "(";
+ protected final String TEXT_133 = ", //$NON-NLS-1$" + NL + "\t";
+ protected final String TEXT_134 = ")";
+ protected final String TEXT_135 = "new ";
+ protected final String TEXT_136 = "(";
+ protected final String TEXT_137 = ") {" + NL + "\tprotected Object doEvaluate(Object context, ";
+ protected final String TEXT_138 = " env) {\t" + NL + "\t\t";
+ protected final String TEXT_139 = " self = (";
+ protected final String TEXT_140 = ")context;";
+ protected final String TEXT_141 = "\t" + NL + "\t\t";
+ protected final String TEXT_142 = " ";
+ protected final String TEXT_143 = " = (";
+ protected final String TEXT_144 = ")env.get(\"";
+ protected final String TEXT_145 = "\"); //$NON-NLS-1$";
+ protected final String TEXT_146 = NL + "\t\treturn ";
+ protected final String TEXT_147 = ".";
+ protected final String TEXT_148 = "(self";
+ protected final String TEXT_149 = ", ";
+ protected final String TEXT_150 = ");" + NL + "\t}" + NL + "}";
+ protected final String TEXT_151 = NL + ",";
+ protected final String TEXT_152 = NL + "\t\t\t";
+ protected final String TEXT_153 = "," + NL + "\t\t\t";
+ protected final String TEXT_154 = "new Double(";
+ protected final String TEXT_155 = ")";
+ protected final String TEXT_156 = "null";
+ protected final String TEXT_157 = ",\t\t\t\t\t" + NL + "\t\t\t";
+ protected final String TEXT_158 = "new Double(";
+ protected final String TEXT_159 = ")";
+ protected final String TEXT_160 = "null";
+ protected final String TEXT_161 = "," + NL + "\t\t\t";
+ protected final String TEXT_162 = "," + NL + "\t\t\t";
+ protected final String TEXT_163 = "));";
+ protected final String TEXT_164 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static void register(MetricDef metric) {" + NL + "\t\tif (context2MetricsMap == null) {" + NL + "\t\t\tcontext2MetricsMap = new ";
+ protected final String TEXT_165 = "();" + NL + "\t\t\tmetricsRegistry = new ";
+ protected final String TEXT_166 = "();" + NL + "\t\t\tkey2MetricMap = new ";
+ protected final String TEXT_167 = "();" + NL + "\t\t}" + NL + "\t\t";
+ protected final String TEXT_168 = " metrics = (";
+ protected final String TEXT_169 = ")context2MetricsMap.get(metric.expression.context());" + NL + "\t\tif(metrics == null) {" + NL + "\t\t\tmetrics = new ";
+ protected final String TEXT_170 = "();" + NL + "\t\t\tcontext2MetricsMap.put(metric.expression.context(), metrics);" + NL + "\t\t}" + NL + "\t\tmetricsRegistry.add(metric);" + NL + "\t\tmetrics.add(metric);" + NL + "\t\tkey2MetricMap.put(metric.key, metric);" + NL + "\t}" + NL;
+ protected final String TEXT_171 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class JavaRules {";
+ protected final String TEXT_172 = "\t\t";
+ protected final String TEXT_173 = NL;
+ protected final String TEXT_174 = NL + "/**" + NL + " * @generated" + NL + " */" + NL + "private static ";
+ protected final String TEXT_175 = " ";
+ protected final String TEXT_176 = "(";
+ protected final String TEXT_177 = " self";
+ protected final String TEXT_178 = ", ";
+ protected final String TEXT_179 = " ";
+ protected final String TEXT_180 = ") {" + NL + "\t// TODO: implement this method" + NL + "\t// Ensure that you remove @generated or mark it @generated NOT" + NL + "\t" + NL + "\tthrow new ";
+ protected final String TEXT_181 = ".NoImplException(\"No user java implementation provided in '";
+ protected final String TEXT_182 = "' operation\"); //$NON-NLS-1$" + NL + "}";
+ protected final String TEXT_183 = NL + "\t} //JavaRules";
+ protected final String TEXT_184 = "\t\t" + NL + "" + NL + "}";
+ protected final String TEXT_185 = NL;
+
+ public String generate(Object argument)
+ {
+ final StringBuffer stringBuffer = new StringBuffer();
+
+final GenDiagram genDiagram = (GenDiagram) ((Object[]) argument)[0];
+final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];
+final GenExpressionProviderContainer expressionProviders = genDiagram.getEditorGen().getExpressionProviders();
+
+ stringBuffer.append(TEXT_1);
+
+String copyrightText = genDiagram.getEditorGen().getCopyrightText();
+if (copyrightText != null && copyrightText.trim().length() > 0) {
+
+ stringBuffer.append(TEXT_2);
+ stringBuffer.append(copyrightText.replaceAll("\n", "\n * "));
+ stringBuffer.append(TEXT_3);
+ }
+
+importManager.emitPackageStatement(stringBuffer);
+
+importManager.addImport("org.eclipse.emf.ecore.EClass");
+importManager.addImport("org.eclipse.emf.ecore.EObject");
+importManager.addImport("org.eclipse.gmf.runtime.notation.Diagram");
+importManager.addImport("org.eclipse.gmf.runtime.notation.View");
+importManager.addImport("org.eclipse.ui.IWorkbenchPart");
+importManager.addImport("org.eclipse.jface.viewers.ArrayContentProvider");
+importManager.addImport("org.eclipse.jface.viewers.ColumnPixelData");
+importManager.addImport("org.eclipse.jface.viewers.ColumnWeightData");
+importManager.addImport("org.eclipse.jface.viewers.IOpenListener");
+importManager.addImport("org.eclipse.jface.viewers.ITableColorProvider");
+importManager.addImport("org.eclipse.jface.viewers.ITableLabelProvider");
+importManager.addImport("org.eclipse.jface.viewers.LabelProvider");
+importManager.addImport("org.eclipse.jface.viewers.OpenEvent");
+importManager.addImport("org.eclipse.jface.viewers.TableLayout");
+importManager.addImport("org.eclipse.jface.viewers.TableViewer");
+importManager.addImport("org.eclipse.jface.viewers.Viewer");
+importManager.addImport("org.eclipse.jface.viewers.ViewerSorter");
+importManager.addImport("org.eclipse.swt.SWT");
+importManager.addImport("org.eclipse.swt.widgets.Composite");
+importManager.addImport("org.eclipse.swt.widgets.Table");
+importManager.addImport("org.eclipse.swt.widgets.TableColumn");
+
+importManager.registerInnerClass("Metric");
+importManager.registerInnerClass("MetricDef");
+importManager.registerInnerClass("MetricsAction");
+importManager.registerInnerClass("ElementMetrics");
+importManager.registerInnerClass("ResultView");
+
+importManager.markImportLocation(stringBuffer);
+final String pluginActivatorClass = importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName());
+
+ stringBuffer.append(TEXT_4);
+ stringBuffer.append(genDiagram.getMetricProviderClassName());
+ stringBuffer.append(TEXT_5);
+ stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
+ stringBuffer.append(TEXT_6);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_7);
+ stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
+ stringBuffer.append(TEXT_8);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.Action"));
+ stringBuffer.append(TEXT_9);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_10);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IViewPart"));
+ stringBuffer.append(TEXT_11);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PlatformUI"));
+ stringBuffer.append(TEXT_12);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PlatformUI"));
+ stringBuffer.append(TEXT_13);
+
+if (genDiagram.getEditorGen().getEditor().isEclipseEditor()) {
+
+ stringBuffer.append(TEXT_14);
+
+} else {
+
+ stringBuffer.append(TEXT_15);
+
+}
+
+ stringBuffer.append(TEXT_16);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_17);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_18);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException"));
+ stringBuffer.append(TEXT_19);
+ stringBuffer.append(pluginActivatorClass);
+ stringBuffer.append(TEXT_20);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_21);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_22);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer"));
+ stringBuffer.append(TEXT_23);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer"));
+ stringBuffer.append(TEXT_24);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer"));
+ stringBuffer.append(TEXT_25);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram"));
+ stringBuffer.append(TEXT_26);
+ stringBuffer.append(importManager.getImportedName("java.util.Collections"));
+ stringBuffer.append(TEXT_27);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService"));
+ stringBuffer.append(TEXT_28);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.EditPartRegistryBasedViewService"));
+ stringBuffer.append(TEXT_29);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_30);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_31);
+ stringBuffer.append(importManager.getImportedName("java.util.ArrayList"));
+ stringBuffer.append(TEXT_32);
+ stringBuffer.append(importManager.getImportedName("java.util.Collections"));
+ stringBuffer.append(TEXT_33);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_34);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_35);
+ stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
+ stringBuffer.append(TEXT_36);
+ stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
+ stringBuffer.append(TEXT_37);
+ stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
+ stringBuffer.append(TEXT_38);
+ stringBuffer.append(importManager.getImportedName("java.util.ArrayList"));
+ stringBuffer.append(TEXT_39);
+ stringBuffer.append(importManager.getImportedName("java.util.ArrayList"));
+ stringBuffer.append(TEXT_40);
+ stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
+ stringBuffer.append(TEXT_41);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_42);
+ stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
+ stringBuffer.append(TEXT_43);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.ui.part.ViewPart"));
+ stringBuffer.append(TEXT_44);
+ stringBuffer.append(genDiagram.getMetricViewID());
+ stringBuffer.append(TEXT_45);
+
+if (genDiagram.getEditorGen().getEditor().isEclipseEditor()) {
+
+ stringBuffer.append(TEXT_46);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput"));
+ stringBuffer.append(TEXT_47);
+
+} else {
+
+ stringBuffer.append(TEXT_48);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI"));
+ stringBuffer.append(TEXT_49);
+
+}
+
+ stringBuffer.append(TEXT_50);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_51);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource"));
+ stringBuffer.append(TEXT_52);
+
+if (genDiagram.getEditorGen().getEditor().isEclipseEditor()) {
+
+ stringBuffer.append(TEXT_53);
+
+} else {
+
+ stringBuffer.append(TEXT_54);
+
+}
+
+ stringBuffer.append(TEXT_55);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_56);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_57);
+ stringBuffer.append(importManager.getImportedName("java.util.Map"));
+ stringBuffer.append(TEXT_58);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.GC"));
+ stringBuffer.append(TEXT_59);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.GC"));
+ stringBuffer.append(TEXT_60);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.jface.resource.JFaceResources"));
+ stringBuffer.append(TEXT_61);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionListener"));
+ stringBuffer.append(TEXT_62);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionListener"));
+ stringBuffer.append(TEXT_63);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.events.SelectionEvent"));
+ stringBuffer.append(TEXT_64);
+
+if (genDiagram.getEditorGen().getEditor().isEclipseEditor()) {
+
+ stringBuffer.append(TEXT_65);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart"));
+ stringBuffer.append(TEXT_66);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_67);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_68);
+
+}
+
+ stringBuffer.append(TEXT_69);
+
+if (genDiagram.getEditorGen().getEditor().isEclipseEditor()) {
+
+ stringBuffer.append(TEXT_70);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_71);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorPart"));
+ stringBuffer.append(TEXT_72);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_73);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_74);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_75);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException"));
+ stringBuffer.append(TEXT_76);
+ stringBuffer.append(pluginActivatorClass);
+ stringBuffer.append(TEXT_77);
+
+} else {
+
+ stringBuffer.append(TEXT_78);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IViewPart"));
+ stringBuffer.append(TEXT_79);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName()));
+ stringBuffer.append(TEXT_80);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_81);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_82);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getEditor().getQualifiedClassName()));
+ stringBuffer.append(TEXT_83);
+
+}
+
+ stringBuffer.append(TEXT_84);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer"));
+ stringBuffer.append(TEXT_85);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer"));
+ stringBuffer.append(TEXT_86);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer"));
+ stringBuffer.append(TEXT_87);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.IStructuredSelection"));
+ stringBuffer.append(TEXT_88);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.StructuredSelection"));
+ stringBuffer.append(TEXT_89);
+ stringBuffer.append(importManager.getImportedName("java.util.Map"));
+ stringBuffer.append(TEXT_90);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_91);
+ stringBuffer.append(importManager.getImportedName("java.util.Map"));
+ stringBuffer.append(TEXT_92);
+ stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
+ stringBuffer.append(TEXT_93);
+ stringBuffer.append(importManager.getImportedName("java.util.Iterator"));
+ stringBuffer.append(TEXT_94);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Image"));
+ stringBuffer.append(TEXT_95);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(TEXT_96);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color"));
+ stringBuffer.append(TEXT_97);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ColorConstants"));
+ stringBuffer.append(TEXT_98);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ColorConstants"));
+ stringBuffer.append(TEXT_99);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Image"));
+ stringBuffer.append(TEXT_100);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(TEXT_101);
+ stringBuffer.append(pluginActivatorClass);
+ stringBuffer.append(TEXT_102);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject"));
+ stringBuffer.append(TEXT_103);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.AdapterFactory"));
+ stringBuffer.append(TEXT_104);
+ stringBuffer.append(pluginActivatorClass);
+ stringBuffer.append(TEXT_105);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IItemLabelProvider"));
+ stringBuffer.append(TEXT_106);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IItemLabelProvider"));
+ stringBuffer.append(TEXT_107);
+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.IItemLabelProvider"));
+ stringBuffer.append(TEXT_108);
+ stringBuffer.append(importManager.getImportedName(expressionProviders.getAbstractExpressionQualifiedClassName()));
+ stringBuffer.append(TEXT_109);
+ stringBuffer.append(importManager.getImportedName(expressionProviders.getAbstractExpressionQualifiedClassName()));
+ stringBuffer.append(TEXT_110);
+ stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName()));
+ stringBuffer.append(TEXT_111);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_112);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_113);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_114);
+
+List javaRules = new ArrayList();
+for(Iterator it = genDiagram.getEditorGen().getMetrics().getMetrics().iterator(); it.hasNext(); ) {
+ GenMetricRule nextMetric = (GenMetricRule)it.next();
+ GenClassifier __genExprContext = nextMetric.getTarget() != null ? nextMetric.getTarget().getContext() : null;
+ if(__genExprContext == null || nextMetric.getRule() == null) continue;
+ ValueExpression __genValueExpression = nextMetric.getRule();
+ String __javaOperationContainer = "JavaRules";
+ Map __exprEnvVariables = Collections.EMPTY_MAP;
+ String __outEnvVarName = ""; // no env variable to initialize
+ if(expressionProviders != null && expressionProviders.getProvider(__genValueExpression) instanceof GenJavaExpressionProvider) {
+ javaRules.add(nextMetric);
+ }
+
+ stringBuffer.append(TEXT_115);
+
+{ /*begin the scope*/
+/*
+java.util.Map __exprEnvVariables
+String __outEnvVarName;
+*/
+if(!__exprEnvVariables.isEmpty() && genDiagram.getEditorGen().getExpressionProviders() != null &&
+ genDiagram.getEditorGen().getExpressionProviders().getProvider(__genValueExpression)
+ instanceof org.eclipse.gmf.codegen.gmfgen.GenExpressionInterpreter) {
+
+ stringBuffer.append(TEXT_116);
+ stringBuffer.append(importManager.getImportedName("java.util.Map"));
+ stringBuffer.append(TEXT_117);
+ stringBuffer.append(__outEnvVarName);
+ stringBuffer.append(TEXT_118);
+ stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
+ stringBuffer.append(TEXT_119);
+
+ for(java.util.Iterator envVarIt = __exprEnvVariables.keySet().iterator(); envVarIt.hasNext();) {
+ String nextVariableName = (String)envVarIt.next();
+ org.eclipse.emf.codegen.ecore.genmodel.GenClassifier nextVariableType = (org.eclipse.emf.codegen.ecore.genmodel.GenClassifier)__exprEnvVariables.get(nextVariableName);
+ String varTypeEClassifierAccess = nextVariableType.getGenPackage().getQualifiedPackageInterfaceName() + ".eINSTANCE.get" + nextVariableType.getClassifierAccessorName()+"()";
+
+
+ stringBuffer.append(__outEnvVarName);
+ stringBuffer.append(TEXT_120);
+ stringBuffer.append(nextVariableName);
+ stringBuffer.append(TEXT_121);
+ stringBuffer.append(varTypeEClassifierAccess);
+ stringBuffer.append(TEXT_122);
+
+ }
+}
+
+
+} /*end the scope*/
+
+ stringBuffer.append(TEXT_123);
+ stringBuffer.append(org.eclipse.gmf.internal.common.codegen.Conversions.toStringLiteral(nextMetric.getKey()));
+ stringBuffer.append(TEXT_124);
+
+{ /*begin the scope*/
+/*
+ValueExpression __genValueExpression;
+GenClassifier __genExprContext
+java.util.Map __exprEnvVariables
+String __outEnvVarName;
+String __javaOperationContainer;
+*/
+ org.eclipse.gmf.codegen.gmfgen.GenExpressionProviderBase __genExprProvider = (genDiagram.getEditorGen().getExpressionProviders() != null) ? genDiagram.getEditorGen().getExpressionProviders().getProvider(__genValueExpression) : null;
+ String __ctxEClassifierAccess = importManager.getImportedName(__genExprContext.getGenPackage().getQualifiedPackageInterfaceName()) + ".eINSTANCE.get" + __genExprContext.getClassifierAccessorName()+"()";
+ String __importedAbstractClass = __genExprProvider != null ? importManager.getImportedName(__genExprProvider.getContainer().getAbstractExpressionQualifiedClassName()) : null;
+
+ if(__genExprProvider == null || __importedAbstractClass == null) {
+
+ stringBuffer.append(TEXT_125);
+
+ } else if(__genExprProvider instanceof org.eclipse.gmf.codegen.gmfgen.GenExpressionInterpreter) {
+ String __bodyLiteral = org.eclipse.gmf.internal.common.codegen.Conversions.toStringLiteral(__genValueExpression.getBody());
+ org.eclipse.gmf.codegen.gmfgen.GenExpressionInterpreter interpreter = (org.eclipse.gmf.codegen.gmfgen.GenExpressionInterpreter)__genExprProvider;
+ String __expressionAccessor = interpreter.getExpressionAccessor(__genValueExpression);
+ String providerImportedClass = importManager.getImportedName(interpreter.getQualifiedClassName());
+ if(!__exprEnvVariables.isEmpty()) {
+
+ stringBuffer.append(providerImportedClass);
+ stringBuffer.append(TEXT_126);
+ stringBuffer.append(__expressionAccessor);
+ stringBuffer.append(TEXT_127);
+ stringBuffer.append(__bodyLiteral);
+ stringBuffer.append(TEXT_128);
+ stringBuffer.append(__ctxEClassifierAccess);
+ stringBuffer.append(TEXT_129);
+ stringBuffer.append(__outEnvVarName);
+ stringBuffer.append(TEXT_130);
+
+ } else {
+
+ stringBuffer.append(providerImportedClass);
+ stringBuffer.append(TEXT_131);
+ stringBuffer.append(__expressionAccessor);
+ stringBuffer.append(TEXT_132);
+ stringBuffer.append(__bodyLiteral);
+ stringBuffer.append(TEXT_133);
+ stringBuffer.append(__ctxEClassifierAccess);
+ stringBuffer.append(TEXT_134);
+
+ }
+ } else if(__genExprProvider instanceof org.eclipse.gmf.codegen.gmfgen.GenJavaExpressionProvider) { /*inlined java expression adapter*/
+ String evalCtxQualifiedName = __genExprProvider.getQualifiedInstanceClassName(__genExprContext);
+ String __exprJavaOperName = ((org.eclipse.gmf.codegen.gmfgen.GenJavaExpressionProvider)__genExprProvider).getOperationName(__genValueExpression);
+
+
+ stringBuffer.append(TEXT_135);
+ stringBuffer.append(__importedAbstractClass);
+ stringBuffer.append(TEXT_136);
+ stringBuffer.append(__ctxEClassifierAccess);
+ stringBuffer.append(TEXT_137);
+ stringBuffer.append(importManager.getImportedName("java.util.Map"));
+ stringBuffer.append(TEXT_138);
+ stringBuffer.append(importManager.getImportedName(evalCtxQualifiedName));
+ stringBuffer.append(TEXT_139);
+ stringBuffer.append(importManager.getImportedName(evalCtxQualifiedName));
+ stringBuffer.append(TEXT_140);
+
+ for(java.util.Iterator envVarIt = __exprEnvVariables.keySet().iterator(); envVarIt.hasNext();) {
+ String nextVariableName = (String)envVarIt.next();
+ org.eclipse.emf.codegen.ecore.genmodel.GenClassifier nextVariableType = (org.eclipse.emf.codegen.ecore.genmodel.GenClassifier)__exprEnvVariables.get(nextVariableName);
+ String qualifiedTypeName = __genExprProvider.getQualifiedInstanceClassName(nextVariableType);
+
+ stringBuffer.append(TEXT_141);
+ stringBuffer.append(importManager.getImportedName(qualifiedTypeName));
+ stringBuffer.append(TEXT_142);
+ stringBuffer.append(nextVariableName);
+ stringBuffer.append(TEXT_143);
+ stringBuffer.append(importManager.getImportedName(qualifiedTypeName));
+ stringBuffer.append(TEXT_144);
+ stringBuffer.append(nextVariableName);
+ stringBuffer.append(TEXT_145);
+ }
+ stringBuffer.append(TEXT_146);
+
+ if(__javaOperationContainer != null && __javaOperationContainer.length() > 0) {
+ stringBuffer.append(__javaOperationContainer);
+ stringBuffer.append(TEXT_147);
+
+ }
+ stringBuffer.append(__exprJavaOperName);
+ stringBuffer.append(TEXT_148);
+
+ for(java.util.Iterator envVarIt = __exprEnvVariables.keySet().iterator(); envVarIt.hasNext();){
+ stringBuffer.append(TEXT_149);
+ stringBuffer.append((String)envVarIt.next());
+ }
+ stringBuffer.append(TEXT_150);
+ }
+ } /*end of scope*/
+ stringBuffer.append(TEXT_151);
+
+ String IDs = "null";
+ if(nextMetric.getTarget() instanceof GenDiagramElementTarget) {
+ GenDiagramElementTarget diagramElementTarget = (GenDiagramElementTarget) nextMetric.getTarget();
+ StringBuffer buf = new StringBuffer("new int[] {");
+ for(Iterator elementIt = diagramElementTarget.getElement().iterator(); elementIt.hasNext();) {
+ GenCommonBase nextElement = (GenCommonBase)elementIt.next();
+ buf.append(importManager.getImportedName(nextElement.getEditPartQualifiedClassName()) + ".VISUAL_ID");
+ if(elementIt.hasNext()) buf.append(',').append(' ');
+ }
+ buf.append(" }");
+ IDs = buf.toString();
+ }
+ stringBuffer.append(TEXT_152);
+ stringBuffer.append(IDs);
+ stringBuffer.append(TEXT_153);
+ if(nextMetric.getLowLimit()!=null){
+ stringBuffer.append(TEXT_154);
+ stringBuffer.append(nextMetric.getLowLimit());
+ stringBuffer.append(TEXT_155);
+ }else{
+ stringBuffer.append(TEXT_156);
+ }
+ stringBuffer.append(TEXT_157);
+ if(nextMetric.getHighLimit()!=null){
+ stringBuffer.append(TEXT_158);
+ stringBuffer.append(nextMetric.getHighLimit());
+ stringBuffer.append(TEXT_159);
+ }else{
+ stringBuffer.append(TEXT_160);
+ }
+ stringBuffer.append(TEXT_161);
+ stringBuffer.append(org.eclipse.gmf.internal.common.codegen.Conversions.toStringLiteral(nextMetric.getName()));
+ stringBuffer.append(TEXT_162);
+ stringBuffer.append(org.eclipse.gmf.internal.common.codegen.Conversions.toStringLiteral(nextMetric.getDescription()));
+ stringBuffer.append(TEXT_163);
+
+} /* metrics iteration */
+
+ stringBuffer.append(TEXT_164);
+ stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
+ stringBuffer.append(TEXT_165);
+ stringBuffer.append(importManager.getImportedName("java.util.ArrayList"));
+ stringBuffer.append(TEXT_166);
+ stringBuffer.append(importManager.getImportedName("java.util.HashMap"));
+ stringBuffer.append(TEXT_167);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_168);
+ stringBuffer.append(importManager.getImportedName("java.util.List"));
+ stringBuffer.append(TEXT_169);
+ stringBuffer.append(importManager.getImportedName("java.util.ArrayList"));
+ stringBuffer.append(TEXT_170);
+
+if(!javaRules.isEmpty()) {
+
+ stringBuffer.append(TEXT_171);
+
+ for(Iterator it = javaRules.iterator(); it.hasNext();) {
+ GenMetricRule nextMetric = (GenMetricRule)it.next();
+ GenClassifier __genExprContext = nextMetric.getTarget().getContext();
+ ValueExpression __genValueExpression = nextMetric.getRule();
+ String __genExprResultType = "java.lang.Double";
+ Map __exprEnvVariables = Collections.EMPTY_MAP;
+
+ stringBuffer.append(TEXT_172);
+ stringBuffer.append(TEXT_173);
+
+/*
+ValueExpression __genValueExpression
+java.util.Map __exprEnvVariables
+GenClassifier __genExprContext
+GenClassifier || String/qualifiedClassName/__genExprResultType
+*/
+org.eclipse.gmf.codegen.gmfgen.GenExpressionProviderBase __genExprProvider = (genDiagram.getEditorGen().getExpressionProviders() != null) ? genDiagram.getEditorGen().getExpressionProviders().getProvider(__genValueExpression) : null;
+if(__genExprProvider instanceof org.eclipse.gmf.codegen.gmfgen.GenJavaExpressionProvider) {
+ String __importedAbstractExpr = importManager.getImportedName(__genExprProvider.getContainer().getAbstractExpressionQualifiedClassName());
+ String evalCtxQualifiedName = __genExprProvider.getQualifiedInstanceClassName(__genExprContext);
+ // support GenClassifier and also String based qualified java class name
+ Object __genExprResultTypeObj = __genExprResultType;
+ String __exprResultTypeQualifiedName = null;
+ if(__genExprResultTypeObj instanceof String)
+ __exprResultTypeQualifiedName = (String)__genExprResultTypeObj;
+ else if(__genExprResultTypeObj instanceof org.eclipse.emf.codegen.ecore.genmodel.GenClassifier)
+ __exprResultTypeQualifiedName = __genExprProvider.getQualifiedInstanceClassName((org.eclipse.emf.codegen.ecore.genmodel.GenClassifier)__genExprResultTypeObj);
+ String __exprJavaOperName = ((org.eclipse.gmf.codegen.gmfgen.GenJavaExpressionProvider)__genExprProvider).getOperationName(__genValueExpression);
+
+ stringBuffer.append(TEXT_174);
+ stringBuffer.append(importManager.getImportedName(__exprResultTypeQualifiedName));
+ stringBuffer.append(TEXT_175);
+ stringBuffer.append(__exprJavaOperName);
+ stringBuffer.append(TEXT_176);
+ stringBuffer.append(importManager.getImportedName(evalCtxQualifiedName));
+ stringBuffer.append(TEXT_177);
+
+ for(java.util.Iterator envVarIt = __exprEnvVariables.keySet().iterator(); envVarIt.hasNext();) {
+ String __nextVarName = (String)envVarIt.next();
+ org.eclipse.emf.codegen.ecore.genmodel.GenClassifier nextVariableType = (org.eclipse.emf.codegen.ecore.genmodel.GenClassifier)__exprEnvVariables.get(__nextVarName);
+ String qualifiedTypeName = __genExprProvider.getQualifiedInstanceClassName(nextVariableType);
+
+
+ stringBuffer.append(TEXT_178);
+ stringBuffer.append(importManager.getImportedName(qualifiedTypeName));
+ stringBuffer.append(TEXT_179);
+ stringBuffer.append(__nextVarName);
+ }
+
+ stringBuffer.append(TEXT_180);
+ stringBuffer.append(__importedAbstractExpr);
+ stringBuffer.append(TEXT_181);
+ stringBuffer.append(__exprJavaOperName);
+ stringBuffer.append(TEXT_182);
+
+} /* end of GenJavaExpressionProvider */
+
+
+ }
+
+ stringBuffer.append(TEXT_183);
+
+} /* end of JavaRules */
+
+ stringBuffer.append(TEXT_184);
+ importManager.emitSortedImports();
+ stringBuffer.append(TEXT_185);
+ return stringBuffer.toString();
+ }
+}
diff --git a/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/providers/ValidationProviderGenerator.java b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/providers/ValidationProviderGenerator.java
new file mode 100644
index 000000000..843a89123
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/providers/ValidationProviderGenerator.java
@@ -0,0 +1,668 @@
+package org.eclipse.gmf.codegen.templates.lite.providers;
+
+import org.eclipse.gmf.codegen.gmfgen.*;
+import org.eclipse.gmf.common.codegen.*;
+import org.eclipse.gmf.internal.common.codegen.*;
+import org.eclipse.emf.codegen.ecore.genmodel.*;
+
+public class ValidationProviderGenerator
+{
+ protected static String nl;
+ public static synchronized ValidationProviderGenerator create(String lineSeparator)
+ {
+ nl = lineSeparator;
+ ValidationProviderGenerator result = new ValidationProviderGenerator();
+ nl = null;
+ return result;
+ }
+
+ protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
+ protected final String TEXT_1 = "";
+ protected final String TEXT_2 = NL + "/*" + NL + " * ";
+ protected final String TEXT_3 = NL + " */";
+ protected final String TEXT_4 = NL;
+ protected final String TEXT_5 = NL + NL + "/**" + NL + " * @generated" + NL + " */" + NL + "public class ";
+ protected final String TEXT_6 = " {" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static boolean constraintsActive = false;\t" + NL + "\t" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static boolean shouldConstraintsBePrivate() {" + NL + "\t\treturn false;" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class ValidateAction extends Action {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */\t\t" + NL + "\t\tpublic static final String VALIDATE_ACTION_KEY = \"validateAction\"; //$NON-NLS-1$" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate IWorkbenchPart myWorkbenchPart;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ValidateAction(IWorkbenchPart part) {" + NL + "\t\t\tsetId(VALIDATE_ACTION_KEY);" + NL + "\t\t\tsetText(\"Validate\");" + NL + "\t\t\tmyWorkbenchPart = part;" + NL + "\t\t\tsetEnabled(myWorkbenchPart instanceof ";
+ protected final String TEXT_7 = ");" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void run() {" + NL + "\t\t\tif (!isEnabled()) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tfinal ";
+ protected final String TEXT_8 = " part = (";
+ protected final String TEXT_9 = ") myWorkbenchPart;" + NL + "\t\t\ttry {" + NL + "\t\t\t\tnew ";
+ protected final String TEXT_10 = "() {" + NL + "\t\t\t\t\tpublic void run(";
+ protected final String TEXT_11 = " monitor) throws InterruptedException, ";
+ protected final String TEXT_12 = " {" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_13 = " viewer = (";
+ protected final String TEXT_14 = ") part.getAdapter(";
+ protected final String TEXT_15 = ".class);" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_16 = " diagram = part.getDiagram();" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_17 = " viewService;" + NL + "\t\t\t\t\t\tif (viewer == null) {" + NL + "\t\t\t\t\t\t\tviewService = new ";
+ protected final String TEXT_18 = "(diagram);" + NL + "\t\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t\tviewService = new ";
+ protected final String TEXT_19 = "(viewer);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\trunValidation(diagram, viewService);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\t.run(new ";
+ protected final String TEXT_20 = "());" + NL + "\t\t\t} catch (Exception e) {" + NL + "\t\t\t\t";
+ protected final String TEXT_21 = ".getInstance().logError(\"Validation action failed\", e); //$NON-NLS-1$" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static void runValidation(View view, ";
+ protected final String TEXT_22 = " service) {" + NL + "\t\t\tfinal View target = view;" + NL + "\t\t\tfinal ";
+ protected final String TEXT_23 = " viewService = service;" + NL + "\t\t\tRunnable task = new Runnable() {" + NL + "\t\t\t\tpublic void run() {" + NL + "\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\tconstraintsActive = true;" + NL + "\t\t\t\t\t\tvalidate(target, viewService);" + NL + "\t\t\t\t\t} finally {" + NL + "\t\t\t\t\t\tconstraintsActive = false;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t\tTransactionalEditingDomain txDomain = TransactionUtil.getEditingDomain(target);" + NL + "\t\t\tif(txDomain != null) {" + NL + "\t\t\t\ttry {" + NL + "\t\t\t\t\ttxDomain.runExclusive(task);" + NL + "\t\t\t\t} catch (Exception e) {" + NL + "\t\t\t\t\t";
+ protected final String TEXT_24 = ".getInstance().logError(\"Validation action failed\", e); //$NON-NLS-1$" + NL + "\t\t\t\t}" + NL + "\t\t\t} else {" + NL + "\t\t\t\ttask.run();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate static Diagnostic runEMFValidator(View target) {" + NL + "\t\t\tif(target.isSetElement() && target.getElement() != null) {" + NL + "\t\t\t\treturn new Diagnostician().validate(target.getElement());" + NL + "\t\t\t}" + NL + "\t\t\treturn Diagnostic.OK_INSTANCE;" + NL + "\t\t}" + NL + "\t" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate static void validate(View target, ";
+ protected final String TEXT_25 = " viewService) {" + NL + "\t\t\t";
+ protected final String TEXT_26 = " diagramUri = (target.getDiagram() != null) ? ";
+ protected final String TEXT_27 = ".getURI(target.getDiagram()) : null;" + NL + "\t\t\tif (diagramUri != null) {" + NL + "\t\t\t\t";
+ protected final String TEXT_28 = " validationState = ";
+ protected final String TEXT_29 = ".getInstance().getValidationStateManager().getValidationState(diagramUri);" + NL + "\t\t\t\t";
+ protected final String TEXT_30 = " updater = validationState.startUpdate();" + NL + "\t\t\t\ttry {" + NL + "\t\t\t\t\tDiagnostic diagnostic = runEMFValidator(target);" + NL + "\t\t\t\t\tupdate(updater, diagnostic, viewService);" + NL + "\t\t\t\t\tIBatchValidator validator = (IBatchValidator)ModelValidationService.getInstance().newValidator(EvaluationMode.BATCH);" + NL + "\t\t\t\t\tvalidator.setIncludeLiveConstraints(true);" + NL + "\t\t\t\t\tif (target.isSetElement() && target.getElement() != null) {" + NL + "\t\t\t\t\t\tIStatus status = validator.validate(target.getElement());" + NL + "\t\t\t\t\t\tupdate(updater, status, viewService);" + NL + "\t\t\t\t\t}" + NL;
+ protected final String TEXT_31 = NL + "\t\t\t\t\tvalidator.setTraversalStrategy(getNotationTraversalStrategy(validator));" + NL + "\t\t\t\t\tIStatus status = validator.validate(target);" + NL + "\t\t\t\t\tupdate(updater, status, viewService);";
+ protected final String TEXT_32 = NL + "\t\t\t\t\tupdater.commitChanges();" + NL + "\t\t\t\t} catch (Exception e) {" + NL + "\t\t\t\t\tupdater.discardChanges();" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate static void update(";
+ protected final String TEXT_33 = " updater, Diagnostic emfValidationStatus, ";
+ protected final String TEXT_34 = " viewService) {" + NL + "\t\t\tif (emfValidationStatus.getSeverity() == Diagnostic.OK) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tfinal Diagnostic rootStatus = emfValidationStatus;" + NL + "\t\t\t";
+ protected final String TEXT_35 = " allDiagnostics = new ";
+ protected final String TEXT_36 = "();" + NL + "\t\t\tcollectTargetElements(rootStatus, new ";
+ protected final String TEXT_37 = "(), allDiagnostics);" + NL + "\t\t\tfor (";
+ protected final String TEXT_38 = " it = emfValidationStatus.getChildren().iterator(); it.hasNext();) {" + NL + "\t\t\t\tDiagnostic nextDiagnostic = (Diagnostic) it.next();" + NL + "\t\t\t\t";
+ protected final String TEXT_39 = " data = nextDiagnostic.getData();" + NL + "\t\t\t\tif (data != null && !data.isEmpty() && data.get(0) instanceof ";
+ protected final String TEXT_40 = ") {" + NL + "\t\t\t\t\t";
+ protected final String TEXT_41 = " element = (";
+ protected final String TEXT_42 = ") data.get(0);" + NL + "\t\t\t\t\tView view = viewService.findView(element);" + NL + "\t\t\t\t\tif (view != null) {" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_43 = " next = ";
+ protected final String TEXT_44 = ".create(view, nextDiagnostic);" + NL + "\t\t\t\t\t\tif (next != null) {" + NL + "\t\t\t\t\t\t\tupdater.addViolation(next);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t * @elsewhere see XXXMarkerNavigationProvider" + NL + "\t\t */" + NL + "\t\tprivate static void update(";
+ protected final String TEXT_45 = " updater, IStatus validationStatus, ";
+ protected final String TEXT_46 = " viewService) {" + NL + "\t\t\tif (validationStatus.isOK()) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tfinal IStatus rootStatus = validationStatus;" + NL + "\t\t\t";
+ protected final String TEXT_47 = " allStatuses = new ";
+ protected final String TEXT_48 = "();" + NL + "\t\t\tcollectTargetElements(rootStatus, new ";
+ protected final String TEXT_49 = "(), allStatuses);" + NL + "\t\t\tfor (";
+ protected final String TEXT_50 = " it = allStatuses.iterator(); it.hasNext();) {" + NL + "\t\t\t\t";
+ protected final String TEXT_51 = " nextStatus = (";
+ protected final String TEXT_52 = ") it.next();" + NL + "\t\t\t\tView view = viewService.findView(nextStatus.getTarget());" + NL + "\t\t\t\tif (view != null) {" + NL + "\t\t\t\t\t";
+ protected final String TEXT_53 = " next = ";
+ protected final String TEXT_54 = ".create(view, nextStatus);" + NL + "\t\t\t\t\tif (next != null) {" + NL + "\t\t\t\t\t\tupdater.addViolation(next);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate static ";
+ protected final String TEXT_55 = " collectTargetElements(Diagnostic diagnostic, ";
+ protected final String TEXT_56 = " targetElementCollector, ";
+ protected final String TEXT_57 = " allDiagnostics) {" + NL + "\t\t\t";
+ protected final String TEXT_58 = " data = diagnostic.getData();" + NL + "\t\t\tEObject target = null;" + NL + "\t\t\tif (data != null && !data.isEmpty() && data.get(0) instanceof EObject) {" + NL + "\t\t\t\ttarget = (EObject) data.get(0);" + NL + "\t\t\t\ttargetElementCollector.add(target);" + NL + "\t\t\t\tallDiagnostics.add(diagnostic);" + NL + "\t\t\t}" + NL + "\t\t\tif (diagnostic.getChildren() != null && !diagnostic.getChildren().isEmpty()) {" + NL + "\t\t\t\tfor (";
+ protected final String TEXT_59 = " it = diagnostic.getChildren().iterator(); it.hasNext();) {" + NL + "\t\t\t\t\tcollectTargetElements((Diagnostic) it.next(), targetElementCollector, allDiagnostics);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn targetElementCollector;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate static ";
+ protected final String TEXT_60 = " collectTargetElements(IStatus status, ";
+ protected final String TEXT_61 = " targetElementCollector, ";
+ protected final String TEXT_62 = " allConstraintStatuses) {" + NL + "\t\t\tif (status instanceof IConstraintStatus) {" + NL + "\t\t\t\ttargetElementCollector.add(((IConstraintStatus) status).getTarget());" + NL + "\t\t\t\tallConstraintStatuses.add(status);" + NL + "\t\t\t}" + NL + "\t\t\tif (status.isMultiStatus()) {" + NL + "\t\t\t\tIStatus[] children = status.getChildren();" + NL + "\t\t\t\tfor (int i = 0; i < children.length; i++) {" + NL + "\t\t\t\t\tcollectTargetElements(children[i], targetElementCollector, allConstraintStatuses);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn targetElementCollector;" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t* @generated" + NL + "\t*/" + NL + "\tstatic boolean isInDefaultEditorContext(Object object) {" + NL + "\t\tif(shouldCon