Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/org.eclipse.emf.cheatsheets/META-INF/MANIFEST.MF1
-rw-r--r--doc/org.eclipse.emf.examples.jet.article2/META-INF/MANIFEST.MF1
-rw-r--r--examples/org.eclipse.emf.examples.databinding.project.core.model/META-INF/MANIFEST.MF1
-rw-r--r--examples/org.eclipse.emf.examples.databinding.project.core/META-INF/MANIFEST.MF1
-rw-r--r--examples/org.eclipse.emf.examples.databinding.project.ui.rcp/META-INF/MANIFEST.MF1
-rw-r--r--examples/org.eclipse.emf.examples.generator.validator/META-INF/MANIFEST.MF1
-rw-r--r--examples/org.eclipse.emf.examples.generator.validator/src/org/eclipse/emf/examples/generator/validator/templates/model/ModelDescription.java62
-rw-r--r--examples/org.eclipse.emf.examples.library.edit/META-INF/MANIFEST.MF1
-rw-r--r--examples/org.eclipse.emf.examples.library.editor/META-INF/MANIFEST.MF1
-rw-r--r--examples/org.eclipse.emf.examples.library/META-INF/MANIFEST.MF1
-rw-r--r--examples/org.eclipse.emf.exporter.html/META-INF/MANIFEST.MF1
-rw-r--r--examples/org.eclipse.emf.exporter.html/src/org/eclipse/emf/exporter/html/PackageHTML.java399
-rw-r--r--examples/org.eclipse.emf.java.edit/META-INF/MANIFEST.MF1
-rw-r--r--examples/org.eclipse.emf.java.editor/META-INF/MANIFEST.MF1
-rw-r--r--examples/org.eclipse.emf.java/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ant/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore.ui/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore.xtext.ui/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore.xtext/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ItemProvider.java1050
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ItemProviderAdapterFactory.java674
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ManifestMF.java28
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ModuleGWTXML.java3
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/Plugin.java325
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/PluginProperties.java45
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/PluginXML.java176
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/Properties.java95
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ActionBarContributor.java929
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/Advisor.java259
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/AppEngineWebXML.java3
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/BuildProperties.java15
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/Editor.java1842
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/EntryPoint.java89
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ManifestMF.java25
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ModelWizard.java894
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ModuleGWTXML.java3
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/Plugin.java127
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/PluginProperties.java120
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/PluginXML.java445
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/WebXML.java3
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/AdapterFactoryClass.java163
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/Class.java6570
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/EnumClass.java415
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/FactoryClass.java1702
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/ManifestMF.java28
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/ModuleGWTXML.java3
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/PackageClass.java2569
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/Plugin.java135
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/PluginProperties.java3
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/PluginXML.java118
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/ResourceClass.java704
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/ResourceFactoryClass.java206
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/SwitchClass.java285
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/ValidatorClass.java2051
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/XMLProcessorClass.java116
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/tests/ManifestMF.java21
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/tests/ModelTestSuite.java83
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/tests/PackageExample.java348
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/tests/PackageTestSuite.java83
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/tests/PluginXML.java3
-rw-r--r--plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/model/tests/TestCase.java465
-rw-r--r--plugins/org.eclipse.emf.codegen.ui/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.codegen/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.common.ui/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.common.ui/src/org/eclipse/emf/common/ui/viewer/ColumnViewerInformationControlToolTipSupport.java1
-rw-r--r--plugins/org.eclipse.emf.common/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.converter/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.databinding.edit/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.databinding/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore.change.edit/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore.change/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore.edit/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore.editor/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore.xcore.edit/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore.xcore.exporter/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore.xcore.importer/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore.xcore.lib/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore.xcore.ui/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore.xcore/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore.xmi/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.ecore/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.edit.ui/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.edit/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.exporter/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.gwt.common/.project2
-rw-r--r--plugins/org.eclipse.emf.gwt.common/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.gwt.ecore.change/.project2
-rw-r--r--plugins/org.eclipse.emf.gwt.ecore.change/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.gwt.ecore.edit/.project2
-rw-r--r--plugins/org.eclipse.emf.gwt.ecore.edit/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.gwt.ecore/.project2
-rw-r--r--plugins/org.eclipse.emf.gwt.ecore/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.gwt.edit.ui/.project2
-rw-r--r--plugins/org.eclipse.emf.gwt.edit.ui/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.gwt.edit/.project2
-rw-r--r--plugins/org.eclipse.emf.gwt.edit/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.importer.ecore/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.importer.java/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.importer.rose/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.importer/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.mapping.ecore2ecore.editor/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.mapping.ecore2ecore/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.mapping.ecore2xml.ui/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.mapping.ecore2xml/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.mapping.ui/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.mapping/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.oda.ecore.ui/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.emf.oda.ecore/META-INF/MANIFEST.MF1
-rwxr-xr-xplugins/org.eclipse.emf.rap.common.ui/META-INF/MANIFEST.MF1
-rwxr-xr-xplugins/org.eclipse.emf.rap.edit.ui/META-INF/MANIFEST.MF1
-rw-r--r--releng/org.eclipse.emf.releng/EMFDevelopmentEnvironmentConfiguration.setup33
-rw-r--r--releng/org.eclipse.emf.releng/META-INF/MANIFEST.MF1
-rw-r--r--releng/org.eclipse.emf.releng/src/org/eclipse/emf/releng/UpdateSiteIndex.java308
-rw-r--r--tests/org.eclipse.emf.test.codegen.ecore.xtext/META-INF/MANIFEST.MF1
-rw-r--r--tests/org.eclipse.emf.test.common/META-INF/MANIFEST.MF1
-rw-r--r--tests/org.eclipse.emf.test.common/src/org/eclipse/emf/test/common/templates/DiagnosticTestGen.java64
-rw-r--r--tests/org.eclipse.emf.test.core/META-INF/MANIFEST.MF1
-rw-r--r--tests/org.eclipse.emf.test.databinding.edit/META-INF/MANIFEST.MF1
-rw-r--r--tests/org.eclipse.emf.test.databinding/META-INF/MANIFEST.MF1
-rw-r--r--tests/org.eclipse.emf.test.ecore.xcore/META-INF/MANIFEST.MF1
-rw-r--r--tests/org.eclipse.emf.test.edit/META-INF/MANIFEST.MF1
-rw-r--r--tests/org.eclipse.emf.test.examples/META-INF/MANIFEST.MF1
-rw-r--r--tests/org.eclipse.emf.test.tools/META-INF/MANIFEST.MF1
-rw-r--r--tests/org.eclipse.emf.test.xml/META-INF/MANIFEST.MF1
125 files changed, 10524 insertions, 13647 deletions
diff --git a/doc/org.eclipse.emf.cheatsheets/META-INF/MANIFEST.MF b/doc/org.eclipse.emf.cheatsheets/META-INF/MANIFEST.MF
index a48fec8de..c36fb6186 100644
--- a/doc/org.eclipse.emf.cheatsheets/META-INF/MANIFEST.MF
+++ b/doc/org.eclipse.emf.cheatsheets/META-INF/MANIFEST.MF
@@ -23,3 +23,4 @@ Eclipse-LazyStart: true
Export-Package: org.eclipse.emf.cheatsheets,
org.eclipse.emf.cheatsheets.actions
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.cheatsheets
diff --git a/doc/org.eclipse.emf.examples.jet.article2/META-INF/MANIFEST.MF b/doc/org.eclipse.emf.examples.jet.article2/META-INF/MANIFEST.MF
index 775d15227..35ffa8ecd 100644
--- a/doc/org.eclipse.emf.examples.jet.article2/META-INF/MANIFEST.MF
+++ b/doc/org.eclipse.emf.examples.jet.article2/META-INF/MANIFEST.MF
@@ -24,3 +24,4 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.emf.common.ui;bundle-version="[2.13.0,3.0.0)"
Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.examples.jet.article2
diff --git a/examples/org.eclipse.emf.examples.databinding.project.core.model/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.examples.databinding.project.core.model/META-INF/MANIFEST.MF
index ffb4bdc5a..aa3104b4f 100644
--- a/examples/org.eclipse.emf.examples.databinding.project.core.model/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.examples.databinding.project.core.model/META-INF/MANIFEST.MF
@@ -13,3 +13,4 @@ Export-Package: org.eclipse.emf.examples.databinding.project.core.model.project,
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.emf.ecore;bundle-version="[2.14.0,3.0.0)";visibility:=reexport
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.examples.databinding.project.core.model
diff --git a/examples/org.eclipse.emf.examples.databinding.project.core/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.examples.databinding.project.core/META-INF/MANIFEST.MF
index 5c41e52d9..bd4b962d7 100644
--- a/examples/org.eclipse.emf.examples.databinding.project.core/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.examples.databinding.project.core/META-INF/MANIFEST.MF
@@ -14,3 +14,4 @@ Bundle-RequiredExecutionEnvironment: J2SE-1.5
Export-Package: org.eclipse.emf.examples.databinding.project.core
Service-Component: META-INF/component.xml, META-INF/xmiprovider.xml
Import-Package: org.eclipse.emf.examples.databinding.project.core.model.project
+Automatic-Module-Name: org.eclipse.emf.examples.databinding.project.core
diff --git a/examples/org.eclipse.emf.examples.databinding.project.ui.rcp/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.examples.databinding.project.ui.rcp/META-INF/MANIFEST.MF
index 782e1c0de..95c19b1be 100644
--- a/examples/org.eclipse.emf.examples.databinding.project.ui.rcp/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.examples.databinding.project.ui.rcp/META-INF/MANIFEST.MF
@@ -25,3 +25,4 @@ Export-Package: org.eclipse.emf.example.databinding.project.ui.rcp,
org.eclipse.emf.example.databinding.project.ui.rcp.dialogs,
org.eclipse.emf.example.databinding.project.ui.rcp.handlers,
org.eclipse.emf.example.databinding.project.ui.rcp.views
+Automatic-Module-Name: org.eclipse.emf.examples.databinding.project.ui.rcp
diff --git a/examples/org.eclipse.emf.examples.generator.validator/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.examples.generator.validator/META-INF/MANIFEST.MF
index cc5e24053..9ea1575e8 100644
--- a/examples/org.eclipse.emf.examples.generator.validator/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.examples.generator.validator/META-INF/MANIFEST.MF
@@ -15,3 +15,4 @@ Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.emf.examples.generator.validator,
org.eclipse.emf.examples.generator.validator.templates.model
+Automatic-Module-Name: org.eclipse.emf.examples.generator.validator
diff --git a/examples/org.eclipse.emf.examples.generator.validator/src/org/eclipse/emf/examples/generator/validator/templates/model/ModelDescription.java b/examples/org.eclipse.emf.examples.generator.validator/src/org/eclipse/emf/examples/generator/validator/templates/model/ModelDescription.java
index 7a1d73df1..672062425 100644
--- a/examples/org.eclipse.emf.examples.generator.validator/src/org/eclipse/emf/examples/generator/validator/templates/model/ModelDescription.java
+++ b/examples/org.eclipse.emf.examples.generator.validator/src/org/eclipse/emf/examples/generator/validator/templates/model/ModelDescription.java
@@ -23,23 +23,17 @@ public class ModelDescription
protected final String TEXT_6 = ">";
protected final String TEXT_7 = NL;
protected final String TEXT_8 = NL + "Package ";
- protected final String TEXT_9 = " <";
- protected final String TEXT_10 = ">" + NL;
- protected final String TEXT_11 = NL + " Class ";
- protected final String TEXT_12 = NL + " ";
- protected final String TEXT_13 = " ";
- protected final String TEXT_14 = "/";
- protected final String TEXT_15 = " : ";
- protected final String TEXT_16 = NL + " Operation ";
- protected final String TEXT_17 = " : ";
- protected final String TEXT_18 = NL;
- protected final String TEXT_19 = NL + " Enum ";
- protected final String TEXT_20 = NL + " Literal ";
- protected final String TEXT_21 = " = ";
- protected final String TEXT_22 = NL;
- protected final String TEXT_23 = NL + " DataType ";
- protected final String TEXT_24 = " <";
- protected final String TEXT_25 = ">" + NL;
+ protected final String TEXT_9 = ">" + NL;
+ protected final String TEXT_10 = NL + " Class ";
+ protected final String TEXT_11 = NL + " ";
+ protected final String TEXT_12 = " ";
+ protected final String TEXT_13 = "/";
+ protected final String TEXT_14 = " : ";
+ protected final String TEXT_15 = NL + " Operation ";
+ protected final String TEXT_16 = NL + " Enum ";
+ protected final String TEXT_17 = NL + " Literal ";
+ protected final String TEXT_18 = " = ";
+ protected final String TEXT_19 = NL + " DataType ";
public String generate(Object argument)
{
@@ -62,50 +56,50 @@ public class ModelDescription
for (GenPackage genPackage : genModel.getGenPackages()) {
stringBuffer.append(TEXT_8);
stringBuffer.append(genPackage.getPackageName());
- stringBuffer.append(TEXT_9);
+ stringBuffer.append(TEXT_5);
stringBuffer.append(genPackage.getNSURI());
- stringBuffer.append(TEXT_10);
+ stringBuffer.append(TEXT_9);
for (GenClassifier genClassifier : genPackage.getGenClassifiers()) {
if (genClassifier instanceof GenClass) { GenClass genClass = (GenClass)genClassifier;
- stringBuffer.append(TEXT_11);
+ stringBuffer.append(TEXT_10);
stringBuffer.append(genClass.getName());
stringBuffer.append(ValidatorGeneratorUtil.getSuperTypesExpression(genClass));
for (GenFeature genFeature : genClass.getGenFeatures()) {
String keyword = genFeature.isReferenceType() ? "Reference" : "Attribute";
- stringBuffer.append(TEXT_12);
+ stringBuffer.append(TEXT_11);
stringBuffer.append(keyword);
- stringBuffer.append(TEXT_13);
+ stringBuffer.append(TEXT_12);
if (genFeature.isDerived()) {
- stringBuffer.append(TEXT_14);
+ stringBuffer.append(TEXT_13);
}
stringBuffer.append(genFeature.getName());
- stringBuffer.append(TEXT_15);
+ stringBuffer.append(TEXT_14);
stringBuffer.append(ValidatorGeneratorUtil.getTypeExpression(genFeature));
}
for (GenOperation genOperation : genClass.getGenOperations()) {
- stringBuffer.append(TEXT_16);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genOperation.getName());
stringBuffer.append(ValidatorGeneratorUtil.getParameterExpression(genOperation));
- stringBuffer.append(TEXT_17);
+ stringBuffer.append(TEXT_14);
stringBuffer.append(ValidatorGeneratorUtil.getTypeExpression(genOperation));
}
- stringBuffer.append(TEXT_18);
+ stringBuffer.append(TEXT_7);
} else if (genClassifier instanceof GenEnum) { GenEnum genEnum = (GenEnum)genClassifier;
- stringBuffer.append(TEXT_19);
+ stringBuffer.append(TEXT_16);
stringBuffer.append(genEnum.getName());
for (GenEnumLiteral genEnumLiteral : genEnum.getGenEnumLiterals()) {
- stringBuffer.append(TEXT_20);
+ stringBuffer.append(TEXT_17);
stringBuffer.append(genEnumLiteral.getName());
- stringBuffer.append(TEXT_21);
+ stringBuffer.append(TEXT_18);
stringBuffer.append(genEnumLiteral.getValue());
}
- stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_7);
} else if (genClassifier instanceof GenDataType) { GenDataType genDataType = (GenDataType)genClassifier;
- stringBuffer.append(TEXT_23);
+ stringBuffer.append(TEXT_19);
stringBuffer.append(genDataType.getName());
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_5);
stringBuffer.append(genDataType.getEcoreDataType().getInstanceClassName());
- stringBuffer.append(TEXT_25);
+ stringBuffer.append(TEXT_9);
}
}
}
diff --git a/examples/org.eclipse.emf.examples.library.edit/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.examples.library.edit/META-INF/MANIFEST.MF
index 6e0cfb7fb..bf5cc5021 100644
--- a/examples/org.eclipse.emf.examples.library.edit/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.examples.library.edit/META-INF/MANIFEST.MF
@@ -14,3 +14,4 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.emf.edit;bundle-version="[2.13.0,3.0.0)";visibility:=reexport
Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.examples.library.edit
diff --git a/examples/org.eclipse.emf.examples.library.editor/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.examples.library.editor/META-INF/MANIFEST.MF
index 73bf249fb..ef4233a1b 100644
--- a/examples/org.eclipse.emf.examples.library.editor/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.examples.library.editor/META-INF/MANIFEST.MF
@@ -19,3 +19,4 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.ui.ide;bundle-version="[3.6.0,4.0.0)";visibility:=reexport
Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.examples.library.editor
diff --git a/examples/org.eclipse.emf.examples.library/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.examples.library/META-INF/MANIFEST.MF
index e052ea324..521e0812a 100644
--- a/examples/org.eclipse.emf.examples.library/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.examples.library/META-INF/MANIFEST.MF
@@ -15,3 +15,4 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.emf.ecore.xmi;bundle-version="[2.14.0,3.0.0)";visibility:=reexport
Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.examples.library
diff --git a/examples/org.eclipse.emf.exporter.html/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.exporter.html/META-INF/MANIFEST.MF
index 21b5ae649..79a9991d8 100644
--- a/examples/org.eclipse.emf.exporter.html/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.exporter.html/META-INF/MANIFEST.MF
@@ -16,4 +16,5 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.core.resources;bundle-version="[3.6.0,4.0.0)";resolution:=optional
Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.exporter.html
diff --git a/examples/org.eclipse.emf.exporter.html/src/org/eclipse/emf/exporter/html/PackageHTML.java b/examples/org.eclipse.emf.exporter.html/src/org/eclipse/emf/exporter/html/PackageHTML.java
index 9c69edc72..b7cfb96f8 100644
--- a/examples/org.eclipse.emf.exporter.html/src/org/eclipse/emf/exporter/html/PackageHTML.java
+++ b/examples/org.eclipse.emf.exporter.html/src/org/eclipse/emf/exporter/html/PackageHTML.java
@@ -34,124 +34,51 @@ public class PackageHTML
protected final String TEXT_14 = "</td>" + NL + "\t\t\t\t</tr>" + NL + "\t\t\t\t<tr>" + NL + "\t\t\t\t\t<td>Namespace Prefix</td>" + NL + "\t\t\t\t\t<td>";
protected final String TEXT_15 = "</td>" + NL + "\t\t\t\t</tr>" + NL + "\t\t";
protected final String TEXT_16 = NL + "\t\t\t\t<tr>" + NL + "\t\t\t\t\t<td>Documentation</td>" + NL + "\t\t\t\t\t<td>";
- protected final String TEXT_17 = "</td>" + NL + "\t\t\t\t</tr>" + NL + "\t\t";
- protected final String TEXT_18 = NL + "\t\t\t</table>" + NL + "" + NL + "\t\t\t<p><input type=\"checkbox\" onclick=\"javascript:selectAllChechboxes(document.packform.detailCheckbox, this.checked)\"/>expand all details</p>" + NL;
- protected final String TEXT_19 = NL + "\t\t<h1>Classes</h1>";
- protected final String TEXT_20 = NL + "\t\t\t<h2>";
- protected final String TEXT_21 = "</h2>" + NL + "\t\t";
- protected final String TEXT_22 = NL + "\t\t\t\t<h3>Documentation</h3>" + NL + "\t\t\t\t\t";
- protected final String TEXT_23 = NL + "\t\t";
- protected final String TEXT_24 = NL + "\t\t\t\t<h3>Details</h3>" + NL + "\t\t\t\t<dt>" + NL + "\t\t\t\t\t<dd><table class=\"details\">";
- protected final String TEXT_25 = NL + "\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_26 = "\"><td class=\"left\">constraints</td><td class=\"right\">";
- protected final String TEXT_27 = "</td></tr>";
- protected final String TEXT_28 = NL + "\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_29 = "\"><td class=\"left\">";
- protected final String TEXT_30 = "</td><td class=\"right\"><tt>";
- protected final String TEXT_31 = "</tt></td></tr>";
- protected final String TEXT_32 = NL + "\t\t\t\t\t</table></dd>" + NL + "\t\t\t\t</dt>" + NL + "\t\t";
- protected final String TEXT_33 = NL + "\t\t\t\t<h3>Super Classes</h3>" + NL + "\t\t\t\t\t<ul>";
- protected final String TEXT_34 = NL + "\t\t\t\t\t\t<li><tt>";
- protected final String TEXT_35 = "</tt></li>";
- protected final String TEXT_36 = NL + "\t\t\t\t\t</ul>" + NL + "\t\t";
- protected final String TEXT_37 = NL + "\t\t";
- protected final String TEXT_38 = NL + "\t\t\t\t<h3>Attributes</h3>" + NL + "\t\t\t\t\t<ul>";
- protected final String TEXT_39 = NL + "\t\t\t\t\t\t<li>" + NL + "\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"detailCheckbox\" value=\"detail";
- protected final String TEXT_40 = "\" onclick=\"javascript:openSection(this.value, this.checked)\"/> ";
- protected final String TEXT_41 = NL + "\t\t\t\t\t\t\t<div id=\"detail";
- protected final String TEXT_42 = "\" name=\"detail";
- protected final String TEXT_43 = "\" style=\"overflow:hidden;display:none\">" + NL + "\t\t\t\t\t\t\t\t<table class=\"details\">";
- protected final String TEXT_44 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"documentation\"><td class=\"left\" colspan=\"2\">";
- protected final String TEXT_45 = "</td></tr>";
- protected final String TEXT_46 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_47 = "\"><td class=\"left\">constraints</td><td class=\"right\">";
- protected final String TEXT_48 = "</td></tr>";
- protected final String TEXT_49 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_50 = "\"><td class=\"left\">";
- protected final String TEXT_51 = "</td><td class=\"right\"><tt>";
- protected final String TEXT_52 = "</tt></td></tr>";
- protected final String TEXT_53 = NL + "\t\t\t\t\t\t\t\t</table><br />" + NL + "\t\t\t\t\t\t\t</div>" + NL + "\t\t\t\t\t\t</li>";
- protected final String TEXT_54 = NL + "\t\t\t\t\t</ul>" + NL + "\t\t";
- protected final String TEXT_55 = NL + "\t\t";
- protected final String TEXT_56 = NL + "\t\t\t\t<h3>References</h3>" + NL + "\t\t\t\t\t<ul>";
- protected final String TEXT_57 = NL + "\t\t\t\t\t\t<li>" + NL + "\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"detailCheckbox\" value=\"detail";
- protected final String TEXT_58 = "\" onclick=\"javascript:openSection(this.value, this.checked)\"/> ";
- protected final String TEXT_59 = NL + "\t\t\t\t\t\t\t<div id=\"detail";
- protected final String TEXT_60 = "\" name=\"detail";
- protected final String TEXT_61 = "\" style=\"overflow:hidden;display:none\">" + NL + "\t\t\t\t\t\t\t\t<table class=\"details\">";
- protected final String TEXT_62 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"documentation\"><td class=\"left\" colspan=\"2\">";
- protected final String TEXT_63 = "</td></tr>";
- protected final String TEXT_64 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_65 = "\"><td class=\"left\">constraints</td><td class=\"right\">";
- protected final String TEXT_66 = "</td></tr>";
- protected final String TEXT_67 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_68 = "\"><td class=\"left\">opposite</td><td class=\"right\">";
- protected final String TEXT_69 = "</td></tr> ";
- protected final String TEXT_70 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_71 = "\"><td class=\"left\">key(s)</td><td class=\"right\">";
- protected final String TEXT_72 = "</td></tr> ";
- protected final String TEXT_73 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_74 = "\"><td class=\"left\">";
- protected final String TEXT_75 = "</td><td class=\"right\"><tt>";
- protected final String TEXT_76 = "</tt></td></tr>";
- protected final String TEXT_77 = NL + "\t\t\t\t\t\t\t\t</table><br />" + NL + "\t\t\t\t\t\t\t</div>" + NL + "\t\t\t\t\t\t</li>";
- protected final String TEXT_78 = NL + "\t\t\t\t\t</ul>" + NL + "\t\t";
- protected final String TEXT_79 = NL + "\t\t";
- protected final String TEXT_80 = NL + "\t\t\t\t<h3>Operations</h3>" + NL + "\t\t\t\t\t<ul>";
- protected final String TEXT_81 = NL + "\t\t\t\t\t\t<li>" + NL + "\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"detailCheckbox\" value=\"detail";
- protected final String TEXT_82 = "\" onclick=\"javascript:openSection(this.value, this.checked)\"/> ";
- protected final String TEXT_83 = NL + "\t\t\t\t\t\t\t<div id=\"detail";
- protected final String TEXT_84 = "\" name=\"detail";
- protected final String TEXT_85 = "\" style=\"overflow:hidden;display:none\">" + NL + "\t\t\t\t\t\t\t\t<table class=\"details\">";
- protected final String TEXT_86 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"documentation\"><td class=\"left\" colspan=\"2\">";
- protected final String TEXT_87 = "</td></tr>";
- protected final String TEXT_88 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_89 = "\"><td class=\"left\">constraints</td><td class=\"right\">";
- protected final String TEXT_90 = "</td></tr>";
- protected final String TEXT_91 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_92 = "\"><td class=\"left\">";
- protected final String TEXT_93 = "</td><td class=\"right\"><tt>";
- protected final String TEXT_94 = "</tt></td></tr>";
- protected final String TEXT_95 = NL + "\t\t\t\t\t\t\t\t</table><br />" + NL + "\t\t\t\t\t\t\t</div>" + NL + "\t\t\t\t\t\t</li>";
- protected final String TEXT_96 = NL + "\t\t\t\t\t</ul>" + NL + "\t\t";
- protected final String TEXT_97 = NL + "\t";
- protected final String TEXT_98 = NL;
- protected final String TEXT_99 = "\t\t" + NL + "\t\t<h1>Enumerations</h1>";
- protected final String TEXT_100 = NL + "\t\t\t<h2><a name=\"";
- protected final String TEXT_101 = "\">";
- protected final String TEXT_102 = "</a></h2>";
- protected final String TEXT_103 = NL + "\t\t";
- protected final String TEXT_104 = NL + "\t\t\t\t<h3>Documentation</h3>" + NL + "\t\t\t\t\t";
- protected final String TEXT_105 = NL + "\t\t";
- protected final String TEXT_106 = NL + "\t\t\t\t<h3>Literals</h3>" + NL + "\t\t\t\t\t<ul>";
- protected final String TEXT_107 = NL + "\t\t\t\t\t\t<li>" + NL + "\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"detailCheckbox\" value=\"detail";
- protected final String TEXT_108 = "\" onclick=\"javascript:openSection(this.value, this.checked)\"/> ";
- protected final String TEXT_109 = NL + "\t\t\t\t\t\t\t<div id=\"detail";
- protected final String TEXT_110 = "\" name=\"detail";
- protected final String TEXT_111 = "\" style=\"overflow:hidden;display:none\">" + NL + "\t\t\t\t\t\t\t\t<table class=\"details\">";
- protected final String TEXT_112 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"documentation\"><td class=\"left\" colspan=\"2\">";
- protected final String TEXT_113 = "</td></tr>";
- protected final String TEXT_114 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_115 = "\"><td class=\"left\">";
- protected final String TEXT_116 = "</td><td class=\"right\"><tt>";
- protected final String TEXT_117 = "</tt></td></tr>";
- protected final String TEXT_118 = NL + "\t\t\t\t\t\t\t\t</table><br />" + NL + "\t\t\t\t\t\t\t</div>" + NL + "\t\t\t\t\t\t</li>";
- protected final String TEXT_119 = NL + "\t\t\t\t\t</ul>";
- protected final String TEXT_120 = NL;
- protected final String TEXT_121 = "\t\t" + NL + "\t\t<h1>Data Types</h1>";
- protected final String TEXT_122 = NL + "\t\t\t<h2>";
- protected final String TEXT_123 = "</h2>" + NL + "\t\t";
- protected final String TEXT_124 = NL + "\t\t\t\t<h3>Documentation</h3>" + NL + "\t\t\t\t\t";
- protected final String TEXT_125 = NL + "\t\t";
- protected final String TEXT_126 = NL + "\t\t\t\t<h3>Details</h3>" + NL + "\t\t\t\t<dt>" + NL + "\t\t\t\t\t<dd>" + NL + "\t\t\t\t\t\t<table class=\"details\">";
- protected final String TEXT_127 = NL + "\t\t\t\t\t\t\t<tr class=\"";
- protected final String TEXT_128 = "\"><td class=\"left\">";
- protected final String TEXT_129 = "</td><td class=\"right\"><tt>";
- protected final String TEXT_130 = "</tt></td></tr>";
- protected final String TEXT_131 = NL + "\t\t\t\t\t\t</table>" + NL + "\t\t\t\t\t</dd>";
- protected final String TEXT_132 = NL + "\t\t\t\t</dt>";
- protected final String TEXT_133 = NL + "\t</form></body>" + NL + "</html>";
- protected final String TEXT_134 = NL;
+ protected final String TEXT_17 = NL + "\t\t\t</table>" + NL + "" + NL + "\t\t\t<p><input type=\"checkbox\" onclick=\"javascript:selectAllChechboxes(document.packform.detailCheckbox, this.checked)\"/>expand all details</p>" + NL;
+ protected final String TEXT_18 = NL + "\t\t<h1>Classes</h1>";
+ protected final String TEXT_19 = NL + "\t\t\t<h2>";
+ protected final String TEXT_20 = "</h2>" + NL + "\t\t";
+ protected final String TEXT_21 = NL + "\t\t\t\t<h3>Documentation</h3>" + NL + "\t\t\t\t\t";
+ protected final String TEXT_22 = NL + "\t\t";
+ protected final String TEXT_23 = NL + "\t\t\t\t<h3>Details</h3>" + NL + "\t\t\t\t<dt>" + NL + "\t\t\t\t\t<dd><table class=\"details\">";
+ protected final String TEXT_24 = NL + "\t\t\t\t\t\t<tr class=\"";
+ protected final String TEXT_25 = "\"><td class=\"left\">constraints</td><td class=\"right\">";
+ protected final String TEXT_26 = "</td></tr>";
+ protected final String TEXT_27 = "\"><td class=\"left\">";
+ protected final String TEXT_28 = "</td><td class=\"right\"><tt>";
+ protected final String TEXT_29 = "</tt></td></tr>";
+ protected final String TEXT_30 = NL + "\t\t\t\t\t</table></dd>" + NL + "\t\t\t\t</dt>" + NL + "\t\t";
+ protected final String TEXT_31 = NL + "\t\t\t\t<h3>Super Classes</h3>" + NL + "\t\t\t\t\t<ul>";
+ protected final String TEXT_32 = NL + "\t\t\t\t\t\t<li><tt>";
+ protected final String TEXT_33 = "</tt></li>";
+ protected final String TEXT_34 = NL + "\t\t\t\t\t</ul>" + NL + "\t\t";
+ protected final String TEXT_35 = NL + "\t\t\t\t<h3>Attributes</h3>" + NL + "\t\t\t\t\t<ul>";
+ protected final String TEXT_36 = NL + "\t\t\t\t\t\t<li>" + NL + "\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"detailCheckbox\" value=\"detail";
+ protected final String TEXT_37 = "\" onclick=\"javascript:openSection(this.value, this.checked)\"/> ";
+ protected final String TEXT_38 = NL + "\t\t\t\t\t\t\t<div id=\"detail";
+ protected final String TEXT_39 = "\" name=\"detail";
+ protected final String TEXT_40 = "\" style=\"overflow:hidden;display:none\">" + NL + "\t\t\t\t\t\t\t\t<table class=\"details\">";
+ protected final String TEXT_41 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"documentation\"><td class=\"left\" colspan=\"2\">";
+ protected final String TEXT_42 = NL + "\t\t\t\t\t\t\t\t\t<tr class=\"";
+ protected final String TEXT_43 = NL + "\t\t\t\t\t\t\t\t</table><br />" + NL + "\t\t\t\t\t\t\t</div>" + NL + "\t\t\t\t\t\t</li>";
+ protected final String TEXT_44 = NL + "\t\t\t\t<h3>References</h3>" + NL + "\t\t\t\t\t<ul>";
+ protected final String TEXT_45 = "\"><td class=\"left\">opposite</td><td class=\"right\">";
+ protected final String TEXT_46 = "</td></tr> ";
+ protected final String TEXT_47 = "\"><td class=\"left\">key(s)</td><td class=\"right\">";
+ protected final String TEXT_48 = NL + "\t\t\t\t<h3>Operations</h3>" + NL + "\t\t\t\t\t<ul>";
+ protected final String TEXT_49 = NL + "\t";
+ protected final String TEXT_50 = NL;
+ protected final String TEXT_51 = "\t\t" + NL + "\t\t<h1>Enumerations</h1>";
+ protected final String TEXT_52 = NL + "\t\t\t<h2><a name=\"";
+ protected final String TEXT_53 = "</a></h2>";
+ protected final String TEXT_54 = NL + "\t\t\t\t<h3>Literals</h3>" + NL + "\t\t\t\t\t<ul>";
+ protected final String TEXT_55 = NL + "\t\t\t\t\t</ul>";
+ protected final String TEXT_56 = "\t\t" + NL + "\t\t<h1>Data Types</h1>";
+ protected final String TEXT_57 = NL + "\t\t\t\t<h3>Details</h3>" + NL + "\t\t\t\t<dt>" + NL + "\t\t\t\t\t<dd>" + NL + "\t\t\t\t\t\t<table class=\"details\">";
+ protected final String TEXT_58 = NL + "\t\t\t\t\t\t\t<tr class=\"";
+ protected final String TEXT_59 = NL + "\t\t\t\t\t\t</table>" + NL + "\t\t\t\t\t</dd>";
+ protected final String TEXT_60 = NL + "\t\t\t\t</dt>";
+ protected final String TEXT_61 = NL + "\t</form></body>" + NL + "</html>";
public String generate(Object argument)
{
@@ -203,246 +130,246 @@ public class PackageHTML
String packageDocumentation = EcoreUtil.getDocumentation(ePackage); if (packageDocumentation != null) {
stringBuffer.append(TEXT_16);
stringBuffer.append(htmlExporter.getLongText(packageDocumentation));
- stringBuffer.append(TEXT_17);
+ stringBuffer.append(TEXT_15);
}
- stringBuffer.append(TEXT_18);
+ stringBuffer.append(TEXT_17);
int detailsCounter=0; Collection<EClass> eClasses = EcoreUtil.getObjectsByType(ePackage.getEClassifiers(), EcorePackage.Literals.ECLASS);
if (!eClasses.isEmpty()) {
- stringBuffer.append(TEXT_19);
+ stringBuffer.append(TEXT_18);
for (EClass eClass : eClasses) {
- stringBuffer.append(TEXT_20);
+ stringBuffer.append(TEXT_19);
stringBuffer.append(htmlExporter.computeClassifierLabel(eClass));
- stringBuffer.append(TEXT_21);
+ stringBuffer.append(TEXT_20);
String classDocumentation = EcoreUtil.getDocumentation(eClass); if (classDocumentation != null) {
- stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_21);
stringBuffer.append(htmlExporter.getLongText(classDocumentation));
- stringBuffer.append(TEXT_23);
+ stringBuffer.append(TEXT_22);
}
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_23);
int row=0; String classConstraints = htmlExporter.computeConstraints(eClass); if (classConstraints != null) {
- stringBuffer.append(TEXT_25);
+ stringBuffer.append(TEXT_24);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_26);
+ stringBuffer.append(TEXT_25);
stringBuffer.append(classConstraints);
- stringBuffer.append(TEXT_27);
+ stringBuffer.append(TEXT_26);
} for (EStructuralFeature detail : htmlExporter.getDetails(eClass)) {
- stringBuffer.append(TEXT_28);
+ stringBuffer.append(TEXT_24);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_29);
+ stringBuffer.append(TEXT_27);
stringBuffer.append(detail.getName());
- stringBuffer.append(TEXT_30);
+ stringBuffer.append(TEXT_28);
stringBuffer.append(HTMLExporter.escape(eClass.eGet(detail).toString()));
- stringBuffer.append(TEXT_31);
+ stringBuffer.append(TEXT_29);
}
- stringBuffer.append(TEXT_32);
+ stringBuffer.append(TEXT_30);
if (!eClass.getEGenericSuperTypes().isEmpty()) {
- stringBuffer.append(TEXT_33);
+ stringBuffer.append(TEXT_31);
for (EGenericType eSuperType : eClass.getEGenericSuperTypes()) {
- stringBuffer.append(TEXT_34);
+ stringBuffer.append(TEXT_32);
stringBuffer.append(htmlExporter.computeLabel(eSuperType));
- stringBuffer.append(TEXT_35);
+ stringBuffer.append(TEXT_33);
}
- stringBuffer.append(TEXT_36);
+ stringBuffer.append(TEXT_34);
}
- stringBuffer.append(TEXT_37);
+ stringBuffer.append(TEXT_22);
if (!eClass.getEAttributes().isEmpty()) {
- stringBuffer.append(TEXT_38);
+ stringBuffer.append(TEXT_35);
for (EAttribute eAttribute : eClass.getEAttributes()) {
- stringBuffer.append(TEXT_39);
+ stringBuffer.append(TEXT_36);
stringBuffer.append(++detailsCounter);
- stringBuffer.append(TEXT_40);
+ stringBuffer.append(TEXT_37);
stringBuffer.append(htmlExporter.computeTypedElementLabel(eAttribute));
- stringBuffer.append(TEXT_41);
+ stringBuffer.append(TEXT_38);
stringBuffer.append(detailsCounter);
- stringBuffer.append(TEXT_42);
+ stringBuffer.append(TEXT_39);
stringBuffer.append(detailsCounter);
- stringBuffer.append(TEXT_43);
+ stringBuffer.append(TEXT_40);
String attributeDocumentation = EcoreUtil.getDocumentation(eAttribute); if (attributeDocumentation != null) {
- stringBuffer.append(TEXT_44);
+ stringBuffer.append(TEXT_41);
stringBuffer.append(attributeDocumentation);
- stringBuffer.append(TEXT_45);
+ stringBuffer.append(TEXT_26);
} row=0; String attributeConstraints = htmlExporter.computeConstraints(eAttribute); if (attributeConstraints != null) {
- stringBuffer.append(TEXT_46);
+ stringBuffer.append(TEXT_42);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_47);
+ stringBuffer.append(TEXT_25);
stringBuffer.append(attributeConstraints);
- stringBuffer.append(TEXT_48);
+ stringBuffer.append(TEXT_26);
} for (EStructuralFeature detail : htmlExporter.getDetails(eAttribute)) {
- stringBuffer.append(TEXT_49);
+ stringBuffer.append(TEXT_42);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_50);
+ stringBuffer.append(TEXT_27);
stringBuffer.append(detail.getName());
- stringBuffer.append(TEXT_51);
+ stringBuffer.append(TEXT_28);
stringBuffer.append(eAttribute.eGet(detail));
- stringBuffer.append(TEXT_52);
+ stringBuffer.append(TEXT_29);
}
- stringBuffer.append(TEXT_53);
+ stringBuffer.append(TEXT_43);
}
- stringBuffer.append(TEXT_54);
+ stringBuffer.append(TEXT_34);
}
- stringBuffer.append(TEXT_55);
+ stringBuffer.append(TEXT_22);
if (!eClass.getEReferences().isEmpty()) {
- stringBuffer.append(TEXT_56);
+ stringBuffer.append(TEXT_44);
for (EReference eReference : eClass.getEReferences()) {
- stringBuffer.append(TEXT_57);
+ stringBuffer.append(TEXT_36);
stringBuffer.append(++detailsCounter);
- stringBuffer.append(TEXT_58);
+ stringBuffer.append(TEXT_37);
stringBuffer.append(htmlExporter.computeTypedElementLabel(eReference));
- stringBuffer.append(TEXT_59);
+ stringBuffer.append(TEXT_38);
stringBuffer.append(detailsCounter);
- stringBuffer.append(TEXT_60);
+ stringBuffer.append(TEXT_39);
stringBuffer.append(detailsCounter);
- stringBuffer.append(TEXT_61);
+ stringBuffer.append(TEXT_40);
String referenceDocumentation = EcoreUtil.getDocumentation(eReference); if (referenceDocumentation != null) {
- stringBuffer.append(TEXT_62);
+ stringBuffer.append(TEXT_41);
stringBuffer.append(referenceDocumentation);
- stringBuffer.append(TEXT_63);
+ stringBuffer.append(TEXT_26);
} row=0; String referenceConstraints = htmlExporter.computeConstraints(eReference); if (referenceConstraints != null) {
- stringBuffer.append(TEXT_64);
+ stringBuffer.append(TEXT_42);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_65);
+ stringBuffer.append(TEXT_25);
stringBuffer.append(referenceConstraints);
- stringBuffer.append(TEXT_66);
+ stringBuffer.append(TEXT_26);
} if (eReference.getEOpposite() != null) {
- stringBuffer.append(TEXT_67);
+ stringBuffer.append(TEXT_42);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_68);
+ stringBuffer.append(TEXT_45);
stringBuffer.append(htmlExporter.computeLabel(eReference.getEOpposite()));
- stringBuffer.append(TEXT_69);
+ stringBuffer.append(TEXT_46);
} if (!eReference.getEKeys().isEmpty()) {
- stringBuffer.append(TEXT_70);
+ stringBuffer.append(TEXT_42);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_71);
+ stringBuffer.append(TEXT_47);
stringBuffer.append(htmlExporter.computeEKeys(eReference));
- stringBuffer.append(TEXT_72);
+ stringBuffer.append(TEXT_46);
} for (EStructuralFeature detail : htmlExporter.getDetails(eReference)) {
- stringBuffer.append(TEXT_73);
+ stringBuffer.append(TEXT_42);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_74);
+ stringBuffer.append(TEXT_27);
stringBuffer.append(detail.getName());
- stringBuffer.append(TEXT_75);
+ stringBuffer.append(TEXT_28);
stringBuffer.append(eReference.eGet(detail));
- stringBuffer.append(TEXT_76);
+ stringBuffer.append(TEXT_29);
}
- stringBuffer.append(TEXT_77);
+ stringBuffer.append(TEXT_43);
}
- stringBuffer.append(TEXT_78);
+ stringBuffer.append(TEXT_34);
}
- stringBuffer.append(TEXT_79);
+ stringBuffer.append(TEXT_22);
if (!eClass.getEOperations().isEmpty()) {
- stringBuffer.append(TEXT_80);
+ stringBuffer.append(TEXT_48);
for (EOperation eOperation : eClass.getEOperations()) {
- stringBuffer.append(TEXT_81);
+ stringBuffer.append(TEXT_36);
stringBuffer.append(++detailsCounter);
- stringBuffer.append(TEXT_82);
+ stringBuffer.append(TEXT_37);
stringBuffer.append(htmlExporter.computeLabel(eOperation));
- stringBuffer.append(TEXT_83);
+ stringBuffer.append(TEXT_38);
stringBuffer.append(detailsCounter);
- stringBuffer.append(TEXT_84);
+ stringBuffer.append(TEXT_39);
stringBuffer.append(detailsCounter);
- stringBuffer.append(TEXT_85);
+ stringBuffer.append(TEXT_40);
String operationDocumentation = EcoreUtil.getDocumentation(eOperation); if (operationDocumentation != null) {
- stringBuffer.append(TEXT_86);
+ stringBuffer.append(TEXT_41);
stringBuffer.append(operationDocumentation);
- stringBuffer.append(TEXT_87);
+ stringBuffer.append(TEXT_26);
} row=0; String operationConstraints = htmlExporter.computeConstraints(eOperation); if (operationConstraints != null) {
- stringBuffer.append(TEXT_88);
+ stringBuffer.append(TEXT_42);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_89);
+ stringBuffer.append(TEXT_25);
stringBuffer.append(operationConstraints);
- stringBuffer.append(TEXT_90);
+ stringBuffer.append(TEXT_26);
} for (EStructuralFeature detail : htmlExporter.getDetails(eOperation)) {
- stringBuffer.append(TEXT_91);
+ stringBuffer.append(TEXT_42);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_92);
+ stringBuffer.append(TEXT_27);
stringBuffer.append(detail.getName());
- stringBuffer.append(TEXT_93);
+ stringBuffer.append(TEXT_28);
stringBuffer.append(eOperation.eGet(detail));
- stringBuffer.append(TEXT_94);
+ stringBuffer.append(TEXT_29);
}
- stringBuffer.append(TEXT_95);
+ stringBuffer.append(TEXT_43);
}
- stringBuffer.append(TEXT_96);
+ stringBuffer.append(TEXT_34);
}
- stringBuffer.append(TEXT_97);
+ stringBuffer.append(TEXT_49);
}
}
- stringBuffer.append(TEXT_98);
+ stringBuffer.append(TEXT_50);
Collection<EEnum> eEnums = EcoreUtil.getObjectsByType(ePackage.getEClassifiers(), EcorePackage.Literals.EENUM);
if (!eEnums.isEmpty()) {
- stringBuffer.append(TEXT_99);
+ stringBuffer.append(TEXT_51);
for (EEnum eEnum : eEnums) {
- stringBuffer.append(TEXT_100);
+ stringBuffer.append(TEXT_52);
stringBuffer.append(eEnum.getName());
- stringBuffer.append(TEXT_101);
+ stringBuffer.append(TEXT_6);
stringBuffer.append(eEnum.getName());
- stringBuffer.append(TEXT_102);
+ stringBuffer.append(TEXT_53);
if (!eEnum.getELiterals().isEmpty()) {
- stringBuffer.append(TEXT_103);
+ stringBuffer.append(TEXT_22);
String enumDocumentation = EcoreUtil.getDocumentation(eEnum); if (enumDocumentation != null) {
- stringBuffer.append(TEXT_104);
+ stringBuffer.append(TEXT_21);
stringBuffer.append(htmlExporter.getLongText(enumDocumentation));
- stringBuffer.append(TEXT_105);
+ stringBuffer.append(TEXT_22);
}
- stringBuffer.append(TEXT_106);
+ stringBuffer.append(TEXT_54);
for (EEnumLiteral eEnumLiteral : eEnum.getELiterals()) {
- stringBuffer.append(TEXT_107);
+ stringBuffer.append(TEXT_36);
stringBuffer.append(++detailsCounter);
- stringBuffer.append(TEXT_108);
+ stringBuffer.append(TEXT_37);
stringBuffer.append(htmlExporter.computeLabel(eEnumLiteral));
- stringBuffer.append(TEXT_109);
+ stringBuffer.append(TEXT_38);
stringBuffer.append(detailsCounter);
- stringBuffer.append(TEXT_110);
+ stringBuffer.append(TEXT_39);
stringBuffer.append(detailsCounter);
- stringBuffer.append(TEXT_111);
+ stringBuffer.append(TEXT_40);
String enumLiteralDocumentation = EcoreUtil.getDocumentation(eEnumLiteral); if (enumLiteralDocumentation != null) {
- stringBuffer.append(TEXT_112);
+ stringBuffer.append(TEXT_41);
stringBuffer.append(enumLiteralDocumentation);
- stringBuffer.append(TEXT_113);
+ stringBuffer.append(TEXT_26);
} int row = 0; for (EStructuralFeature detail : htmlExporter.getDetails(eEnumLiteral)) {
- stringBuffer.append(TEXT_114);
+ stringBuffer.append(TEXT_42);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_115);
+ stringBuffer.append(TEXT_27);
stringBuffer.append(detail.getName());
- stringBuffer.append(TEXT_116);
+ stringBuffer.append(TEXT_28);
stringBuffer.append(eEnumLiteral.eGet(detail));
- stringBuffer.append(TEXT_117);
+ stringBuffer.append(TEXT_29);
}
- stringBuffer.append(TEXT_118);
+ stringBuffer.append(TEXT_43);
}
- stringBuffer.append(TEXT_119);
+ stringBuffer.append(TEXT_55);
}
}
}
- stringBuffer.append(TEXT_120);
+ stringBuffer.append(TEXT_50);
Collection<EDataType> eDataTypes = EcoreUtil.getObjectsByType(ePackage.getEClassifiers(), EcorePackage.Literals.EDATA_TYPE); eDataTypes.removeAll(eEnums);
if (!eDataTypes.isEmpty()) {
- stringBuffer.append(TEXT_121);
+ stringBuffer.append(TEXT_56);
for (EDataType eDataType : eDataTypes) {
- stringBuffer.append(TEXT_122);
+ stringBuffer.append(TEXT_19);
stringBuffer.append(htmlExporter.computeClassifierLabel(eDataType));
- stringBuffer.append(TEXT_123);
+ stringBuffer.append(TEXT_20);
String dataTypeDocumentation = EcoreUtil.getDocumentation(eDataType); if (dataTypeDocumentation != null) {
- stringBuffer.append(TEXT_124);
+ stringBuffer.append(TEXT_21);
stringBuffer.append(htmlExporter.getLongText(dataTypeDocumentation));
- stringBuffer.append(TEXT_125);
+ stringBuffer.append(TEXT_22);
}
- stringBuffer.append(TEXT_126);
+ stringBuffer.append(TEXT_57);
int row = 0; for (EStructuralFeature detail : htmlExporter.getDetails(eDataType)) {
- stringBuffer.append(TEXT_127);
+ stringBuffer.append(TEXT_58);
stringBuffer.append((++row)%2 == 0 ? "even" : "odd");
- stringBuffer.append(TEXT_128);
+ stringBuffer.append(TEXT_27);
stringBuffer.append(detail.getName());
- stringBuffer.append(TEXT_129);
+ stringBuffer.append(TEXT_28);
stringBuffer.append(HTMLExporter.escape(eDataType.eGet(detail).toString()));
- stringBuffer.append(TEXT_130);
+ stringBuffer.append(TEXT_29);
}
- stringBuffer.append(TEXT_131);
+ stringBuffer.append(TEXT_59);
}
- stringBuffer.append(TEXT_132);
+ stringBuffer.append(TEXT_60);
}
- stringBuffer.append(TEXT_133);
- stringBuffer.append(TEXT_134);
+ stringBuffer.append(TEXT_61);
+ stringBuffer.append(TEXT_50);
return stringBuffer.toString();
}
}
diff --git a/examples/org.eclipse.emf.java.edit/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.java.edit/META-INF/MANIFEST.MF
index df4497145..8f56d193d 100644
--- a/examples/org.eclipse.emf.java.edit/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.java.edit/META-INF/MANIFEST.MF
@@ -14,3 +14,4 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.emf.java;bundle-version="[2.7.0,3.0.0)";visibility:=reexport
Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.java.edit
diff --git a/examples/org.eclipse.emf.java.editor/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.java.editor/META-INF/MANIFEST.MF
index 4c2346811..bef393011 100644
--- a/examples/org.eclipse.emf.java.editor/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.java.editor/META-INF/MANIFEST.MF
@@ -17,3 +17,4 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.emf.ecore.xmi;bundle-version="[2.14.0,3.0.0)";visibility:=reexport
Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.java.editor
diff --git a/examples/org.eclipse.emf.java/META-INF/MANIFEST.MF b/examples/org.eclipse.emf.java/META-INF/MANIFEST.MF
index 0a3382bbd..2c37157da 100644
--- a/examples/org.eclipse.emf.java/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.emf.java/META-INF/MANIFEST.MF
@@ -17,3 +17,4 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.emf.codegen;bundle-version="[2.13.0,3.0.0)"
Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.java
diff --git a/plugins/org.eclipse.emf.ant/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.ant/META-INF/MANIFEST.MF
index cc5b677a1..bf9843a2f 100644
--- a/plugins/org.eclipse.emf.ant/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.ant/META-INF/MANIFEST.MF
@@ -21,3 +21,4 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.emf.codegen.ecore;bundle-version="[2.14.0,3.0.0)";resolution:=optional
Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.ant
diff --git a/plugins/org.eclipse.emf.codegen.ecore.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.codegen.ecore.ui/META-INF/MANIFEST.MF
index e7eba3ef0..8218f9d6f 100644
--- a/plugins/org.eclipse.emf.codegen.ecore.ui/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.codegen.ecore.ui/META-INF/MANIFEST.MF
@@ -21,3 +21,4 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.emf.ecore.edit;bundle-version="[2.10.0,3.0.0)";visibility:=reexport
Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.codegen.ecore.ui
diff --git a/plugins/org.eclipse.emf.codegen.ecore.xtext.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.codegen.ecore.xtext.ui/META-INF/MANIFEST.MF
index a6612e628..45d9e4a2f 100644
--- a/plugins/org.eclipse.emf.codegen.ecore.xtext.ui/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.codegen.ecore.xtext.ui/META-INF/MANIFEST.MF
@@ -16,3 +16,4 @@ Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Bundle-Activator: org.eclipse.emf.codegen.ecore.xtext.ui.Activator
Export-Package: org.eclipse.emf.codegen.ecore.xtext.ui
+Automatic-Module-Name: org.eclipse.emf.codegen.ecore.xtext.ui
diff --git a/plugins/org.eclipse.emf.codegen.ecore.xtext/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.codegen.ecore.xtext/META-INF/MANIFEST.MF
index 28af7bb18..a44c766f5 100644
--- a/plugins/org.eclipse.emf.codegen.ecore.xtext/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.codegen.ecore.xtext/META-INF/MANIFEST.MF
@@ -12,3 +12,4 @@ Bundle-Name: %pluginName
Import-Package: org.apache.log4j;version="[1.2.0,2.0.0)"
Export-Package: org.eclipse.emf.codegen.ecore.xtext
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Automatic-Module-Name: org.eclipse.emf.codegen.ecore.xtext
diff --git a/plugins/org.eclipse.emf.codegen.ecore/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.codegen.ecore/META-INF/MANIFEST.MF
index 2e5a94a73..91bc81b60 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.codegen.ecore/META-INF/MANIFEST.MF
@@ -28,3 +28,4 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.eclipse.text;bundle-version="[3.5.0,4.0.0)"
Eclipse-LazyStart: true
Bundle-ActivationPolicy: lazy
+Automatic-Module-Name: org.eclipse.emf.codegen.ecore
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ItemProvider.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ItemProvider.java
index 1d9e7a7f1..291fd75c5 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ItemProvider.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ItemProvider.java
@@ -22,300 +22,176 @@ public class ItemProvider
protected final String TEXT_5 = ";" + NL + NL;
protected final String TEXT_6 = NL + NL + "/**" + NL + " * This is the item provider adapter for a {@link ";
protected final String TEXT_7 = "} object." + NL + " * <!-- begin-user-doc -->" + NL + " * <!-- end-user-doc -->";
- protected final String TEXT_8 = NL + " * ";
- protected final String TEXT_9 = NL + " * @generated" + NL + " */";
- protected final String TEXT_10 = NL + "@Deprecated";
- protected final String TEXT_11 = NL + "public class ";
- protected final String TEXT_12 = " ";
- protected final String TEXT_13 = "extends ";
- protected final String TEXT_14 = NL + "\textends ";
- protected final String TEXT_15 = NL + "\timplements";
- protected final String TEXT_16 = NL + "\t\t";
- protected final String TEXT_17 = ",";
- protected final String TEXT_18 = NL + "{";
- protected final String TEXT_19 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
- protected final String TEXT_20 = " copyright = ";
- protected final String TEXT_21 = ";";
- protected final String TEXT_22 = NL;
- protected final String TEXT_23 = NL + "\t/**" + NL + "\t * This constructs an instance from a factory and a notifier." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_24 = "(AdapterFactory adapterFactory)" + NL + "\t{" + NL + "\t\tsuper(adapterFactory);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns the property descriptors for the adapted class." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_25 = NL + "\t@Override";
- protected final String TEXT_26 = NL + "\tpublic ";
- protected final String TEXT_27 = " getPropertyDescriptors(Object object)" + NL + "\t{" + NL + "\t\tif (itemPropertyDescriptors == null)" + NL + "\t\t{" + NL + "\t\t\tsuper.getPropertyDescriptors(object);" + NL;
- protected final String TEXT_28 = NL + "\t\t\tadd";
- protected final String TEXT_29 = "PropertyDescriptor(object);";
- protected final String TEXT_30 = NL + "\t\t}" + NL + "\t\treturn itemPropertyDescriptors;" + NL + "\t}" + NL;
- protected final String TEXT_31 = NL + "\t/**" + NL + "\t * This adds a property descriptor for the ";
- protected final String TEXT_32 = " feature." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->";
- protected final String TEXT_33 = NL + "\t * ";
- protected final String TEXT_34 = NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_35 = NL + "\t@Deprecated";
- protected final String TEXT_36 = NL + "\tprotected void add";
- protected final String TEXT_37 = "PropertyDescriptor(Object object)" + NL + "\t{";
- protected final String TEXT_38 = NL + "\t\titemPropertyDescriptors.add" + NL + "\t\t\t(createItemPropertyDescriptor" + NL + "\t\t\t\t(((";
- protected final String TEXT_39 = ")adapterFactory).getRootAdapterFactory()," + NL + "\t\t\t\t getResourceLocator()," + NL + "\t\t\t\t getString(\"_UI_";
- protected final String TEXT_40 = "_";
- protected final String TEXT_41 = "_feature\"),";
- protected final String TEXT_42 = NL + "\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_";
- protected final String TEXT_43 = "_";
- protected final String TEXT_44 = "_feature\", \"_UI_";
- protected final String TEXT_45 = "_type\"),";
- protected final String TEXT_46 = NL + "\t\t\t\t getString(\"_UI_";
- protected final String TEXT_47 = "_";
- protected final String TEXT_48 = "_description\"),";
- protected final String TEXT_49 = NL + "\t\t\t\t ";
- protected final String TEXT_50 = "," + NL + "\t\t\t\t ";
- protected final String TEXT_51 = "," + NL + "\t\t\t\t ";
- protected final String TEXT_52 = "," + NL + "\t\t\t\t ";
- protected final String TEXT_53 = ",";
- protected final String TEXT_54 = NL + "\t\t\t\t null,";
- protected final String TEXT_55 = NL + "\t\t\t\t ";
- protected final String TEXT_56 = ".";
- protected final String TEXT_57 = ",";
- protected final String TEXT_58 = NL + "\t\t\t\t null,";
- protected final String TEXT_59 = NL + "\t\t\t\t getString(\"";
- protected final String TEXT_60 = "\"),";
- protected final String TEXT_61 = NL + "\t\t\t\t null));";
- protected final String TEXT_62 = NL + "\t\t\t\t new String[] {";
- protected final String TEXT_63 = NL + "\t\t\t\t\t\"";
- protected final String TEXT_64 = "\"";
- protected final String TEXT_65 = ",";
- protected final String TEXT_66 = NL + "\t\t\t\t }));";
- protected final String TEXT_67 = NL + "\t}" + NL;
- protected final String TEXT_68 = NL + "\t/**" + NL + "\t * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an" + NL + "\t * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or" + NL + "\t * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_69 = NL + "\t@Override";
- protected final String TEXT_70 = NL + "\tpublic ";
- protected final String TEXT_71 = " getChildrenFeatures(Object object)" + NL + "\t{" + NL + "\t\tif (childrenFeatures == null)" + NL + "\t\t{" + NL + "\t\t\tsuper.getChildrenFeatures(object);";
- protected final String TEXT_72 = NL + "\t\t\tchildrenFeatures.add(";
- protected final String TEXT_73 = ");";
- protected final String TEXT_74 = NL + "\t\t}" + NL + "\t\treturn childrenFeatures;" + NL + "\t}" + NL;
- protected final String TEXT_75 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_76 = NL + "\t@Override";
- protected final String TEXT_77 = NL + "\tprotected ";
- protected final String TEXT_78 = " getChildFeature(Object object, Object child)" + NL + "\t{" + NL + "\t\t// Check the type of the specified child object and return the proper feature to use for" + NL + "\t\t// adding (see {@link AddCommand}) it as a child." + NL + "" + NL + "\t\treturn super.getChildFeature(object, child);" + NL + "\t}" + NL;
- protected final String TEXT_79 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_80 = NL + "\t@Override";
- protected final String TEXT_81 = NL + "\tpublic boolean hasChildren(Object object)" + NL + "\t{" + NL + "\t\treturn hasChildren(object, ";
- protected final String TEXT_82 = ");" + NL + "\t}" + NL;
- protected final String TEXT_83 = NL + "\t/**" + NL + "\t * This returns ";
- protected final String TEXT_84 = ".gif." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_85 = NL + "\t@Override";
- protected final String TEXT_86 = NL + "\tpublic Object getImage(Object object)" + NL + "\t{" + NL + "\t\treturn overlayImage(object, getResourceLocator().getImage(\"full/obj16/";
- protected final String TEXT_87 = "\"));";
- protected final String TEXT_88 = NL + "\t}" + NL;
- protected final String TEXT_89 = NL + "\t/**" + NL + "\t * This returns <code>getImage(object)</code> for the column index <code>0</code> or <code>super.getImage(object)</code> otherwise." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @see #getText(Object)" + NL + "\t * @see #getColumnText(Object, int)" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_90 = NL + "\t@Override";
- protected final String TEXT_91 = NL + "\tpublic Object getColumnImage(Object object, int columnIndex)" + NL + "\t{" + NL + "\t\t// TODO: implement this method to return appropriate information for each column." + NL + "\t\t// Ensure that you remove @generated or mark it @generated NOT" + NL + "\t\treturn columnIndex == 0 ? getImage(object) : super.getImage(object);" + NL + "\t}" + NL;
- protected final String TEXT_92 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_93 = NL + "\t@Override";
- protected final String TEXT_94 = NL + "\tprotected boolean shouldComposeCreationImage()" + NL + "\t{" + NL + "\t\treturn true;" + NL + "\t}" + NL;
- protected final String TEXT_95 = NL + "\t/**" + NL + "\t * This returns the label text for the adapted class." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_96 = NL + "\t@Override";
- protected final String TEXT_97 = NL + "\tpublic String getText(Object object)" + NL + "\t{";
- protected final String TEXT_98 = NL + "\t\treturn ((";
- protected final String TEXT_99 = ")getStyledText(object)).getString();";
- protected final String TEXT_100 = NL + "\t\t";
- protected final String TEXT_101 = "<?, ?>";
- protected final String TEXT_102 = " ";
- protected final String TEXT_103 = " = (";
- protected final String TEXT_104 = "<?, ?>";
- protected final String TEXT_105 = ")object;";
- protected final String TEXT_106 = NL + "\t\treturn \"\" + ";
- protected final String TEXT_107 = ".getKey() + \" -> \" + ";
- protected final String TEXT_108 = ".getValue();";
- protected final String TEXT_109 = NL + "\t\tString key = crop(\"\" + ";
- protected final String TEXT_110 = ".getKey());";
- protected final String TEXT_111 = NL + "\t\tString key = \"\" + ";
- protected final String TEXT_112 = ".getKey();";
- protected final String TEXT_113 = NL + "\t\tString value = crop(\"\" + ";
- protected final String TEXT_114 = ".getValue());";
- protected final String TEXT_115 = NL + "\t\tString value = \"\" + ";
- protected final String TEXT_116 = ".getValue();";
- protected final String TEXT_117 = NL + "\t\treturn key + \" -> \" + value;";
- protected final String TEXT_118 = NL + "\t\t";
- protected final String TEXT_119 = " ";
- protected final String TEXT_120 = " = (";
- protected final String TEXT_121 = ")object;" + NL + "\t\treturn getString(\"_UI_";
- protected final String TEXT_122 = "_type\") + \" \" + ";
- protected final String TEXT_123 = ".";
- protected final String TEXT_124 = "();";
- protected final String TEXT_125 = NL + "\t\tString label = crop(((";
- protected final String TEXT_126 = ")object).";
- protected final String TEXT_127 = "());";
- protected final String TEXT_128 = NL + "\t\tString label = ((";
- protected final String TEXT_129 = ")object).";
- protected final String TEXT_130 = "();";
- protected final String TEXT_131 = NL + "\t\t";
- protected final String TEXT_132 = " labelValue = ((";
- protected final String TEXT_133 = ")object).eGet(";
- protected final String TEXT_134 = ");";
- protected final String TEXT_135 = NL + "\t\t";
- protected final String TEXT_136 = " labelValue = ((";
- protected final String TEXT_137 = ")object).";
- protected final String TEXT_138 = "();";
- protected final String TEXT_139 = NL + "\t\tString label = labelValue == null ? null : labelValue.toString();";
- protected final String TEXT_140 = NL + "\t\treturn label == null || label.length() == 0 ?" + NL + "\t\t\tgetString(\"_UI_";
- protected final String TEXT_141 = "_type\") :";
- protected final String TEXT_142 = NL + "\t\t\tgetString(\"_UI_";
- protected final String TEXT_143 = "_type\") + \" \" + label;";
- protected final String TEXT_144 = NL + "\t\treturn getString(\"_UI_";
- protected final String TEXT_145 = "_type\");";
- protected final String TEXT_146 = NL + "\t}" + NL;
- protected final String TEXT_147 = NL + "\t/**" + NL + "\t * This returns <code>getText(object)</code> for the column index <code>0</code> or <code>super.getText(object)</code> otherwise." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @see #getImage(Object)" + NL + "\t * @see #getColumnImage(Object, int)" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_148 = NL + "\t@Override";
- protected final String TEXT_149 = NL + "\tpublic String getColumnText(Object object, int columnIndex)" + NL + "\t{" + NL + "\t\t// TODO: implement this method to return appropriate information for each column." + NL + "\t\t// Ensure that you remove @generated or mark it @generated NOT" + NL + "\t\treturn columnIndex == 0 ? getText(object) : super.getText(object);" + NL + "\t}" + NL;
- protected final String TEXT_150 = NL + "\t/**" + NL + "\t * This returns the label styled text for the adapted class." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_151 = NL + "\t@Override";
- protected final String TEXT_152 = NL + "\tpublic Object getStyledText(Object object)" + NL + "\t{";
- protected final String TEXT_153 = NL + "\t\t";
- protected final String TEXT_154 = "<?, ?>";
- protected final String TEXT_155 = " ";
- protected final String TEXT_156 = " = (";
- protected final String TEXT_157 = "<?, ?>";
- protected final String TEXT_158 = ")object;";
- protected final String TEXT_159 = NL + "\t\treturn new ";
- protected final String TEXT_160 = "(\"\" + ";
- protected final String TEXT_161 = ".getKey()).append(\" -> \", ";
- protected final String TEXT_162 = ".QUALIFIER_STYLER).append(\"\" + ";
- protected final String TEXT_163 = ".getValue());";
- protected final String TEXT_164 = NL + "\t\tString key = crop(\"\" + ";
- protected final String TEXT_165 = ".getKey());";
- protected final String TEXT_166 = NL + "\t\tString key = \"\" + ";
- protected final String TEXT_167 = ".getKey();";
- protected final String TEXT_168 = NL + "\t\tString value = crop(\"\" + ";
- protected final String TEXT_169 = ".getValue());";
- protected final String TEXT_170 = NL + "\t\tString value = \"\" + ";
- protected final String TEXT_171 = ".getValue();";
- protected final String TEXT_172 = NL + "\t\treturn new ";
- protected final String TEXT_173 = "(key).append(\" -> \", ";
- protected final String TEXT_174 = ".QUALIFIER_STYLER).append(value);";
- protected final String TEXT_175 = NL + "\t\t";
- protected final String TEXT_176 = " ";
- protected final String TEXT_177 = " = (";
- protected final String TEXT_178 = ")object;" + NL + "\t\treturn new ";
- protected final String TEXT_179 = "(getString(\"_UI_";
- protected final String TEXT_180 = "_type\"), ";
- protected final String TEXT_181 = ".QUALIFIER_STYLER).append(\" \").append(";
- protected final String TEXT_182 = ".toString(";
- protected final String TEXT_183 = ".";
- protected final String TEXT_184 = "()));";
- protected final String TEXT_185 = NL + "\t\tString label = crop(((";
- protected final String TEXT_186 = ")object).";
- protected final String TEXT_187 = "());";
- protected final String TEXT_188 = NL + "\t\tString label = ((";
- protected final String TEXT_189 = ")object).";
- protected final String TEXT_190 = "();";
- protected final String TEXT_191 = NL + "\t\t";
- protected final String TEXT_192 = " labelValue = ((";
- protected final String TEXT_193 = ")object).eGet(";
- protected final String TEXT_194 = ");";
- protected final String TEXT_195 = NL + "\t\t";
- protected final String TEXT_196 = " labelValue = ((";
- protected final String TEXT_197 = ")object).";
- protected final String TEXT_198 = "();";
- protected final String TEXT_199 = NL + "\t\tString label = labelValue == null ? null : labelValue.toString();";
- protected final String TEXT_200 = NL + " \t";
- protected final String TEXT_201 = " styledLabel = new ";
- protected final String TEXT_202 = "();" + NL + "\t\tif (label == null || label.length() == 0)" + NL + "\t\t{" + NL + "\t\t\tstyledLabel.append(getString(\"_UI_";
- protected final String TEXT_203 = "_type\"), ";
- protected final String TEXT_204 = ".QUALIFIER_STYLER); ";
- protected final String TEXT_205 = NL + "\t\t} else {" + NL + "\t\t\tstyledLabel.append(getString(\"_UI_";
- protected final String TEXT_206 = "_type\"), ";
- protected final String TEXT_207 = ".QUALIFIER_STYLER).append(\" \" + label);";
- protected final String TEXT_208 = NL + "\t\t}" + NL + "\t\treturn styledLabel;";
- protected final String TEXT_209 = NL + "\t\treturn new ";
- protected final String TEXT_210 = "(getString(\"_UI_";
- protected final String TEXT_211 = "_type\"));";
- protected final String TEXT_212 = NL + "\t}";
- protected final String TEXT_213 = NL + NL + "\t/**" + NL + "\t * This handles model notifications by calling {@link #updateChildren} to update any cached" + NL + "\t * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_214 = NL + "\t@Override";
- protected final String TEXT_215 = NL + "\tpublic void notifyChanged(Notification notification)" + NL + "\t{" + NL + "\t\tupdateChildren(notification);";
- protected final String TEXT_216 = NL + NL + "\t\tswitch (notification.getFeatureID(";
- protected final String TEXT_217 = ".class))" + NL + "\t\t{";
- protected final String TEXT_218 = NL + "\t\t\tcase ";
- protected final String TEXT_219 = ":";
- protected final String TEXT_220 = NL + "\t\t\t\tfireNotifyChanged(new ";
- protected final String TEXT_221 = "(notification, notification.getNotifier(), false, true));" + NL + "\t\t\t\treturn;";
- protected final String TEXT_222 = NL + "\t\t\tcase ";
- protected final String TEXT_223 = ":";
- protected final String TEXT_224 = NL + "\t\t\t\tfireNotifyChanged(new ";
- protected final String TEXT_225 = "(notification, notification.getNotifier(), true, false));" + NL + "\t\t\t\treturn;";
- protected final String TEXT_226 = NL + "\t\t\tcase ";
- protected final String TEXT_227 = ":";
- protected final String TEXT_228 = NL + "\t\t\t\tfireNotifyChanged(new ";
- protected final String TEXT_229 = "(notification, notification.getNotifier(), true, true));" + NL + "\t\t\t\treturn;";
- protected final String TEXT_230 = NL + "\t\t}";
- protected final String TEXT_231 = NL + "\t\tsuper.notifyChanged(notification);" + NL + "\t}" + NL;
- protected final String TEXT_232 = NL + "\t/**" + NL + "\t * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children" + NL + "\t * that can be created under this object." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_233 = NL + "\t@Override";
- protected final String TEXT_234 = NL + "\tprotected void collectNewChildDescriptors(";
- protected final String TEXT_235 = " newChildDescriptors, Object object)" + NL + "\t{" + NL + "\t\tsuper.collectNewChildDescriptors(newChildDescriptors, object);";
- protected final String TEXT_236 = NL + NL + "\t\tnewChildDescriptors.add" + NL + "\t\t\t(createChildParameter" + NL + "\t\t\t\t(";
- protected final String TEXT_237 = "," + NL + "\t\t\t\t ";
- protected final String TEXT_238 = ".createEntry" + NL + "\t\t\t\t\t(";
- protected final String TEXT_239 = ",";
- protected final String TEXT_240 = NL + "\t\t\t\t\t ";
- protected final String TEXT_241 = ".create(";
- protected final String TEXT_242 = "))));";
- protected final String TEXT_243 = NL + "\t\t\t\t\t ";
- protected final String TEXT_244 = ".create";
- protected final String TEXT_245 = "())));";
- protected final String TEXT_246 = NL + NL + "\t\tnewChildDescriptors.add" + NL + "\t\t\t(createChildParameter" + NL + "\t\t\t\t(";
- protected final String TEXT_247 = "," + NL + "\t\t\t\t ";
- protected final String TEXT_248 = ".createEntry" + NL + "\t\t\t\t\t(";
- protected final String TEXT_249 = ",";
- protected final String TEXT_250 = NL + "\t\t\t\t\t ";
- protected final String TEXT_251 = ")));";
- protected final String TEXT_252 = NL + "\t\t\t\t\t ";
- protected final String TEXT_253 = ")));";
- protected final String TEXT_254 = NL + "\t\t\t\t\t ";
- protected final String TEXT_255 = ".createFromString(";
- protected final String TEXT_256 = ", ";
- protected final String TEXT_257 = "))));";
- protected final String TEXT_258 = " // TODO: ensure this is a valid literal value";
- protected final String TEXT_259 = NL + NL + "\t\tnewChildDescriptors.add" + NL + "\t\t\t(createChildParameter" + NL + "\t\t\t\t(";
- protected final String TEXT_260 = ",";
- protected final String TEXT_261 = NL + "\t\t\t\t ";
- protected final String TEXT_262 = ".create(";
- protected final String TEXT_263 = ")));";
- protected final String TEXT_264 = NL + "\t\t\t\t ";
- protected final String TEXT_265 = ".create";
- protected final String TEXT_266 = "()));";
- protected final String TEXT_267 = NL + NL + "\t\tnewChildDescriptors.add" + NL + "\t\t\t(createChildParameter" + NL + "\t\t\t\t(";
- protected final String TEXT_268 = ",";
- protected final String TEXT_269 = NL + "\t\t\t\t ";
- protected final String TEXT_270 = "));";
- protected final String TEXT_271 = NL + "\t\t\t\t ";
- protected final String TEXT_272 = "));";
- protected final String TEXT_273 = NL + "\t\t\t\t ";
- protected final String TEXT_274 = ".createFromString(";
- protected final String TEXT_275 = ", ";
- protected final String TEXT_276 = ")));";
- protected final String TEXT_277 = " // TODO: ensure this is a valid literal value";
- protected final String TEXT_278 = NL + "\t}" + NL;
- protected final String TEXT_279 = NL + "\t/**" + NL + "\t * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_280 = NL + "\t@Override";
- protected final String TEXT_281 = NL + "\tpublic String getCreateChildText(Object owner, Object feature, Object child, ";
- protected final String TEXT_282 = " selection)" + NL + "\t{" + NL + "\t\tObject childFeature = feature;" + NL + "\t\tObject childObject = child;" + NL;
- protected final String TEXT_283 = NL + "\t\tif (childFeature instanceof ";
- protected final String TEXT_284 = " && ";
- protected final String TEXT_285 = ".isFeatureMap((EStructuralFeature)childFeature))" + NL + "\t\t{" + NL + "\t\t\t";
- protected final String TEXT_286 = ".Entry entry = (FeatureMap.Entry)childObject;" + NL + "\t\t\tchildFeature = entry.getEStructuralFeature();" + NL + "\t\t\tchildObject = entry.getValue();" + NL + "\t\t}" + NL;
- protected final String TEXT_287 = NL + "\t\tboolean qualify =";
- protected final String TEXT_288 = NL + "\t\t\tchildFeature == ";
- protected final String TEXT_289 = NL + NL + "\t\tif (qualify)" + NL + "\t\t{" + NL + "\t\t\treturn getString" + NL + "\t\t\t\t(\"_UI_CreateChild_text2\",";
- protected final String TEXT_290 = NL + "\t\t\t\t new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });" + NL + "\t\t}" + NL + "\t\treturn super.getCreateChildText(owner, feature, child, selection);" + NL + "\t}" + NL;
- protected final String TEXT_291 = NL + "\t/**" + NL + "\t * Return the resource locator for this item provider's resources." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_292 = NL + "\t@Override";
- protected final String TEXT_293 = NL + "\tpublic ";
- protected final String TEXT_294 = " getResourceLocator()" + NL + "\t{";
- protected final String TEXT_295 = NL + "\t\treturn ((";
- protected final String TEXT_296 = ")adapterFactory).getResourceLocator();";
- protected final String TEXT_297 = NL + "\t\treturn ";
- protected final String TEXT_298 = ".INSTANCE;";
- protected final String TEXT_299 = NL + "\t}" + NL;
- protected final String TEXT_300 = NL + "}";
- protected final String TEXT_301 = NL;
+ protected final String TEXT_8 = NL + " * @generated" + NL + " */";
+ protected final String TEXT_9 = NL + "@Deprecated";
+ protected final String TEXT_10 = NL + "public class ";
+ protected final String TEXT_11 = " ";
+ protected final String TEXT_12 = "extends ";
+ protected final String TEXT_13 = NL + "\textends ";
+ protected final String TEXT_14 = NL + "\timplements";
+ protected final String TEXT_15 = NL + "\t\t";
+ protected final String TEXT_16 = ",";
+ protected final String TEXT_17 = NL + "{";
+ protected final String TEXT_18 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
+ protected final String TEXT_19 = " copyright = ";
+ protected final String TEXT_20 = ";";
+ protected final String TEXT_21 = NL;
+ protected final String TEXT_22 = NL + "\t/**" + NL + "\t * This constructs an instance from a factory and a notifier." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_23 = "(AdapterFactory adapterFactory)" + NL + "\t{" + NL + "\t\tsuper(adapterFactory);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns the property descriptors for the adapted class." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_24 = NL + "\t@Override";
+ protected final String TEXT_25 = NL + "\tpublic ";
+ protected final String TEXT_26 = " getPropertyDescriptors(Object object)" + NL + "\t{" + NL + "\t\tif (itemPropertyDescriptors == null)" + NL + "\t\t{" + NL + "\t\t\tsuper.getPropertyDescriptors(object);" + NL;
+ protected final String TEXT_27 = NL + "\t\t\tadd";
+ protected final String TEXT_28 = "PropertyDescriptor(object);";
+ protected final String TEXT_29 = NL + "\t\t}" + NL + "\t\treturn itemPropertyDescriptors;" + NL + "\t}" + NL;
+ protected final String TEXT_30 = NL + "\t/**" + NL + "\t * This adds a property descriptor for the ";
+ protected final String TEXT_31 = " feature." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->";
+ protected final String TEXT_32 = NL + "\t * ";
+ protected final String TEXT_33 = NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_34 = NL + "\t@Deprecated";
+ protected final String TEXT_35 = NL + "\tprotected void add";
+ protected final String TEXT_36 = "PropertyDescriptor(Object object)" + NL + "\t{";
+ protected final String TEXT_37 = NL + "\t\titemPropertyDescriptors.add" + NL + "\t\t\t(createItemPropertyDescriptor" + NL + "\t\t\t\t(((";
+ protected final String TEXT_38 = ")adapterFactory).getRootAdapterFactory()," + NL + "\t\t\t\t getResourceLocator()," + NL + "\t\t\t\t getString(\"_UI_";
+ protected final String TEXT_39 = "_";
+ protected final String TEXT_40 = "_feature\"),";
+ protected final String TEXT_41 = NL + "\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_";
+ protected final String TEXT_42 = "_feature\", \"_UI_";
+ protected final String TEXT_43 = "_type\"),";
+ protected final String TEXT_44 = NL + "\t\t\t\t getString(\"_UI_";
+ protected final String TEXT_45 = "_description\"),";
+ protected final String TEXT_46 = NL + "\t\t\t\t ";
+ protected final String TEXT_47 = "," + NL + "\t\t\t\t ";
+ protected final String TEXT_48 = NL + "\t\t\t\t null,";
+ protected final String TEXT_49 = ".";
+ protected final String TEXT_50 = NL + "\t\t\t\t getString(\"";
+ protected final String TEXT_51 = "\"),";
+ protected final String TEXT_52 = NL + "\t\t\t\t null));";
+ protected final String TEXT_53 = NL + "\t\t\t\t new String[] {";
+ protected final String TEXT_54 = NL + "\t\t\t\t\t\"";
+ protected final String TEXT_55 = "\"";
+ protected final String TEXT_56 = NL + "\t\t\t\t }));";
+ protected final String TEXT_57 = NL + "\t}" + NL;
+ protected final String TEXT_58 = NL + "\t/**" + NL + "\t * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an" + NL + "\t * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or" + NL + "\t * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_59 = " getChildrenFeatures(Object object)" + NL + "\t{" + NL + "\t\tif (childrenFeatures == null)" + NL + "\t\t{" + NL + "\t\t\tsuper.getChildrenFeatures(object);";
+ protected final String TEXT_60 = NL + "\t\t\tchildrenFeatures.add(";
+ protected final String TEXT_61 = ");";
+ protected final String TEXT_62 = NL + "\t\t}" + NL + "\t\treturn childrenFeatures;" + NL + "\t}" + NL;
+ protected final String TEXT_63 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_64 = NL + "\tprotected ";
+ protected final String TEXT_65 = " getChildFeature(Object object, Object child)" + NL + "\t{" + NL + "\t\t// Check the type of the specified child object and return the proper feature to use for" + NL + "\t\t// adding (see {@link AddCommand}) it as a child." + NL + "" + NL + "\t\treturn super.getChildFeature(object, child);" + NL + "\t}" + NL;
+ protected final String TEXT_66 = NL + "\tpublic boolean hasChildren(Object object)" + NL + "\t{" + NL + "\t\treturn hasChildren(object, ";
+ protected final String TEXT_67 = ");" + NL + "\t}" + NL;
+ protected final String TEXT_68 = NL + "\t/**" + NL + "\t * This returns ";
+ protected final String TEXT_69 = ".gif." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_70 = NL + "\tpublic Object getImage(Object object)" + NL + "\t{" + NL + "\t\treturn overlayImage(object, getResourceLocator().getImage(\"full/obj16/";
+ protected final String TEXT_71 = "\"));";
+ protected final String TEXT_72 = NL + "\t/**" + NL + "\t * This returns <code>getImage(object)</code> for the column index <code>0</code> or <code>super.getImage(object)</code> otherwise." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @see #getText(Object)" + NL + "\t * @see #getColumnText(Object, int)" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_73 = NL + "\tpublic Object getColumnImage(Object object, int columnIndex)" + NL + "\t{" + NL + "\t\t// TODO: implement this method to return appropriate information for each column." + NL + "\t\t// Ensure that you remove @generated or mark it @generated NOT" + NL + "\t\treturn columnIndex == 0 ? getImage(object) : super.getImage(object);" + NL + "\t}" + NL;
+ protected final String TEXT_74 = NL + "\tprotected boolean shouldComposeCreationImage()" + NL + "\t{" + NL + "\t\treturn true;" + NL + "\t}" + NL;
+ protected final String TEXT_75 = NL + "\t/**" + NL + "\t * This returns the label text for the adapted class." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_76 = NL + "\tpublic String getText(Object object)" + NL + "\t{";
+ protected final String TEXT_77 = NL + "\t\treturn ((";
+ protected final String TEXT_78 = ")getStyledText(object)).getString();";
+ protected final String TEXT_79 = "<?, ?>";
+ protected final String TEXT_80 = " = (";
+ protected final String TEXT_81 = ")object;";
+ protected final String TEXT_82 = NL + "\t\treturn \"\" + ";
+ protected final String TEXT_83 = ".getKey() + \" -> \" + ";
+ protected final String TEXT_84 = ".getValue();";
+ protected final String TEXT_85 = NL + "\t\tString key = crop(\"\" + ";
+ protected final String TEXT_86 = ".getKey());";
+ protected final String TEXT_87 = NL + "\t\tString key = \"\" + ";
+ protected final String TEXT_88 = ".getKey();";
+ protected final String TEXT_89 = NL + "\t\tString value = crop(\"\" + ";
+ protected final String TEXT_90 = ".getValue());";
+ protected final String TEXT_91 = NL + "\t\tString value = \"\" + ";
+ protected final String TEXT_92 = NL + "\t\treturn key + \" -> \" + value;";
+ protected final String TEXT_93 = ")object;" + NL + "\t\treturn getString(\"_UI_";
+ protected final String TEXT_94 = "_type\") + \" \" + ";
+ protected final String TEXT_95 = "();";
+ protected final String TEXT_96 = NL + "\t\tString label = crop(((";
+ protected final String TEXT_97 = ")object).";
+ protected final String TEXT_98 = "());";
+ protected final String TEXT_99 = NL + "\t\tString label = ((";
+ protected final String TEXT_100 = " labelValue = ((";
+ protected final String TEXT_101 = ")object).eGet(";
+ protected final String TEXT_102 = NL + "\t\tString label = labelValue == null ? null : labelValue.toString();";
+ protected final String TEXT_103 = NL + "\t\treturn label == null || label.length() == 0 ?" + NL + "\t\t\tgetString(\"_UI_";
+ protected final String TEXT_104 = "_type\") :";
+ protected final String TEXT_105 = NL + "\t\t\tgetString(\"_UI_";
+ protected final String TEXT_106 = "_type\") + \" \" + label;";
+ protected final String TEXT_107 = NL + "\t\treturn getString(\"_UI_";
+ protected final String TEXT_108 = "_type\");";
+ protected final String TEXT_109 = NL + "\t/**" + NL + "\t * This returns <code>getText(object)</code> for the column index <code>0</code> or <code>super.getText(object)</code> otherwise." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @see #getImage(Object)" + NL + "\t * @see #getColumnImage(Object, int)" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_110 = NL + "\tpublic String getColumnText(Object object, int columnIndex)" + NL + "\t{" + NL + "\t\t// TODO: implement this method to return appropriate information for each column." + NL + "\t\t// Ensure that you remove @generated or mark it @generated NOT" + NL + "\t\treturn columnIndex == 0 ? getText(object) : super.getText(object);" + NL + "\t}" + NL;
+ protected final String TEXT_111 = NL + "\t/**" + NL + "\t * This returns the label styled text for the adapted class." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_112 = NL + "\tpublic Object getStyledText(Object object)" + NL + "\t{";
+ protected final String TEXT_113 = NL + "\t\treturn new ";
+ protected final String TEXT_114 = "(\"\" + ";
+ protected final String TEXT_115 = ".getKey()).append(\" -> \", ";
+ protected final String TEXT_116 = ".QUALIFIER_STYLER).append(\"\" + ";
+ protected final String TEXT_117 = "(key).append(\" -> \", ";
+ protected final String TEXT_118 = ".QUALIFIER_STYLER).append(value);";
+ protected final String TEXT_119 = ")object;" + NL + "\t\treturn new ";
+ protected final String TEXT_120 = "(getString(\"_UI_";
+ protected final String TEXT_121 = "_type\"), ";
+ protected final String TEXT_122 = ".QUALIFIER_STYLER).append(\" \").append(";
+ protected final String TEXT_123 = ".toString(";
+ protected final String TEXT_124 = "()));";
+ protected final String TEXT_125 = NL + " \t";
+ protected final String TEXT_126 = " styledLabel = new ";
+ protected final String TEXT_127 = "();" + NL + "\t\tif (label == null || label.length() == 0)" + NL + "\t\t{" + NL + "\t\t\tstyledLabel.append(getString(\"_UI_";
+ protected final String TEXT_128 = ".QUALIFIER_STYLER); ";
+ protected final String TEXT_129 = NL + "\t\t} else {" + NL + "\t\t\tstyledLabel.append(getString(\"_UI_";
+ protected final String TEXT_130 = ".QUALIFIER_STYLER).append(\" \" + label);";
+ protected final String TEXT_131 = NL + "\t\t}" + NL + "\t\treturn styledLabel;";
+ protected final String TEXT_132 = "_type\"));";
+ protected final String TEXT_133 = NL + "\t}";
+ protected final String TEXT_134 = NL + NL + "\t/**" + NL + "\t * This handles model notifications by calling {@link #updateChildren} to update any cached" + NL + "\t * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_135 = NL + "\tpublic void notifyChanged(Notification notification)" + NL + "\t{" + NL + "\t\tupdateChildren(notification);";
+ protected final String TEXT_136 = NL + NL + "\t\tswitch (notification.getFeatureID(";
+ protected final String TEXT_137 = ".class))" + NL + "\t\t{";
+ protected final String TEXT_138 = NL + "\t\t\tcase ";
+ protected final String TEXT_139 = ":";
+ protected final String TEXT_140 = NL + "\t\t\t\tfireNotifyChanged(new ";
+ protected final String TEXT_141 = "(notification, notification.getNotifier(), false, true));" + NL + "\t\t\t\treturn;";
+ protected final String TEXT_142 = "(notification, notification.getNotifier(), true, false));" + NL + "\t\t\t\treturn;";
+ protected final String TEXT_143 = "(notification, notification.getNotifier(), true, true));" + NL + "\t\t\t\treturn;";
+ protected final String TEXT_144 = NL + "\t\t}";
+ protected final String TEXT_145 = NL + "\t\tsuper.notifyChanged(notification);" + NL + "\t}" + NL;
+ protected final String TEXT_146 = NL + "\t/**" + NL + "\t * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children" + NL + "\t * that can be created under this object." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_147 = NL + "\tprotected void collectNewChildDescriptors(";
+ protected final String TEXT_148 = " newChildDescriptors, Object object)" + NL + "\t{" + NL + "\t\tsuper.collectNewChildDescriptors(newChildDescriptors, object);";
+ protected final String TEXT_149 = NL + NL + "\t\tnewChildDescriptors.add" + NL + "\t\t\t(createChildParameter" + NL + "\t\t\t\t(";
+ protected final String TEXT_150 = ".createEntry" + NL + "\t\t\t\t\t(";
+ protected final String TEXT_151 = NL + "\t\t\t\t\t ";
+ protected final String TEXT_152 = ".create(";
+ protected final String TEXT_153 = "))));";
+ protected final String TEXT_154 = ".create";
+ protected final String TEXT_155 = "())));";
+ protected final String TEXT_156 = ")));";
+ protected final String TEXT_157 = ".createFromString(";
+ protected final String TEXT_158 = ", ";
+ protected final String TEXT_159 = " // TODO: ensure this is a valid literal value";
+ protected final String TEXT_160 = "));";
+ protected final String TEXT_161 = NL + "\t/**" + NL + "\t * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_162 = NL + "\tpublic String getCreateChildText(Object owner, Object feature, Object child, ";
+ protected final String TEXT_163 = " selection)" + NL + "\t{" + NL + "\t\tObject childFeature = feature;" + NL + "\t\tObject childObject = child;" + NL;
+ protected final String TEXT_164 = NL + "\t\tif (childFeature instanceof ";
+ protected final String TEXT_165 = " && ";
+ protected final String TEXT_166 = ".isFeatureMap((EStructuralFeature)childFeature))" + NL + "\t\t{" + NL + "\t\t\t";
+ protected final String TEXT_167 = ".Entry entry = (FeatureMap.Entry)childObject;" + NL + "\t\t\tchildFeature = entry.getEStructuralFeature();" + NL + "\t\t\tchildObject = entry.getValue();" + NL + "\t\t}" + NL;
+ protected final String TEXT_168 = NL + "\t\tboolean qualify =";
+ protected final String TEXT_169 = NL + "\t\t\tchildFeature == ";
+ protected final String TEXT_170 = NL + NL + "\t\tif (qualify)" + NL + "\t\t{" + NL + "\t\t\treturn getString" + NL + "\t\t\t\t(\"_UI_CreateChild_text2\",";
+ protected final String TEXT_171 = NL + "\t\t\t\t new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });" + NL + "\t\t}" + NL + "\t\treturn super.getCreateChildText(owner, feature, child, selection);" + NL + "\t}" + NL;
+ protected final String TEXT_172 = NL + "\t/**" + NL + "\t * Return the resource locator for this item provider's resources." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_173 = " getResourceLocator()" + NL + "\t{";
+ protected final String TEXT_174 = ")adapterFactory).getResourceLocator();";
+ protected final String TEXT_175 = NL + "\t\treturn ";
+ protected final String TEXT_176 = ".INSTANCE;";
+ protected final String TEXT_177 = NL + "}";
public String generate(Object argument)
{
@@ -352,707 +228,707 @@ public class ItemProvider
stringBuffer.append(genClass.getRawQualifiedInterfaceName());
stringBuffer.append(TEXT_7);
if (genClass.hasImplicitAPITags()) {
- stringBuffer.append(TEXT_8);
+ stringBuffer.append(TEXT_3);
stringBuffer.append(genClass.getImplicitAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_9);
+ stringBuffer.append(TEXT_8);
if (isJDK50 && genClass.hasImplicitAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_10);
+ stringBuffer.append(TEXT_9);
}
- stringBuffer.append(TEXT_11);
+ stringBuffer.append(TEXT_10);
stringBuffer.append(genClass.getProviderClassName());
- stringBuffer.append(TEXT_12);
+ stringBuffer.append(TEXT_11);
if (genClass.getProviderImplementsClassNames().isEmpty()) {
- stringBuffer.append(TEXT_13);
+ stringBuffer.append(TEXT_12);
stringBuffer.append(genClass.getProviderBaseClassName() != null ? genClass.getProviderBaseClassName() : genModel.getImportedName("org.eclipse.emf.edit.provider.ItemProviderAdapter"));
}
if (!genClass.getProviderImplementsClassNames().isEmpty()) {
- stringBuffer.append(TEXT_14);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(genClass.getProviderBaseClassName() != null ? genClass.getProviderBaseClassName() : genModel.getImportedName("org.eclipse.emf.edit.provider.ItemProviderAdapter"));
- stringBuffer.append(TEXT_15);
+ stringBuffer.append(TEXT_14);
for (Iterator<String> i = genClass.getProviderImplementsClassNames().iterator(); i.hasNext(); ) {
- stringBuffer.append(TEXT_16);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genModel.getImportedName(i.next()));
if (i.hasNext()){
- stringBuffer.append(TEXT_17);
+ stringBuffer.append(TEXT_16);
}
}
}
- stringBuffer.append(TEXT_18);
+ stringBuffer.append(TEXT_17);
if (genModel.hasCopyrightField()) {
- stringBuffer.append(TEXT_19);
+ stringBuffer.append(TEXT_18);
stringBuffer.append(genModel.getImportedName("java.lang.String"));
- stringBuffer.append(TEXT_20);
+ stringBuffer.append(TEXT_19);
stringBuffer.append(genModel.getCopyrightFieldLiteral());
- stringBuffer.append(TEXT_21);
+ stringBuffer.append(TEXT_20);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_21);
}
- stringBuffer.append(TEXT_23);
+ stringBuffer.append(TEXT_22);
stringBuffer.append(genClass.getProviderClassName());
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_23);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_25);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_26);
+ stringBuffer.append(TEXT_25);
stringBuffer.append(_List);
- stringBuffer.append(TEXT_27);
+ stringBuffer.append(TEXT_26);
for (GenFeature genFeature : genClass.getPropertyFeatures()) {
- stringBuffer.append(TEXT_28);
+ stringBuffer.append(TEXT_27);
stringBuffer.append(genFeature.getCapName());
- stringBuffer.append(TEXT_29);
+ stringBuffer.append(TEXT_28);
}
- stringBuffer.append(TEXT_30);
+ stringBuffer.append(TEXT_29);
for (GenFeature genFeature : genClass.getPropertyFeatures()) {
- stringBuffer.append(TEXT_31);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(genFeature.getFormattedName());
- stringBuffer.append(TEXT_32);
+ stringBuffer.append(TEXT_31);
if (genFeature.hasAPITags()) {
- stringBuffer.append(TEXT_33);
+ stringBuffer.append(TEXT_32);
stringBuffer.append(genFeature.getAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_34);
+ stringBuffer.append(TEXT_33);
if (isJDK50 && genFeature.hasAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_35);
+ stringBuffer.append(TEXT_34);
}
- stringBuffer.append(TEXT_36);
+ stringBuffer.append(TEXT_35);
stringBuffer.append(genFeature.getCapName());
+ stringBuffer.append(TEXT_36);
stringBuffer.append(TEXT_37);
- stringBuffer.append(TEXT_38);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.ComposeableAdapterFactory"));
- stringBuffer.append(TEXT_39);
+ stringBuffer.append(TEXT_38);
stringBuffer.append(genFeature.getGenClass().getName());
- stringBuffer.append(TEXT_40);
+ stringBuffer.append(TEXT_39);
stringBuffer.append(genFeature.getName());
- stringBuffer.append(TEXT_41);
+ stringBuffer.append(TEXT_40);
stringBuffer.append(genModel.getNonNLS());
if (genFeature.getPropertyDescription() == null || genFeature.getPropertyDescription().length() == 0) {
- stringBuffer.append(TEXT_42);
+ stringBuffer.append(TEXT_41);
stringBuffer.append(genFeature.getGenClass().getName());
- stringBuffer.append(TEXT_43);
+ stringBuffer.append(TEXT_39);
stringBuffer.append(genFeature.getName());
- stringBuffer.append(TEXT_44);
+ stringBuffer.append(TEXT_42);
stringBuffer.append(genFeature.getGenClass().getName());
- stringBuffer.append(TEXT_45);
+ stringBuffer.append(TEXT_43);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
stringBuffer.append(genModel.getNonNLS(3));
} else {
- stringBuffer.append(TEXT_46);
+ stringBuffer.append(TEXT_44);
stringBuffer.append(genFeature.getGenClass().getName());
- stringBuffer.append(TEXT_47);
+ stringBuffer.append(TEXT_39);
stringBuffer.append(genFeature.getName());
- stringBuffer.append(TEXT_48);
+ stringBuffer.append(TEXT_45);
stringBuffer.append(genModel.getNonNLS());
}
- stringBuffer.append(TEXT_49);
+ stringBuffer.append(TEXT_46);
stringBuffer.append(genFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_50);
+ stringBuffer.append(TEXT_47);
stringBuffer.append(genFeature.getProperty() == GenPropertyKind.EDITABLE_LITERAL ? "true" : "false");
- stringBuffer.append(TEXT_51);
+ stringBuffer.append(TEXT_47);
stringBuffer.append(genFeature.isPropertyMultiLine() ? "true" : "false");
- stringBuffer.append(TEXT_52);
+ stringBuffer.append(TEXT_47);
stringBuffer.append(genFeature.isPropertySortChoices() ? "true" : "false");
- stringBuffer.append(TEXT_53);
+ stringBuffer.append(TEXT_16);
if (genFeature.isReferenceType()) {
- stringBuffer.append(TEXT_54);
+ stringBuffer.append(TEXT_48);
} else {
- stringBuffer.append(TEXT_55);
+ stringBuffer.append(TEXT_46);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.ItemPropertyDescriptor"));
- stringBuffer.append(TEXT_56);
+ stringBuffer.append(TEXT_49);
stringBuffer.append(genFeature.getPropertyImageName());
- stringBuffer.append(TEXT_57);
+ stringBuffer.append(TEXT_16);
}
if (genFeature.getPropertyCategory() == null || genFeature.getPropertyCategory().length() == 0) {
- stringBuffer.append(TEXT_58);
+ stringBuffer.append(TEXT_48);
} else {
- stringBuffer.append(TEXT_59);
+ stringBuffer.append(TEXT_50);
stringBuffer.append(genModel.getPropertyCategoryKey(genFeature.getPropertyCategory()));
- stringBuffer.append(TEXT_60);
+ stringBuffer.append(TEXT_51);
stringBuffer.append(genModel.getNonNLS());
}
if (genFeature.getPropertyFilterFlags().isEmpty()) {
- stringBuffer.append(TEXT_61);
+ stringBuffer.append(TEXT_52);
} else {
- stringBuffer.append(TEXT_62);
+ stringBuffer.append(TEXT_53);
for (Iterator<String> j = genFeature.getPropertyFilterFlags().iterator(); j.hasNext();) { String filterFlag = j.next();
if (filterFlag != null && filterFlag.length() > 0) {
- stringBuffer.append(TEXT_63);
+ stringBuffer.append(TEXT_54);
stringBuffer.append(filterFlag);
- stringBuffer.append(TEXT_64);
+ stringBuffer.append(TEXT_55);
if (j.hasNext()) {
- stringBuffer.append(TEXT_65);
+ stringBuffer.append(TEXT_16);
}
stringBuffer.append(genModel.getNonNLS());
}
}
- stringBuffer.append(TEXT_66);
+ stringBuffer.append(TEXT_56);
}
//ItemProvider/addPropertyDescriptor.override.javajetinc
- stringBuffer.append(TEXT_67);
+ stringBuffer.append(TEXT_57);
}
if (!genClass.getChildrenFeatures().isEmpty()) {
- stringBuffer.append(TEXT_68);
+ stringBuffer.append(TEXT_58);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_69);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_70);
+ stringBuffer.append(TEXT_25);
stringBuffer.append(genModel.getImportedName(genModel.useGenerics() ? "java.util.Collection<? extends org.eclipse.emf.ecore.EStructuralFeature>" : "java.util.Collection"));
- stringBuffer.append(TEXT_71);
+ stringBuffer.append(TEXT_59);
for (GenFeature genFeature : genClass.getChildrenFeatures()) {
- stringBuffer.append(TEXT_72);
+ stringBuffer.append(TEXT_60);
stringBuffer.append(genFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_73);
+ stringBuffer.append(TEXT_61);
}
- stringBuffer.append(TEXT_74);
+ stringBuffer.append(TEXT_62);
if (!genClass.getChildrenFeatures().isEmpty()) {
- stringBuffer.append(TEXT_75);
+ stringBuffer.append(TEXT_63);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_76);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_77);
+ stringBuffer.append(TEXT_64);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
- stringBuffer.append(TEXT_78);
+ stringBuffer.append(TEXT_65);
}
}
if (genClass.needsHasChildrenMethodOverride()) {
- stringBuffer.append(TEXT_79);
+ stringBuffer.append(TEXT_63);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_80);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_81);
+ stringBuffer.append(TEXT_66);
stringBuffer.append(genModel.isOptimizedHasChildren());
- stringBuffer.append(TEXT_82);
+ stringBuffer.append(TEXT_67);
}
if (genClass.isImage()) {
- stringBuffer.append(TEXT_83);
+ stringBuffer.append(TEXT_68);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_84);
+ stringBuffer.append(TEXT_69);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_85);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_86);
+ stringBuffer.append(TEXT_70);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_87);
+ stringBuffer.append(TEXT_71);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_88);
+ stringBuffer.append(TEXT_57);
}
if (genClass.getProviderImplementsClassNames().contains("org.eclipse.emf.edit.provider.ITableItemLabelProvider")) {
- stringBuffer.append(TEXT_89);
+ stringBuffer.append(TEXT_72);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_90);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_91);
+ stringBuffer.append(TEXT_73);
}
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF26_VALUE && !genModel.isCreationIcons()) {
- stringBuffer.append(TEXT_92);
+ stringBuffer.append(TEXT_63);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_93);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_94);
+ stringBuffer.append(TEXT_74);
}
- stringBuffer.append(TEXT_95);
+ stringBuffer.append(TEXT_75);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_96);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_97);
+ stringBuffer.append(TEXT_76);
if (genModel.isStyleProviders()) {
- stringBuffer.append(TEXT_98);
+ stringBuffer.append(TEXT_77);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString"));
- stringBuffer.append(TEXT_99);
+ stringBuffer.append(TEXT_78);
} else {
if (genClass.isMapEntry()) {
- stringBuffer.append(TEXT_100);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genClass.getImportedInterfaceName());
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_101);
+ stringBuffer.append(TEXT_79);
}
- stringBuffer.append(TEXT_102);
+ stringBuffer.append(TEXT_11);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_103);
+ stringBuffer.append(TEXT_80);
stringBuffer.append(genClass.getImportedInterfaceName());
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_104);
+ stringBuffer.append(TEXT_79);
}
- stringBuffer.append(TEXT_105);
+ stringBuffer.append(TEXT_81);
if (!genClass.getMapEntryKeyFeature().isPropertyMultiLine() && !genClass.getMapEntryValueFeature().isPropertyMultiLine()) {
- stringBuffer.append(TEXT_106);
+ stringBuffer.append(TEXT_82);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_107);
+ stringBuffer.append(TEXT_83);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_108);
+ stringBuffer.append(TEXT_84);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
} else {
if (genClass.getMapEntryKeyFeature().isPropertyMultiLine()) {
- stringBuffer.append(TEXT_109);
+ stringBuffer.append(TEXT_85);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_110);
+ stringBuffer.append(TEXT_86);
stringBuffer.append(genModel.getNonNLS());
} else {
- stringBuffer.append(TEXT_111);
+ stringBuffer.append(TEXT_87);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_112);
+ stringBuffer.append(TEXT_88);
stringBuffer.append(genModel.getNonNLS());
}
if (genClass.getMapEntryValueFeature().isPropertyMultiLine()) {
- stringBuffer.append(TEXT_113);
+ stringBuffer.append(TEXT_89);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_114);
+ stringBuffer.append(TEXT_90);
stringBuffer.append(genModel.getNonNLS());
} else {
- stringBuffer.append(TEXT_115);
+ stringBuffer.append(TEXT_91);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_116);
+ stringBuffer.append(TEXT_84);
stringBuffer.append(genModel.getNonNLS());
}
- stringBuffer.append(TEXT_117);
+ stringBuffer.append(TEXT_92);
stringBuffer.append(genModel.getNonNLS());
}
} else if (genClass.getLabelFeature() != null) { GenFeature labelFeature = genClass.getLabelFeature();
if (labelFeature.isPrimitiveType() && !labelFeature.getGenClass().isDynamic() && !labelFeature.isSuppressedGetVisibility()) {
- stringBuffer.append(TEXT_118);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genClass.getImportedInterfaceName());
stringBuffer.append(genClass.getInterfaceWildTypeArguments());
- stringBuffer.append(TEXT_119);
+ stringBuffer.append(TEXT_11);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_120);
+ stringBuffer.append(TEXT_80);
stringBuffer.append(genClass.getImportedInterfaceName());
stringBuffer.append(genClass.getInterfaceWildTypeArguments());
- stringBuffer.append(TEXT_121);
+ stringBuffer.append(TEXT_93);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_122);
+ stringBuffer.append(TEXT_94);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_123);
+ stringBuffer.append(TEXT_49);
stringBuffer.append(genClass.getLabelFeature().getGetAccessor());
- stringBuffer.append(TEXT_124);
+ stringBuffer.append(TEXT_95);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
} else {
if (labelFeature.isStringType() && !labelFeature.getGenClass().isDynamic() && !labelFeature.isSuppressedGetVisibility()) {
if (labelFeature.isPropertyMultiLine()) {
- stringBuffer.append(TEXT_125);
+ stringBuffer.append(TEXT_96);
stringBuffer.append(genClass.getImportedInterfaceName());
stringBuffer.append(genClass.getInterfaceWildTypeArguments());
- stringBuffer.append(TEXT_126);
+ stringBuffer.append(TEXT_97);
stringBuffer.append(labelFeature.getGetAccessor());
- stringBuffer.append(TEXT_127);
+ stringBuffer.append(TEXT_98);
} else {
- stringBuffer.append(TEXT_128);
+ stringBuffer.append(TEXT_99);
stringBuffer.append(genClass.getImportedInterfaceName());
stringBuffer.append(genClass.getInterfaceWildTypeArguments());
- stringBuffer.append(TEXT_129);
+ stringBuffer.append(TEXT_97);
stringBuffer.append(labelFeature.getGetAccessor());
- stringBuffer.append(TEXT_130);
+ stringBuffer.append(TEXT_95);
}
} else {
if (labelFeature.isSuppressedGetVisibility() || labelFeature.getGenClass().isDynamic()) {
- stringBuffer.append(TEXT_131);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genModel.getImportedName("java.lang.Object"));
- stringBuffer.append(TEXT_132);
+ stringBuffer.append(TEXT_100);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_133);
+ stringBuffer.append(TEXT_101);
stringBuffer.append(labelFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_134);
+ stringBuffer.append(TEXT_61);
} else {
- stringBuffer.append(TEXT_135);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(labelFeature.getRawImportedType());
- stringBuffer.append(TEXT_136);
+ stringBuffer.append(TEXT_100);
stringBuffer.append(genClass.getImportedInterfaceName());
stringBuffer.append(genClass.getInterfaceWildTypeArguments());
- stringBuffer.append(TEXT_137);
+ stringBuffer.append(TEXT_97);
stringBuffer.append(labelFeature.getGetAccessor());
- stringBuffer.append(TEXT_138);
+ stringBuffer.append(TEXT_95);
}
- stringBuffer.append(TEXT_139);
+ stringBuffer.append(TEXT_102);
}
- stringBuffer.append(TEXT_140);
+ stringBuffer.append(TEXT_103);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_141);
+ stringBuffer.append(TEXT_104);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_142);
+ stringBuffer.append(TEXT_105);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_143);
+ stringBuffer.append(TEXT_106);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
}
} else {
- stringBuffer.append(TEXT_144);
+ stringBuffer.append(TEXT_107);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_145);
+ stringBuffer.append(TEXT_108);
stringBuffer.append(genModel.getNonNLS());
}
}
//ItemProvider/getText.override.javajetinc
- stringBuffer.append(TEXT_146);
+ stringBuffer.append(TEXT_57);
if (genClass.getProviderImplementsClassNames().contains("org.eclipse.emf.edit.provider.ITableItemLabelProvider")) {
- stringBuffer.append(TEXT_147);
+ stringBuffer.append(TEXT_109);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_148);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_149);
+ stringBuffer.append(TEXT_110);
}
if (genModel.isStyleProviders()) {
- stringBuffer.append(TEXT_150);
+ stringBuffer.append(TEXT_111);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_151);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_152);
+ stringBuffer.append(TEXT_112);
if (genClass.isMapEntry()) {
- stringBuffer.append(TEXT_153);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genClass.getImportedInterfaceName());
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_154);
+ stringBuffer.append(TEXT_79);
}
- stringBuffer.append(TEXT_155);
+ stringBuffer.append(TEXT_11);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_156);
+ stringBuffer.append(TEXT_80);
stringBuffer.append(genClass.getImportedInterfaceName());
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_157);
+ stringBuffer.append(TEXT_79);
}
- stringBuffer.append(TEXT_158);
+ stringBuffer.append(TEXT_81);
if (!genClass.getMapEntryKeyFeature().isPropertyMultiLine() && !genClass.getMapEntryValueFeature().isPropertyMultiLine()) {
- stringBuffer.append(TEXT_159);
+ stringBuffer.append(TEXT_113);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString"));
- stringBuffer.append(TEXT_160);
+ stringBuffer.append(TEXT_114);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_161);
+ stringBuffer.append(TEXT_115);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString$Style"));
- stringBuffer.append(TEXT_162);
+ stringBuffer.append(TEXT_116);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_163);
+ stringBuffer.append(TEXT_90);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
} else {
if (genClass.getMapEntryKeyFeature().isPropertyMultiLine()) {
- stringBuffer.append(TEXT_164);
+ stringBuffer.append(TEXT_85);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_165);
+ stringBuffer.append(TEXT_86);
stringBuffer.append(genModel.getNonNLS());
} else {
- stringBuffer.append(TEXT_166);
+ stringBuffer.append(TEXT_87);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_167);
+ stringBuffer.append(TEXT_88);
stringBuffer.append(genModel.getNonNLS());
}
if (genClass.getMapEntryValueFeature().isPropertyMultiLine()) {
- stringBuffer.append(TEXT_168);
+ stringBuffer.append(TEXT_89);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_169);
+ stringBuffer.append(TEXT_90);
stringBuffer.append(genModel.getNonNLS());
} else {
- stringBuffer.append(TEXT_170);
+ stringBuffer.append(TEXT_91);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_171);
+ stringBuffer.append(TEXT_84);
stringBuffer.append(genModel.getNonNLS());
}
- stringBuffer.append(TEXT_172);
+ stringBuffer.append(TEXT_113);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString"));
- stringBuffer.append(TEXT_173);
+ stringBuffer.append(TEXT_117);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString$Style"));
- stringBuffer.append(TEXT_174);
+ stringBuffer.append(TEXT_118);
stringBuffer.append(genModel.getNonNLS());
}
} else if (genClass.getLabelFeature() != null) { GenFeature labelFeature = genClass.getLabelFeature();
if (labelFeature.isPrimitiveType() && !labelFeature.getGenClass().isDynamic() && !labelFeature.isSuppressedGetVisibility()) {
- stringBuffer.append(TEXT_175);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genClass.getImportedInterfaceName());
stringBuffer.append(genClass.getInterfaceWildTypeArguments());
- stringBuffer.append(TEXT_176);
+ stringBuffer.append(TEXT_11);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_177);
+ stringBuffer.append(TEXT_80);
stringBuffer.append(genClass.getImportedInterfaceName());
stringBuffer.append(genClass.getInterfaceWildTypeArguments());
- stringBuffer.append(TEXT_178);
+ stringBuffer.append(TEXT_119);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString"));
- stringBuffer.append(TEXT_179);
+ stringBuffer.append(TEXT_120);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_180);
+ stringBuffer.append(TEXT_121);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString$Style"));
- stringBuffer.append(TEXT_181);
+ stringBuffer.append(TEXT_122);
stringBuffer.append(labelFeature.getObjectType(genClass));
- stringBuffer.append(TEXT_182);
+ stringBuffer.append(TEXT_123);
stringBuffer.append(genClass.getSafeUncapName());
- stringBuffer.append(TEXT_183);
+ stringBuffer.append(TEXT_49);
stringBuffer.append(genClass.getLabelFeature().getGetAccessor());
- stringBuffer.append(TEXT_184);
+ stringBuffer.append(TEXT_124);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
} else {
if (labelFeature.isStringType() && !labelFeature.getGenClass().isDynamic() && !labelFeature.isSuppressedGetVisibility()) {
if (labelFeature.isPropertyMultiLine()) {
- stringBuffer.append(TEXT_185);
+ stringBuffer.append(TEXT_96);
stringBuffer.append(genClass.getImportedInterfaceName());
stringBuffer.append(genClass.getInterfaceWildTypeArguments());
- stringBuffer.append(TEXT_186);
+ stringBuffer.append(TEXT_97);
stringBuffer.append(labelFeature.getGetAccessor());
- stringBuffer.append(TEXT_187);
+ stringBuffer.append(TEXT_98);
} else {
- stringBuffer.append(TEXT_188);
+ stringBuffer.append(TEXT_99);
stringBuffer.append(genClass.getImportedInterfaceName());
stringBuffer.append(genClass.getInterfaceWildTypeArguments());
- stringBuffer.append(TEXT_189);
+ stringBuffer.append(TEXT_97);
stringBuffer.append(labelFeature.getGetAccessor());
- stringBuffer.append(TEXT_190);
+ stringBuffer.append(TEXT_95);
}
} else {
if (labelFeature.isSuppressedGetVisibility() || labelFeature.getGenClass().isDynamic()) {
- stringBuffer.append(TEXT_191);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genModel.getImportedName("java.lang.Object"));
- stringBuffer.append(TEXT_192);
+ stringBuffer.append(TEXT_100);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_193);
+ stringBuffer.append(TEXT_101);
stringBuffer.append(labelFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_194);
+ stringBuffer.append(TEXT_61);
} else {
- stringBuffer.append(TEXT_195);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(labelFeature.getRawImportedType());
- stringBuffer.append(TEXT_196);
+ stringBuffer.append(TEXT_100);
stringBuffer.append(genClass.getImportedInterfaceName());
stringBuffer.append(genClass.getInterfaceWildTypeArguments());
- stringBuffer.append(TEXT_197);
+ stringBuffer.append(TEXT_97);
stringBuffer.append(labelFeature.getGetAccessor());
- stringBuffer.append(TEXT_198);
+ stringBuffer.append(TEXT_95);
}
- stringBuffer.append(TEXT_199);
+ stringBuffer.append(TEXT_102);
}
- stringBuffer.append(TEXT_200);
+ stringBuffer.append(TEXT_125);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString"));
- stringBuffer.append(TEXT_201);
+ stringBuffer.append(TEXT_126);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString"));
- stringBuffer.append(TEXT_202);
+ stringBuffer.append(TEXT_127);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_203);
+ stringBuffer.append(TEXT_121);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString$Style"));
- stringBuffer.append(TEXT_204);
+ stringBuffer.append(TEXT_128);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_205);
+ stringBuffer.append(TEXT_129);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_206);
+ stringBuffer.append(TEXT_121);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString$Style"));
- stringBuffer.append(TEXT_207);
+ stringBuffer.append(TEXT_130);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
- stringBuffer.append(TEXT_208);
+ stringBuffer.append(TEXT_131);
}
} else {
- stringBuffer.append(TEXT_209);
+ stringBuffer.append(TEXT_113);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.StyledString"));
- stringBuffer.append(TEXT_210);
+ stringBuffer.append(TEXT_120);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_211);
+ stringBuffer.append(TEXT_132);
stringBuffer.append(genModel.getNonNLS());
}
//ItemProvider/getStyledText.override.javajetinc
- stringBuffer.append(TEXT_212);
+ stringBuffer.append(TEXT_133);
}
- stringBuffer.append(TEXT_213);
+ stringBuffer.append(TEXT_134);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_214);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_215);
+ stringBuffer.append(TEXT_135);
if (!genClass.getLabelNotifyFeatures().isEmpty() || !genClass.getContentNotifyFeatures().isEmpty() || !genClass.getLabelAndContentNotifyFeatures().isEmpty()) {
- stringBuffer.append(TEXT_216);
+ stringBuffer.append(TEXT_136);
stringBuffer.append(genClass.getRawImportedInterfaceName());
- stringBuffer.append(TEXT_217);
+ stringBuffer.append(TEXT_137);
if (!genClass.getLabelNotifyFeatures().isEmpty()) {
for (GenFeature genFeature : genClass.getLabelNotifyFeatures()) {
- stringBuffer.append(TEXT_218);
+ stringBuffer.append(TEXT_138);
stringBuffer.append(genClass.getQualifiedFeatureID(genFeature));
- stringBuffer.append(TEXT_219);
+ stringBuffer.append(TEXT_139);
}
- stringBuffer.append(TEXT_220);
+ stringBuffer.append(TEXT_140);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.ViewerNotification"));
- stringBuffer.append(TEXT_221);
+ stringBuffer.append(TEXT_141);
}
if (!genClass.getContentNotifyFeatures().isEmpty()) {
for (GenFeature genFeature : genClass.getContentNotifyFeatures()) {
- stringBuffer.append(TEXT_222);
+ stringBuffer.append(TEXT_138);
stringBuffer.append(genClass.getQualifiedFeatureID(genFeature));
- stringBuffer.append(TEXT_223);
+ stringBuffer.append(TEXT_139);
}
- stringBuffer.append(TEXT_224);
+ stringBuffer.append(TEXT_140);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.ViewerNotification"));
- stringBuffer.append(TEXT_225);
+ stringBuffer.append(TEXT_142);
}
if (!genClass.getLabelAndContentNotifyFeatures().isEmpty()) {
for (GenFeature genFeature : genClass.getLabelAndContentNotifyFeatures()) {
- stringBuffer.append(TEXT_226);
+ stringBuffer.append(TEXT_138);
stringBuffer.append(genClass.getQualifiedFeatureID(genFeature));
- stringBuffer.append(TEXT_227);
+ stringBuffer.append(TEXT_139);
}
- stringBuffer.append(TEXT_228);
+ stringBuffer.append(TEXT_140);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.ViewerNotification"));
- stringBuffer.append(TEXT_229);
+ stringBuffer.append(TEXT_143);
}
- stringBuffer.append(TEXT_230);
+ stringBuffer.append(TEXT_144);
}
- stringBuffer.append(TEXT_231);
+ stringBuffer.append(TEXT_145);
if (genModel.isCreationCommands()) {
- stringBuffer.append(TEXT_232);
+ stringBuffer.append(TEXT_146);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_233);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_234);
+ stringBuffer.append(TEXT_147);
stringBuffer.append(genModel.getImportedName(genModel.useGenerics() ? "java.util.Collection<java.lang.Object>" : "java.util.Collection"));
- stringBuffer.append(TEXT_235);
+ stringBuffer.append(TEXT_148);
for (GenClass.ChildCreationData childCreationData : genClass.getChildCreationData()) { GenFeature createFeature = childCreationData.createFeature; GenFeature delegatedFeature = childCreationData.delegatedFeature; GenClassifier createClassifier = childCreationData.createClassifier;
if (createFeature.isFeatureMapType()) {
if (delegatedFeature.isReferenceType()) { GenClass createClass = (GenClass)createClassifier;
- stringBuffer.append(TEXT_236);
+ stringBuffer.append(TEXT_149);
stringBuffer.append(createFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_237);
+ stringBuffer.append(TEXT_47);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.util.FeatureMapUtil"));
- stringBuffer.append(TEXT_238);
+ stringBuffer.append(TEXT_150);
stringBuffer.append(delegatedFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_239);
+ stringBuffer.append(TEXT_16);
if (createClass.isMapEntry()) {
- stringBuffer.append(TEXT_240);
+ stringBuffer.append(TEXT_151);
stringBuffer.append(createClass.getGenPackage().getQualifiedEFactoryInstanceAccessor());
- stringBuffer.append(TEXT_241);
+ stringBuffer.append(TEXT_152);
stringBuffer.append(createClass.getQualifiedClassifierAccessor());
- stringBuffer.append(TEXT_242);
+ stringBuffer.append(TEXT_153);
} else {
- stringBuffer.append(TEXT_243);
+ stringBuffer.append(TEXT_151);
stringBuffer.append(createClass.getGenPackage().getQualifiedFactoryInstanceAccessor());
- stringBuffer.append(TEXT_244);
+ stringBuffer.append(TEXT_154);
stringBuffer.append(createClass.getName());
- stringBuffer.append(TEXT_245);
+ stringBuffer.append(TEXT_155);
}
//ItemProvider/newChildDescriptorsReferenceDelegatedFeature.override.javajetinc
} else { GenDataType createDataType = (GenDataType)createClassifier;
- stringBuffer.append(TEXT_246);
+ stringBuffer.append(TEXT_149);
stringBuffer.append(createFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_247);
+ stringBuffer.append(TEXT_47);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.util.FeatureMapUtil"));
- stringBuffer.append(TEXT_248);
+ stringBuffer.append(TEXT_150);
stringBuffer.append(delegatedFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_249);
+ stringBuffer.append(TEXT_16);
if (delegatedFeature.isEnumBasedType()) {
- stringBuffer.append(TEXT_250);
+ stringBuffer.append(TEXT_151);
stringBuffer.append(delegatedFeature.getTypeGenEnum().getStaticValue(delegatedFeature.getEcoreFeature().getDefaultValueLiteral()));
- stringBuffer.append(TEXT_251);
+ stringBuffer.append(TEXT_156);
} else if (delegatedFeature.isStringBasedType()) {
- stringBuffer.append(TEXT_252);
+ stringBuffer.append(TEXT_151);
stringBuffer.append(delegatedFeature.getCreateChildValueLiteral());
- stringBuffer.append(TEXT_253);
+ stringBuffer.append(TEXT_156);
stringBuffer.append(genModel.getNonNLS());
} else { String literal = delegatedFeature.getCreateChildValueLiteral();
- stringBuffer.append(TEXT_254);
+ stringBuffer.append(TEXT_151);
stringBuffer.append(createDataType.getGenPackage().getQualifiedEFactoryInstanceAccessor());
- stringBuffer.append(TEXT_255);
+ stringBuffer.append(TEXT_157);
stringBuffer.append(createDataType.getQualifiedClassifierAccessor());
- stringBuffer.append(TEXT_256);
+ stringBuffer.append(TEXT_158);
stringBuffer.append(literal);
- stringBuffer.append(TEXT_257);
+ stringBuffer.append(TEXT_153);
if (literal != null) {
stringBuffer.append(genModel.getNonNLS());
} else {
- stringBuffer.append(TEXT_258);
+ stringBuffer.append(TEXT_159);
}
}
//ItemProvider/newChildDescriptorsAttributeDelegatedFeature.override.javajetinc
}
} else if (createFeature.isReferenceType()) { GenClass createClass = (GenClass)createClassifier;
- stringBuffer.append(TEXT_259);
+ stringBuffer.append(TEXT_149);
stringBuffer.append(createFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_260);
+ stringBuffer.append(TEXT_16);
if (createClass.isMapEntry()) {
- stringBuffer.append(TEXT_261);
+ stringBuffer.append(TEXT_46);
stringBuffer.append(createClass.getGenPackage().getQualifiedEFactoryInstanceAccessor());
- stringBuffer.append(TEXT_262);
+ stringBuffer.append(TEXT_152);
stringBuffer.append(createClass.getQualifiedClassifierAccessor());
- stringBuffer.append(TEXT_263);
+ stringBuffer.append(TEXT_156);
} else {
- stringBuffer.append(TEXT_264);
+ stringBuffer.append(TEXT_46);
stringBuffer.append(createClass.getGenPackage().getQualifiedFactoryInstanceAccessor());
- stringBuffer.append(TEXT_265);
+ stringBuffer.append(TEXT_154);
stringBuffer.append(createClass.getName());
- stringBuffer.append(TEXT_266);
+ stringBuffer.append(TEXT_124);
}
//ItemProvider/newChildDescriptorsReferenceFeature.override.javajetinc
} else { GenDataType createDataType = (GenDataType)createClassifier;
- stringBuffer.append(TEXT_267);
+ stringBuffer.append(TEXT_149);
stringBuffer.append(createFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_268);
+ stringBuffer.append(TEXT_16);
if (createFeature.isEnumBasedType()) {
- stringBuffer.append(TEXT_269);
+ stringBuffer.append(TEXT_46);
stringBuffer.append(createFeature.getTypeGenEnum().getStaticValue(createFeature.getEcoreFeature().getDefaultValueLiteral()));
- stringBuffer.append(TEXT_270);
+ stringBuffer.append(TEXT_160);
} else if (createFeature.isStringBasedType()) {
- stringBuffer.append(TEXT_271);
+ stringBuffer.append(TEXT_46);
stringBuffer.append(createFeature.getCreateChildValueLiteral());
- stringBuffer.append(TEXT_272);
+ stringBuffer.append(TEXT_160);
stringBuffer.append(genModel.getNonNLS());
} else { String literal = createFeature.getCreateChildValueLiteral();
- stringBuffer.append(TEXT_273);
+ stringBuffer.append(TEXT_46);
stringBuffer.append(createDataType.getGenPackage().getQualifiedEFactoryInstanceAccessor());
- stringBuffer.append(TEXT_274);
+ stringBuffer.append(TEXT_157);
stringBuffer.append(createDataType.getQualifiedClassifierAccessor());
- stringBuffer.append(TEXT_275);
+ stringBuffer.append(TEXT_158);
stringBuffer.append(literal);
- stringBuffer.append(TEXT_276);
+ stringBuffer.append(TEXT_156);
if (literal != null) {
stringBuffer.append(genModel.getNonNLS());
} else {
- stringBuffer.append(TEXT_277);
+ stringBuffer.append(TEXT_159);
}
}
//ItemProvider/newChildDescriptorsAttributeFeature.override.javajetinc
}
}
- stringBuffer.append(TEXT_278);
+ stringBuffer.append(TEXT_57);
if (!genClass.getSharedClassCreateChildFeatures().isEmpty()) {
- stringBuffer.append(TEXT_279);
+ stringBuffer.append(TEXT_161);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_280);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_281);
+ stringBuffer.append(TEXT_162);
stringBuffer.append(genModel.getImportedName(genModel.useGenerics() ? "java.util.Collection<?>" : "java.util.Collection"));
- stringBuffer.append(TEXT_282);
+ stringBuffer.append(TEXT_163);
if (genClass.hasFeatureMapCreateChildFeatures()) {
- stringBuffer.append(TEXT_283);
+ stringBuffer.append(TEXT_164);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EStructuralFeature"));
- stringBuffer.append(TEXT_284);
+ stringBuffer.append(TEXT_165);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.util.FeatureMapUtil"));
- stringBuffer.append(TEXT_285);
+ stringBuffer.append(TEXT_166);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.util.FeatureMap"));
- stringBuffer.append(TEXT_286);
+ stringBuffer.append(TEXT_167);
}
- stringBuffer.append(TEXT_287);
+ stringBuffer.append(TEXT_168);
for (Iterator<GenFeature> i = genClass.getSharedClassCreateChildFeatures().iterator(); i.hasNext();) { GenFeature createFeature = i.next();
- stringBuffer.append(TEXT_288);
+ stringBuffer.append(TEXT_169);
stringBuffer.append(createFeature.getQualifiedFeatureAccessor());
stringBuffer.append(i.hasNext() ? " ||" : ";");
}
- stringBuffer.append(TEXT_289);
+ stringBuffer.append(TEXT_170);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_290);
+ stringBuffer.append(TEXT_171);
}
}
if (genClass.getProviderExtendsGenClass() == null || genClass.getProviderExtendsGenClass().getGenPackage() != genPackage && (!genPackage.isExtensibleProviderFactory() || genClass.getProviderExtendsGenClass().getGenPackage().isExtensibleProviderFactory() != genPackage.isExtensibleProviderFactory())) {
- stringBuffer.append(TEXT_291);
+ stringBuffer.append(TEXT_172);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_292);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_293);
+ stringBuffer.append(TEXT_25);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.ResourceLocator"));
- stringBuffer.append(TEXT_294);
+ stringBuffer.append(TEXT_173);
if (genPackage.isExtensibleProviderFactory()) {
- stringBuffer.append(TEXT_295);
+ stringBuffer.append(TEXT_77);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.IChildCreationExtender"));
- stringBuffer.append(TEXT_296);
+ stringBuffer.append(TEXT_174);
} else {
- stringBuffer.append(TEXT_297);
+ stringBuffer.append(TEXT_175);
stringBuffer.append(genPackage.getImportedEditPluginClassName());
- stringBuffer.append(TEXT_298);
+ stringBuffer.append(TEXT_176);
}
- stringBuffer.append(TEXT_299);
+ stringBuffer.append(TEXT_57);
}
- stringBuffer.append(TEXT_300);
+ stringBuffer.append(TEXT_177);
genModel.emitSortedImports();
- stringBuffer.append(TEXT_301);
+ stringBuffer.append(TEXT_21);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ItemProviderAdapterFactory.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ItemProviderAdapterFactory.java
index 0074505be..ab1d3cf80 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ItemProviderAdapterFactory.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ItemProviderAdapterFactory.java
@@ -22,189 +22,135 @@ public class ItemProviderAdapterFactory
protected final String TEXT_4 = NL + " */" + NL + "package ";
protected final String TEXT_5 = ";" + NL;
protected final String TEXT_6 = NL + NL + "/**" + NL + " * This is the factory that is used to provide the interfaces needed to support Viewers." + NL + " * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}." + NL + " * The adapters also support Eclipse property sheets." + NL + " * Note that most of the adapters are shared among multiple instances." + NL + " * <!-- begin-user-doc -->" + NL + " * <!-- end-user-doc -->";
- protected final String TEXT_7 = NL + " * ";
- protected final String TEXT_8 = NL + " * @generated" + NL + " */";
- protected final String TEXT_9 = NL + "@Deprecated";
- protected final String TEXT_10 = NL + "@SuppressWarnings(\"deprecation\")";
- protected final String TEXT_11 = NL + "public class ";
- protected final String TEXT_12 = " extends ";
- protected final String TEXT_13 = " implements ComposeableAdapterFactory, IChangeNotifier";
- protected final String TEXT_14 = ", ";
- protected final String TEXT_15 = ", ";
- protected final String TEXT_16 = NL + "{";
- protected final String TEXT_17 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
- protected final String TEXT_18 = " copyright = ";
- protected final String TEXT_19 = ";";
- protected final String TEXT_20 = NL;
- protected final String TEXT_21 = NL + "\t/**" + NL + "\t * This keeps track of the root adapter factory that delegates to this adapter factory." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ComposedAdapterFactory parentAdapterFactory;" + NL + "" + NL + "\t/**" + NL + "\t * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IChangeNotifier changeNotifier = new ChangeNotifier();" + NL;
- protected final String TEXT_22 = NL + "\t/**" + NL + "\t * This keeps track of all the item providers created, so that they can be {@link #dispose disposed}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_23 = " disposable = new Disposable();" + NL;
- protected final String TEXT_24 = NL + "\t/**" + NL + "\t * This helps manage the child creation extenders." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_25 = " childCreationExtenderManager = new ";
- protected final String TEXT_26 = "(";
- protected final String TEXT_27 = ".INSTANCE, ";
- protected final String TEXT_28 = ".eNS_URI);" + NL;
- protected final String TEXT_29 = NL + "\t/**" + NL + "\t * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_30 = " supportedTypes = new ";
- protected final String TEXT_31 = "();" + NL + "" + NL + "\t/**" + NL + "\t * This constructs an instance." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_32 = "()" + NL + "\t{";
- protected final String TEXT_33 = NL + "\t\tsupportedTypes.add(";
- protected final String TEXT_34 = ".class);";
- protected final String TEXT_35 = NL + "\t}" + NL;
- protected final String TEXT_36 = NL + "\t/**" + NL + "\t * This keeps track of the factory to which to delegate adapter creation for objects from that package." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_37 = " ";
- protected final String TEXT_38 = " = null;" + NL + "" + NL + "\t/**" + NL + "\t * This determines the delegate factory for the package." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_39 = " get";
- protected final String TEXT_40 = "()" + NL + "\t{" + NL + "\t\tif (";
- protected final String TEXT_41 = " == null)" + NL + "\t\t{" + NL + "\t\t\t";
- protected final String TEXT_42 = " rootAdapterFactory = getRootAdapterFactory();" + NL + "\t\t\tif (rootAdapterFactory instanceof ComposedAdapterFactory)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
- protected final String TEXT_43 = " delegateAdapterFactory =" + NL + "\t\t\t\t\t((ComposedAdapterFactory)rootAdapterFactory).getFactoryForType(";
- protected final String TEXT_44 = ".getPackage());" + NL + "\t\t\t\tif (delegateAdapterFactory instanceof ";
- protected final String TEXT_45 = ")" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_46 = " = (";
- protected final String TEXT_47 = ")delegateAdapterFactory;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn ";
- protected final String TEXT_48 = ";" + NL + "\t}" + NL;
- protected final String TEXT_49 = NL + "\t/**" + NL + "\t * This keeps track of the one adapter used for all {@link ";
- protected final String TEXT_50 = "} instances." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->";
- protected final String TEXT_51 = NL + "\t * ";
- protected final String TEXT_52 = NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_53 = NL + "\t@Deprecated";
- protected final String TEXT_54 = NL + "\tprotected ";
- protected final String TEXT_55 = " ";
- protected final String TEXT_56 = "ItemProvider;" + NL + "" + NL + "\t/**" + NL + "\t * This creates an adapter for a {@link ";
- protected final String TEXT_57 = "}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->";
- protected final String TEXT_58 = NL + "\t * ";
- protected final String TEXT_59 = NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_60 = NL + "\t@Deprecated";
- protected final String TEXT_61 = NL + "\t@Override";
- protected final String TEXT_62 = NL + "\tpublic Adapter create";
- protected final String TEXT_63 = "Adapter()" + NL + "\t{" + NL + "\t\tif (";
- protected final String TEXT_64 = "ItemProvider == null)" + NL + "\t\t{" + NL + "\t\t\t";
- protected final String TEXT_65 = "ItemProvider = new ";
- protected final String TEXT_66 = "(this);" + NL + "\t\t}" + NL + "" + NL + "\t\treturn ";
- protected final String TEXT_67 = "ItemProvider;" + NL + "\t}" + NL;
- protected final String TEXT_68 = NL + "\t/**" + NL + "\t * This creates an adapter for a {@link ";
- protected final String TEXT_69 = "}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->";
- protected final String TEXT_70 = NL + "\t * ";
- protected final String TEXT_71 = NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_72 = NL + "\t@Deprecated";
- protected final String TEXT_73 = NL + "\t@Override";
- protected final String TEXT_74 = NL + "\tpublic Adapter create";
- protected final String TEXT_75 = "Adapter()" + NL + "\t{" + NL + "\t\treturn new ";
- protected final String TEXT_76 = "(this);" + NL + "\t}" + NL;
- protected final String TEXT_77 = NL + "\t/**" + NL + "\t * ";
- protected final String TEXT_78 = " of ";
- protected final String TEXT_79 = NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->";
- protected final String TEXT_80 = NL + "\t * ";
- protected final String TEXT_81 = NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_82 = NL + "\t@Deprecated";
- protected final String TEXT_83 = NL + "\tpublic Adapter create";
- protected final String TEXT_84 = "Adapter()" + NL + "\t{" + NL + "\t\treturn" + NL + "\t\t\tget";
- protected final String TEXT_85 = "() == null ?" + NL + "\t\t\t\tnull :" + NL + "\t\t\t\tget";
- protected final String TEXT_86 = "().create";
- protected final String TEXT_87 = "Adapter();" + NL + "\t}" + NL;
- protected final String TEXT_88 = NL + "\t/**" + NL + "\t * This returns the root adapter factory that contains this factory." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ComposeableAdapterFactory getRootAdapterFactory()" + NL + "\t{" + NL + "\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This sets the composed adapter factory that contains this factory." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)" + NL + "\t{" + NL + "\t\tthis.parentAdapterFactory = parentAdapterFactory;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_89 = NL + "\t@Override";
- protected final String TEXT_90 = NL + "\tpublic boolean isFactoryForType(Object type)" + NL + "\t{" + NL + "\t\treturn supportedTypes.contains(type) || super.isFactoryForType(type);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implementation substitutes the factory itself as the key for the adapter." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_91 = NL + "\t@Override";
- protected final String TEXT_92 = NL + "\tpublic Adapter adapt(Notifier notifier, Object type)" + NL + "\t{" + NL + "\t\treturn super.adapt(notifier, this);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_93 = NL + "\t@Override";
- protected final String TEXT_94 = NL + "\tpublic Object adapt(Object object, Object type)" + NL + "\t{" + NL + "\t\tif (isFactoryForType(type))" + NL + "\t\t{" + NL + "\t\t\tObject adapter = super.adapt(object, type);" + NL + "\t\t\tif (!(type instanceof Class";
- protected final String TEXT_95 = "<?>";
- protected final String TEXT_96 = ") || ";
- protected final String TEXT_97 = ".isInstance((Class";
- protected final String TEXT_98 = "<?>";
- protected final String TEXT_99 = ")type, adapter)";
- protected final String TEXT_100 = "(((Class";
- protected final String TEXT_101 = "<?>";
- protected final String TEXT_102 = ")type).isInstance(adapter))";
- protected final String TEXT_103 = ")" + NL + "\t\t\t{" + NL + "\t\t\t\treturn adapter;" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\treturn null;" + NL + "\t}" + NL;
- protected final String TEXT_104 = NL + "\t/**" + NL + "\t * Associates an adapter with a notifier via the base implementation, then records it to ensure it will be disposed." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_105 = NL + "\t@Override";
- protected final String TEXT_106 = NL + "\tprotected void associate(Adapter adapter, Notifier target)" + NL + "\t{" + NL + "\t\tsuper.associate(adapter, target);" + NL + "\t\tif (adapter != null)" + NL + "\t\t{" + NL + "\t\t\tdisposable.add(adapter);" + NL + "\t\t}" + NL + "\t}" + NL;
- protected final String TEXT_107 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_108 = " getChildCreationExtenders()" + NL + "\t{" + NL + "\t\treturn childCreationExtenderManager.getChildCreationExtenders();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_109 = " getNewChildDescriptors(Object object, ";
- protected final String TEXT_110 = " editingDomain)" + NL + "\t{" + NL + "\t\treturn childCreationExtenderManager.getNewChildDescriptors(object, editingDomain);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_111 = " getResourceLocator()" + NL + "\t{" + NL + "\t\treturn childCreationExtenderManager;" + NL + "\t}" + NL;
- protected final String TEXT_112 = NL + "\t/**" + NL + "\t * This adds a listener." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addListener(INotifyChangedListener notifyChangedListener)" + NL + "\t{" + NL + "\t\tchangeNotifier.addListener(notifyChangedListener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This removes a listener." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeListener(INotifyChangedListener notifyChangedListener)" + NL + "\t{" + NL + "\t\tchangeNotifier.removeListener(notifyChangedListener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void fireNotifyChanged(Notification notification)" + NL + "\t{" + NL + "\t\tchangeNotifier.fireNotifyChanged(notification);" + NL + "" + NL + "\t\tif (parentAdapterFactory != null)" + NL + "\t\t{" + NL + "\t\t\tparentAdapterFactory.fireNotifyChanged(notification);" + NL + "\t\t}" + NL + "\t}" + NL;
- protected final String TEXT_113 = NL + "\t/**" + NL + "\t * This disposes all of the item providers created by this factory. " + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void dispose()" + NL + "\t{";
- protected final String TEXT_114 = NL + "\t\tdisposable.dispose();";
- protected final String TEXT_115 = NL + "\t\tif (";
- protected final String TEXT_116 = "ItemProvider != null) ";
- protected final String TEXT_117 = "ItemProvider.dispose();";
- protected final String TEXT_118 = NL + "\t}" + NL;
- protected final String TEXT_119 = NL + "\t/**" + NL + "\t * A child creation extender for the {@link ";
- protected final String TEXT_120 = "}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class ";
- protected final String TEXT_121 = " implements ";
- protected final String TEXT_122 = NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * The switch for creating child descriptors specific to each extended class." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected static class CreationSwitch extends ";
- protected final String TEXT_123 = NL + "\t\t{" + NL + "\t\t\t/**" + NL + "\t\t\t * The child descriptors being populated." + NL + "\t\t\t * <!-- begin-user-doc -->" + NL + "\t\t\t * <!-- end-user-doc -->" + NL + "\t\t\t * @generated" + NL + "\t\t\t */" + NL + "\t\t\tprotected ";
- protected final String TEXT_124 = " newChildDescriptors;" + NL + "" + NL + "\t\t\t/**" + NL + "\t\t\t * The domain in which to create the children." + NL + "\t\t\t * <!-- begin-user-doc -->" + NL + "\t\t\t * <!-- end-user-doc -->" + NL + "\t\t\t * @generated" + NL + "\t\t\t */" + NL + "\t\t\tprotected ";
- protected final String TEXT_125 = " editingDomain;" + NL + "" + NL + "\t\t\t/**" + NL + "\t\t\t * Creates the a switch for populating child descriptors in the given domain." + NL + "\t\t\t * <!-- begin-user-doc -->" + NL + "\t\t\t * <!-- end-user-doc -->" + NL + "\t\t\t * @generated" + NL + "\t\t\t */" + NL + "\t\t\tCreationSwitch(";
- protected final String TEXT_126 = " newChildDescriptors, ";
- protected final String TEXT_127 = " editingDomain) " + NL + "\t\t\t{" + NL + "\t\t\t\tthis.newChildDescriptors = newChildDescriptors;" + NL + "\t\t\t\tthis.editingDomain = editingDomain;" + NL + "\t\t\t}";
- protected final String TEXT_128 = NL + "\t\t\t/**" + NL + "\t\t\t * <!-- begin-user-doc -->" + NL + "\t\t\t * <!-- end-user-doc -->" + NL + "\t\t\t * @generated" + NL + "\t\t\t */";
- protected final String TEXT_129 = NL + "\t\t\t@Override";
- protected final String TEXT_130 = NL + "\t\t\tpublic ";
- protected final String TEXT_131 = "Object case";
- protected final String TEXT_132 = "(";
- protected final String TEXT_133 = " object)" + NL + "\t\t\t{";
- protected final String TEXT_134 = NL + "\t\t\t\tnewChildDescriptors.add" + NL + "\t\t\t\t\t(createChildParameter" + NL + "\t\t\t\t\t\t(";
- protected final String TEXT_135 = "," + NL + "\t\t\t\t\t\t ";
- protected final String TEXT_136 = ".createEntry" + NL + "\t\t\t\t\t\t\t(";
- protected final String TEXT_137 = ",";
- protected final String TEXT_138 = NL + "\t\t\t\t\t\t\t ";
- protected final String TEXT_139 = ".create(";
- protected final String TEXT_140 = "))));";
- protected final String TEXT_141 = NL + "\t\t\t\t\t\t\t ";
- protected final String TEXT_142 = ".create";
- protected final String TEXT_143 = "())));";
- protected final String TEXT_144 = NL + "\t\t\t\tnewChildDescriptors.add" + NL + "\t\t\t\t\t(createChildParameter" + NL + "\t\t\t\t\t\t(";
- protected final String TEXT_145 = "," + NL + "\t\t\t\t\t\t ";
- protected final String TEXT_146 = ".createEntry" + NL + "\t\t\t\t\t\t\t(";
- protected final String TEXT_147 = ",";
- protected final String TEXT_148 = NL + "\t\t\t\t\t\t\t ";
- protected final String TEXT_149 = ")));";
- protected final String TEXT_150 = NL + "\t\t\t\t\t\t\t ";
- protected final String TEXT_151 = ")));";
- protected final String TEXT_152 = NL + "\t\t\t\t\t\t\t ";
- protected final String TEXT_153 = ".createFromString(";
- protected final String TEXT_154 = ", ";
- protected final String TEXT_155 = "))));";
- protected final String TEXT_156 = " // TODO: ensure this is a valid literal value";
- protected final String TEXT_157 = NL + "\t\t\t\tnewChildDescriptors.add" + NL + "\t\t\t\t\t(createChildParameter" + NL + "\t\t\t\t\t\t(";
- protected final String TEXT_158 = ",";
- protected final String TEXT_159 = NL + "\t\t\t\t\t\t ";
- protected final String TEXT_160 = ".create(";
- protected final String TEXT_161 = ")));";
- protected final String TEXT_162 = NL + "\t\t\t\t\t\t ";
- protected final String TEXT_163 = ".create";
- protected final String TEXT_164 = "()));";
- protected final String TEXT_165 = NL + "\t\t\t\tnewChildDescriptors.add" + NL + "\t\t\t\t\t(createChildParameter" + NL + "\t\t\t\t\t\t(";
- protected final String TEXT_166 = ",";
- protected final String TEXT_167 = NL + "\t\t\t\t\t\t ";
- protected final String TEXT_168 = "));";
- protected final String TEXT_169 = NL + "\t\t\t\t\t\t ";
- protected final String TEXT_170 = "));";
- protected final String TEXT_171 = NL + "\t\t\t\t\t\t ";
- protected final String TEXT_172 = ".createFromString(";
- protected final String TEXT_173 = ", ";
- protected final String TEXT_174 = ")));";
- protected final String TEXT_175 = " // TODO: ensure this is a valid literal value";
- protected final String TEXT_176 = NL;
- protected final String TEXT_177 = NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + " ";
- protected final String TEXT_178 = NL + "\t\t\t/**" + NL + "\t\t\t * <!-- begin-user-doc -->" + NL + "\t\t\t * <!-- end-user-doc -->" + NL + "\t\t\t * @generated" + NL + "\t\t\t */" + NL + "\t\t\tprotected ";
- protected final String TEXT_179 = " createChildParameter(Object feature, Object child)" + NL + "\t\t\t{" + NL + "\t\t\t\treturn new ";
- protected final String TEXT_180 = "(null, feature, child);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ";
- protected final String TEXT_181 = " getNewChildDescriptors(Object object, ";
- protected final String TEXT_182 = " editingDomain)" + NL + "\t\t{" + NL + "\t\t\t";
- protected final String TEXT_183 = " result = new ";
- protected final String TEXT_184 = "();" + NL + "\t\t\tnew CreationSwitch(result, editingDomain).doSwitch((";
- protected final String TEXT_185 = ")object);" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ";
- protected final String TEXT_186 = " getResourceLocator()" + NL + "\t\t{" + NL + "\t\t\treturn ";
- protected final String TEXT_187 = ".INSTANCE;" + NL + "\t\t}" + NL + "\t}" + NL;
- protected final String TEXT_188 = NL + "}";
- protected final String TEXT_189 = NL;
+ protected final String TEXT_7 = NL + " * @generated" + NL + " */";
+ protected final String TEXT_8 = NL + "@Deprecated";
+ protected final String TEXT_9 = NL + "@SuppressWarnings(\"deprecation\")";
+ protected final String TEXT_10 = NL + "public class ";
+ protected final String TEXT_11 = " extends ";
+ protected final String TEXT_12 = " implements ComposeableAdapterFactory, IChangeNotifier";
+ protected final String TEXT_13 = ", ";
+ protected final String TEXT_14 = NL + "{";
+ protected final String TEXT_15 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
+ protected final String TEXT_16 = " copyright = ";
+ protected final String TEXT_17 = ";";
+ protected final String TEXT_18 = NL;
+ protected final String TEXT_19 = NL + "\t/**" + NL + "\t * This keeps track of the root adapter factory that delegates to this adapter factory." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ComposedAdapterFactory parentAdapterFactory;" + NL + "" + NL + "\t/**" + NL + "\t * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IChangeNotifier changeNotifier = new ChangeNotifier();" + NL;
+ protected final String TEXT_20 = NL + "\t/**" + NL + "\t * This keeps track of all the item providers created, so that they can be {@link #dispose disposed}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_21 = " disposable = new Disposable();" + NL;
+ protected final String TEXT_22 = NL + "\t/**" + NL + "\t * This helps manage the child creation extenders." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_23 = " childCreationExtenderManager = new ";
+ protected final String TEXT_24 = "(";
+ protected final String TEXT_25 = ".INSTANCE, ";
+ protected final String TEXT_26 = ".eNS_URI);" + NL;
+ protected final String TEXT_27 = NL + "\t/**" + NL + "\t * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_28 = " supportedTypes = new ";
+ protected final String TEXT_29 = "();" + NL + "" + NL + "\t/**" + NL + "\t * This constructs an instance." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_30 = "()" + NL + "\t{";
+ protected final String TEXT_31 = NL + "\t\tsupportedTypes.add(";
+ protected final String TEXT_32 = ".class);";
+ protected final String TEXT_33 = NL + "\t}" + NL;
+ protected final String TEXT_34 = NL + "\t/**" + NL + "\t * This keeps track of the factory to which to delegate adapter creation for objects from that package." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_35 = " ";
+ protected final String TEXT_36 = " = null;" + NL + "" + NL + "\t/**" + NL + "\t * This determines the delegate factory for the package." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_37 = " get";
+ protected final String TEXT_38 = "()" + NL + "\t{" + NL + "\t\tif (";
+ protected final String TEXT_39 = " == null)" + NL + "\t\t{" + NL + "\t\t\t";
+ protected final String TEXT_40 = " rootAdapterFactory = getRootAdapterFactory();" + NL + "\t\t\tif (rootAdapterFactory instanceof ComposedAdapterFactory)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
+ protected final String TEXT_41 = " delegateAdapterFactory =" + NL + "\t\t\t\t\t((ComposedAdapterFactory)rootAdapterFactory).getFactoryForType(";
+ protected final String TEXT_42 = ".getPackage());" + NL + "\t\t\t\tif (delegateAdapterFactory instanceof ";
+ protected final String TEXT_43 = ")" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
+ protected final String TEXT_44 = " = (";
+ protected final String TEXT_45 = ")delegateAdapterFactory;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn ";
+ protected final String TEXT_46 = ";" + NL + "\t}" + NL;
+ protected final String TEXT_47 = NL + "\t/**" + NL + "\t * This keeps track of the one adapter used for all {@link ";
+ protected final String TEXT_48 = "} instances." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->";
+ protected final String TEXT_49 = NL + "\t * ";
+ protected final String TEXT_50 = NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_51 = NL + "\t@Deprecated";
+ protected final String TEXT_52 = NL + "\tprotected ";
+ protected final String TEXT_53 = "ItemProvider;" + NL + "" + NL + "\t/**" + NL + "\t * This creates an adapter for a {@link ";
+ protected final String TEXT_54 = "}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->";
+ protected final String TEXT_55 = NL + "\t@Override";
+ protected final String TEXT_56 = NL + "\tpublic Adapter create";
+ protected final String TEXT_57 = "Adapter()" + NL + "\t{" + NL + "\t\tif (";
+ protected final String TEXT_58 = "ItemProvider == null)" + NL + "\t\t{" + NL + "\t\t\t";
+ protected final String TEXT_59 = "ItemProvider = new ";
+ protected final String TEXT_60 = "(this);" + NL + "\t\t}" + NL + "" + NL + "\t\treturn ";
+ protected final String TEXT_61 = "ItemProvider;" + NL + "\t}" + NL;
+ protected final String TEXT_62 = NL + "\t/**" + NL + "\t * This creates an adapter for a {@link ";
+ protected final String TEXT_63 = "Adapter()" + NL + "\t{" + NL + "\t\treturn new ";
+ protected final String TEXT_64 = "(this);" + NL + "\t}" + NL;
+ protected final String TEXT_65 = NL + "\t/**" + NL + "\t * ";
+ protected final String TEXT_66 = " of ";
+ protected final String TEXT_67 = NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->";
+ protected final String TEXT_68 = "Adapter()" + NL + "\t{" + NL + "\t\treturn" + NL + "\t\t\tget";
+ protected final String TEXT_69 = "() == null ?" + NL + "\t\t\t\tnull :" + NL + "\t\t\t\tget";
+ protected final String TEXT_70 = "().create";
+ protected final String TEXT_71 = "Adapter();" + NL + "\t}" + NL;
+ protected final String TEXT_72 = NL + "\t/**" + NL + "\t * This returns the root adapter factory that contains this factory." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ComposeableAdapterFactory getRootAdapterFactory()" + NL + "\t{" + NL + "\t\treturn parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This sets the composed adapter factory that contains this factory." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)" + NL + "\t{" + NL + "\t\tthis.parentAdapterFactory = parentAdapterFactory;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_73 = NL + "\tpublic boolean isFactoryForType(Object type)" + NL + "\t{" + NL + "\t\treturn supportedTypes.contains(type) || super.isFactoryForType(type);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implementation substitutes the factory itself as the key for the adapter." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_74 = NL + "\tpublic Adapter adapt(Notifier notifier, Object type)" + NL + "\t{" + NL + "\t\treturn super.adapt(notifier, this);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_75 = NL + "\tpublic Object adapt(Object object, Object type)" + NL + "\t{" + NL + "\t\tif (isFactoryForType(type))" + NL + "\t\t{" + NL + "\t\t\tObject adapter = super.adapt(object, type);" + NL + "\t\t\tif (!(type instanceof Class";
+ protected final String TEXT_76 = "<?>";
+ protected final String TEXT_77 = ") || ";
+ protected final String TEXT_78 = ".isInstance((Class";
+ protected final String TEXT_79 = ")type, adapter)";
+ protected final String TEXT_80 = "(((Class";
+ protected final String TEXT_81 = ")type).isInstance(adapter))";
+ protected final String TEXT_82 = ")" + NL + "\t\t\t{" + NL + "\t\t\t\treturn adapter;" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\treturn null;" + NL + "\t}" + NL;
+ protected final String TEXT_83 = NL + "\t/**" + NL + "\t * Associates an adapter with a notifier via the base implementation, then records it to ensure it will be disposed." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_84 = NL + "\tprotected void associate(Adapter adapter, Notifier target)" + NL + "\t{" + NL + "\t\tsuper.associate(adapter, target);" + NL + "\t\tif (adapter != null)" + NL + "\t\t{" + NL + "\t\t\tdisposable.add(adapter);" + NL + "\t\t}" + NL + "\t}" + NL;
+ protected final String TEXT_85 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_86 = " getChildCreationExtenders()" + NL + "\t{" + NL + "\t\treturn childCreationExtenderManager.getChildCreationExtenders();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_87 = " getNewChildDescriptors(Object object, ";
+ protected final String TEXT_88 = " editingDomain)" + NL + "\t{" + NL + "\t\treturn childCreationExtenderManager.getNewChildDescriptors(object, editingDomain);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_89 = " getResourceLocator()" + NL + "\t{" + NL + "\t\treturn childCreationExtenderManager;" + NL + "\t}" + NL;
+ protected final String TEXT_90 = NL + "\t/**" + NL + "\t * This adds a listener." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addListener(INotifyChangedListener notifyChangedListener)" + NL + "\t{" + NL + "\t\tchangeNotifier.addListener(notifyChangedListener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This removes a listener." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeListener(INotifyChangedListener notifyChangedListener)" + NL + "\t{" + NL + "\t\tchangeNotifier.removeListener(notifyChangedListener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void fireNotifyChanged(Notification notification)" + NL + "\t{" + NL + "\t\tchangeNotifier.fireNotifyChanged(notification);" + NL + "" + NL + "\t\tif (parentAdapterFactory != null)" + NL + "\t\t{" + NL + "\t\t\tparentAdapterFactory.fireNotifyChanged(notification);" + NL + "\t\t}" + NL + "\t}" + NL;
+ protected final String TEXT_91 = NL + "\t/**" + NL + "\t * This disposes all of the item providers created by this factory. " + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void dispose()" + NL + "\t{";
+ protected final String TEXT_92 = NL + "\t\tdisposable.dispose();";
+ protected final String TEXT_93 = NL + "\t\tif (";
+ protected final String TEXT_94 = "ItemProvider != null) ";
+ protected final String TEXT_95 = "ItemProvider.dispose();";
+ protected final String TEXT_96 = NL + "\t/**" + NL + "\t * A child creation extender for the {@link ";
+ protected final String TEXT_97 = "}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class ";
+ protected final String TEXT_98 = " implements ";
+ protected final String TEXT_99 = NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * The switch for creating child descriptors specific to each extended class." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected static class CreationSwitch extends ";
+ protected final String TEXT_100 = NL + "\t\t{" + NL + "\t\t\t/**" + NL + "\t\t\t * The child descriptors being populated." + NL + "\t\t\t * <!-- begin-user-doc -->" + NL + "\t\t\t * <!-- end-user-doc -->" + NL + "\t\t\t * @generated" + NL + "\t\t\t */" + NL + "\t\t\tprotected ";
+ protected final String TEXT_101 = " newChildDescriptors;" + NL + "" + NL + "\t\t\t/**" + NL + "\t\t\t * The domain in which to create the children." + NL + "\t\t\t * <!-- begin-user-doc -->" + NL + "\t\t\t * <!-- end-user-doc -->" + NL + "\t\t\t * @generated" + NL + "\t\t\t */" + NL + "\t\t\tprotected ";
+ protected final String TEXT_102 = " editingDomain;" + NL + "" + NL + "\t\t\t/**" + NL + "\t\t\t * Creates the a switch for populating child descriptors in the given domain." + NL + "\t\t\t * <!-- begin-user-doc -->" + NL + "\t\t\t * <!-- end-user-doc -->" + NL + "\t\t\t * @generated" + NL + "\t\t\t */" + NL + "\t\t\tCreationSwitch(";
+ protected final String TEXT_103 = " newChildDescriptors, ";
+ protected final String TEXT_104 = " editingDomain) " + NL + "\t\t\t{" + NL + "\t\t\t\tthis.newChildDescriptors = newChildDescriptors;" + NL + "\t\t\t\tthis.editingDomain = editingDomain;" + NL + "\t\t\t}";
+ protected final String TEXT_105 = NL + "\t\t\t/**" + NL + "\t\t\t * <!-- begin-user-doc -->" + NL + "\t\t\t * <!-- end-user-doc -->" + NL + "\t\t\t * @generated" + NL + "\t\t\t */";
+ protected final String TEXT_106 = NL + "\t\t\t@Override";
+ protected final String TEXT_107 = NL + "\t\t\tpublic ";
+ protected final String TEXT_108 = "Object case";
+ protected final String TEXT_109 = " object)" + NL + "\t\t\t{";
+ protected final String TEXT_110 = NL + "\t\t\t\tnewChildDescriptors.add" + NL + "\t\t\t\t\t(createChildParameter" + NL + "\t\t\t\t\t\t(";
+ protected final String TEXT_111 = "," + NL + "\t\t\t\t\t\t ";
+ protected final String TEXT_112 = ".createEntry" + NL + "\t\t\t\t\t\t\t(";
+ protected final String TEXT_113 = ",";
+ protected final String TEXT_114 = NL + "\t\t\t\t\t\t\t ";
+ protected final String TEXT_115 = ".create(";
+ protected final String TEXT_116 = "))));";
+ protected final String TEXT_117 = ".create";
+ protected final String TEXT_118 = "())));";
+ protected final String TEXT_119 = ")));";
+ protected final String TEXT_120 = ".createFromString(";
+ protected final String TEXT_121 = " // TODO: ensure this is a valid literal value";
+ protected final String TEXT_122 = NL + "\t\t\t\t\t\t ";
+ protected final String TEXT_123 = "()));";
+ protected final String TEXT_124 = "));";
+ protected final String TEXT_125 = NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + " ";
+ protected final String TEXT_126 = NL + "\t\t\t/**" + NL + "\t\t\t * <!-- begin-user-doc -->" + NL + "\t\t\t * <!-- end-user-doc -->" + NL + "\t\t\t * @generated" + NL + "\t\t\t */" + NL + "\t\t\tprotected ";
+ protected final String TEXT_127 = " createChildParameter(Object feature, Object child)" + NL + "\t\t\t{" + NL + "\t\t\t\treturn new ";
+ protected final String TEXT_128 = "(null, feature, child);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ";
+ protected final String TEXT_129 = " editingDomain)" + NL + "\t\t{" + NL + "\t\t\t";
+ protected final String TEXT_130 = " result = new ";
+ protected final String TEXT_131 = "();" + NL + "\t\t\tnew CreationSwitch(result, editingDomain).doSwitch((";
+ protected final String TEXT_132 = ")object);" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ";
+ protected final String TEXT_133 = " getResourceLocator()" + NL + "\t\t{" + NL + "\t\t\treturn ";
+ protected final String TEXT_134 = ".INSTANCE;" + NL + "\t\t}" + NL + "\t}" + NL;
+ protected final String TEXT_135 = NL + "}";
public String generate(Object argument)
{
@@ -252,418 +198,418 @@ public class ItemProviderAdapterFactory
genModel.markImportLocation(stringBuffer);
stringBuffer.append(TEXT_6);
if (genPackage.hasAPITags()) {
- stringBuffer.append(TEXT_7);
+ stringBuffer.append(TEXT_3);
stringBuffer.append(genPackage.getAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_8);
+ stringBuffer.append(TEXT_7);
if (isJDK50 && genPackage.hasAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_9);
+ stringBuffer.append(TEXT_8);
} else if (isJDK50 && GenModelUtil.hasAPIDeprecatedTag(genPackage.getGenClasses())) {
- stringBuffer.append(TEXT_10);
+ stringBuffer.append(TEXT_9);
}
- stringBuffer.append(TEXT_11);
+ stringBuffer.append(TEXT_10);
stringBuffer.append(genPackage.getItemProviderAdapterFactoryClassName());
- stringBuffer.append(TEXT_12);
+ stringBuffer.append(TEXT_11);
stringBuffer.append(genPackage.getImportedAdapterFactoryClassName());
- stringBuffer.append(TEXT_13);
+ stringBuffer.append(TEXT_12);
if (genPackage.isDisposableProviderFactory()) {
- stringBuffer.append(TEXT_14);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.IDisposable"));
}
if (genPackage.isExtensibleProviderFactory()) {
- stringBuffer.append(TEXT_15);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.IChildCreationExtender"));
}
- stringBuffer.append(TEXT_16);
+ stringBuffer.append(TEXT_14);
if (genModel.hasCopyrightField()) {
- stringBuffer.append(TEXT_17);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genModel.getImportedName("java.lang.String"));
- stringBuffer.append(TEXT_18);
+ stringBuffer.append(TEXT_16);
stringBuffer.append(genModel.getCopyrightFieldLiteral());
- stringBuffer.append(TEXT_19);
+ stringBuffer.append(TEXT_17);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_20);
+ stringBuffer.append(TEXT_18);
}
- stringBuffer.append(TEXT_21);
+ stringBuffer.append(TEXT_19);
if (genPackage.isDisposableProviderFactory() && genPackage.hasStatefulProvider()) {
- stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_20);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.Disposable"));
- stringBuffer.append(TEXT_23);
+ stringBuffer.append(TEXT_21);
}
if (genPackage.isExtensibleProviderFactory()) {
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_22);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.ChildCreationExtenderManager"));
- stringBuffer.append(TEXT_25);
+ stringBuffer.append(TEXT_23);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.ChildCreationExtenderManager"));
- stringBuffer.append(TEXT_26);
+ stringBuffer.append(TEXT_24);
stringBuffer.append(genPackage.getImportedEditPluginClassName());
- stringBuffer.append(TEXT_27);
+ stringBuffer.append(TEXT_25);
stringBuffer.append(genPackage.getImportedPackageInterfaceName());
- stringBuffer.append(TEXT_28);
+ stringBuffer.append(TEXT_26);
}
- stringBuffer.append(TEXT_29);
+ stringBuffer.append(TEXT_27);
stringBuffer.append(_Collection);
- stringBuffer.append(TEXT_30);
+ stringBuffer.append(TEXT_28);
stringBuffer.append(_ArrayList);
- stringBuffer.append(TEXT_31);
+ stringBuffer.append(TEXT_29);
stringBuffer.append(genPackage.getItemProviderAdapterFactoryClassName());
- stringBuffer.append(TEXT_32);
+ stringBuffer.append(TEXT_30);
for (String name : genPackage.getProviderSupportedTypes()) {
- stringBuffer.append(TEXT_33);
+ stringBuffer.append(TEXT_31);
stringBuffer.append(genModel.getImportedName(name));
- stringBuffer.append(TEXT_34);
+ stringBuffer.append(TEXT_32);
}
- stringBuffer.append(TEXT_35);
+ stringBuffer.append(TEXT_33);
for (GenPackage genDelegate : genPackage.getAdapterDelegatePackages()) {
+ stringBuffer.append(TEXT_34);
+ stringBuffer.append(genDelegate.getImportedAdapterFactoryClassName());
+ stringBuffer.append(TEXT_35);
+ stringBuffer.append(genPackage.getUncapAdapterFactoryDelegateName(genDelegate));
stringBuffer.append(TEXT_36);
stringBuffer.append(genDelegate.getImportedAdapterFactoryClassName());
stringBuffer.append(TEXT_37);
- stringBuffer.append(genPackage.getUncapAdapterFactoryDelegateName(genDelegate));
+ stringBuffer.append(genPackage.getAdapterFactoryDelegateName(genDelegate));
stringBuffer.append(TEXT_38);
- stringBuffer.append(genDelegate.getImportedAdapterFactoryClassName());
+ stringBuffer.append(genPackage.getUncapAdapterFactoryDelegateName(genDelegate));
stringBuffer.append(TEXT_39);
- stringBuffer.append(genPackage.getAdapterFactoryDelegateName(genDelegate));
+ stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.notify.AdapterFactory"));
stringBuffer.append(TEXT_40);
- stringBuffer.append(genPackage.getUncapAdapterFactoryDelegateName(genDelegate));
- stringBuffer.append(TEXT_41);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.notify.AdapterFactory"));
+ stringBuffer.append(TEXT_41);
+ stringBuffer.append(genDelegate.getImportedAdapterFactoryClassName());
stringBuffer.append(TEXT_42);
- stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.notify.AdapterFactory"));
- stringBuffer.append(TEXT_43);
stringBuffer.append(genDelegate.getImportedAdapterFactoryClassName());
+ stringBuffer.append(TEXT_43);
+ stringBuffer.append(genPackage.getUncapAdapterFactoryDelegateName(genDelegate));
stringBuffer.append(TEXT_44);
stringBuffer.append(genDelegate.getImportedAdapterFactoryClassName());
stringBuffer.append(TEXT_45);
stringBuffer.append(genPackage.getUncapAdapterFactoryDelegateName(genDelegate));
stringBuffer.append(TEXT_46);
- stringBuffer.append(genDelegate.getImportedAdapterFactoryClassName());
- stringBuffer.append(TEXT_47);
- stringBuffer.append(genPackage.getUncapAdapterFactoryDelegateName(genDelegate));
- stringBuffer.append(TEXT_48);
}
for (GenClass genClass : genPackage.getGenClasses()) {
if (!genClass.isAbstract() && genClass.getProvider() != GenProviderKind.NONE_LITERAL) {
if (genClass.isProviderSingleton()) {
- stringBuffer.append(TEXT_49);
+ stringBuffer.append(TEXT_47);
stringBuffer.append(genClass.getRawQualifiedInterfaceName());
- stringBuffer.append(TEXT_50);
+ stringBuffer.append(TEXT_48);
if (genClass.hasAPITags()) {
- stringBuffer.append(TEXT_51);
+ stringBuffer.append(TEXT_49);
stringBuffer.append(genClass.getAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_52);
+ stringBuffer.append(TEXT_50);
if (isJDK50 && genClass.hasAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_53);
+ stringBuffer.append(TEXT_51);
}
- stringBuffer.append(TEXT_54);
+ stringBuffer.append(TEXT_52);
stringBuffer.append(genClass.getProviderClassName());
- stringBuffer.append(TEXT_55);
+ stringBuffer.append(TEXT_35);
stringBuffer.append(genClass.getUncapName());
- stringBuffer.append(TEXT_56);
+ stringBuffer.append(TEXT_53);
stringBuffer.append(genClass.getRawQualifiedInterfaceName());
- stringBuffer.append(TEXT_57);
+ stringBuffer.append(TEXT_54);
if (genClass.hasAPITags()) {
- stringBuffer.append(TEXT_58);
+ stringBuffer.append(TEXT_49);
stringBuffer.append(genClass.getAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_59);
+ stringBuffer.append(TEXT_50);
if (isJDK50 && genClass.hasAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_60);
+ stringBuffer.append(TEXT_51);
}
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_61);
+ stringBuffer.append(TEXT_55);
}
- stringBuffer.append(TEXT_62);
+ stringBuffer.append(TEXT_56);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_63);
+ stringBuffer.append(TEXT_57);
stringBuffer.append(genClass.getUncapName());
- stringBuffer.append(TEXT_64);
+ stringBuffer.append(TEXT_58);
stringBuffer.append(genClass.getUncapName());
- stringBuffer.append(TEXT_65);
+ stringBuffer.append(TEXT_59);
stringBuffer.append(genClass.getProviderClassName());
- stringBuffer.append(TEXT_66);
+ stringBuffer.append(TEXT_60);
stringBuffer.append(genClass.getUncapName());
- stringBuffer.append(TEXT_67);
+ stringBuffer.append(TEXT_61);
} else {
- stringBuffer.append(TEXT_68);
+ stringBuffer.append(TEXT_62);
stringBuffer.append(genClass.getRawQualifiedInterfaceName());
- stringBuffer.append(TEXT_69);
+ stringBuffer.append(TEXT_54);
if (genClass.hasAPITags()) {
- stringBuffer.append(TEXT_70);
+ stringBuffer.append(TEXT_49);
stringBuffer.append(genClass.getAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_71);
+ stringBuffer.append(TEXT_50);
if (isJDK50 && genClass.hasAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_72);
+ stringBuffer.append(TEXT_51);
}
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_73);
+ stringBuffer.append(TEXT_55);
}
- stringBuffer.append(TEXT_74);
+ stringBuffer.append(TEXT_56);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_75);
+ stringBuffer.append(TEXT_63);
stringBuffer.append(genClass.getProviderClassName());
- stringBuffer.append(TEXT_76);
+ stringBuffer.append(TEXT_64);
}
}
}
for (GenClass genClass : genPackage.getAdapterDelegateSuperClasses()) {
- stringBuffer.append(TEXT_77);
+ stringBuffer.append(TEXT_65);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_78);
+ stringBuffer.append(TEXT_66);
stringBuffer.append(genClass.getItemProviderAdapterFactoryClassName());
- stringBuffer.append(TEXT_79);
+ stringBuffer.append(TEXT_67);
if (genClass.hasAPITags()) {
- stringBuffer.append(TEXT_80);
+ stringBuffer.append(TEXT_49);
stringBuffer.append(genClass.getAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_81);
+ stringBuffer.append(TEXT_50);
if (isJDK50 && genClass.hasAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_82);
+ stringBuffer.append(TEXT_51);
}
- stringBuffer.append(TEXT_83);
+ stringBuffer.append(TEXT_56);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_84);
+ stringBuffer.append(TEXT_68);
stringBuffer.append(genClass.getItemProviderAdapterFactoryClassName());
- stringBuffer.append(TEXT_85);
+ stringBuffer.append(TEXT_69);
stringBuffer.append(genClass.getItemProviderAdapterFactoryClassName());
- stringBuffer.append(TEXT_86);
+ stringBuffer.append(TEXT_70);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_87);
+ stringBuffer.append(TEXT_71);
}
- stringBuffer.append(TEXT_88);
+ stringBuffer.append(TEXT_72);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_89);
+ stringBuffer.append(TEXT_55);
}
- stringBuffer.append(TEXT_90);
+ stringBuffer.append(TEXT_73);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_91);
+ stringBuffer.append(TEXT_55);
}
- stringBuffer.append(TEXT_92);
+ stringBuffer.append(TEXT_74);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_93);
+ stringBuffer.append(TEXT_55);
}
- stringBuffer.append(TEXT_94);
+ stringBuffer.append(TEXT_75);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_95);
+ stringBuffer.append(TEXT_76);
}
- stringBuffer.append(TEXT_96);
+ stringBuffer.append(TEXT_77);
if (genModel.getRuntimePlatform() == GenRuntimePlatform.GWT) {
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.Reflect"));
- stringBuffer.append(TEXT_97);
+ stringBuffer.append(TEXT_78);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_98);
+ stringBuffer.append(TEXT_76);
}
- stringBuffer.append(TEXT_99);
+ stringBuffer.append(TEXT_79);
} else {
- stringBuffer.append(TEXT_100);
+ stringBuffer.append(TEXT_80);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_101);
+ stringBuffer.append(TEXT_76);
}
- stringBuffer.append(TEXT_102);
+ stringBuffer.append(TEXT_81);
}
- stringBuffer.append(TEXT_103);
+ stringBuffer.append(TEXT_82);
if (genPackage.isDisposableProviderFactory() && genPackage.hasStatefulProvider()) {
- stringBuffer.append(TEXT_104);
+ stringBuffer.append(TEXT_83);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_105);
+ stringBuffer.append(TEXT_55);
}
- stringBuffer.append(TEXT_106);
+ stringBuffer.append(TEXT_84);
}
if (genPackage.isExtensibleProviderFactory()) {
- stringBuffer.append(TEXT_107);
+ stringBuffer.append(TEXT_85);
stringBuffer.append(genModel.getImportedName(useGenerics ? "java.util.List<org.eclipse.emf.edit.provider.IChildCreationExtender>" : "java.util.List"));
- stringBuffer.append(TEXT_108);
+ stringBuffer.append(TEXT_86);
stringBuffer.append(genModel.getImportedName(useGenerics ? "java.util.Collection<?>" : "java.util.Collection"));
- stringBuffer.append(TEXT_109);
+ stringBuffer.append(TEXT_87);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.domain.EditingDomain"));
- stringBuffer.append(TEXT_110);
+ stringBuffer.append(TEXT_88);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.ResourceLocator"));
- stringBuffer.append(TEXT_111);
+ stringBuffer.append(TEXT_89);
}
- stringBuffer.append(TEXT_112);
+ stringBuffer.append(TEXT_90);
if (genPackage.isDisposableProviderFactory()) {
- stringBuffer.append(TEXT_113);
+ stringBuffer.append(TEXT_91);
if (genPackage.hasStatefulProvider()) {
- stringBuffer.append(TEXT_114);
+ stringBuffer.append(TEXT_92);
} else {
for (GenClass genClass : genPackage.getGenClasses()) {
if (!genClass.isAbstract() && genClass.isProviderSingleton()) {
- stringBuffer.append(TEXT_115);
+ stringBuffer.append(TEXT_93);
stringBuffer.append(genClass.getUncapName());
- stringBuffer.append(TEXT_116);
+ stringBuffer.append(TEXT_94);
stringBuffer.append(genClass.getUncapName());
- stringBuffer.append(TEXT_117);
+ stringBuffer.append(TEXT_95);
}
}
}
- stringBuffer.append(TEXT_118);
+ stringBuffer.append(TEXT_33);
}
if (genPackage.isChildCreationExtenders()) {
for (Map.Entry<GenPackage, Map<GenClass, List<GenClass.ChildCreationData>>> packageEntry : genPackage.getExtendedChildCreationData().entrySet()) {
- stringBuffer.append(TEXT_119);
+ stringBuffer.append(TEXT_96);
stringBuffer.append(packageEntry.getKey().getImportedPackageInterfaceName());
- stringBuffer.append(TEXT_120);
+ stringBuffer.append(TEXT_97);
stringBuffer.append(genPackage.getChildCreationExtenderName(packageEntry.getKey()));
- stringBuffer.append(TEXT_121);
+ stringBuffer.append(TEXT_98);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.IChildCreationExtender"));
- stringBuffer.append(TEXT_122);
+ stringBuffer.append(TEXT_99);
stringBuffer.append(genModel.getImportedName(packageEntry.getKey().getQualifiedSwitchClassName()));
stringBuffer.append(useGenerics ? "<Object>" : "");
- stringBuffer.append(TEXT_123);
+ stringBuffer.append(TEXT_100);
stringBuffer.append(genModel.getImportedName(useGenerics ? "java.util.List<Object>" : "java.util.List"));
- stringBuffer.append(TEXT_124);
+ stringBuffer.append(TEXT_101);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.domain.EditingDomain"));
- stringBuffer.append(TEXT_125);
+ stringBuffer.append(TEXT_102);
stringBuffer.append(genModel.getImportedName(useGenerics ? "java.util.List<Object>" : "java.util.List"));
- stringBuffer.append(TEXT_126);
+ stringBuffer.append(TEXT_103);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.domain.EditingDomain"));
- stringBuffer.append(TEXT_127);
+ stringBuffer.append(TEXT_104);
for (Map.Entry<GenClass, List<GenClass.ChildCreationData>> classEntry : packageEntry.getValue().entrySet()) { GenClass genClass = classEntry.getKey();
- stringBuffer.append(TEXT_128);
+ stringBuffer.append(TEXT_105);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_129);
+ stringBuffer.append(TEXT_106);
}
- stringBuffer.append(TEXT_130);
+ stringBuffer.append(TEXT_107);
stringBuffer.append(genClass.getTypeParameters());
- stringBuffer.append(TEXT_131);
+ stringBuffer.append(TEXT_108);
stringBuffer.append(genPackage.getClassUniqueName(genClass));
- stringBuffer.append(TEXT_132);
+ stringBuffer.append(TEXT_24);
stringBuffer.append(genClass.getImportedInterfaceName());
stringBuffer.append(genClass.getInterfaceTypeArguments());
- stringBuffer.append(TEXT_133);
+ stringBuffer.append(TEXT_109);
for (GenClass.ChildCreationData childCreationData : classEntry.getValue()) { GenFeature createFeature = childCreationData.createFeature; GenFeature delegatedFeature = childCreationData.delegatedFeature; GenClassifier createClassifier = childCreationData.createClassifier;
if (createFeature.isFeatureMapType()) {
if (delegatedFeature.isReferenceType()) { GenClass createClass = (GenClass)createClassifier;
- stringBuffer.append(TEXT_134);
+ stringBuffer.append(TEXT_110);
stringBuffer.append(createFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_135);
+ stringBuffer.append(TEXT_111);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.util.FeatureMapUtil"));
- stringBuffer.append(TEXT_136);
+ stringBuffer.append(TEXT_112);
stringBuffer.append(delegatedFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_137);
+ stringBuffer.append(TEXT_113);
if (createClass.isMapEntry()) {
- stringBuffer.append(TEXT_138);
+ stringBuffer.append(TEXT_114);
stringBuffer.append(createClass.getGenPackage().getQualifiedEFactoryInstanceAccessor());
- stringBuffer.append(TEXT_139);
+ stringBuffer.append(TEXT_115);
stringBuffer.append(createClass.getQualifiedClassifierAccessor());
- stringBuffer.append(TEXT_140);
+ stringBuffer.append(TEXT_116);
} else {
- stringBuffer.append(TEXT_141);
+ stringBuffer.append(TEXT_114);
stringBuffer.append(createClass.getGenPackage().getQualifiedFactoryInstanceAccessor());
- stringBuffer.append(TEXT_142);
+ stringBuffer.append(TEXT_117);
stringBuffer.append(createClass.getName());
- stringBuffer.append(TEXT_143);
+ stringBuffer.append(TEXT_118);
}
//ItemProvider/newChildDescriptorsReferenceDelegatedFeature.override.javajetinc
} else { GenDataType createDataType = (GenDataType)createClassifier;
- stringBuffer.append(TEXT_144);
+ stringBuffer.append(TEXT_110);
stringBuffer.append(createFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_145);
+ stringBuffer.append(TEXT_111);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.util.FeatureMapUtil"));
- stringBuffer.append(TEXT_146);
+ stringBuffer.append(TEXT_112);
stringBuffer.append(delegatedFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_147);
+ stringBuffer.append(TEXT_113);
if (delegatedFeature.isEnumBasedType()) {
- stringBuffer.append(TEXT_148);
+ stringBuffer.append(TEXT_114);
stringBuffer.append(delegatedFeature.getTypeGenEnum().getStaticValue(delegatedFeature.getEcoreFeature().getDefaultValueLiteral()));
- stringBuffer.append(TEXT_149);
+ stringBuffer.append(TEXT_119);
} else if (delegatedFeature.isStringBasedType()) {
- stringBuffer.append(TEXT_150);
+ stringBuffer.append(TEXT_114);
stringBuffer.append(delegatedFeature.getCreateChildValueLiteral());
- stringBuffer.append(TEXT_151);
+ stringBuffer.append(TEXT_119);
stringBuffer.append(genModel.getNonNLS());
} else { String literal = delegatedFeature.getCreateChildValueLiteral();
- stringBuffer.append(TEXT_152);
+ stringBuffer.append(TEXT_114);
stringBuffer.append(createDataType.getGenPackage().getQualifiedEFactoryInstanceAccessor());
- stringBuffer.append(TEXT_153);
+ stringBuffer.append(TEXT_120);
stringBuffer.append(createDataType.getQualifiedClassifierAccessor());
- stringBuffer.append(TEXT_154);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(literal);
- stringBuffer.append(TEXT_155);
+ stringBuffer.append(TEXT_116);
if (literal != null) {
stringBuffer.append(genModel.getNonNLS());
} else {
- stringBuffer.append(TEXT_156);
+ stringBuffer.append(TEXT_121);
}
}
//ItemProvider/newChildDescriptorsAttributeDelegatedFeature.override.javajetinc
}
} else if (createFeature.isReferenceType()) { GenClass createClass = (GenClass)createClassifier;
- stringBuffer.append(TEXT_157);
+ stringBuffer.append(TEXT_110);
stringBuffer.append(createFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_158);
+ stringBuffer.append(TEXT_113);
if (createClass.isMapEntry()) {
- stringBuffer.append(TEXT_159);
+ stringBuffer.append(TEXT_122);
stringBuffer.append(createClass.getGenPackage().getQualifiedEFactoryInstanceAccessor());
- stringBuffer.append(TEXT_160);
+ stringBuffer.append(TEXT_115);
stringBuffer.append(createClass.getQualifiedClassifierAccessor());
- stringBuffer.append(TEXT_161);
+ stringBuffer.append(TEXT_119);
} else {
- stringBuffer.append(TEXT_162);
+ stringBuffer.append(TEXT_122);
stringBuffer.append(createClass.getGenPackage().getQualifiedFactoryInstanceAccessor());
- stringBuffer.append(TEXT_163);
+ stringBuffer.append(TEXT_117);
stringBuffer.append(createClass.getName());
- stringBuffer.append(TEXT_164);
+ stringBuffer.append(TEXT_123);
}
//ItemProvider/newChildDescriptorsReferenceFeature.override.javajetinc
} else { GenDataType createDataType = (GenDataType)createClassifier;
- stringBuffer.append(TEXT_165);
+ stringBuffer.append(TEXT_110);
stringBuffer.append(createFeature.getQualifiedFeatureAccessor());
- stringBuffer.append(TEXT_166);
+ stringBuffer.append(TEXT_113);
if (createFeature.isEnumBasedType()) {
- stringBuffer.append(TEXT_167);
+ stringBuffer.append(TEXT_122);
stringBuffer.append(createFeature.getTypeGenEnum().getStaticValue(createFeature.getEcoreFeature().getDefaultValueLiteral()));
- stringBuffer.append(TEXT_168);
+ stringBuffer.append(TEXT_124);
} else if (createFeature.isStringBasedType()) {
- stringBuffer.append(TEXT_169);
+ stringBuffer.append(TEXT_122);
stringBuffer.append(createFeature.getCreateChildValueLiteral());
- stringBuffer.append(TEXT_170);
+ stringBuffer.append(TEXT_124);
stringBuffer.append(genModel.getNonNLS());
} else { String literal = createFeature.getCreateChildValueLiteral();
- stringBuffer.append(TEXT_171);
+ stringBuffer.append(TEXT_122);
stringBuffer.append(createDataType.getGenPackage().getQualifiedEFactoryInstanceAccessor());
- stringBuffer.append(TEXT_172);
+ stringBuffer.append(TEXT_120);
stringBuffer.append(createDataType.getQualifiedClassifierAccessor());
- stringBuffer.append(TEXT_173);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(literal);
- stringBuffer.append(TEXT_174);
+ stringBuffer.append(TEXT_119);
if (literal != null) {
stringBuffer.append(genModel.getNonNLS());
} else {
- stringBuffer.append(TEXT_175);
+ stringBuffer.append(TEXT_121);
}
}
//ItemProvider/newChildDescriptorsAttributeFeature.override.javajetinc
}
- stringBuffer.append(TEXT_176);
+ stringBuffer.append(TEXT_18);
}
- stringBuffer.append(TEXT_177);
+ stringBuffer.append(TEXT_125);
}
- stringBuffer.append(TEXT_178);
+ stringBuffer.append(TEXT_126);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.command.CommandParameter"));
- stringBuffer.append(TEXT_179);
+ stringBuffer.append(TEXT_127);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.command.CommandParameter"));
- stringBuffer.append(TEXT_180);
+ stringBuffer.append(TEXT_128);
stringBuffer.append(_Collection);
- stringBuffer.append(TEXT_181);
+ stringBuffer.append(TEXT_87);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.domain.EditingDomain"));
- stringBuffer.append(TEXT_182);
+ stringBuffer.append(TEXT_129);
stringBuffer.append(_ArrayList);
- stringBuffer.append(TEXT_183);
+ stringBuffer.append(TEXT_130);
stringBuffer.append(_ArrayList);
- stringBuffer.append(TEXT_184);
+ stringBuffer.append(TEXT_131);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EObject"));
- stringBuffer.append(TEXT_185);
+ stringBuffer.append(TEXT_132);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.util.ResourceLocator"));
- stringBuffer.append(TEXT_186);
+ stringBuffer.append(TEXT_133);
stringBuffer.append(genPackage.getImportedEditPluginClassName());
- stringBuffer.append(TEXT_187);
+ stringBuffer.append(TEXT_134);
}
}
- stringBuffer.append(TEXT_188);
+ stringBuffer.append(TEXT_135);
genModel.emitSortedImports();
- stringBuffer.append(TEXT_189);
+ stringBuffer.append(TEXT_18);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ManifestMF.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ManifestMF.java
index d46f70ff2..0211c7521 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ManifestMF.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ManifestMF.java
@@ -34,14 +34,10 @@ public class ManifestMF
protected final String TEXT_17 = NL + "Require-Bundle: ";
protected final String TEXT_18 = ";resolution:=optional;x-installation:=greedy";
protected final String TEXT_19 = ";visibility:=reexport";
- protected final String TEXT_20 = ",";
- protected final String TEXT_21 = NL + " ";
- protected final String TEXT_22 = ";resolution:=optional;x-installation:=greedy";
- protected final String TEXT_23 = ";visibility:=reexport";
- protected final String TEXT_24 = NL + "Import-Package: org.osgi.framework";
- protected final String TEXT_25 = NL + "Eclipse-LazyStart: true";
- protected final String TEXT_26 = NL + "Bundle-ActivationPolicy: lazy";
- protected final String TEXT_27 = NL;
+ protected final String TEXT_20 = NL + "Import-Package: org.osgi.framework";
+ protected final String TEXT_21 = NL + "Eclipse-LazyStart: true";
+ protected final String TEXT_22 = NL + "Bundle-ActivationPolicy: lazy";
+ protected final String TEXT_23 = NL;
public String generate(Object argument)
{
@@ -105,23 +101,23 @@ public class ManifestMF
}} else {
stringBuffer.append(TEXT_19);
} while(requiredPluginIterator.hasNext()) { pluginID = requiredPluginIterator.next();
- stringBuffer.append(TEXT_20);
- stringBuffer.append(TEXT_21);
+ stringBuffer.append(TEXT_15);
+ stringBuffer.append(TEXT_16);
stringBuffer.append(pluginID);
if (pluginID.startsWith("org.eclipse.core.runtime")) {if (genModel.isOSGiCompatible()) {
- stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_18);
}} else if (!pluginID.equals("org.eclipse.xtext.xbase.lib") && !pluginID.equals("org.eclipse.emf.ecore.xcore.lib")) {
- stringBuffer.append(TEXT_23);
+ stringBuffer.append(TEXT_19);
}}
}
if (genModel.isOSGiCompatible()) {
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_20);
}
if (genModel.getRuntimeVersion() == GenRuntimeVersion.EMF22 || genModel.getRuntimeVersion() == GenRuntimeVersion.EMF23) {
- stringBuffer.append(TEXT_25);
+ stringBuffer.append(TEXT_21);
}
- stringBuffer.append(TEXT_26);
- stringBuffer.append(TEXT_27);
+ stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_23);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ModuleGWTXML.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ModuleGWTXML.java
index b7501cb28..6a04df15a 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ModuleGWTXML.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/ModuleGWTXML.java
@@ -25,7 +25,6 @@ public class ModuleGWTXML
protected final String TEXT_8 = NL + " <source path=\"";
protected final String TEXT_9 = "\"/>";
protected final String TEXT_10 = NL + "</module>";
- protected final String TEXT_11 = NL;
public String generate(Object argument)
{
@@ -63,7 +62,7 @@ public class ModuleGWTXML
stringBuffer.append(TEXT_9);
}
stringBuffer.append(TEXT_10);
- stringBuffer.append(TEXT_11);
+ stringBuffer.append(TEXT_2);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/Plugin.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/Plugin.java
index a2d8fe7b6..6f8bcd711 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/Plugin.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/Plugin.java
@@ -22,93 +22,72 @@ public class Plugin
protected final String TEXT_5 = ";" + NL;
protected final String TEXT_6 = NL + NL + "/**" + NL + " * This is the central singleton for the ";
protected final String TEXT_7 = " edit plugin." + NL + " * <!-- begin-user-doc -->" + NL + " * <!-- end-user-doc -->";
- protected final String TEXT_8 = NL + " * ";
- protected final String TEXT_9 = NL + " * @generated" + NL + " */";
- protected final String TEXT_10 = NL + "@Deprecated";
- protected final String TEXT_11 = NL + "public final class ";
- protected final String TEXT_12 = " extends EMFPlugin" + NL + "{";
- protected final String TEXT_13 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
- protected final String TEXT_14 = " copyright = ";
- protected final String TEXT_15 = ";";
- protected final String TEXT_16 = NL;
- protected final String TEXT_17 = NL + "\t/**" + NL + "\t * Keep track of the singleton." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
- protected final String TEXT_18 = " INSTANCE = new ";
- protected final String TEXT_19 = "();" + NL;
- protected final String TEXT_20 = NL + "\t/**" + NL + "\t * Keep track of the singleton." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static Implementation plugin;" + NL;
- protected final String TEXT_21 = NL + "\t/**" + NL + "\t * Create the instance." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_22 = "()" + NL + "\t{" + NL + "\t\tsuper" + NL + "\t\t (new ResourceLocator [] " + NL + "\t\t {";
- protected final String TEXT_23 = NL + "\t\t ";
- protected final String TEXT_24 = ".INSTANCE,";
- protected final String TEXT_25 = NL + "\t\t });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns the singleton instance of the Eclipse plugin." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the singleton instance." + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_26 = NL + "\t@Override";
- protected final String TEXT_27 = NL + "\tpublic ResourceLocator getPluginResourceLocator()" + NL + "\t{";
- protected final String TEXT_28 = NL + "\t\treturn null;";
- protected final String TEXT_29 = NL + "\t\treturn plugin;";
- protected final String TEXT_30 = NL + "\t}" + NL;
- protected final String TEXT_31 = NL + "\t/**" + NL + "\t * Returns the singleton instance of the Eclipse plugin." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the singleton instance." + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static Implementation getPlugin()" + NL + "\t{" + NL + "\t\treturn plugin;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The actual implementation of the Eclipse <b>Plugin</b>." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class Implementation extends EclipsePlugin" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * Creates an instance." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->";
- protected final String TEXT_32 = NL + "\t\t * @param descriptor the description of the plugin.";
- protected final String TEXT_33 = NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Implementation(";
- protected final String TEXT_34 = " descriptor";
- protected final String TEXT_35 = ")" + NL + "\t\t{" + NL + "\t\t\tsuper(";
- protected final String TEXT_36 = "descriptor";
- protected final String TEXT_37 = ");" + NL + "" + NL + "\t\t\t// Remember the static instance." + NL + "\t\t\t//" + NL + "\t\t\tplugin = this;" + NL + "\t\t}";
- protected final String TEXT_38 = NL + "\t" + NL + "\t\t/**" + NL + "\t\t * The actual implementation of the purely OSGi-compatible <b>Bundle Activator</b>." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static final class Activator extends ";
- protected final String TEXT_39 = ".OSGiDelegatingBundleActivator" + NL + "\t\t{";
- protected final String TEXT_40 = NL + "\t\t\t@Override";
- protected final String TEXT_41 = NL + "\t\t\tprotected ";
- protected final String TEXT_42 = " createBundle()" + NL + "\t\t\t{" + NL + "\t\t\t\treturn new Implementation();" + NL + "\t\t\t}" + NL + "\t\t}";
- protected final String TEXT_43 = NL + "\t}" + NL;
- protected final String TEXT_44 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected static final ";
- protected final String TEXT_45 = " PROPERTIES = ";
- protected final String TEXT_46 = ".create(";
- protected final String TEXT_47 = ".class);" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tpublic String getString(String key, boolean translate)" + NL + "\t{";
- protected final String TEXT_48 = NL + "\t\t";
- protected final String TEXT_49 = "else ";
- protected final String TEXT_50 = "if (\"_UI_";
- protected final String TEXT_51 = "_type\".equals(key)) return PROPERTIES.";
- protected final String TEXT_52 = "Type();";
- protected final String TEXT_53 = NL + "\t\t";
- protected final String TEXT_54 = "else ";
- protected final String TEXT_55 = " if (\"_UI_Unknown_type\".equals(key)) return PROPERTIES.unknownType();" + NL + "\t\telse if (\"_UI_Unknown_datatype\".equals(key)) return PROPERTIES.unknownDatatype();";
- protected final String TEXT_56 = NL + "\t\telse if (\"_UI_";
- protected final String TEXT_57 = "_";
- protected final String TEXT_58 = "_feature\".equals(key)) return PROPERTIES.";
- protected final String TEXT_59 = "_";
- protected final String TEXT_60 = "Feature();";
- protected final String TEXT_61 = NL + "\t\telse if (\"_UI_";
- protected final String TEXT_62 = "_";
- protected final String TEXT_63 = "_description\".equals(key)) return PROPERTIES.";
- protected final String TEXT_64 = "_";
- protected final String TEXT_65 = "Description();";
- protected final String TEXT_66 = NL + "\t\telse if (\"_UI_Unknown_feature\".equals(key)) return PROPERTIES.unknownFeature();";
- protected final String TEXT_67 = NL + "\t\telse if (\"_UI_";
- protected final String TEXT_68 = "_";
- protected final String TEXT_69 = "_literal\".equals(key)) return PROPERTIES.";
- protected final String TEXT_70 = "_";
- protected final String TEXT_71 = "Literal();";
- protected final String TEXT_72 = NL;
- protected final String TEXT_73 = " = ";
- protected final String TEXT_74 = NL + "\t\telse if (\"";
- protected final String TEXT_75 = "\".equals(key)) return PROPERTIES.";
- protected final String TEXT_76 = "();";
- protected final String TEXT_77 = NL + "\t\telse return key;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tpublic String getString(String key, Object [] substitutions, boolean translate)" + NL + "\t{";
- protected final String TEXT_78 = NL + "\t\tif (\"_UI_CreateChild_text\".equals(key)) return PROPERTIES.createChildText(substitutions[0]);" + NL + "\t\telse if (\"_UI_CreateChild_text2\".equals(key)) return PROPERTIES.createChildText2(substitutions[0], substitutions[1]);" + NL + "\t\telse if (\"_UI_CreateChild_text3\".equals(key)) return PROPERTIES.createChildText3(substitutions[1]);" + NL + "\t\telse if (\"_UI_CreateChild_tooltip\".equals(key)) return PROPERTIES.createChildTooltip(substitutions[0], substitutions[1]);" + NL + "\t\telse if (\"_UI_CreateChild_description\".equals(key)) return PROPERTIES.createChildDescripition(substitutions[0], substitutions[1], substitutions[2]);" + NL + "\t\telse if (\"_UI_CreateSibling_description\".equals(key)) return PROPERTIES.createSiblingDescription(substitutions[0], substitutions[1], substitutions[2]);";
- protected final String TEXT_79 = NL + "\t\t";
- protected final String TEXT_80 = "else ";
- protected final String TEXT_81 = "if (\"_UI_PropertyDescriptor_description\".equals(key)) return PROPERTIES.propertyDescriptorDescription(substitutions[0], substitutions[1]);" + NL + "\t\telse return key;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected static final ";
- protected final String TEXT_82 = " IMAGES = ";
- protected final String TEXT_83 = ".create(";
- protected final String TEXT_84 = ".class);" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tpublic Object getImage(String key)" + NL + "\t{";
- protected final String TEXT_85 = NL + "\t\t";
- protected final String TEXT_86 = "else ";
- protected final String TEXT_87 = "if (\"";
- protected final String TEXT_88 = "\".equals(key)) return IMAGES.";
- protected final String TEXT_89 = "();";
- protected final String TEXT_90 = NL + "\t\t";
- protected final String TEXT_91 = "else ";
- protected final String TEXT_92 = "return key;" + NL + "\t}" + NL;
- protected final String TEXT_93 = NL + "}";
- protected final String TEXT_94 = NL;
+ protected final String TEXT_8 = NL + " * @generated" + NL + " */";
+ protected final String TEXT_9 = NL + "@Deprecated";
+ protected final String TEXT_10 = NL + "public final class ";
+ protected final String TEXT_11 = " extends EMFPlugin" + NL + "{";
+ protected final String TEXT_12 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
+ protected final String TEXT_13 = " copyright = ";
+ protected final String TEXT_14 = ";";
+ protected final String TEXT_15 = NL;
+ protected final String TEXT_16 = NL + "\t/**" + NL + "\t * Keep track of the singleton." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
+ protected final String TEXT_17 = " INSTANCE = new ";
+ protected final String TEXT_18 = "();" + NL;
+ protected final String TEXT_19 = NL + "\t/**" + NL + "\t * Keep track of the singleton." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static Implementation plugin;" + NL;
+ protected final String TEXT_20 = NL + "\t/**" + NL + "\t * Create the instance." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_21 = "()" + NL + "\t{" + NL + "\t\tsuper" + NL + "\t\t (new ResourceLocator [] " + NL + "\t\t {";
+ protected final String TEXT_22 = NL + "\t\t ";
+ protected final String TEXT_23 = ".INSTANCE,";
+ protected final String TEXT_24 = NL + "\t\t });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns the singleton instance of the Eclipse plugin." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the singleton instance." + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_25 = NL + "\t@Override";
+ protected final String TEXT_26 = NL + "\tpublic ResourceLocator getPluginResourceLocator()" + NL + "\t{";
+ protected final String TEXT_27 = NL + "\t\treturn null;";
+ protected final String TEXT_28 = NL + "\t\treturn plugin;";
+ protected final String TEXT_29 = NL + "\t}" + NL;
+ protected final String TEXT_30 = NL + "\t/**" + NL + "\t * Returns the singleton instance of the Eclipse plugin." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @return the singleton instance." + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static Implementation getPlugin()" + NL + "\t{" + NL + "\t\treturn plugin;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The actual implementation of the Eclipse <b>Plugin</b>." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class Implementation extends EclipsePlugin" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * Creates an instance." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->";
+ protected final String TEXT_31 = NL + "\t\t * @param descriptor the description of the plugin.";
+ protected final String TEXT_32 = NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Implementation(";
+ protected final String TEXT_33 = " descriptor";
+ protected final String TEXT_34 = ")" + NL + "\t\t{" + NL + "\t\t\tsuper(";
+ protected final String TEXT_35 = "descriptor";
+ protected final String TEXT_36 = ");" + NL + "" + NL + "\t\t\t// Remember the static instance." + NL + "\t\t\t//" + NL + "\t\t\tplugin = this;" + NL + "\t\t}";
+ protected final String TEXT_37 = NL + "\t" + NL + "\t\t/**" + NL + "\t\t * The actual implementation of the purely OSGi-compatible <b>Bundle Activator</b>." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static final class Activator extends ";
+ protected final String TEXT_38 = ".OSGiDelegatingBundleActivator" + NL + "\t\t{";
+ protected final String TEXT_39 = NL + "\t\t\t@Override";
+ protected final String TEXT_40 = NL + "\t\t\tprotected ";
+ protected final String TEXT_41 = " createBundle()" + NL + "\t\t\t{" + NL + "\t\t\t\treturn new Implementation();" + NL + "\t\t\t}" + NL + "\t\t}";
+ protected final String TEXT_42 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected static final ";
+ protected final String TEXT_43 = " PROPERTIES = ";
+ protected final String TEXT_44 = ".create(";
+ protected final String TEXT_45 = ".class);" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tpublic String getString(String key, boolean translate)" + NL + "\t{";
+ protected final String TEXT_46 = NL + "\t\t";
+ protected final String TEXT_47 = "else ";
+ protected final String TEXT_48 = "if (\"_UI_";
+ protected final String TEXT_49 = "_type\".equals(key)) return PROPERTIES.";
+ protected final String TEXT_50 = "Type();";
+ protected final String TEXT_51 = " if (\"_UI_Unknown_type\".equals(key)) return PROPERTIES.unknownType();" + NL + "\t\telse if (\"_UI_Unknown_datatype\".equals(key)) return PROPERTIES.unknownDatatype();";
+ protected final String TEXT_52 = NL + "\t\telse if (\"_UI_";
+ protected final String TEXT_53 = "_";
+ protected final String TEXT_54 = "_feature\".equals(key)) return PROPERTIES.";
+ protected final String TEXT_55 = "Feature();";
+ protected final String TEXT_56 = "_description\".equals(key)) return PROPERTIES.";
+ protected final String TEXT_57 = "Description();";
+ protected final String TEXT_58 = NL + "\t\telse if (\"_UI_Unknown_feature\".equals(key)) return PROPERTIES.unknownFeature();";
+ protected final String TEXT_59 = "_literal\".equals(key)) return PROPERTIES.";
+ protected final String TEXT_60 = "Literal();";
+ protected final String TEXT_61 = " = ";
+ protected final String TEXT_62 = NL + "\t\telse if (\"";
+ protected final String TEXT_63 = "\".equals(key)) return PROPERTIES.";
+ protected final String TEXT_64 = "();";
+ protected final String TEXT_65 = NL + "\t\telse return key;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tpublic String getString(String key, Object [] substitutions, boolean translate)" + NL + "\t{";
+ protected final String TEXT_66 = NL + "\t\tif (\"_UI_CreateChild_text\".equals(key)) return PROPERTIES.createChildText(substitutions[0]);" + NL + "\t\telse if (\"_UI_CreateChild_text2\".equals(key)) return PROPERTIES.createChildText2(substitutions[0], substitutions[1]);" + NL + "\t\telse if (\"_UI_CreateChild_text3\".equals(key)) return PROPERTIES.createChildText3(substitutions[1]);" + NL + "\t\telse if (\"_UI_CreateChild_tooltip\".equals(key)) return PROPERTIES.createChildTooltip(substitutions[0], substitutions[1]);" + NL + "\t\telse if (\"_UI_CreateChild_description\".equals(key)) return PROPERTIES.createChildDescripition(substitutions[0], substitutions[1], substitutions[2]);" + NL + "\t\telse if (\"_UI_CreateSibling_description\".equals(key)) return PROPERTIES.createSiblingDescription(substitutions[0], substitutions[1], substitutions[2]);";
+ protected final String TEXT_67 = "if (\"_UI_PropertyDescriptor_description\".equals(key)) return PROPERTIES.propertyDescriptorDescription(substitutions[0], substitutions[1]);" + NL + "\t\telse return key;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected static final ";
+ protected final String TEXT_68 = " IMAGES = ";
+ protected final String TEXT_69 = ".class);" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tpublic Object getImage(String key)" + NL + "\t{";
+ protected final String TEXT_70 = "if (\"";
+ protected final String TEXT_71 = "\".equals(key)) return IMAGES.";
+ protected final String TEXT_72 = "return key;" + NL + "\t}" + NL;
+ protected final String TEXT_73 = NL + "}";
public String generate(Object argument)
{
@@ -144,197 +123,197 @@ public class Plugin
stringBuffer.append(genModel.getModelName());
stringBuffer.append(TEXT_7);
if (genModel.hasAPITags()) {
- stringBuffer.append(TEXT_8);
+ stringBuffer.append(TEXT_3);
stringBuffer.append(genModel.getAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_9);
+ stringBuffer.append(TEXT_8);
if (isJDK50 && genModel.hasAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_10);
+ stringBuffer.append(TEXT_9);
}
- stringBuffer.append(TEXT_11);
+ stringBuffer.append(TEXT_10);
stringBuffer.append(genModel.getEditPluginClassName());
- stringBuffer.append(TEXT_12);
+ stringBuffer.append(TEXT_11);
if (genModel.hasCopyrightField()) {
- stringBuffer.append(TEXT_13);
+ stringBuffer.append(TEXT_12);
stringBuffer.append(genModel.getImportedName("java.lang.String"));
- stringBuffer.append(TEXT_14);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(genModel.getCopyrightFieldLiteral());
- stringBuffer.append(TEXT_15);
+ stringBuffer.append(TEXT_14);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_16);
+ stringBuffer.append(TEXT_15);
}
+ stringBuffer.append(TEXT_16);
+ stringBuffer.append(genModel.getEditPluginClassName());
stringBuffer.append(TEXT_17);
stringBuffer.append(genModel.getEditPluginClassName());
stringBuffer.append(TEXT_18);
- stringBuffer.append(genModel.getEditPluginClassName());
- stringBuffer.append(TEXT_19);
if (genModel.getRuntimePlatform() != GenRuntimePlatform.GWT) {
- stringBuffer.append(TEXT_20);
+ stringBuffer.append(TEXT_19);
}
- stringBuffer.append(TEXT_21);
+ stringBuffer.append(TEXT_20);
stringBuffer.append(genModel.getEditPluginClassName());
- stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_21);
for (String pluginClassName : genModel.getEditResourceDelegateImportedPluginClassNames()) {
- stringBuffer.append(TEXT_23);
+ stringBuffer.append(TEXT_22);
stringBuffer.append(pluginClassName);
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_23);
}
- stringBuffer.append(TEXT_25);
+ stringBuffer.append(TEXT_24);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_26);
+ stringBuffer.append(TEXT_25);
}
- stringBuffer.append(TEXT_27);
+ stringBuffer.append(TEXT_26);
if (genModel.getRuntimePlatform() == GenRuntimePlatform.GWT) {
- stringBuffer.append(TEXT_28);
+ stringBuffer.append(TEXT_27);
} else {
- stringBuffer.append(TEXT_29);
+ stringBuffer.append(TEXT_28);
}
- stringBuffer.append(TEXT_30);
+ stringBuffer.append(TEXT_29);
if (genModel.getRuntimePlatform() != GenRuntimePlatform.GWT) {
- stringBuffer.append(TEXT_31);
+ stringBuffer.append(TEXT_30);
if (genModel.needsRuntimeCompatibility()) {
- stringBuffer.append(TEXT_32);
+ stringBuffer.append(TEXT_31);
}
- stringBuffer.append(TEXT_33);
+ stringBuffer.append(TEXT_32);
if (genModel.needsRuntimeCompatibility()) {
stringBuffer.append(genModel.getImportedName("org.eclipse.core.runtime.IPluginDescriptor"));
- stringBuffer.append(TEXT_34);
+ stringBuffer.append(TEXT_33);
}
- stringBuffer.append(TEXT_35);
+ stringBuffer.append(TEXT_34);
if (genModel.needsRuntimeCompatibility()) {
- stringBuffer.append(TEXT_36);
+ stringBuffer.append(TEXT_35);
}
- stringBuffer.append(TEXT_37);
+ stringBuffer.append(TEXT_36);
if (genModel.isOSGiCompatible()) {
- stringBuffer.append(TEXT_38);
+ stringBuffer.append(TEXT_37);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.EMFPlugin"));
- stringBuffer.append(TEXT_39);
+ stringBuffer.append(TEXT_38);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_40);
+ stringBuffer.append(TEXT_39);
}
- stringBuffer.append(TEXT_41);
+ stringBuffer.append(TEXT_40);
stringBuffer.append(genModel.getImportedName("org.osgi.framework.BundleActivator"));
- stringBuffer.append(TEXT_42);
+ stringBuffer.append(TEXT_41);
}
- stringBuffer.append(TEXT_43);
+ stringBuffer.append(TEXT_29);
} else {
- stringBuffer.append(TEXT_44);
+ stringBuffer.append(TEXT_42);
stringBuffer.append(genModel.getImportedName(genModel.getQualifiedEditPluginClassName() + "Properties"));
- stringBuffer.append(TEXT_45);
+ stringBuffer.append(TEXT_43);
stringBuffer.append(genModel.getImportedName("com.google.gwt.core.client.GWT"));
- stringBuffer.append(TEXT_46);
+ stringBuffer.append(TEXT_44);
stringBuffer.append(genModel.getImportedName(genModel.getQualifiedEditPluginClassName() + "Properties"));
- stringBuffer.append(TEXT_47);
+ stringBuffer.append(TEXT_45);
boolean first = true; for (GenPackage genPackage : genModel.getAllGenAndUsedGenPackagesWithClassifiers()) {
if (genPackage.getGenModel() == genModel || !genPackage.getGenModel().hasEditSupport()) {
for (GenClass genClass : genPackage.getGenClasses()) {
- stringBuffer.append(TEXT_48);
+ stringBuffer.append(TEXT_46);
if (first) { first = false; } else {
- stringBuffer.append(TEXT_49);
+ stringBuffer.append(TEXT_47);
}
- stringBuffer.append(TEXT_50);
+ stringBuffer.append(TEXT_48);
stringBuffer.append(genClass.getName());
- stringBuffer.append(TEXT_51);
+ stringBuffer.append(TEXT_49);
stringBuffer.append(genClass.getUncapName());
- stringBuffer.append(TEXT_52);
+ stringBuffer.append(TEXT_50);
}
}
}
- stringBuffer.append(TEXT_53);
+ stringBuffer.append(TEXT_46);
if (first) { first = false; } else {
- stringBuffer.append(TEXT_54);
+ stringBuffer.append(TEXT_47);
}
- stringBuffer.append(TEXT_55);
+ stringBuffer.append(TEXT_51);
for (GenFeature genFeature : genModel.getFilteredAllGenFeatures()) { String description = genFeature.getPropertyDescription();
- stringBuffer.append(TEXT_56);
+ stringBuffer.append(TEXT_52);
stringBuffer.append(genFeature.getGenClass().getName());
- stringBuffer.append(TEXT_57);
+ stringBuffer.append(TEXT_53);
stringBuffer.append(genFeature.getName());
- stringBuffer.append(TEXT_58);
+ stringBuffer.append(TEXT_54);
stringBuffer.append(genFeature.getGenClass().getUncapName());
- stringBuffer.append(TEXT_59);
+ stringBuffer.append(TEXT_53);
stringBuffer.append(genFeature.getCapName());
- stringBuffer.append(TEXT_60);
+ stringBuffer.append(TEXT_55);
if (description != null && description.length() > 0) {
- stringBuffer.append(TEXT_61);
+ stringBuffer.append(TEXT_52);
stringBuffer.append(genFeature.getGenClass().getName());
- stringBuffer.append(TEXT_62);
+ stringBuffer.append(TEXT_53);
stringBuffer.append(genFeature.getName());
- stringBuffer.append(TEXT_63);
+ stringBuffer.append(TEXT_56);
stringBuffer.append(genFeature.getGenClass().getUncapName());
- stringBuffer.append(TEXT_64);
+ stringBuffer.append(TEXT_53);
stringBuffer.append(genFeature.getCapName());
- stringBuffer.append(TEXT_65);
+ stringBuffer.append(TEXT_57);
}
}
- stringBuffer.append(TEXT_66);
+ stringBuffer.append(TEXT_58);
for (GenPackage genPackage : genModel.getAllGenAndUsedGenPackagesWithClassifiers()) {
if (genPackage.getGenModel() == genModel || !genPackage.getGenModel().hasEditSupport()) {
for (GenEnum genEnum : genPackage.getGenEnums()) {
for (GenEnumLiteral genEnumLiteral : genEnum.getGenEnumLiterals()) {
- stringBuffer.append(TEXT_67);
+ stringBuffer.append(TEXT_52);
stringBuffer.append(genEnum.getName());
- stringBuffer.append(TEXT_68);
+ stringBuffer.append(TEXT_53);
stringBuffer.append(genEnumLiteral.getName());
- stringBuffer.append(TEXT_69);
+ stringBuffer.append(TEXT_59);
stringBuffer.append(genEnum.getSafeUncapName());
- stringBuffer.append(TEXT_70);
+ stringBuffer.append(TEXT_53);
stringBuffer.append(genEnumLiteral.getName());
- stringBuffer.append(TEXT_71);
+ stringBuffer.append(TEXT_60);
}
}
}
}
for (String category : genModel.getPropertyCategories()) {
- stringBuffer.append(TEXT_72);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genModel.getPropertyCategoryKey(category));
- stringBuffer.append(TEXT_73);
+ stringBuffer.append(TEXT_61);
stringBuffer.append(category);
- stringBuffer.append(TEXT_74);
+ stringBuffer.append(TEXT_62);
stringBuffer.append(genModel.getPropertyCategoryKey(category));
- stringBuffer.append(TEXT_75);
+ stringBuffer.append(TEXT_63);
stringBuffer.append(genModel.getPropertyCategoryKey(category));
- stringBuffer.append(TEXT_76);
+ stringBuffer.append(TEXT_64);
}
- stringBuffer.append(TEXT_77);
+ stringBuffer.append(TEXT_65);
if (genModel.isCreationCommands()) {
- stringBuffer.append(TEXT_78);
+ stringBuffer.append(TEXT_66);
}
- stringBuffer.append(TEXT_79);
+ stringBuffer.append(TEXT_46);
if (!genModel.isCreationCommands()) {
- stringBuffer.append(TEXT_80);
+ stringBuffer.append(TEXT_47);
}
- stringBuffer.append(TEXT_81);
+ stringBuffer.append(TEXT_67);
stringBuffer.append(genModel.getImportedName(genModel.getQualifiedEditPluginClassName() + "Images"));
- stringBuffer.append(TEXT_82);
+ stringBuffer.append(TEXT_68);
stringBuffer.append(genModel.getImportedName("com.google.gwt.core.client.GWT"));
- stringBuffer.append(TEXT_83);
+ stringBuffer.append(TEXT_44);
stringBuffer.append(genModel.getImportedName(genModel.getQualifiedEditPluginClassName() + "Images"));
- stringBuffer.append(TEXT_84);
+ stringBuffer.append(TEXT_69);
first = true; for (GenPackage genPackage : genModel.getAllGenAndUsedGenPackagesWithClassifiers()) {
for (GenClass genClass : genPackage.getGenClasses()) {
if (genClass.isImage()) { String image = genClass.getItemIconFileName(); image = image.substring(image.lastIndexOf("/icons/") + 7, image.length() - 4);
- stringBuffer.append(TEXT_85);
+ stringBuffer.append(TEXT_46);
if (first) { first = false; } else {
- stringBuffer.append(TEXT_86);
+ stringBuffer.append(TEXT_47);
}
- stringBuffer.append(TEXT_87);
+ stringBuffer.append(TEXT_70);
stringBuffer.append(image);
- stringBuffer.append(TEXT_88);
+ stringBuffer.append(TEXT_71);
stringBuffer.append(genClass.getItemIconAccessorName());
- stringBuffer.append(TEXT_89);
+ stringBuffer.append(TEXT_64);
}
}
}
- stringBuffer.append(TEXT_90);
+ stringBuffer.append(TEXT_46);
if (first) { first = false; } else {
- stringBuffer.append(TEXT_91);
+ stringBuffer.append(TEXT_47);
}
- stringBuffer.append(TEXT_92);
+ stringBuffer.append(TEXT_72);
}
- stringBuffer.append(TEXT_93);
+ stringBuffer.append(TEXT_73);
genModel.emitSortedImports();
- stringBuffer.append(TEXT_94);
+ stringBuffer.append(TEXT_15);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/PluginProperties.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/PluginProperties.java
index 1ed3aa545..9d435cdf9 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/PluginProperties.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/PluginProperties.java
@@ -27,19 +27,12 @@ public class PluginProperties
protected final String TEXT_10 = NL + "_UI_";
protected final String TEXT_11 = "_type = ";
protected final String TEXT_12 = NL + "_UI_Unknown_type = Object" + NL + "" + NL + "_UI_Unknown_datatype= Value" + NL;
- protected final String TEXT_13 = NL + "_UI_";
- protected final String TEXT_14 = "_";
- protected final String TEXT_15 = "_feature = ";
- protected final String TEXT_16 = NL + "_UI_";
- protected final String TEXT_17 = "_";
- protected final String TEXT_18 = "_description = ";
- protected final String TEXT_19 = NL + "_UI_Unknown_feature = Unspecified" + NL;
- protected final String TEXT_20 = NL + "_UI_";
- protected final String TEXT_21 = "_";
- protected final String TEXT_22 = "_literal = ";
- protected final String TEXT_23 = NL;
- protected final String TEXT_24 = " = ";
- protected final String TEXT_25 = NL;
+ protected final String TEXT_13 = "_";
+ protected final String TEXT_14 = "_feature = ";
+ protected final String TEXT_15 = "_description = ";
+ protected final String TEXT_16 = NL + "_UI_Unknown_feature = Unspecified" + NL;
+ protected final String TEXT_17 = "_literal = ";
+ protected final String TEXT_18 = " = ";
public String generate(Object argument)
{
@@ -89,44 +82,44 @@ public class PluginProperties
}
stringBuffer.append(TEXT_12);
for (GenFeature genFeature : genModel.getFilteredAllGenFeatures()) { String description = genFeature.getPropertyDescription();
- stringBuffer.append(TEXT_13);
+ stringBuffer.append(TEXT_10);
stringBuffer.append(genFeature.getGenClass().getName());
- stringBuffer.append(TEXT_14);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(genFeature.getName());
- stringBuffer.append(TEXT_15);
+ stringBuffer.append(TEXT_14);
stringBuffer.append(genFeature.getFormattedName());
if (description != null && description.length() > 0) {
- stringBuffer.append(TEXT_16);
+ stringBuffer.append(TEXT_10);
stringBuffer.append(genFeature.getGenClass().getName());
- stringBuffer.append(TEXT_17);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(genFeature.getName());
- stringBuffer.append(TEXT_18);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(description);
}
}
- stringBuffer.append(TEXT_19);
+ stringBuffer.append(TEXT_16);
for (GenPackage genPackage : genModel.getAllGenAndUsedGenPackagesWithClassifiers()) {
if (genPackage.getGenModel() == genModel || !genPackage.getGenModel().hasEditSupport()) {
for (GenEnum genEnum : genPackage.getGenEnums()) {
for (GenEnumLiteral genEnumLiteral : genEnum.getGenEnumLiterals()) {
- stringBuffer.append(TEXT_20);
+ stringBuffer.append(TEXT_10);
stringBuffer.append(genEnum.getName());
- stringBuffer.append(TEXT_21);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(genEnumLiteral.getName());
- stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_17);
stringBuffer.append(genEnumLiteral.getLiteral());
}
}
}
}
for (String category : genModel.getPropertyCategories()) {
- stringBuffer.append(TEXT_23);
+ stringBuffer.append(TEXT_5);
stringBuffer.append(genModel.getPropertyCategoryKey(category));
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_18);
stringBuffer.append(category);
}
}
- stringBuffer.append(TEXT_25);
+ stringBuffer.append(TEXT_5);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/PluginXML.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/PluginXML.java
index ec4ad3ccf..bfad74131 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/PluginXML.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/PluginXML.java
@@ -37,56 +37,32 @@ public class PluginXML
protected final String TEXT_20 = NL + " <!-- @generated ";
protected final String TEXT_21 = " -->";
protected final String TEXT_22 = NL + " <package" + NL + " uri=\"";
- protected final String TEXT_23 = "\"";
- protected final String TEXT_24 = NL + " class=\"";
- protected final String TEXT_25 = "\"" + NL + " genModel=\"";
- protected final String TEXT_26 = "\"/>";
- protected final String TEXT_27 = NL + " class=\"";
- protected final String TEXT_28 = "\"/>";
- protected final String TEXT_29 = NL + " </extension>";
- protected final String TEXT_30 = NL + NL + " <extension point=\"org.eclipse.emf.ecore.content_parser\">";
- protected final String TEXT_31 = NL + " <!-- @generated ";
- protected final String TEXT_32 = " -->";
- protected final String TEXT_33 = NL + " <parser" + NL + " contentTypeIdentifier=\"";
- protected final String TEXT_34 = "\"" + NL + " class=\"";
- protected final String TEXT_35 = "\"/>" + NL + " </extension>" + NL + "" + NL + " <extension point=\"org.eclipse.core.contenttype.contentTypes\">";
- protected final String TEXT_36 = NL + " <!-- @generated ";
- protected final String TEXT_37 = " -->";
- protected final String TEXT_38 = NL + " <content-type" + NL + " base-type=\"";
- protected final String TEXT_39 = "\"" + NL + " file-extensions=\"";
- protected final String TEXT_40 = "\"" + NL + " id=\"";
- protected final String TEXT_41 = "\"" + NL + " name=\"%_UI_";
- protected final String TEXT_42 = "_content_type\"" + NL + " priority=\"normal\">" + NL + " <describer class=\"org.eclipse.emf.ecore.xmi.impl.RootXMLContentHandlerImpl$Describer\">";
- protected final String TEXT_43 = NL + " <parameter name=\"namespace\" value=\"";
- protected final String TEXT_44 = "\"/>";
- protected final String TEXT_45 = NL + " <parameter name=\"kind\" value=\"xmi\"/>";
- protected final String TEXT_46 = NL + " </describer>" + NL + " </content-type>" + NL + " </extension>";
- protected final String TEXT_47 = NL + NL + " <extension point=\"org.eclipse.emf.ecore.extension_parser\">";
- protected final String TEXT_48 = NL + " <!-- @generated ";
- protected final String TEXT_49 = " -->";
- protected final String TEXT_50 = NL + " <parser" + NL + " type=\"";
- protected final String TEXT_51 = "\"" + NL + " class=\"";
- protected final String TEXT_52 = "\"/>";
- protected final String TEXT_53 = NL + " </extension>";
- protected final String TEXT_54 = NL + NL + " <extension point=\"org.eclipse.emf.edit.itemProviderAdapterFactories\">";
- protected final String TEXT_55 = NL + " <!-- @generated ";
- protected final String TEXT_56 = " -->";
- protected final String TEXT_57 = NL + " <factory" + NL + " uri=\"";
- protected final String TEXT_58 = "\"" + NL + " class=\"";
- protected final String TEXT_59 = "\"" + NL + " supportedTypes=";
- protected final String TEXT_60 = NL + " ";
- protected final String TEXT_61 = "\"/>";
- protected final String TEXT_62 = NL + " </extension>";
- protected final String TEXT_63 = NL + NL + " <extension point=\"org.eclipse.emf.edit.childCreationExtenders\">";
- protected final String TEXT_64 = NL + " <!-- @generated ";
- protected final String TEXT_65 = " -->";
- protected final String TEXT_66 = NL + " <extender" + NL + " uri=\"";
- protected final String TEXT_67 = "\"" + NL + " class=\"";
- protected final String TEXT_68 = "$";
- protected final String TEXT_69 = "\"/>";
- protected final String TEXT_70 = NL + " </extension>";
- protected final String TEXT_71 = NL + NL + "</plugin>";
- protected final String TEXT_72 = NL;
+ protected final String TEXT_23 = NL + " class=\"";
+ protected final String TEXT_24 = "\"" + NL + " genModel=\"";
+ protected final String TEXT_25 = "\"/>";
+ protected final String TEXT_26 = NL + " </extension>";
+ protected final String TEXT_27 = NL + NL + " <extension point=\"org.eclipse.emf.ecore.content_parser\">";
+ protected final String TEXT_28 = NL + " <parser" + NL + " contentTypeIdentifier=\"";
+ protected final String TEXT_29 = "\"" + NL + " class=\"";
+ protected final String TEXT_30 = "\"/>" + NL + " </extension>" + NL + "" + NL + " <extension point=\"org.eclipse.core.contenttype.contentTypes\">";
+ protected final String TEXT_31 = NL + " <content-type" + NL + " base-type=\"";
+ protected final String TEXT_32 = "\"" + NL + " file-extensions=\"";
+ protected final String TEXT_33 = "\"" + NL + " id=\"";
+ protected final String TEXT_34 = "\"" + NL + " name=\"%_UI_";
+ protected final String TEXT_35 = "_content_type\"" + NL + " priority=\"normal\">" + NL + " <describer class=\"org.eclipse.emf.ecore.xmi.impl.RootXMLContentHandlerImpl$Describer\">";
+ protected final String TEXT_36 = NL + " <parameter name=\"namespace\" value=\"";
+ protected final String TEXT_37 = NL + " <parameter name=\"kind\" value=\"xmi\"/>";
+ protected final String TEXT_38 = NL + " </describer>" + NL + " </content-type>" + NL + " </extension>";
+ protected final String TEXT_39 = NL + NL + " <extension point=\"org.eclipse.emf.ecore.extension_parser\">";
+ protected final String TEXT_40 = NL + " <parser" + NL + " type=\"";
+ protected final String TEXT_41 = NL + NL + " <extension point=\"org.eclipse.emf.edit.itemProviderAdapterFactories\">";
+ protected final String TEXT_42 = NL + " <factory" + NL + " uri=\"";
+ protected final String TEXT_43 = "\"" + NL + " supportedTypes=";
+ protected final String TEXT_44 = NL + " ";
+ protected final String TEXT_45 = NL + NL + " <extension point=\"org.eclipse.emf.edit.childCreationExtenders\">";
+ protected final String TEXT_46 = NL + " <extender" + NL + " uri=\"";
+ protected final String TEXT_47 = "$";
+ protected final String TEXT_48 = NL + NL + "</plugin>";
public String generate(Object argument)
{
@@ -150,118 +126,118 @@ public class PluginXML
}
stringBuffer.append(TEXT_22);
stringBuffer.append(genPackage.getNSURI());
- stringBuffer.append(TEXT_23);
+ stringBuffer.append(TEXT_11);
if (genModel.hasLocalGenModel()) {
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_23);
stringBuffer.append(genPackage.getQualifiedPackageInterfaceName());
- stringBuffer.append(TEXT_25);
+ stringBuffer.append(TEXT_24);
stringBuffer.append(genModel.getRelativeGenModelLocation());
- stringBuffer.append(TEXT_26);
+ stringBuffer.append(TEXT_25);
} else {
- stringBuffer.append(TEXT_27);
+ stringBuffer.append(TEXT_23);
stringBuffer.append(genPackage.getQualifiedPackageInterfaceName());
- stringBuffer.append(TEXT_28);
+ stringBuffer.append(TEXT_25);
}
- stringBuffer.append(TEXT_29);
+ stringBuffer.append(TEXT_26);
if (genPackage.isContentType()) {
- stringBuffer.append(TEXT_30);
+ stringBuffer.append(TEXT_27);
if (hasKey) {
- stringBuffer.append(TEXT_31);
+ stringBuffer.append(TEXT_20);
stringBuffer.append(key);
- stringBuffer.append(TEXT_32);
+ stringBuffer.append(TEXT_21);
}
- stringBuffer.append(TEXT_33);
+ stringBuffer.append(TEXT_28);
stringBuffer.append(genPackage.getContentTypeIdentifier());
- stringBuffer.append(TEXT_34);
+ stringBuffer.append(TEXT_29);
stringBuffer.append(genPackage.getQualifiedEffectiveResourceFactoryClassName());
- stringBuffer.append(TEXT_35);
+ stringBuffer.append(TEXT_30);
if (hasKey) {
- stringBuffer.append(TEXT_36);
+ stringBuffer.append(TEXT_20);
stringBuffer.append(key);
- stringBuffer.append(TEXT_37);
+ stringBuffer.append(TEXT_21);
}
- stringBuffer.append(TEXT_38);
+ stringBuffer.append(TEXT_31);
stringBuffer.append(genPackage.isXMIResource() ? "org.eclipse.emf.ecore.xmi" : "org.eclipse.core.runtime.xml");
- stringBuffer.append(TEXT_39);
+ stringBuffer.append(TEXT_32);
stringBuffer.append(genPackage.getFileExtensions());
- stringBuffer.append(TEXT_40);
+ stringBuffer.append(TEXT_33);
stringBuffer.append(genPackage.getContentTypeIdentifier());
- stringBuffer.append(TEXT_41);
+ stringBuffer.append(TEXT_34);
stringBuffer.append(genPackage.getPrefix());
- stringBuffer.append(TEXT_42);
+ stringBuffer.append(TEXT_35);
if (genPackage.hasTargetNamespace()) {
- stringBuffer.append(TEXT_43);
+ stringBuffer.append(TEXT_36);
stringBuffer.append(genPackage.getNSURI());
- stringBuffer.append(TEXT_44);
+ stringBuffer.append(TEXT_25);
}
if (genPackage.isXMIResource()) {
- stringBuffer.append(TEXT_45);
+ stringBuffer.append(TEXT_37);
}
- stringBuffer.append(TEXT_46);
+ stringBuffer.append(TEXT_38);
} else if (genPackage.getResource() != GenResourceKind.NONE_LITERAL) {
- stringBuffer.append(TEXT_47);
+ stringBuffer.append(TEXT_39);
if (hasKey) {
- stringBuffer.append(TEXT_48);
+ stringBuffer.append(TEXT_20);
stringBuffer.append(key);
- stringBuffer.append(TEXT_49);
+ stringBuffer.append(TEXT_21);
}
for (String fileExtension : genPackage.getFileExtensionList()) {
- stringBuffer.append(TEXT_50);
+ stringBuffer.append(TEXT_40);
stringBuffer.append(fileExtension);
- stringBuffer.append(TEXT_51);
+ stringBuffer.append(TEXT_29);
stringBuffer.append(genPackage.getQualifiedResourceFactoryClassName());
- stringBuffer.append(TEXT_52);
+ stringBuffer.append(TEXT_25);
}
- stringBuffer.append(TEXT_53);
+ stringBuffer.append(TEXT_26);
}
}
}
for (GenPackage genPackage : genModel.getAllGenPackagesWithClassifiers()) {
if (!genPackage.getGenClasses().isEmpty()) {
- stringBuffer.append(TEXT_54);
+ stringBuffer.append(TEXT_41);
if (hasKey) {
- stringBuffer.append(TEXT_55);
+ stringBuffer.append(TEXT_20);
stringBuffer.append(key);
- stringBuffer.append(TEXT_56);
+ stringBuffer.append(TEXT_21);
}
- stringBuffer.append(TEXT_57);
+ stringBuffer.append(TEXT_42);
stringBuffer.append(genPackage.getNSURI());
- stringBuffer.append(TEXT_58);
+ stringBuffer.append(TEXT_29);
stringBuffer.append(genPackage.getQualifiedItemProviderAdapterFactoryClassName());
- stringBuffer.append(TEXT_59);
+ stringBuffer.append(TEXT_43);
for (ListIterator<?> j = genPackage.getProviderSupportedTypes().listIterator(); j.hasNext(); ) {
- stringBuffer.append(TEXT_60);
+ stringBuffer.append(TEXT_44);
stringBuffer.append(j.hasPrevious() ? " " : "\"");
stringBuffer.append(j.next());
if (!j.hasNext()) {
- stringBuffer.append(TEXT_61);
+ stringBuffer.append(TEXT_25);
}
}
- stringBuffer.append(TEXT_62);
+ stringBuffer.append(TEXT_26);
if (genPackage.isChildCreationExtenders()) { Map<GenPackage, Map<GenClass, List<GenClass.ChildCreationData>>> extendedChildCreationData = genPackage.getExtendedChildCreationData();
if (!extendedChildCreationData.isEmpty()) {
- stringBuffer.append(TEXT_63);
+ stringBuffer.append(TEXT_45);
if (hasKey) {
- stringBuffer.append(TEXT_64);
+ stringBuffer.append(TEXT_20);
stringBuffer.append(key);
- stringBuffer.append(TEXT_65);
+ stringBuffer.append(TEXT_21);
}
for (Map.Entry<GenPackage, Map<GenClass, List<GenClass.ChildCreationData>>> entry : extendedChildCreationData.entrySet()) {
- stringBuffer.append(TEXT_66);
+ stringBuffer.append(TEXT_46);
stringBuffer.append(entry.getKey().getNSURI());
- stringBuffer.append(TEXT_67);
+ stringBuffer.append(TEXT_29);
stringBuffer.append(genPackage.getQualifiedItemProviderAdapterFactoryClassName());
- stringBuffer.append(TEXT_68);
+ stringBuffer.append(TEXT_47);
stringBuffer.append(genPackage.getChildCreationExtenderName(entry.getKey()));
- stringBuffer.append(TEXT_69);
+ stringBuffer.append(TEXT_25);
}
- stringBuffer.append(TEXT_70);
+ stringBuffer.append(TEXT_26);
}
}
}
}
- stringBuffer.append(TEXT_71);
- stringBuffer.append(TEXT_72);
+ stringBuffer.append(TEXT_48);
+ stringBuffer.append(TEXT_2);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/Properties.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/Properties.java
index 23d842bcb..dbcf25ef1 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/Properties.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/edit/Properties.java
@@ -32,33 +32,20 @@ public class Properties
protected final String TEXT_15 = "\")" + NL + "\tString ";
protected final String TEXT_16 = "Type();" + NL;
protected final String TEXT_17 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Key(\"_UI_Unknown_type\")" + NL + "\t@DefaultMessage(\"Object\")" + NL + "\tString unknownType();" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Key(\"_UI_Unknown_datatype\")" + NL + "\t@DefaultMessage(\"Value\")" + NL + "\tString unknownDatatype();" + NL;
- protected final String TEXT_18 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Key(\"_UI_";
- protected final String TEXT_19 = "_";
- protected final String TEXT_20 = "_feature\")" + NL + "\t@DefaultMessage(\"";
- protected final String TEXT_21 = "\")" + NL + "\tString ";
- protected final String TEXT_22 = "_";
- protected final String TEXT_23 = "Feature();" + NL;
- protected final String TEXT_24 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Key(\"_UI_";
- protected final String TEXT_25 = "_";
- protected final String TEXT_26 = "_description\")" + NL + "\t@DefaultMessage(\"";
- protected final String TEXT_27 = "\")" + NL + "\tString ";
- protected final String TEXT_28 = "_";
- protected final String TEXT_29 = "Description();" + NL;
- protected final String TEXT_30 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Key(\"_UI_Unknown_feature\")" + NL + "\t@DefaultMessage(\"Unspecified\")" + NL + "\tString unknownFeature();" + NL;
- protected final String TEXT_31 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Key(\"_UI_";
- protected final String TEXT_32 = "_";
- protected final String TEXT_33 = "_literal\")" + NL + "\t@DefaultMessage(\"";
- protected final String TEXT_34 = "\")" + NL + "\tString ";
- protected final String TEXT_35 = "_";
- protected final String TEXT_36 = "Literal();" + NL;
- protected final String TEXT_37 = NL;
- protected final String TEXT_38 = " = ";
- protected final String TEXT_39 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Key(\"";
- protected final String TEXT_40 = "\")" + NL + "\t@DefaultMessage(\"";
- protected final String TEXT_41 = "\")" + NL + "\tString ";
- protected final String TEXT_42 = "();" + NL;
- protected final String TEXT_43 = NL + "}";
- protected final String TEXT_44 = NL;
+ protected final String TEXT_18 = "_";
+ protected final String TEXT_19 = "_feature\")" + NL + "\t@DefaultMessage(\"";
+ protected final String TEXT_20 = "Feature();" + NL;
+ protected final String TEXT_21 = "_description\")" + NL + "\t@DefaultMessage(\"";
+ protected final String TEXT_22 = "Description();" + NL;
+ protected final String TEXT_23 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Key(\"_UI_Unknown_feature\")" + NL + "\t@DefaultMessage(\"Unspecified\")" + NL + "\tString unknownFeature();" + NL;
+ protected final String TEXT_24 = "_literal\")" + NL + "\t@DefaultMessage(\"";
+ protected final String TEXT_25 = "Literal();" + NL;
+ protected final String TEXT_26 = NL;
+ protected final String TEXT_27 = " = ";
+ protected final String TEXT_28 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Key(\"";
+ protected final String TEXT_29 = "\")" + NL + "\t@DefaultMessage(\"";
+ protected final String TEXT_30 = "();" + NL;
+ protected final String TEXT_31 = NL + "}";
public String generate(Object argument)
{
@@ -115,67 +102,67 @@ public class Properties
}
stringBuffer.append(TEXT_17);
for (GenFeature genFeature : genModel.getFilteredAllGenFeatures()) { String description = genFeature.getPropertyDescription();
- stringBuffer.append(TEXT_18);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(genFeature.getGenClass().getName());
- stringBuffer.append(TEXT_19);
+ stringBuffer.append(TEXT_18);
stringBuffer.append(genFeature.getName());
- stringBuffer.append(TEXT_20);
+ stringBuffer.append(TEXT_19);
stringBuffer.append(genFeature.getFormattedName());
- stringBuffer.append(TEXT_21);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genFeature.getGenClass().getUncapName());
- stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_18);
stringBuffer.append(genFeature.getCapName());
- stringBuffer.append(TEXT_23);
+ stringBuffer.append(TEXT_20);
if (description != null && description.length() > 0) {
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(genFeature.getGenClass().getName());
- stringBuffer.append(TEXT_25);
+ stringBuffer.append(TEXT_18);
stringBuffer.append(genFeature.getName());
- stringBuffer.append(TEXT_26);
+ stringBuffer.append(TEXT_21);
stringBuffer.append(description);
- stringBuffer.append(TEXT_27);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genFeature.getGenClass().getUncapName());
- stringBuffer.append(TEXT_28);
+ stringBuffer.append(TEXT_18);
stringBuffer.append(genFeature.getCapName());
- stringBuffer.append(TEXT_29);
+ stringBuffer.append(TEXT_22);
}
}
- stringBuffer.append(TEXT_30);
+ stringBuffer.append(TEXT_23);
for (GenPackage genPackage : genModel.getAllGenAndUsedGenPackagesWithClassifiers()) {
if (genPackage.getGenModel() == genModel || !genPackage.getGenModel().hasEditSupport()) {
for (GenEnum genEnum : genPackage.getGenEnums()) {
for (GenEnumLiteral genEnumLiteral : genEnum.getGenEnumLiterals()) {
- stringBuffer.append(TEXT_31);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(genEnum.getName());
- stringBuffer.append(TEXT_32);
+ stringBuffer.append(TEXT_18);
stringBuffer.append(genEnumLiteral.getName());
- stringBuffer.append(TEXT_33);
+ stringBuffer.append(TEXT_24);
stringBuffer.append(genEnumLiteral.getLiteral());
- stringBuffer.append(TEXT_34);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genEnum.getSafeUncapName());
- stringBuffer.append(TEXT_35);
+ stringBuffer.append(TEXT_18);
stringBuffer.append(genEnumLiteral.getName());
- stringBuffer.append(TEXT_36);
+ stringBuffer.append(TEXT_25);
}
}
}
}
for (String category : genModel.getPropertyCategories()) {
- stringBuffer.append(TEXT_37);
+ stringBuffer.append(TEXT_26);
stringBuffer.append(genModel.getPropertyCategoryKey(category));
- stringBuffer.append(TEXT_38);
+ stringBuffer.append(TEXT_27);
stringBuffer.append(category);
- stringBuffer.append(TEXT_39);
+ stringBuffer.append(TEXT_28);
stringBuffer.append(genModel.getPropertyCategoryKey(category));
- stringBuffer.append(TEXT_40);
+ stringBuffer.append(TEXT_29);
stringBuffer.append(category);
- stringBuffer.append(TEXT_41);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genModel.getPropertyCategoryKey(category));
- stringBuffer.append(TEXT_42);
+ stringBuffer.append(TEXT_30);
}
- stringBuffer.append(TEXT_43);
+ stringBuffer.append(TEXT_31);
genModel.emitSortedImports();
- stringBuffer.append(TEXT_44);
+ stringBuffer.append(TEXT_26);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ActionBarContributor.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ActionBarContributor.java
index 0de5cc776..2556b2c3e 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ActionBarContributor.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ActionBarContributor.java
@@ -21,254 +21,199 @@ public class ActionBarContributor
protected final String TEXT_5 = ";" + NL;
protected final String TEXT_6 = NL + NL + "/**" + NL + " * This is the action bar contributor for the ";
protected final String TEXT_7 = " model editor." + NL + " * <!-- begin-user-doc -->" + NL + " * <!-- end-user-doc -->";
- protected final String TEXT_8 = NL + " * ";
- protected final String TEXT_9 = NL + " * @generated" + NL + " */";
- protected final String TEXT_10 = NL + "@Deprecated";
- protected final String TEXT_11 = NL + "public class ";
- protected final String TEXT_12 = NL + "\textends ";
- protected final String TEXT_13 = NL + "\timplements ";
- protected final String TEXT_14 = NL + "{";
- protected final String TEXT_15 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final String copyright = ";
- protected final String TEXT_16 = ";";
- protected final String TEXT_17 = NL;
- protected final String TEXT_18 = NL + "\t/**" + NL + "\t * Action to create objects from the ";
- protected final String TEXT_19 = " model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class NewAction extends ";
- protected final String TEXT_20 = NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void run(";
- protected final String TEXT_21 = " action)" + NL + "\t\t{" + NL + "\t\t\t";
- protected final String TEXT_22 = " wizard = new ";
- protected final String TEXT_23 = "();" + NL + "\t\t\twizard.init(getWindow().getWorkbench(), ";
- protected final String TEXT_24 = ".EMPTY);" + NL + "\t\t\t";
- protected final String TEXT_25 = " wizardDialog = new ";
- protected final String TEXT_26 = "(getWindow().getShell(), wizard);" + NL + "\t\t\twizardDialog.open();" + NL + "\t\t}" + NL + "\t}" + NL;
- protected final String TEXT_27 = NL + "\t/**" + NL + "\t * This keeps track of the active editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_28 = " activeEditorPart;" + NL + "" + NL + "\t/**" + NL + "\t * This keeps track of the current selection provider." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_29 = " selectionProvider;" + NL + "" + NL + "\t/**" + NL + "\t * This action opens the Properties view." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_30 = " showPropertiesViewAction =" + NL + "\t\tnew ";
- protected final String TEXT_31 = "(";
- protected final String TEXT_32 = ".INSTANCE.getString(\"_UI_ShowPropertiesView_menu_item\"))";
- protected final String TEXT_33 = NL + "\t\t{";
- protected final String TEXT_34 = NL + "\t\t\t@Override";
- protected final String TEXT_35 = NL + "\t\t\tpublic void run()" + NL + "\t\t\t{" + NL + "\t\t\t\ttry" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tgetPage().showView(\"org.eclipse.ui.views.PropertySheet\");";
- protected final String TEXT_36 = NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (";
- protected final String TEXT_37 = " exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_38 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "" + NL + "\t/**" + NL + "\t * This action refreshes the viewer of the current editor if the editor" + NL + "\t * implements {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_39 = " refreshViewerAction =" + NL + "\t\tnew ";
- protected final String TEXT_40 = "(";
- protected final String TEXT_41 = ".INSTANCE.getString(\"_UI_RefreshViewer_menu_item\"))";
- protected final String TEXT_42 = NL + "\t\t{";
- protected final String TEXT_43 = NL + "\t\t\t@Override";
- protected final String TEXT_44 = NL + "\t\t\tpublic boolean isEnabled()" + NL + "\t\t\t{" + NL + "\t\t\t\treturn activeEditorPart instanceof ";
- protected final String TEXT_45 = ";" + NL + "\t\t\t}" + NL;
- protected final String TEXT_46 = NL + "\t\t\t@Override";
- protected final String TEXT_47 = NL + "\t\t\tpublic void run()" + NL + "\t\t\t{" + NL + "\t\t\t\tif (activeEditorPart instanceof ";
- protected final String TEXT_48 = ")" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_49 = " viewer = ((";
- protected final String TEXT_50 = ")activeEditorPart).getViewer();" + NL + "\t\t\t\t\tif (viewer != null)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tviewer.refresh();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t};" + NL;
- protected final String TEXT_51 = NL + "\t/**" + NL + "\t * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding to each descriptor" + NL + "\t * generated for the current selection by the item provider." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_52 = " createChildActions;" + NL;
- protected final String TEXT_53 = NL + "\t/**" + NL + "\t * This will contain a map of {@link org.eclipse.emf.edit.ui.action.CreateChildAction}s, keyed by sub-menu text." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_54 = " createChildSubmenuActions;" + NL;
- protected final String TEXT_55 = NL + "\t/**" + NL + "\t * This is the menu manager into which menu contribution items should be added for CreateChild actions." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_56 = " createChildMenuManager;" + NL + "" + NL + "\t/**" + NL + "\t * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} corresponding to each descriptor" + NL + "\t * generated for the current selection by the item provider." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_57 = " createSiblingActions;" + NL;
- protected final String TEXT_58 = NL + "\t/**" + NL + "\t * This will contain a map of {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction}s, keyed by submenu text." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_59 = " createSiblingSubmenuActions;" + NL;
- protected final String TEXT_60 = NL + "\t/**" + NL + "\t * This is the menu manager into which menu contribution items should be added for CreateSibling actions." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_61 = " createSiblingMenuManager;" + NL;
- protected final String TEXT_62 = NL + "\t/**" + NL + "\t * This creates an instance of the contributor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_63 = "()" + NL + "\t{" + NL + "\t\tsuper(ADDITIONS_LAST_STYLE);" + NL + "\t\tloadResourceAction = new ";
- protected final String TEXT_64 = "();" + NL + "\t\tvalidateAction = new ";
- protected final String TEXT_65 = "();";
- protected final String TEXT_66 = NL + "\t\tliveValidationAction = new ";
- protected final String TEXT_67 = ".LiveValidator.LiveValidationAction(";
- protected final String TEXT_68 = ".getPlugin().getDialogSettings());";
- protected final String TEXT_69 = NL + "\t\tcontrolAction = new ";
- protected final String TEXT_70 = "();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This adds Separators for editor additions to the tool bar." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_71 = NL + "\t@Override";
- protected final String TEXT_72 = NL + "\tpublic void contributeToToolBar(";
- protected final String TEXT_73 = " toolBarManager)" + NL + "\t{" + NL + "\t\ttoolBarManager.add(new ";
- protected final String TEXT_74 = "(\"";
- protected final String TEXT_75 = "-settings\"));";
- protected final String TEXT_76 = NL + "\t\ttoolBarManager.add(new ";
- protected final String TEXT_77 = "(\"";
- protected final String TEXT_78 = "-additions\"));";
- protected final String TEXT_79 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This adds to the menu bar a menu and some separators for editor additions," + NL + "\t * as well as the sub-menus for object creation items." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_80 = NL + "\t@Override";
- protected final String TEXT_81 = NL + "\tpublic void contributeToMenu(";
- protected final String TEXT_82 = " menuManager)" + NL + "\t{" + NL + "\t\tsuper.contributeToMenu(menuManager);" + NL + "" + NL + "\t\t";
- protected final String TEXT_83 = " submenuManager = new ";
- protected final String TEXT_84 = "(";
- protected final String TEXT_85 = ".INSTANCE.getString(\"_UI_";
- protected final String TEXT_86 = "_menu\"), \"";
- protected final String TEXT_87 = "MenuID\");";
- protected final String TEXT_88 = NL + "\t\tmenuManager.insertAfter(\"additions\", submenuManager);";
- protected final String TEXT_89 = NL + "\t\tsubmenuManager.add(new ";
- protected final String TEXT_90 = "(\"settings\"));";
- protected final String TEXT_91 = NL + "\t\tsubmenuManager.add(new ";
- protected final String TEXT_92 = "(\"actions\"));";
- protected final String TEXT_93 = NL + "\t\tsubmenuManager.add(new ";
- protected final String TEXT_94 = "(\"additions\"));";
- protected final String TEXT_95 = NL + "\t\tsubmenuManager.add(new ";
- protected final String TEXT_96 = "(\"additions-end\"));";
- protected final String TEXT_97 = NL;
- protected final String TEXT_98 = NL + "\t\t// Prepare for CreateChild item addition or removal." + NL + "\t\t//" + NL + "\t\tcreateChildMenuManager = new ";
- protected final String TEXT_99 = "(";
- protected final String TEXT_100 = ".INSTANCE.getString(\"_UI_CreateChild_menu_item\"));";
- protected final String TEXT_101 = NL + "\t\tsubmenuManager.insertBefore(\"additions\", createChildMenuManager);";
- protected final String TEXT_102 = NL + NL + "\t\t// Prepare for CreateSibling item addition or removal." + NL + "\t\t//" + NL + "\t\tcreateSiblingMenuManager = new ";
- protected final String TEXT_103 = "(";
- protected final String TEXT_104 = ".INSTANCE.getString(\"_UI_CreateSibling_menu_item\"));";
- protected final String TEXT_105 = NL + "\t\tsubmenuManager.insertBefore(\"additions\", createSiblingMenuManager);";
- protected final String TEXT_106 = NL + NL + "\t\t// Force an update because Eclipse hides empty menus now." + NL + "\t\t//" + NL + "\t\tsubmenuManager.addMenuListener" + NL + "\t\t\t(new ";
- protected final String TEXT_107 = "()" + NL + "\t\t\t {" + NL + "\t\t\t\t public void menuAboutToShow(";
- protected final String TEXT_108 = " menuManager)" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t menuManager.updateAll(true);" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL;
- protected final String TEXT_109 = NL + "\t\t// Add your contributions." + NL + "\t\t// Ensure that you remove @generated or mark it @generated NOT" + NL;
- protected final String TEXT_110 = NL + "\t\taddGlobalActions(submenuManager);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * When the active editor changes, this remembers the change and registers with it as a selection provider." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_111 = NL + "\t@Override";
- protected final String TEXT_112 = NL + "\tpublic void setActiveEditor(";
- protected final String TEXT_113 = " part)" + NL + "\t{" + NL + "\t\tsuper.setActiveEditor(part);" + NL + "\t\tactiveEditorPart = part;" + NL + "" + NL + "\t\t// Switch to the new selection provider." + NL + "\t\t//" + NL + "\t\tif (selectionProvider != null)" + NL + "\t\t{" + NL + "\t\t\tselectionProvider.removeSelectionChangedListener(this);" + NL + "\t\t}" + NL + "\t\tif (part == null)" + NL + "\t\t{" + NL + "\t\t\tselectionProvider = null;" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\tselectionProvider = part.getSite().getSelectionProvider();" + NL + "\t\t\tselectionProvider.addSelectionChangedListener(this);" + NL + "" + NL + "\t\t\t// Fake a selection changed event to update the menus." + NL + "\t\t\t//" + NL + "\t\t\tif (selectionProvider.getSelection() != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tselectionChanged(new ";
- protected final String TEXT_114 = "(selectionProvider, selectionProvider.getSelection()));" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionChangedListener}," + NL + "\t * handling {@link org.eclipse.jface.viewers.SelectionChangedEvent}s by querying for the children and siblings" + NL + "\t * that can be added to the selected object and updating the menus accordingly." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void selectionChanged(";
- protected final String TEXT_115 = " event)" + NL + "\t{";
- protected final String TEXT_116 = NL + "\t\t// Remove any menu items for old selection." + NL + "\t\t//" + NL + "\t\tif (createChildMenuManager != null)" + NL + "\t\t{";
- protected final String TEXT_117 = NL + "\t\t\tdepopulateManager(createChildMenuManager, createChildSubmenuActions);";
- protected final String TEXT_118 = NL + "\t\t\tdepopulateManager(createChildMenuManager, createChildActions);" + NL + "\t\t}" + NL + "\t\tif (createSiblingMenuManager != null)" + NL + "\t\t{";
- protected final String TEXT_119 = NL + "\t\t\tdepopulateManager(createSiblingMenuManager, createSiblingSubmenuActions);";
- protected final String TEXT_120 = NL + "\t\t\tdepopulateManager(createSiblingMenuManager, createSiblingActions);" + NL + "\t\t}" + NL + "" + NL + "\t\t// Query the new selection for appropriate new child/sibling descriptors" + NL + "\t\t//" + NL + "\t\t";
- protected final String TEXT_121 = " newChildDescriptors = null;" + NL + "\t\t";
- protected final String TEXT_122 = " newSiblingDescriptors = null;" + NL + "" + NL + "\t\t";
- protected final String TEXT_123 = " selection = event.getSelection();" + NL + "\t\tif (selection instanceof ";
- protected final String TEXT_124 = " && ((IStructuredSelection)selection).size() == 1)" + NL + "\t\t{" + NL + "\t\t\tObject object = ((";
- protected final String TEXT_125 = ")selection).getFirstElement();" + NL + "" + NL + "\t\t\t";
- protected final String TEXT_126 = " domain = ((";
- protected final String TEXT_127 = ")activeEditorPart).getEditingDomain();" + NL + "" + NL + "\t\t\tnewChildDescriptors = domain.getNewChildDescriptors(object, null);" + NL + "\t\t\tnewSiblingDescriptors = domain.getNewChildDescriptors(null, object);" + NL + "\t\t}" + NL + "" + NL + "\t\t// Generate actions for selection; populate and redraw the menus." + NL + "\t\t//" + NL + "\t\tcreateChildActions = generateCreateChildActions(newChildDescriptors, selection);";
- protected final String TEXT_128 = NL + "\t\tcreateChildSubmenuActions = extractSubmenuActions(createChildActions);";
- protected final String TEXT_129 = NL + "\t\tcreateSiblingActions = generateCreateSiblingActions(newSiblingDescriptors, selection);";
- protected final String TEXT_130 = NL + "\t\tcreateSiblingSubmenuActions = extractSubmenuActions(createSiblingActions);";
- protected final String TEXT_131 = NL + NL + "\t\tif (createChildMenuManager != null)" + NL + "\t\t{";
- protected final String TEXT_132 = NL + "\t\t\tpopulateManager(createChildMenuManager, createChildSubmenuActions, null);";
- protected final String TEXT_133 = NL + "\t\t\tpopulateManager(createChildMenuManager, createChildActions, null);" + NL + "\t\t\tcreateChildMenuManager.update(true);" + NL + "\t\t}" + NL + "\t\tif (createSiblingMenuManager != null)" + NL + "\t\t{";
- protected final String TEXT_134 = NL + "\t\t\tpopulateManager(createSiblingMenuManager, createSiblingSubmenuActions, null);";
- protected final String TEXT_135 = NL + "\t\t\tpopulateManager(createSiblingMenuManager, createSiblingActions, null);" + NL + "\t\t\tcreateSiblingMenuManager.update(true);" + NL + "\t\t}";
- protected final String TEXT_136 = NL + "\t\t// Add your contributions." + NL + "\t\t// Ensure that you remove @generated or mark it @generated NOT";
- protected final String TEXT_137 = NL + "\t}" + NL;
- protected final String TEXT_138 = NL + "\t/**" + NL + "\t * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in <code>descriptors</code>," + NL + "\t * and returns the collection of these actions." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_139 = " generateCreateChildActions(";
- protected final String TEXT_140 = " descriptors, ";
- protected final String TEXT_141 = " selection)" + NL + "\t{" + NL + "\t\t";
- protected final String TEXT_142 = " actions = new ";
- protected final String TEXT_143 = "();" + NL + "\t\tif (descriptors != null)" + NL + "\t\t{";
- protected final String TEXT_144 = NL + "\t\t\tfor (";
- protected final String TEXT_145 = " descriptor : descriptors)";
- protected final String TEXT_146 = NL + "\t\t\tfor (";
- protected final String TEXT_147 = " i = descriptors.iterator(); i.hasNext(); )";
- protected final String TEXT_148 = NL + "\t\t\t{" + NL + "\t\t\t\tactions.add(new ";
- protected final String TEXT_149 = "(activeEditorPart, selection, ";
- protected final String TEXT_150 = "descriptor";
- protected final String TEXT_151 = "i.next()";
- protected final String TEXT_152 = "));" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn actions;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object in <code>descriptors</code>," + NL + "\t * and returns the collection of these actions." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_153 = " generateCreateSiblingActions(";
- protected final String TEXT_154 = " descriptors, ";
- protected final String TEXT_155 = " selection)" + NL + "\t{" + NL + "\t\t";
- protected final String TEXT_156 = " actions = new ";
- protected final String TEXT_157 = "();" + NL + "\t\tif (descriptors != null)" + NL + "\t\t{";
- protected final String TEXT_158 = NL + "\t\t\tfor (";
- protected final String TEXT_159 = " descriptor : descriptors)";
- protected final String TEXT_160 = NL + "\t\t\tfor (";
- protected final String TEXT_161 = " i = descriptors.iterator(); i.hasNext(); )";
- protected final String TEXT_162 = NL + "\t\t\t{" + NL + "\t\t\t\tactions.add(new ";
- protected final String TEXT_163 = "(activeEditorPart, selection, ";
- protected final String TEXT_164 = "descriptor";
- protected final String TEXT_165 = "i.next()";
- protected final String TEXT_166 = "));" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn actions;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This populates the specified <code>manager</code> with {@link org.eclipse.jface.action.ActionContributionItem}s" + NL + "\t * based on the {@link org.eclipse.jface.action.IAction}s contained in the <code>actions</code> collection," + NL + "\t * by inserting them before the specified contribution item <code>contributionID</code>." + NL + "\t * If <code>contributionID</code> is <code>null</code>, they are simply added." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void populateManager(";
- protected final String TEXT_167 = " manager, ";
- protected final String TEXT_168 = " actions, String contributionID)" + NL + "\t{" + NL + "\t\tif (actions != null)" + NL + "\t\t{";
- protected final String TEXT_169 = NL + "\t\t\tfor (";
- protected final String TEXT_170 = " action : actions)";
- protected final String TEXT_171 = NL + "\t\t\tfor (";
- protected final String TEXT_172 = " i = actions.iterator(); i.hasNext(); )";
- protected final String TEXT_173 = NL + "\t\t\t{";
- protected final String TEXT_174 = NL + "\t\t\t\t";
- protected final String TEXT_175 = " action = (IAction)i.next();";
- protected final String TEXT_176 = NL + "\t\t\t\tif (contributionID != null)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tmanager.insertBefore(contributionID, action);" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tmanager.add(action);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\t\t" + NL + "\t/**" + NL + "\t * This removes from the specified <code>manager</code> all {@link org.eclipse.jface.action.ActionContributionItem}s" + NL + "\t * based on the {@link org.eclipse.jface.action.IAction}s contained in the <code>actions</code> collection." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void depopulateManager(";
- protected final String TEXT_177 = " manager, ";
- protected final String TEXT_178 = " actions)" + NL + "\t{" + NL + "\t\tif (actions != null)" + NL + "\t\t{" + NL + "\t\t\t";
- protected final String TEXT_179 = "[] items = manager.getItems();" + NL + "\t\t\tfor (int i = 0; i < items.length; i++)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Look into SubContributionItems" + NL + "\t\t\t\t//" + NL + "\t\t\t\t";
- protected final String TEXT_180 = " contributionItem = items[i];" + NL + "\t\t\t\twhile (contributionItem instanceof ";
- protected final String TEXT_181 = ")" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tcontributionItem = ((";
- protected final String TEXT_182 = ")contributionItem).getInnerItem();" + NL + "\t\t\t\t}" + NL + "" + NL + "\t\t\t\t// Delete the ActionContributionItems with matching action." + NL + "\t\t\t\t//" + NL + "\t\t\t\tif (contributionItem instanceof ";
- protected final String TEXT_183 = ")" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_184 = " action = ((";
- protected final String TEXT_185 = ")contributionItem).getAction();" + NL + "\t\t\t\t\tif (actions.contains(action))" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tmanager.remove(contributionItem);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL;
- protected final String TEXT_186 = NL + "\t/**" + NL + "\t * This extracts those actions in the <code>submenuActions</code> collection whose text is qualified and returns" + NL + "\t * a map of these actions, keyed by submenu text." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_187 = " extractSubmenuActions(";
- protected final String TEXT_188 = " createActions)" + NL + "\t{" + NL + "\t\t";
- protected final String TEXT_189 = " createSubmenuActions = new ";
- protected final String TEXT_190 = "();" + NL + "\t\tif (createActions != null)" + NL + "\t\t{" + NL + "\t\t\tfor (";
- protected final String TEXT_191 = " actions = createActions.iterator(); actions.hasNext(); )" + NL + "\t\t\t{" + NL + "\t\t\t\t";
- protected final String TEXT_192 = " action = ";
- protected final String TEXT_193 = "(";
- protected final String TEXT_194 = ")";
- protected final String TEXT_195 = "actions.next();" + NL + "\t\t\t\t";
- protected final String TEXT_196 = " st = new ";
- protected final String TEXT_197 = "(action.getText(), \"|\");";
- protected final String TEXT_198 = NL + "\t\t\t\tif (st.countTokens() == 2)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tString text = st.nextToken().trim();" + NL + "\t\t\t\t\t";
- protected final String TEXT_199 = " submenuActions = ";
- protected final String TEXT_200 = "(";
- protected final String TEXT_201 = ")";
- protected final String TEXT_202 = "createSubmenuActions.get(text);" + NL + "\t\t\t\t\tif (submenuActions == null)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tcreateSubmenuActions.put(text, submenuActions = new ";
- protected final String TEXT_203 = "());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\taction.setText(st.nextToken().trim());" + NL + "\t\t\t\t\tsubmenuActions.add(action);" + NL + "\t\t\t\t\tactions.remove();" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn createSubmenuActions;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This populates the specified <code>manager</code> with {@link org.eclipse.jface.action.MenuManager}s containing" + NL + "\t * {@link org.eclipse.jface.action.ActionContributionItem}s based on the {@link org.eclipse.jface.action.IAction}s" + NL + "\t * contained in the <code>submenuActions</code> collection, by inserting them before the specified contribution" + NL + "\t * item <code>contributionID</code>." + NL + "\t * If <code>contributionID</code> is <code>null</code>, they are simply added." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void populateManager(";
- protected final String TEXT_204 = " manager, ";
- protected final String TEXT_205 = " submenuActions, String contributionID)" + NL + "\t{" + NL + "\t\tif (submenuActions != null)" + NL + "\t\t{";
- protected final String TEXT_206 = NL + "\t\t\tfor (";
- protected final String TEXT_207 = " entry : submenuActions.entrySet())" + NL + "\t\t\t{";
- protected final String TEXT_208 = NL + "\t\t\tfor (";
- protected final String TEXT_209 = " entries = submenuActions.entrySet().iterator(); entries.hasNext();)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
- protected final String TEXT_210 = " entry = (";
- protected final String TEXT_211 = ")entries.next();";
- protected final String TEXT_212 = NL + "\t\t\t\t";
- protected final String TEXT_213 = " submenuManager = new ";
- protected final String TEXT_214 = "(";
- protected final String TEXT_215 = "(String)";
- protected final String TEXT_216 = "entry.getKey());" + NL + "\t\t\t\tif (contributionID != null)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tmanager.insertBefore(contributionID, submenuManager);" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tmanager.add(submenuManager);" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpopulateManager(submenuManager, ";
- protected final String TEXT_217 = "(";
- protected final String TEXT_218 = ")";
- protected final String TEXT_219 = "entry.getValue(), null);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This removes from the specified <code>manager</code> all {@link org.eclipse.jface.action.MenuManager}s and their" + NL + "\t * {@link org.eclipse.jface.action.ActionContributionItem}s based on the {@link org.eclipse.jface.action.IAction}s" + NL + "\t * contained in the <code>submenuActions</code> map." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void depopulateManager(";
- protected final String TEXT_220 = " manager, ";
- protected final String TEXT_221 = " submenuActions)" + NL + "\t{" + NL + "\t\tif (submenuActions != null)" + NL + "\t\t{" + NL + "\t\t\t";
- protected final String TEXT_222 = "[] items = manager.getItems();" + NL + "\t\t\tfor (int i = 0; i < items.length; i++)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
- protected final String TEXT_223 = " contributionItem = items[i];" + NL + "\t\t\t\tif (contributionItem instanceof ";
- protected final String TEXT_224 = ")" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_225 = " submenuManager = (";
- protected final String TEXT_226 = ")contributionItem;" + NL + "\t\t\t\t\tif (submenuActions.containsKey(submenuManager.getMenuText()))" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tdepopulateManager(submenuManager, ";
- protected final String TEXT_227 = "(";
- protected final String TEXT_228 = ")";
- protected final String TEXT_229 = "submenuActions.get(contributionItem));" + NL + "\t\t\t\t\t\tmanager.remove(contributionItem);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL;
- protected final String TEXT_230 = NL + "\t/**" + NL + "\t * This populates the pop-up menu before it appears." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_231 = NL + "\t@Override";
- protected final String TEXT_232 = NL + "\tpublic void menuAboutToShow(";
- protected final String TEXT_233 = " menuManager)" + NL + "\t{" + NL + "\t\tsuper.menuAboutToShow(menuManager);";
- protected final String TEXT_234 = NL + "\t\t";
- protected final String TEXT_235 = " submenuManager = null;" + NL + "" + NL + "\t\tsubmenuManager = new ";
- protected final String TEXT_236 = "(";
- protected final String TEXT_237 = ".INSTANCE.getString(\"_UI_CreateChild_menu_item\"));";
- protected final String TEXT_238 = NL + "\t\tpopulateManager(submenuManager, createChildSubmenuActions, null);";
- protected final String TEXT_239 = NL + "\t\tpopulateManager(submenuManager, createChildActions, null);" + NL + "\t\tmenuManager.insertBefore(\"edit\", submenuManager);";
- protected final String TEXT_240 = NL + NL + "\t\tsubmenuManager = new ";
- protected final String TEXT_241 = "(";
- protected final String TEXT_242 = ".INSTANCE.getString(\"_UI_CreateSibling_menu_item\"));";
- protected final String TEXT_243 = NL + "\t\tpopulateManager(submenuManager, createSiblingSubmenuActions, null);";
- protected final String TEXT_244 = NL + "\t\tpopulateManager(submenuManager, createSiblingActions, null);" + NL + "\t\tmenuManager.insertBefore(\"edit\", submenuManager);";
- protected final String TEXT_245 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This inserts global actions before the \"additions-end\" separator." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_246 = NL + "\t@Override";
- protected final String TEXT_247 = NL + "\tprotected void addGlobalActions(";
- protected final String TEXT_248 = " menuManager)" + NL + "\t{" + NL + "\t\tmenuManager.insertAfter(\"additions-end\", new ";
- protected final String TEXT_249 = "(\"ui-actions\"));";
- protected final String TEXT_250 = NL + "\t\tmenuManager.insertAfter(\"ui-actions\", showPropertiesViewAction);";
- protected final String TEXT_251 = NL + NL + "\t\trefreshViewerAction.setEnabled(refreshViewerAction.isEnabled());\t\t" + NL + "\t\tmenuManager.insertAfter(\"ui-actions\", refreshViewerAction);";
- protected final String TEXT_252 = NL + NL + "\t\tsuper.addGlobalActions(menuManager);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This ensures that a delete action will clean up all references to deleted objects." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_253 = NL + "\t@Override";
- protected final String TEXT_254 = NL + "\tprotected boolean removeAllReferencesOnDelete()" + NL + "\t{" + NL + "\t\treturn true;" + NL + "\t}" + NL + "" + NL + "}";
- protected final String TEXT_255 = NL;
+ protected final String TEXT_8 = NL + " * @generated" + NL + " */";
+ protected final String TEXT_9 = NL + "@Deprecated";
+ protected final String TEXT_10 = NL + "public class ";
+ protected final String TEXT_11 = NL + "\textends ";
+ protected final String TEXT_12 = NL + "\timplements ";
+ protected final String TEXT_13 = NL + "{";
+ protected final String TEXT_14 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final String copyright = ";
+ protected final String TEXT_15 = ";";
+ protected final String TEXT_16 = NL;
+ protected final String TEXT_17 = NL + "\t/**" + NL + "\t * Action to create objects from the ";
+ protected final String TEXT_18 = " model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class NewAction extends ";
+ protected final String TEXT_19 = NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void run(";
+ protected final String TEXT_20 = " action)" + NL + "\t\t{" + NL + "\t\t\t";
+ protected final String TEXT_21 = " wizard = new ";
+ protected final String TEXT_22 = "();" + NL + "\t\t\twizard.init(getWindow().getWorkbench(), ";
+ protected final String TEXT_23 = ".EMPTY);" + NL + "\t\t\t";
+ protected final String TEXT_24 = " wizardDialog = new ";
+ protected final String TEXT_25 = "(getWindow().getShell(), wizard);" + NL + "\t\t\twizardDialog.open();" + NL + "\t\t}" + NL + "\t}" + NL;
+ protected final String TEXT_26 = NL + "\t/**" + NL + "\t * This keeps track of the active editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_27 = " activeEditorPart;" + NL + "" + NL + "\t/**" + NL + "\t * This keeps track of the current selection provider." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_28 = " selectionProvider;" + NL + "" + NL + "\t/**" + NL + "\t * This action opens the Properties view." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_29 = " showPropertiesViewAction =" + NL + "\t\tnew ";
+ protected final String TEXT_30 = "(";
+ protected final String TEXT_31 = ".INSTANCE.getString(\"_UI_ShowPropertiesView_menu_item\"))";
+ protected final String TEXT_32 = NL + "\t\t{";
+ protected final String TEXT_33 = NL + "\t\t\t@Override";
+ protected final String TEXT_34 = NL + "\t\t\tpublic void run()" + NL + "\t\t\t{" + NL + "\t\t\t\ttry" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tgetPage().showView(\"org.eclipse.ui.views.PropertySheet\");";
+ protected final String TEXT_35 = NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (";
+ protected final String TEXT_36 = " exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
+ protected final String TEXT_37 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "" + NL + "\t/**" + NL + "\t * This action refreshes the viewer of the current editor if the editor" + NL + "\t * implements {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_38 = " refreshViewerAction =" + NL + "\t\tnew ";
+ protected final String TEXT_39 = ".INSTANCE.getString(\"_UI_RefreshViewer_menu_item\"))";
+ protected final String TEXT_40 = NL + "\t\t\tpublic boolean isEnabled()" + NL + "\t\t\t{" + NL + "\t\t\t\treturn activeEditorPart instanceof ";
+ protected final String TEXT_41 = ";" + NL + "\t\t\t}" + NL;
+ protected final String TEXT_42 = NL + "\t\t\tpublic void run()" + NL + "\t\t\t{" + NL + "\t\t\t\tif (activeEditorPart instanceof ";
+ protected final String TEXT_43 = ")" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
+ protected final String TEXT_44 = " viewer = ((";
+ protected final String TEXT_45 = ")activeEditorPart).getViewer();" + NL + "\t\t\t\t\tif (viewer != null)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tviewer.refresh();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t};" + NL;
+ protected final String TEXT_46 = NL + "\t/**" + NL + "\t * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding to each descriptor" + NL + "\t * generated for the current selection by the item provider." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_47 = " createChildActions;" + NL;
+ protected final String TEXT_48 = NL + "\t/**" + NL + "\t * This will contain a map of {@link org.eclipse.emf.edit.ui.action.CreateChildAction}s, keyed by sub-menu text." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_49 = " createChildSubmenuActions;" + NL;
+ protected final String TEXT_50 = NL + "\t/**" + NL + "\t * This is the menu manager into which menu contribution items should be added for CreateChild actions." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_51 = " createChildMenuManager;" + NL + "" + NL + "\t/**" + NL + "\t * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} corresponding to each descriptor" + NL + "\t * generated for the current selection by the item provider." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_52 = " createSiblingActions;" + NL;
+ protected final String TEXT_53 = NL + "\t/**" + NL + "\t * This will contain a map of {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction}s, keyed by submenu text." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_54 = " createSiblingSubmenuActions;" + NL;
+ protected final String TEXT_55 = NL + "\t/**" + NL + "\t * This is the menu manager into which menu contribution items should be added for CreateSibling actions." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_56 = " createSiblingMenuManager;" + NL;
+ protected final String TEXT_57 = NL + "\t/**" + NL + "\t * This creates an instance of the contributor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_58 = "()" + NL + "\t{" + NL + "\t\tsuper(ADDITIONS_LAST_STYLE);" + NL + "\t\tloadResourceAction = new ";
+ protected final String TEXT_59 = "();" + NL + "\t\tvalidateAction = new ";
+ protected final String TEXT_60 = "();";
+ protected final String TEXT_61 = NL + "\t\tliveValidationAction = new ";
+ protected final String TEXT_62 = ".LiveValidator.LiveValidationAction(";
+ protected final String TEXT_63 = ".getPlugin().getDialogSettings());";
+ protected final String TEXT_64 = NL + "\t\tcontrolAction = new ";
+ protected final String TEXT_65 = "();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This adds Separators for editor additions to the tool bar." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_66 = NL + "\t@Override";
+ protected final String TEXT_67 = NL + "\tpublic void contributeToToolBar(";
+ protected final String TEXT_68 = " toolBarManager)" + NL + "\t{" + NL + "\t\ttoolBarManager.add(new ";
+ protected final String TEXT_69 = "(\"";
+ protected final String TEXT_70 = "-settings\"));";
+ protected final String TEXT_71 = NL + "\t\ttoolBarManager.add(new ";
+ protected final String TEXT_72 = "-additions\"));";
+ protected final String TEXT_73 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This adds to the menu bar a menu and some separators for editor additions," + NL + "\t * as well as the sub-menus for object creation items." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_74 = NL + "\tpublic void contributeToMenu(";
+ protected final String TEXT_75 = " menuManager)" + NL + "\t{" + NL + "\t\tsuper.contributeToMenu(menuManager);" + NL + "" + NL + "\t\t";
+ protected final String TEXT_76 = " submenuManager = new ";
+ protected final String TEXT_77 = ".INSTANCE.getString(\"_UI_";
+ protected final String TEXT_78 = "_menu\"), \"";
+ protected final String TEXT_79 = "MenuID\");";
+ protected final String TEXT_80 = NL + "\t\tmenuManager.insertAfter(\"additions\", submenuManager);";
+ protected final String TEXT_81 = NL + "\t\tsubmenuManager.add(new ";
+ protected final String TEXT_82 = "(\"settings\"));";
+ protected final String TEXT_83 = "(\"actions\"));";
+ protected final String TEXT_84 = "(\"additions\"));";
+ protected final String TEXT_85 = "(\"additions-end\"));";
+ protected final String TEXT_86 = NL + "\t\t// Prepare for CreateChild item addition or removal." + NL + "\t\t//" + NL + "\t\tcreateChildMenuManager = new ";
+ protected final String TEXT_87 = ".INSTANCE.getString(\"_UI_CreateChild_menu_item\"));";
+ protected final String TEXT_88 = NL + "\t\tsubmenuManager.insertBefore(\"additions\", createChildMenuManager);";
+ protected final String TEXT_89 = NL + NL + "\t\t// Prepare for CreateSibling item addition or removal." + NL + "\t\t//" + NL + "\t\tcreateSiblingMenuManager = new ";
+ protected final String TEXT_90 = ".INSTANCE.getString(\"_UI_CreateSibling_menu_item\"));";
+ protected final String TEXT_91 = NL + "\t\tsubmenuManager.insertBefore(\"additions\", createSiblingMenuManager);";
+ protected final String TEXT_92 = NL + NL + "\t\t// Force an update because Eclipse hides empty menus now." + NL + "\t\t//" + NL + "\t\tsubmenuManager.addMenuListener" + NL + "\t\t\t(new ";
+ protected final String TEXT_93 = "()" + NL + "\t\t\t {" + NL + "\t\t\t\t public void menuAboutToShow(";
+ protected final String TEXT_94 = " menuManager)" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t menuManager.updateAll(true);" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL;
+ protected final String TEXT_95 = NL + "\t\t// Add your contributions." + NL + "\t\t// Ensure that you remove @generated or mark it @generated NOT" + NL;
+ protected final String TEXT_96 = NL + "\t\taddGlobalActions(submenuManager);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * When the active editor changes, this remembers the change and registers with it as a selection provider." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_97 = NL + "\tpublic void setActiveEditor(";
+ protected final String TEXT_98 = " part)" + NL + "\t{" + NL + "\t\tsuper.setActiveEditor(part);" + NL + "\t\tactiveEditorPart = part;" + NL + "" + NL + "\t\t// Switch to the new selection provider." + NL + "\t\t//" + NL + "\t\tif (selectionProvider != null)" + NL + "\t\t{" + NL + "\t\t\tselectionProvider.removeSelectionChangedListener(this);" + NL + "\t\t}" + NL + "\t\tif (part == null)" + NL + "\t\t{" + NL + "\t\t\tselectionProvider = null;" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\tselectionProvider = part.getSite().getSelectionProvider();" + NL + "\t\t\tselectionProvider.addSelectionChangedListener(this);" + NL + "" + NL + "\t\t\t// Fake a selection changed event to update the menus." + NL + "\t\t\t//" + NL + "\t\t\tif (selectionProvider.getSelection() != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tselectionChanged(new ";
+ protected final String TEXT_99 = "(selectionProvider, selectionProvider.getSelection()));" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionChangedListener}," + NL + "\t * handling {@link org.eclipse.jface.viewers.SelectionChangedEvent}s by querying for the children and siblings" + NL + "\t * that can be added to the selected object and updating the menus accordingly." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void selectionChanged(";
+ protected final String TEXT_100 = " event)" + NL + "\t{";
+ protected final String TEXT_101 = NL + "\t\t// Remove any menu items for old selection." + NL + "\t\t//" + NL + "\t\tif (createChildMenuManager != null)" + NL + "\t\t{";
+ protected final String TEXT_102 = NL + "\t\t\tdepopulateManager(createChildMenuManager, createChildSubmenuActions);";
+ protected final String TEXT_103 = NL + "\t\t\tdepopulateManager(createChildMenuManager, createChildActions);" + NL + "\t\t}" + NL + "\t\tif (createSiblingMenuManager != null)" + NL + "\t\t{";
+ protected final String TEXT_104 = NL + "\t\t\tdepopulateManager(createSiblingMenuManager, createSiblingSubmenuActions);";
+ protected final String TEXT_105 = NL + "\t\t\tdepopulateManager(createSiblingMenuManager, createSiblingActions);" + NL + "\t\t}" + NL + "" + NL + "\t\t// Query the new selection for appropriate new child/sibling descriptors" + NL + "\t\t//" + NL + "\t\t";
+ protected final String TEXT_106 = " newChildDescriptors = null;" + NL + "\t\t";
+ protected final String TEXT_107 = " newSiblingDescriptors = null;" + NL + "" + NL + "\t\t";
+ protected final String TEXT_108 = " selection = event.getSelection();" + NL + "\t\tif (selection instanceof ";
+ protected final String TEXT_109 = " && ((IStructuredSelection)selection).size() == 1)" + NL + "\t\t{" + NL + "\t\t\tObject object = ((";
+ protected final String TEXT_110 = ")selection).getFirstElement();" + NL + "" + NL + "\t\t\t";
+ protected final String TEXT_111 = " domain = ((";
+ protected final String TEXT_112 = ")activeEditorPart).getEditingDomain();" + NL + "" + NL + "\t\t\tnewChildDescriptors = domain.getNewChildDescriptors(object, null);" + NL + "\t\t\tnewSiblingDescriptors = domain.getNewChildDescriptors(null, object);" + NL + "\t\t}" + NL + "" + NL + "\t\t// Generate actions for selection; populate and redraw the menus." + NL + "\t\t//" + NL + "\t\tcreateChildActions = generateCreateChildActions(newChildDescriptors, selection);";
+ protected final String TEXT_113 = NL + "\t\tcreateChildSubmenuActions = extractSubmenuActions(createChildActions);";
+ protected final String TEXT_114 = NL + "\t\tcreateSiblingActions = generateCreateSiblingActions(newSiblingDescriptors, selection);";
+ protected final String TEXT_115 = NL + "\t\tcreateSiblingSubmenuActions = extractSubmenuActions(createSiblingActions);";
+ protected final String TEXT_116 = NL + NL + "\t\tif (createChildMenuManager != null)" + NL + "\t\t{";
+ protected final String TEXT_117 = NL + "\t\t\tpopulateManager(createChildMenuManager, createChildSubmenuActions, null);";
+ protected final String TEXT_118 = NL + "\t\t\tpopulateManager(createChildMenuManager, createChildActions, null);" + NL + "\t\t\tcreateChildMenuManager.update(true);" + NL + "\t\t}" + NL + "\t\tif (createSiblingMenuManager != null)" + NL + "\t\t{";
+ protected final String TEXT_119 = NL + "\t\t\tpopulateManager(createSiblingMenuManager, createSiblingSubmenuActions, null);";
+ protected final String TEXT_120 = NL + "\t\t\tpopulateManager(createSiblingMenuManager, createSiblingActions, null);" + NL + "\t\t\tcreateSiblingMenuManager.update(true);" + NL + "\t\t}";
+ protected final String TEXT_121 = NL + "\t\t// Add your contributions." + NL + "\t\t// Ensure that you remove @generated or mark it @generated NOT";
+ protected final String TEXT_122 = NL + "\t}" + NL;
+ protected final String TEXT_123 = NL + "\t/**" + NL + "\t * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in <code>descriptors</code>," + NL + "\t * and returns the collection of these actions." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_124 = " generateCreateChildActions(";
+ protected final String TEXT_125 = " descriptors, ";
+ protected final String TEXT_126 = " selection)" + NL + "\t{" + NL + "\t\t";
+ protected final String TEXT_127 = " actions = new ";
+ protected final String TEXT_128 = "();" + NL + "\t\tif (descriptors != null)" + NL + "\t\t{";
+ protected final String TEXT_129 = NL + "\t\t\tfor (";
+ protected final String TEXT_130 = " descriptor : descriptors)";
+ protected final String TEXT_131 = " i = descriptors.iterator(); i.hasNext(); )";
+ protected final String TEXT_132 = NL + "\t\t\t{" + NL + "\t\t\t\tactions.add(new ";
+ protected final String TEXT_133 = "(activeEditorPart, selection, ";
+ protected final String TEXT_134 = "descriptor";
+ protected final String TEXT_135 = "i.next()";
+ protected final String TEXT_136 = "));" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn actions;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object in <code>descriptors</code>," + NL + "\t * and returns the collection of these actions." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_137 = " generateCreateSiblingActions(";
+ protected final String TEXT_138 = "));" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn actions;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This populates the specified <code>manager</code> with {@link org.eclipse.jface.action.ActionContributionItem}s" + NL + "\t * based on the {@link org.eclipse.jface.action.IAction}s contained in the <code>actions</code> collection," + NL + "\t * by inserting them before the specified contribution item <code>contributionID</code>." + NL + "\t * If <code>contributionID</code> is <code>null</code>, they are simply added." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void populateManager(";
+ protected final String TEXT_139 = " manager, ";
+ protected final String TEXT_140 = " actions, String contributionID)" + NL + "\t{" + NL + "\t\tif (actions != null)" + NL + "\t\t{";
+ protected final String TEXT_141 = " action : actions)";
+ protected final String TEXT_142 = " i = actions.iterator(); i.hasNext(); )";
+ protected final String TEXT_143 = NL + "\t\t\t{";
+ protected final String TEXT_144 = NL + "\t\t\t\t";
+ protected final String TEXT_145 = " action = (IAction)i.next();";
+ protected final String TEXT_146 = NL + "\t\t\t\tif (contributionID != null)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tmanager.insertBefore(contributionID, action);" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tmanager.add(action);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\t\t" + NL + "\t/**" + NL + "\t * This removes from the specified <code>manager</code> all {@link org.eclipse.jface.action.ActionContributionItem}s" + NL + "\t * based on the {@link org.eclipse.jface.action.IAction}s contained in the <code>actions</code> collection." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void depopulateManager(";
+ protected final String TEXT_147 = " actions)" + NL + "\t{" + NL + "\t\tif (actions != null)" + NL + "\t\t{" + NL + "\t\t\t";
+ protected final String TEXT_148 = "[] items = manager.getItems();" + NL + "\t\t\tfor (int i = 0; i < items.length; i++)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Look into SubContributionItems" + NL + "\t\t\t\t//" + NL + "\t\t\t\t";
+ protected final String TEXT_149 = " contributionItem = items[i];" + NL + "\t\t\t\twhile (contributionItem instanceof ";
+ protected final String TEXT_150 = ")" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tcontributionItem = ((";
+ protected final String TEXT_151 = ")contributionItem).getInnerItem();" + NL + "\t\t\t\t}" + NL + "" + NL + "\t\t\t\t// Delete the ActionContributionItems with matching action." + NL + "\t\t\t\t//" + NL + "\t\t\t\tif (contributionItem instanceof ";
+ protected final String TEXT_152 = " action = ((";
+ protected final String TEXT_153 = ")contributionItem).getAction();" + NL + "\t\t\t\t\tif (actions.contains(action))" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tmanager.remove(contributionItem);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL;
+ protected final String TEXT_154 = NL + "\t/**" + NL + "\t * This extracts those actions in the <code>submenuActions</code> collection whose text is qualified and returns" + NL + "\t * a map of these actions, keyed by submenu text." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_155 = " extractSubmenuActions(";
+ protected final String TEXT_156 = " createActions)" + NL + "\t{" + NL + "\t\t";
+ protected final String TEXT_157 = " createSubmenuActions = new ";
+ protected final String TEXT_158 = "();" + NL + "\t\tif (createActions != null)" + NL + "\t\t{" + NL + "\t\t\tfor (";
+ protected final String TEXT_159 = " actions = createActions.iterator(); actions.hasNext(); )" + NL + "\t\t\t{" + NL + "\t\t\t\t";
+ protected final String TEXT_160 = " action = ";
+ protected final String TEXT_161 = ")";
+ protected final String TEXT_162 = "actions.next();" + NL + "\t\t\t\t";
+ protected final String TEXT_163 = " st = new ";
+ protected final String TEXT_164 = "(action.getText(), \"|\");";
+ protected final String TEXT_165 = NL + "\t\t\t\tif (st.countTokens() == 2)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tString text = st.nextToken().trim();" + NL + "\t\t\t\t\t";
+ protected final String TEXT_166 = " submenuActions = ";
+ protected final String TEXT_167 = "createSubmenuActions.get(text);" + NL + "\t\t\t\t\tif (submenuActions == null)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tcreateSubmenuActions.put(text, submenuActions = new ";
+ protected final String TEXT_168 = "());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\taction.setText(st.nextToken().trim());" + NL + "\t\t\t\t\tsubmenuActions.add(action);" + NL + "\t\t\t\t\tactions.remove();" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn createSubmenuActions;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This populates the specified <code>manager</code> with {@link org.eclipse.jface.action.MenuManager}s containing" + NL + "\t * {@link org.eclipse.jface.action.ActionContributionItem}s based on the {@link org.eclipse.jface.action.IAction}s" + NL + "\t * contained in the <code>submenuActions</code> collection, by inserting them before the specified contribution" + NL + "\t * item <code>contributionID</code>." + NL + "\t * If <code>contributionID</code> is <code>null</code>, they are simply added." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void populateManager(";
+ protected final String TEXT_169 = " submenuActions, String contributionID)" + NL + "\t{" + NL + "\t\tif (submenuActions != null)" + NL + "\t\t{";
+ protected final String TEXT_170 = " entry : submenuActions.entrySet())" + NL + "\t\t\t{";
+ protected final String TEXT_171 = " entries = submenuActions.entrySet().iterator(); entries.hasNext();)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
+ protected final String TEXT_172 = " entry = (";
+ protected final String TEXT_173 = ")entries.next();";
+ protected final String TEXT_174 = "(String)";
+ protected final String TEXT_175 = "entry.getKey());" + NL + "\t\t\t\tif (contributionID != null)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tmanager.insertBefore(contributionID, submenuManager);" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tmanager.add(submenuManager);" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpopulateManager(submenuManager, ";
+ protected final String TEXT_176 = "entry.getValue(), null);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This removes from the specified <code>manager</code> all {@link org.eclipse.jface.action.MenuManager}s and their" + NL + "\t * {@link org.eclipse.jface.action.ActionContributionItem}s based on the {@link org.eclipse.jface.action.IAction}s" + NL + "\t * contained in the <code>submenuActions</code> map." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void depopulateManager(";
+ protected final String TEXT_177 = " submenuActions)" + NL + "\t{" + NL + "\t\tif (submenuActions != null)" + NL + "\t\t{" + NL + "\t\t\t";
+ protected final String TEXT_178 = "[] items = manager.getItems();" + NL + "\t\t\tfor (int i = 0; i < items.length; i++)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
+ protected final String TEXT_179 = " contributionItem = items[i];" + NL + "\t\t\t\tif (contributionItem instanceof ";
+ protected final String TEXT_180 = " submenuManager = (";
+ protected final String TEXT_181 = ")contributionItem;" + NL + "\t\t\t\t\tif (submenuActions.containsKey(submenuManager.getMenuText()))" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tdepopulateManager(submenuManager, ";
+ protected final String TEXT_182 = "submenuActions.get(contributionItem));" + NL + "\t\t\t\t\t\tmanager.remove(contributionItem);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL;
+ protected final String TEXT_183 = NL + "\t/**" + NL + "\t * This populates the pop-up menu before it appears." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_184 = NL + "\tpublic void menuAboutToShow(";
+ protected final String TEXT_185 = " menuManager)" + NL + "\t{" + NL + "\t\tsuper.menuAboutToShow(menuManager);";
+ protected final String TEXT_186 = NL + "\t\t";
+ protected final String TEXT_187 = " submenuManager = null;" + NL + "" + NL + "\t\tsubmenuManager = new ";
+ protected final String TEXT_188 = NL + "\t\tpopulateManager(submenuManager, createChildSubmenuActions, null);";
+ protected final String TEXT_189 = NL + "\t\tpopulateManager(submenuManager, createChildActions, null);" + NL + "\t\tmenuManager.insertBefore(\"edit\", submenuManager);";
+ protected final String TEXT_190 = NL + NL + "\t\tsubmenuManager = new ";
+ protected final String TEXT_191 = NL + "\t\tpopulateManager(submenuManager, createSiblingSubmenuActions, null);";
+ protected final String TEXT_192 = NL + "\t\tpopulateManager(submenuManager, createSiblingActions, null);" + NL + "\t\tmenuManager.insertBefore(\"edit\", submenuManager);";
+ protected final String TEXT_193 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This inserts global actions before the \"additions-end\" separator." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_194 = NL + "\tprotected void addGlobalActions(";
+ protected final String TEXT_195 = " menuManager)" + NL + "\t{" + NL + "\t\tmenuManager.insertAfter(\"additions-end\", new ";
+ protected final String TEXT_196 = "(\"ui-actions\"));";
+ protected final String TEXT_197 = NL + "\t\tmenuManager.insertAfter(\"ui-actions\", showPropertiesViewAction);";
+ protected final String TEXT_198 = NL + NL + "\t\trefreshViewerAction.setEnabled(refreshViewerAction.isEnabled());\t\t" + NL + "\t\tmenuManager.insertAfter(\"ui-actions\", refreshViewerAction);";
+ protected final String TEXT_199 = NL + NL + "\t\tsuper.addGlobalActions(menuManager);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This ensures that a delete action will clean up all references to deleted objects." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_200 = NL + "\tprotected boolean removeAllReferencesOnDelete()" + NL + "\t{" + NL + "\t\treturn true;" + NL + "\t}" + NL + "" + NL + "}";
public String generate(Object argument)
{
@@ -326,94 +271,104 @@ if (genModel.isCreationCommands())
stringBuffer.append(genPackage.getPrefix());
stringBuffer.append(TEXT_7);
if (genPackage.hasAPITags()) {
- stringBuffer.append(TEXT_8);
+ stringBuffer.append(TEXT_3);
stringBuffer.append(genPackage.getAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_9);
+ stringBuffer.append(TEXT_8);
if (isJDK50 && genPackage.hasAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_10);
+ stringBuffer.append(TEXT_9);
}
- stringBuffer.append(TEXT_11);
+ stringBuffer.append(TEXT_10);
stringBuffer.append(genPackage.getActionBarContributorClassName());
- stringBuffer.append(TEXT_12);
+ stringBuffer.append(TEXT_11);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor"));
- stringBuffer.append(TEXT_13);
+ stringBuffer.append(TEXT_12);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.ISelectionChangedListener"));
- stringBuffer.append(TEXT_14);
+ stringBuffer.append(TEXT_13);
if (genModel.hasCopyrightField()) {
- stringBuffer.append(TEXT_15);
+ stringBuffer.append(TEXT_14);
stringBuffer.append(genModel.getCopyrightFieldLiteral());
- stringBuffer.append(TEXT_16);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_17);
+ stringBuffer.append(TEXT_16);
}
if (genModel.isRichClientPlatform() && genPackage.isGenerateModelWizard()) {
- stringBuffer.append(TEXT_18);
+ stringBuffer.append(TEXT_17);
stringBuffer.append(genPackage.getPrefix());
- stringBuffer.append(TEXT_19);
+ stringBuffer.append(TEXT_18);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.action.WorkbenchWindowActionDelegate"));
- stringBuffer.append(TEXT_20);
+ stringBuffer.append(TEXT_19);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IAction"));
+ stringBuffer.append(TEXT_20);
+ stringBuffer.append(genPackage.getModelWizardClassName());
stringBuffer.append(TEXT_21);
stringBuffer.append(genPackage.getModelWizardClassName());
stringBuffer.append(TEXT_22);
- stringBuffer.append(genPackage.getModelWizardClassName());
- stringBuffer.append(TEXT_23);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.StructuredSelection"));
+ stringBuffer.append(TEXT_23);
+ stringBuffer.append(genModel.getImportedName("org.eclipse.jface.wizard.WizardDialog"));
stringBuffer.append(TEXT_24);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.wizard.WizardDialog"));
stringBuffer.append(TEXT_25);
- stringBuffer.append(genModel.getImportedName("org.eclipse.jface.wizard.WizardDialog"));
- stringBuffer.append(TEXT_26);
}
- stringBuffer.append(TEXT_27);
+ stringBuffer.append(TEXT_26);
stringBuffer.append(genModel.getImportedName("org.eclipse.ui.IEditorPart"));
- stringBuffer.append(TEXT_28);
+ stringBuffer.append(TEXT_27);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.ISelectionProvider"));
- stringBuffer.append(TEXT_29);
+ stringBuffer.append(TEXT_28);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IAction"));
- stringBuffer.append(TEXT_30);
+ stringBuffer.append(TEXT_29);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.Action"));
- stringBuffer.append(TEXT_31);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_32);
+ stringBuffer.append(TEXT_31);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_33);
+ stringBuffer.append(TEXT_32);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_34);
+ stringBuffer.append(TEXT_33);
}
- stringBuffer.append(TEXT_35);
+ stringBuffer.append(TEXT_34);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_36);
+ stringBuffer.append(TEXT_35);
stringBuffer.append(genModel.getImportedName("org.eclipse.ui.PartInitException"));
- stringBuffer.append(TEXT_37);
+ stringBuffer.append(TEXT_36);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_38);
+ stringBuffer.append(TEXT_37);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IAction"));
- stringBuffer.append(TEXT_39);
+ stringBuffer.append(TEXT_38);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.Action"));
- stringBuffer.append(TEXT_40);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_41);
+ stringBuffer.append(TEXT_39);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_42);
+ stringBuffer.append(TEXT_32);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_43);
+ stringBuffer.append(TEXT_33);
}
+ stringBuffer.append(TEXT_40);
+ stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.viewer.IViewerProvider"));
+ stringBuffer.append(TEXT_41);
+ if (genModel.useClassOverrideAnnotation()) {
+ stringBuffer.append(TEXT_33);
+ }
+ stringBuffer.append(TEXT_42);
+ stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.viewer.IViewerProvider"));
+ stringBuffer.append(TEXT_43);
+ stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.Viewer"));
stringBuffer.append(TEXT_44);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.viewer.IViewerProvider"));
stringBuffer.append(TEXT_45);
- if (genModel.useClassOverrideAnnotation()) {
+ if (genModel.isCreationCommands()) {
stringBuffer.append(TEXT_46);
- }
+ stringBuffer.append(_CollectionOfIAction);
stringBuffer.append(TEXT_47);
- stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.viewer.IViewerProvider"));
+ if (genModel.isCreationSubmenus()) {
stringBuffer.append(TEXT_48);
- stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.Viewer"));
+ stringBuffer.append(_MapOfStringToCollectionOfIAction);
stringBuffer.append(TEXT_49);
- stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.viewer.IViewerProvider"));
+ }
stringBuffer.append(TEXT_50);
- if (genModel.isCreationCommands()) {
+ stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IMenuManager"));
stringBuffer.append(TEXT_51);
stringBuffer.append(_CollectionOfIAction);
stringBuffer.append(TEXT_52);
@@ -425,410 +380,400 @@ if (genModel.isCreationCommands())
stringBuffer.append(TEXT_55);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IMenuManager"));
stringBuffer.append(TEXT_56);
- stringBuffer.append(_CollectionOfIAction);
- stringBuffer.append(TEXT_57);
- if (genModel.isCreationSubmenus()) {
- stringBuffer.append(TEXT_58);
- stringBuffer.append(_MapOfStringToCollectionOfIAction);
- stringBuffer.append(TEXT_59);
}
- stringBuffer.append(TEXT_60);
- stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IMenuManager"));
- stringBuffer.append(TEXT_61);
- }
- stringBuffer.append(TEXT_62);
+ stringBuffer.append(TEXT_57);
stringBuffer.append(genPackage.getActionBarContributorClassName());
- stringBuffer.append(TEXT_63);
+ stringBuffer.append(TEXT_58);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.ui.action.LoadResourceAction"));
- stringBuffer.append(TEXT_64);
+ stringBuffer.append(TEXT_59);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.ui.action.ValidateAction"));
- stringBuffer.append(TEXT_65);
+ stringBuffer.append(TEXT_60);
if (genModel.getDecoration() == GenDecoration.LIVE) {
- stringBuffer.append(TEXT_66);
+ stringBuffer.append(TEXT_61);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.ui.provider.DiagnosticDecorator"));
- stringBuffer.append(TEXT_67);
+ stringBuffer.append(TEXT_62);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_68);
+ stringBuffer.append(TEXT_63);
}
- stringBuffer.append(TEXT_69);
+ stringBuffer.append(TEXT_64);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.ui.action.ControlAction"));
- stringBuffer.append(TEXT_70);
+ stringBuffer.append(TEXT_65);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_71);
+ stringBuffer.append(TEXT_66);
}
- stringBuffer.append(TEXT_72);
+ stringBuffer.append(TEXT_67);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IToolBarManager"));
- stringBuffer.append(TEXT_73);
+ stringBuffer.append(TEXT_68);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.Separator"));
- stringBuffer.append(TEXT_74);
+ stringBuffer.append(TEXT_69);
stringBuffer.append(genPackage.getPrefix().toLowerCase(genModel.getLocale()));
- stringBuffer.append(TEXT_75);
+ stringBuffer.append(TEXT_70);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_76);
+ stringBuffer.append(TEXT_71);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.Separator"));
- stringBuffer.append(TEXT_77);
+ stringBuffer.append(TEXT_69);
stringBuffer.append(genPackage.getPrefix().toLowerCase(genModel.getLocale()));
- stringBuffer.append(TEXT_78);
+ stringBuffer.append(TEXT_72);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_79);
+ stringBuffer.append(TEXT_73);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_80);
+ stringBuffer.append(TEXT_66);
}
- stringBuffer.append(TEXT_81);
+ stringBuffer.append(TEXT_74);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IMenuManager"));
- stringBuffer.append(TEXT_82);
+ stringBuffer.append(TEXT_75);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IMenuManager"));
- stringBuffer.append(TEXT_83);
+ stringBuffer.append(TEXT_76);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_84);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_85);
+ stringBuffer.append(TEXT_77);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_86);
+ stringBuffer.append(TEXT_78);
stringBuffer.append(genPackage.getInterfacePackageName());
- stringBuffer.append(TEXT_87);
+ stringBuffer.append(TEXT_79);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
- stringBuffer.append(TEXT_88);
+ stringBuffer.append(TEXT_80);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_89);
+ stringBuffer.append(TEXT_81);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.Separator"));
- stringBuffer.append(TEXT_90);
+ stringBuffer.append(TEXT_82);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_91);
+ stringBuffer.append(TEXT_81);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.Separator"));
- stringBuffer.append(TEXT_92);
+ stringBuffer.append(TEXT_83);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_93);
+ stringBuffer.append(TEXT_81);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.Separator"));
- stringBuffer.append(TEXT_94);
+ stringBuffer.append(TEXT_84);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_95);
+ stringBuffer.append(TEXT_81);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.Separator"));
- stringBuffer.append(TEXT_96);
+ stringBuffer.append(TEXT_85);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_97);
+ stringBuffer.append(TEXT_16);
if (genModel.isCreationCommands()) {
- stringBuffer.append(TEXT_98);
+ stringBuffer.append(TEXT_86);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_99);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_100);
+ stringBuffer.append(TEXT_87);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_101);
+ stringBuffer.append(TEXT_88);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_102);
+ stringBuffer.append(TEXT_89);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_103);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_104);
+ stringBuffer.append(TEXT_90);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_105);
+ stringBuffer.append(TEXT_91);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_106);
+ stringBuffer.append(TEXT_92);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IMenuListener"));
- stringBuffer.append(TEXT_107);
+ stringBuffer.append(TEXT_93);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IMenuManager"));
- stringBuffer.append(TEXT_108);
+ stringBuffer.append(TEXT_94);
} else {
- stringBuffer.append(TEXT_109);
+ stringBuffer.append(TEXT_95);
}
- stringBuffer.append(TEXT_110);
+ stringBuffer.append(TEXT_96);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_111);
+ stringBuffer.append(TEXT_66);
}
- stringBuffer.append(TEXT_112);
+ stringBuffer.append(TEXT_97);
stringBuffer.append(genModel.getImportedName("org.eclipse.ui.IEditorPart"));
- stringBuffer.append(TEXT_113);
+ stringBuffer.append(TEXT_98);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.SelectionChangedEvent"));
- stringBuffer.append(TEXT_114);
+ stringBuffer.append(TEXT_99);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.SelectionChangedEvent"));
- stringBuffer.append(TEXT_115);
+ stringBuffer.append(TEXT_100);
if (genModel.isCreationCommands()) {
- stringBuffer.append(TEXT_116);
+ stringBuffer.append(TEXT_101);
if (genModel.isCreationSubmenus()) {
- stringBuffer.append(TEXT_117);
+ stringBuffer.append(TEXT_102);
}
- stringBuffer.append(TEXT_118);
+ stringBuffer.append(TEXT_103);
if (genModel.isCreationSubmenus()) {
- stringBuffer.append(TEXT_119);
+ stringBuffer.append(TEXT_104);
}
- stringBuffer.append(TEXT_120);
+ stringBuffer.append(TEXT_105);
stringBuffer.append(_CollectionOfAnything);
- stringBuffer.append(TEXT_121);
+ stringBuffer.append(TEXT_106);
stringBuffer.append(_CollectionOfAnything);
- stringBuffer.append(TEXT_122);
+ stringBuffer.append(TEXT_107);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.ISelection"));
- stringBuffer.append(TEXT_123);
+ stringBuffer.append(TEXT_108);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.IStructuredSelection"));
- stringBuffer.append(TEXT_124);
+ stringBuffer.append(TEXT_109);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.IStructuredSelection"));
- stringBuffer.append(TEXT_125);
+ stringBuffer.append(TEXT_110);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.domain.EditingDomain"));
- stringBuffer.append(TEXT_126);
+ stringBuffer.append(TEXT_111);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.domain.IEditingDomainProvider"));
- stringBuffer.append(TEXT_127);
+ stringBuffer.append(TEXT_112);
if (genModel.isCreationSubmenus()) {
- stringBuffer.append(TEXT_128);
+ stringBuffer.append(TEXT_113);
}
- stringBuffer.append(TEXT_129);
+ stringBuffer.append(TEXT_114);
if (genModel.isCreationSubmenus()) {
- stringBuffer.append(TEXT_130);
+ stringBuffer.append(TEXT_115);
}
- stringBuffer.append(TEXT_131);
+ stringBuffer.append(TEXT_116);
if (genModel.isCreationSubmenus()) {
- stringBuffer.append(TEXT_132);
+ stringBuffer.append(TEXT_117);
}
- stringBuffer.append(TEXT_133);
+ stringBuffer.append(TEXT_118);
if (genModel.isCreationSubmenus()) {
- stringBuffer.append(TEXT_134);
+ stringBuffer.append(TEXT_119);
}
- stringBuffer.append(TEXT_135);
+ stringBuffer.append(TEXT_120);
} else {
- stringBuffer.append(TEXT_136);
+ stringBuffer.append(TEXT_121);
}
- stringBuffer.append(TEXT_137);
+ stringBuffer.append(TEXT_122);
if (genModel.isCreationCommands()) {
- stringBuffer.append(TEXT_138);
+ stringBuffer.append(TEXT_123);
stringBuffer.append(_CollectionOfIAction);
- stringBuffer.append(TEXT_139);
+ stringBuffer.append(TEXT_124);
stringBuffer.append(_CollectionOfAnything);
- stringBuffer.append(TEXT_140);
+ stringBuffer.append(TEXT_125);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.ISelection"));
- stringBuffer.append(TEXT_141);
+ stringBuffer.append(TEXT_126);
stringBuffer.append(_CollectionOfIAction);
- stringBuffer.append(TEXT_142);
+ stringBuffer.append(TEXT_127);
stringBuffer.append(_ArrayListOfIAction);
- stringBuffer.append(TEXT_143);
+ stringBuffer.append(TEXT_128);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_144);
+ stringBuffer.append(TEXT_129);
stringBuffer.append(genModel.getImportedName("java.lang.Object"));
- stringBuffer.append(TEXT_145);
+ stringBuffer.append(TEXT_130);
} else {
- stringBuffer.append(TEXT_146);
+ stringBuffer.append(TEXT_129);
stringBuffer.append(genModel.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_147);
+ stringBuffer.append(TEXT_131);
}
- stringBuffer.append(TEXT_148);
+ stringBuffer.append(TEXT_132);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.ui.action.CreateChildAction"));
- stringBuffer.append(TEXT_149);
+ stringBuffer.append(TEXT_133);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_150);
+ stringBuffer.append(TEXT_134);
} else {
- stringBuffer.append(TEXT_151);
+ stringBuffer.append(TEXT_135);
}
- stringBuffer.append(TEXT_152);
+ stringBuffer.append(TEXT_136);
stringBuffer.append(_CollectionOfIAction);
- stringBuffer.append(TEXT_153);
+ stringBuffer.append(TEXT_137);
stringBuffer.append(_CollectionOfAnything);
- stringBuffer.append(TEXT_154);
+ stringBuffer.append(TEXT_125);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.viewers.ISelection"));
- stringBuffer.append(TEXT_155);
+ stringBuffer.append(TEXT_126);
stringBuffer.append(_CollectionOfIAction);
- stringBuffer.append(TEXT_156);
+ stringBuffer.append(TEXT_127);
stringBuffer.append(_ArrayListOfIAction);
- stringBuffer.append(TEXT_157);
+ stringBuffer.append(TEXT_128);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_158);
+ stringBuffer.append(TEXT_129);
stringBuffer.append(genModel.getImportedName("java.lang.Object"));
- stringBuffer.append(TEXT_159);
+ stringBuffer.append(TEXT_130);
} else {
- stringBuffer.append(TEXT_160);
+ stringBuffer.append(TEXT_129);
stringBuffer.append(genModel.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_161);
+ stringBuffer.append(TEXT_131);
}
- stringBuffer.append(TEXT_162);
+ stringBuffer.append(TEXT_132);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.ui.action.CreateSiblingAction"));
- stringBuffer.append(TEXT_163);
+ stringBuffer.append(TEXT_133);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_164);
+ stringBuffer.append(TEXT_134);
} else {
- stringBuffer.append(TEXT_165);
+ stringBuffer.append(TEXT_135);
}
- stringBuffer.append(TEXT_166);
+ stringBuffer.append(TEXT_138);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IContributionManager"));
- stringBuffer.append(TEXT_167);
+ stringBuffer.append(TEXT_139);
stringBuffer.append(_CollectionOfExtendsIAction);
- stringBuffer.append(TEXT_168);
+ stringBuffer.append(TEXT_140);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_169);
+ stringBuffer.append(TEXT_129);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IAction"));
- stringBuffer.append(TEXT_170);
+ stringBuffer.append(TEXT_141);
} else {
- stringBuffer.append(TEXT_171);
+ stringBuffer.append(TEXT_129);
stringBuffer.append(genModel.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_172);
+ stringBuffer.append(TEXT_142);
}
- stringBuffer.append(TEXT_173);
+ stringBuffer.append(TEXT_143);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_174);
+ stringBuffer.append(TEXT_144);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IAction"));
- stringBuffer.append(TEXT_175);
+ stringBuffer.append(TEXT_145);
}
- stringBuffer.append(TEXT_176);
+ stringBuffer.append(TEXT_146);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IContributionManager"));
- stringBuffer.append(TEXT_177);
+ stringBuffer.append(TEXT_139);
stringBuffer.append(_CollectionOfExtendsIAction);
- stringBuffer.append(TEXT_178);
+ stringBuffer.append(TEXT_147);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IContributionItem"));
- stringBuffer.append(TEXT_179);
+ stringBuffer.append(TEXT_148);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IContributionItem"));
- stringBuffer.append(TEXT_180);
+ stringBuffer.append(TEXT_149);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.SubContributionItem"));
- stringBuffer.append(TEXT_181);
+ stringBuffer.append(TEXT_150);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.SubContributionItem"));
- stringBuffer.append(TEXT_182);
+ stringBuffer.append(TEXT_151);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.ActionContributionItem"));
- stringBuffer.append(TEXT_183);
+ stringBuffer.append(TEXT_43);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IAction"));
- stringBuffer.append(TEXT_184);
+ stringBuffer.append(TEXT_152);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.ActionContributionItem"));
- stringBuffer.append(TEXT_185);
+ stringBuffer.append(TEXT_153);
if (genModel.isCreationSubmenus()) {
- stringBuffer.append(TEXT_186);
+ stringBuffer.append(TEXT_154);
stringBuffer.append(_MapOfStringToCollectionOfIAction);
- stringBuffer.append(TEXT_187);
+ stringBuffer.append(TEXT_155);
stringBuffer.append(_CollectionOfIAction);
- stringBuffer.append(TEXT_188);
+ stringBuffer.append(TEXT_156);
stringBuffer.append(_MapOfStringToCollectionOfIAction);
- stringBuffer.append(TEXT_189);
+ stringBuffer.append(TEXT_157);
stringBuffer.append(_LinkedHashMapOfStringToCollectionOfIAction);
- stringBuffer.append(TEXT_190);
+ stringBuffer.append(TEXT_158);
stringBuffer.append(_IteratorOfIAction);
- stringBuffer.append(TEXT_191);
+ stringBuffer.append(TEXT_159);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IAction"));
- stringBuffer.append(TEXT_192);
+ stringBuffer.append(TEXT_160);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_193);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IAction"));
- stringBuffer.append(TEXT_194);
+ stringBuffer.append(TEXT_161);
}
- stringBuffer.append(TEXT_195);
+ stringBuffer.append(TEXT_162);
stringBuffer.append(genModel.getImportedName("java.util.StringTokenizer"));
- stringBuffer.append(TEXT_196);
+ stringBuffer.append(TEXT_163);
stringBuffer.append(genModel.getImportedName("java.util.StringTokenizer"));
- stringBuffer.append(TEXT_197);
+ stringBuffer.append(TEXT_164);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_198);
+ stringBuffer.append(TEXT_165);
stringBuffer.append(_CollectionOfIAction);
- stringBuffer.append(TEXT_199);
+ stringBuffer.append(TEXT_166);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_200);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(_CollectionOfIAction);
- stringBuffer.append(TEXT_201);
+ stringBuffer.append(TEXT_161);
}
- stringBuffer.append(TEXT_202);
+ stringBuffer.append(TEXT_167);
stringBuffer.append(_ArrayListOfIAction);
- stringBuffer.append(TEXT_203);
+ stringBuffer.append(TEXT_168);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IContributionManager"));
- stringBuffer.append(TEXT_204);
+ stringBuffer.append(TEXT_139);
stringBuffer.append(_MapOfStringToCollectionOfIAction);
- stringBuffer.append(TEXT_205);
+ stringBuffer.append(TEXT_169);
if (genModel.getComplianceLevel().getValue() >= GenJDKLevel.JDK50) {
- stringBuffer.append(TEXT_206);
+ stringBuffer.append(TEXT_129);
stringBuffer.append(_MapEntryOfStringToCollectionOfIAction);
- stringBuffer.append(TEXT_207);
+ stringBuffer.append(TEXT_170);
} else {
- stringBuffer.append(TEXT_208);
+ stringBuffer.append(TEXT_129);
stringBuffer.append(genModel.getImportedName("java.util.Iterator"));
- stringBuffer.append(TEXT_209);
+ stringBuffer.append(TEXT_171);
stringBuffer.append(_MapEntryOfStringToCollectionOfIAction);
- stringBuffer.append(TEXT_210);
+ stringBuffer.append(TEXT_172);
stringBuffer.append(_MapEntryOfStringToCollectionOfIAction);
- stringBuffer.append(TEXT_211);
+ stringBuffer.append(TEXT_173);
}
- stringBuffer.append(TEXT_212);
+ stringBuffer.append(TEXT_144);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_213);
+ stringBuffer.append(TEXT_76);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_214);
+ stringBuffer.append(TEXT_30);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_215);
+ stringBuffer.append(TEXT_174);
}
- stringBuffer.append(TEXT_216);
+ stringBuffer.append(TEXT_175);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_217);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(_CollectionOfIAction);
- stringBuffer.append(TEXT_218);
+ stringBuffer.append(TEXT_161);
}
- stringBuffer.append(TEXT_219);
+ stringBuffer.append(TEXT_176);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IContributionManager"));
- stringBuffer.append(TEXT_220);
+ stringBuffer.append(TEXT_139);
stringBuffer.append(_MapOfStringToCollectionOfIAction);
- stringBuffer.append(TEXT_221);
+ stringBuffer.append(TEXT_177);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IContributionItem"));
- stringBuffer.append(TEXT_222);
+ stringBuffer.append(TEXT_178);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IContributionItem"));
- stringBuffer.append(TEXT_223);
+ stringBuffer.append(TEXT_179);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_224);
+ stringBuffer.append(TEXT_43);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_225);
+ stringBuffer.append(TEXT_180);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_226);
+ stringBuffer.append(TEXT_181);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_227);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(_CollectionOfIAction);
- stringBuffer.append(TEXT_228);
+ stringBuffer.append(TEXT_161);
}
- stringBuffer.append(TEXT_229);
+ stringBuffer.append(TEXT_182);
}
}
- stringBuffer.append(TEXT_230);
+ stringBuffer.append(TEXT_183);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_231);
+ stringBuffer.append(TEXT_66);
}
- stringBuffer.append(TEXT_232);
+ stringBuffer.append(TEXT_184);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IMenuManager"));
- stringBuffer.append(TEXT_233);
+ stringBuffer.append(TEXT_185);
if (genModel.isCreationCommands()) {
- stringBuffer.append(TEXT_234);
+ stringBuffer.append(TEXT_186);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_235);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_236);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_237);
+ stringBuffer.append(TEXT_87);
stringBuffer.append(genModel.getNonNLS());
if (genModel.isCreationSubmenus()) {
- stringBuffer.append(TEXT_238);
+ stringBuffer.append(TEXT_188);
}
- stringBuffer.append(TEXT_239);
+ stringBuffer.append(TEXT_189);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_240);
+ stringBuffer.append(TEXT_190);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.MenuManager"));
- stringBuffer.append(TEXT_241);
+ stringBuffer.append(TEXT_30);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_242);
+ stringBuffer.append(TEXT_90);
stringBuffer.append(genModel.getNonNLS());
if (genModel.isCreationSubmenus()) {
- stringBuffer.append(TEXT_243);
+ stringBuffer.append(TEXT_191);
}
- stringBuffer.append(TEXT_244);
+ stringBuffer.append(TEXT_192);
stringBuffer.append(genModel.getNonNLS());
}
- stringBuffer.append(TEXT_245);
+ stringBuffer.append(TEXT_193);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_246);
+ stringBuffer.append(TEXT_66);
}
- stringBuffer.append(TEXT_247);
+ stringBuffer.append(TEXT_194);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.IMenuManager"));
- stringBuffer.append(TEXT_248);
+ stringBuffer.append(TEXT_195);
stringBuffer.append(genModel.getImportedName("org.eclipse.jface.action.Separator"));
- stringBuffer.append(TEXT_249);
+ stringBuffer.append(TEXT_196);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
- stringBuffer.append(TEXT_250);
+ stringBuffer.append(TEXT_197);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_251);
+ stringBuffer.append(TEXT_198);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_252);
+ stringBuffer.append(TEXT_199);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_253);
+ stringBuffer.append(TEXT_66);
}
- stringBuffer.append(TEXT_254);
+ stringBuffer.append(TEXT_200);
genModel.emitSortedImports();
- stringBuffer.append(TEXT_255);
+ stringBuffer.append(TEXT_16);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/Advisor.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/Advisor.java
index af8005ecb..bd9aa69c6 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/Advisor.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/Advisor.java
@@ -34,75 +34,66 @@ public class Advisor
protected final String TEXT_17 = NL + "import org.eclipse.emf.edit.ui.action.LoadResourceAction;" + NL + "import org.eclipse.emf.edit.ui.util.EditUIUtil;" + NL + "" + NL + "import ";
protected final String TEXT_18 = ";";
protected final String TEXT_19 = NL + NL + NL + "/**" + NL + " * Customized {@link WorkbenchAdvisor} for the RCP application." + NL + " * <!-- begin-user-doc -->" + NL + " * <!-- end-user-doc -->";
- protected final String TEXT_20 = NL + " * ";
- protected final String TEXT_21 = NL + " * @generated" + NL + " */";
- protected final String TEXT_22 = NL + "@Deprecated";
- protected final String TEXT_23 = NL + "@SuppressWarnings(\"deprecation\")";
- protected final String TEXT_24 = NL + "public final class ";
- protected final String TEXT_25 = " extends WorkbenchAdvisor" + NL + "{";
- protected final String TEXT_26 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final String copyright = ";
- protected final String TEXT_27 = ";";
- protected final String TEXT_28 = NL;
- protected final String TEXT_29 = NL + "\t/**" + NL + "\t * The default file extension filters for use in dialogs." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_30 = NL + "\tprivate static final String[] FILE_EXTENSION_FILTERS = ";
- protected final String TEXT_31 = "(String[])";
- protected final String TEXT_32 = ".FILE_EXTENSION_FILTERS.toArray(new String[0]);";
- protected final String TEXT_33 = NL + "\tprivate static final String[] FILE_EXTENSION_FILTERS = getFileExtensionFilters();" + NL + "" + NL + "\t/**" + NL + "\t * Returns the default file extension filters. This method should only be used to initialize {@link #FILE_EXTENSION_FILTERS}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String[] getFileExtensionFilters()" + NL + "\t{" + NL + "\t\t";
- protected final String TEXT_34 = " result = new ";
- protected final String TEXT_35 = "();";
- protected final String TEXT_36 = NL + "\t\tresult.addAll(";
- protected final String TEXT_37 = ".FILE_EXTENSION_FILTERS);";
- protected final String TEXT_38 = NL + "\t\treturn ";
- protected final String TEXT_39 = "(String[])";
- protected final String TEXT_40 = "result.toArray(new String[0]);" + NL + "\t}";
- protected final String TEXT_41 = " ";
- protected final String TEXT_42 = NL + NL + "\t/**" + NL + "\t * This looks up a string in the plugin's plugin.properties file." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key)" + NL + "\t{" + NL + "\t\treturn ";
- protected final String TEXT_43 = ".INSTANCE.getString(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This looks up a string in plugin.properties, making a substitution." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key, Object s1)" + NL + "\t{" + NL + "\t\treturn ";
- protected final String TEXT_44 = ".INSTANCE.getString(key, new Object [] { s1 });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * RCP's application" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class Application implements IApplication" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Object start(IApplicationContext context) throws Exception" + NL + "\t\t{" + NL + "\t\t\tWorkbenchAdvisor workbenchAdvisor = new ";
- protected final String TEXT_45 = "();" + NL + "\t\t\tDisplay display = PlatformUI.createDisplay();" + NL + "\t\t\ttry" + NL + "\t\t\t{" + NL + "\t\t\t\tint returnCode = PlatformUI.createAndRunWorkbench(display, workbenchAdvisor);" + NL + "\t\t\t\tif (returnCode == PlatformUI.RETURN_RESTART)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\treturn IApplication.EXIT_RESTART;" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\treturn IApplication.EXIT_OK;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tfinally" + NL + "\t\t\t{" + NL + "\t\t\t\tdisplay.dispose();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.equinox.app.IApplication#stop()" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void stop()" + NL + "\t\t{" + NL + "\t\t\t// Do nothing." + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * RCP's perspective" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class Perspective implements IPerspectiveFactory" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * Perspective ID" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static final String ID_PERSPECTIVE = \"";
- protected final String TEXT_46 = "Perspective\";";
- protected final String TEXT_47 = NL + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void createInitialLayout(IPageLayout layout)" + NL + "\t\t{" + NL + "\t\t\tlayout.setEditorAreaVisible(true);" + NL + "\t\t\tlayout.addPerspectiveShortcut(ID_PERSPECTIVE);" + NL + "" + NL + "\t\t\tIFolderLayout right = layout.createFolder(\"right\", IPageLayout.RIGHT, (float)0.66, layout.getEditorArea());";
- protected final String TEXT_48 = NL + "\t\t\tright.addView(IPageLayout.ID_OUTLINE);" + NL + "" + NL + "\t\t\tIFolderLayout bottonRight = layout.createFolder(\"bottonRight\", IPageLayout.BOTTOM, (float)0.60, \"right\");";
- protected final String TEXT_49 = NL + "\t\t\tbottonRight.addView(IPageLayout.ID_PROP_SHEET);" + NL + "\t\t}" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * RCP's window advisor" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class WindowAdvisor extends WorkbenchWindowAdvisor" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * @see WorkbenchWindowAdvisor#WorkbenchWindowAdvisor(org.eclipse.ui.application.IWorkbenchWindowConfigurer)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic WindowAdvisor(IWorkbenchWindowConfigurer configurer)" + NL + "\t\t{" + NL + "\t\t\tsuper(configurer);" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#preWindowOpen()" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
- protected final String TEXT_50 = NL + "\t\t@Override";
- protected final String TEXT_51 = NL + "\t\tpublic void preWindowOpen()" + NL + "\t\t{" + NL + "\t\t\tIWorkbenchWindowConfigurer configurer = getWindowConfigurer();" + NL + "\t\t\tconfigurer.setInitialSize(new Point(600, 450));" + NL + "\t\t\tconfigurer.setShowCoolBar(false);" + NL + "\t\t\tconfigurer.setShowStatusLine(true);" + NL + "\t\t\tconfigurer.setTitle(getString(\"_UI_Application_title\"));";
- protected final String TEXT_52 = NL + "\t\t}" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#createActionBarAdvisor(org.eclipse.ui.application.IActionBarConfigurer)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
- protected final String TEXT_53 = NL + "\t\t@Override";
- protected final String TEXT_54 = NL + "\t\tpublic ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer)" + NL + "\t\t{" + NL + "\t\t\treturn new WindowActionBarAdvisor(configurer);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * RCP's action bar advisor" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class WindowActionBarAdvisor extends ActionBarAdvisor" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * @see ActionBarAdvisor#ActionBarAdvisor(org.eclipse.ui.application.IActionBarConfigurer)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic WindowActionBarAdvisor(IActionBarConfigurer configurer)" + NL + "\t\t{" + NL + "\t\t\tsuper(configurer);" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.application.ActionBarAdvisor#fillMenuBar(org.eclipse.jface.action.IMenuManager)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
- protected final String TEXT_55 = NL + "\t\t@Override";
- protected final String TEXT_56 = NL + "\t\tprotected void fillMenuBar(IMenuManager menuBar)" + NL + "\t\t{" + NL + "\t\t\tIWorkbenchWindow window = getActionBarConfigurer().getWindowConfigurer().getWindow();" + NL + "\t\t\tmenuBar.add(createFileMenu(window));" + NL + "\t\t\tmenuBar.add(createEditMenu(window));" + NL + "\t\t\tmenuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));" + NL + "\t\t\tmenuBar.add(createWindowMenu(window));" + NL + "\t\t\tmenuBar.add(createHelpMenu(window));\t\t\t\t\t" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * Creates the 'File' menu." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected IMenuManager createFileMenu(IWorkbenchWindow window)" + NL + "\t\t{" + NL + "\t\t\tIMenuManager menu = new MenuManager(getString(\"_UI_Menu_File_label\"),";
- protected final String TEXT_57 = NL + "\t\t\tIWorkbenchActionConstants.M_FILE); " + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.FILE_START));" + NL + "\t" + NL + "\t\t\tIMenuManager newMenu = new MenuManager(getString(\"_UI_Menu_New_label\"), \"new\");";
- protected final String TEXT_58 = NL + "\t\t\tnewMenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));" + NL + "\t" + NL + "\t\t\tmenu.add(newMenu);" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.CLOSE.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.CLOSE_ALL.create(window));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.SAVE.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.SAVE_AS.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.SAVE_ALL.create(window));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.QUIT.create(window));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END));" + NL + "\t\t\treturn menu;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Creates the 'Edit' menu." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected IMenuManager createEditMenu(IWorkbenchWindow window)" + NL + "\t\t{" + NL + "\t\t\tIMenuManager menu = new MenuManager(getString(\"_UI_Menu_Edit_label\"),";
- protected final String TEXT_59 = NL + "\t\t\tIWorkbenchActionConstants.M_EDIT);" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));" + NL + "\t" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.UNDO.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.REDO.create(window));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.CUT.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.COPY.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.PASTE.create(window));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.DELETE.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.SELECT_ALL.create(window));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));" + NL + "\t" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));" + NL + "\t\t\tmenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));" + NL + "\t\t\treturn menu;" + NL + "\t\t}" + NL + "\t" + NL + "\t\t/**" + NL + "\t\t * Creates the 'Window' menu." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected IMenuManager createWindowMenu(IWorkbenchWindow window)" + NL + "\t\t{" + NL + "\t\t\tIMenuManager menu = new MenuManager(getString(\"_UI_Menu_Window_label\"),";
- protected final String TEXT_60 = NL + "\t\t\tIWorkbenchActionConstants.M_WINDOW);" + NL + "\t" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.OPEN_NEW_WINDOW.create(window));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));";
- protected final String TEXT_61 = NL + "\t\t\tmenu.add(ContributionItemFactory.OPEN_WINDOWS.create(window));";
- protected final String TEXT_62 = NL + "\t" + NL + "\t\t\treturn menu;" + NL + "\t\t}" + NL + "\t" + NL + "\t\t/**" + NL + "\t\t * Creates the 'Help' menu." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected IMenuManager createHelpMenu(IWorkbenchWindow window)" + NL + "\t\t{" + NL + "\t\t\tIMenuManager menu = new MenuManager(getString(\"_UI_Menu_Help_label\"), IWorkbenchActionConstants.M_HELP);";
- protected final String TEXT_63 = NL + "\t\t\t// Welcome or intro page would go here" + NL + "\t\t\t// Help contents would go here" + NL + "\t\t\t// Tips and tricks page would go here" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.HELP_START));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.HELP_END));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));" + NL + "\t\t\treturn menu;" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * Adds the specified action to the given menu and also registers the action with the" + NL + "\t\t * action bar configurer, in order to activate its key binding." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void addToMenuAndRegister(IMenuManager menuManager, IAction action)" + NL + "\t\t{" + NL + "\t\t\tmenuManager.add(action);" + NL + "\t\t\tgetActionBarConfigurer().registerGlobalAction(action);" + NL + "\t\t}" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * About action for the RCP application." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class AboutAction extends WorkbenchWindowActionDelegate" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void run(IAction action)" + NL + "\t\t{" + NL + "\t\t\tMessageDialog.openInformation(getWindow().getShell(), getString(\"_UI_About_title\"),";
- protected final String TEXT_64 = NL + "\t\t\tgetString(\"_UI_About_text\"));";
- protected final String TEXT_65 = NL + "\t\t}" + NL + "\t}" + NL + "\t";
- protected final String TEXT_66 = NL + "\t/**" + NL + "\t * Open action for the objects from the ";
- protected final String TEXT_67 = " model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class OpenAction extends WorkbenchWindowActionDelegate" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * Opens the editors for the files selected using the file dialog." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void run(IAction action)" + NL + "\t\t{" + NL + "\t\t\tString[] filePaths = openFilePathDialog(getWindow().getShell(), SWT.OPEN, null);" + NL + "\t\t\tif (filePaths.length > 0)" + NL + "\t\t\t{" + NL + "\t\t\t\topenEditor(getWindow().getWorkbench(), URI.createFileURI(filePaths[0]));" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}";
- protected final String TEXT_68 = NL + "\t" + NL + "\t/**" + NL + "\t * Open URI action for the objects from the ";
- protected final String TEXT_69 = " model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class OpenURIAction extends WorkbenchWindowActionDelegate" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * Opens the editors for the files selected using the LoadResourceDialog." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void run(IAction action)" + NL + "\t\t{" + NL + "\t\t\tLoadResourceAction.LoadResourceDialog loadResourceDialog = new LoadResourceAction.LoadResourceDialog(getWindow().getShell());" + NL + "\t\t\tif (Window.OK == loadResourceDialog.open())" + NL + "\t\t\t{";
- protected final String TEXT_70 = NL + "\t\t\t\tfor (URI uri : loadResourceDialog.getURIs())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\topenEditor(getWindow().getWorkbench(), uri);" + NL + "\t\t\t\t}";
- protected final String TEXT_71 = NL + "\t\t\t\tfor (Iterator i = loadResourceDialog.getURIs().iterator(); i.hasNext();)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\topenEditor(getWindow().getWorkbench(), (URI)i.next());" + NL + "\t\t\t\t}";
- protected final String TEXT_72 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\t";
- protected final String TEXT_73 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static String[] openFilePathDialog(Shell shell, int style, String[] fileExtensionFilters)" + NL + "\t{" + NL + "\t\treturn openFilePathDialog(shell, style, fileExtensionFilters, (style & SWT.OPEN) != 0, (style & SWT.OPEN) != 0, (style & SWT.SAVE) != 0);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static String[] openFilePathDialog(Shell shell, int style, String[] fileExtensionFilters, boolean includeGroupFilter, boolean includeAllFilter, boolean addExtension)" + NL + "\t{" + NL + "\t\tFileDialog fileDialog = new FileDialog(shell, style);" + NL + "\t\tif (fileExtensionFilters == null)" + NL + "\t\t{" + NL + "\t\t\tfileExtensionFilters = FILE_EXTENSION_FILTERS;" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t// If requested, augment the file extension filters by adding a group of all the other filters (*.ext1;*.ext2;...)" + NL + "\t\t// at the beginning and/or an all files wildcard (*.*) at the end." + NL + "\t\t//" + NL + "\t\tincludeGroupFilter &= fileExtensionFilters.length > 1;" + NL + "\t\tint offset = includeGroupFilter ? 1 : 0;" + NL + "\t\t" + NL + "\t\tif (includeGroupFilter || includeAllFilter)" + NL + "\t\t{" + NL + "\t\t\tint size = fileExtensionFilters.length + offset + (includeAllFilter ? 1 : 0);" + NL + "\t\t\tString[] allFilters = new String[size];" + NL + "\t\t\t";
- protected final String TEXT_74 = " group = includeGroupFilter ? new ";
- protected final String TEXT_75 = "() : null;" + NL + "\t\t\t" + NL + "\t\t\tfor (int i = 0; i < fileExtensionFilters.length; i++)" + NL + "\t\t\t{" + NL + "\t\t\t\tif (includeGroupFilter)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tif (i != 0)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tgroup.append(';');" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tgroup.append(fileExtensionFilters[i]);" + NL + "\t\t\t\t}" + NL + "\t\t\t\tallFilters[i + offset] = fileExtensionFilters[i];" + NL + "\t\t\t}" + NL + "\t\t\t" + NL + "\t\t\tif (includeGroupFilter)" + NL + "\t\t\t{" + NL + "\t\t\t\tallFilters[0] = group.toString();" + NL + "\t\t\t}" + NL + "\t\t\tif (includeAllFilter)" + NL + "\t\t\t{" + NL + "\t\t\t\tallFilters[allFilters.length - 1] = \"*.*\";";
- protected final String TEXT_76 = NL + "\t\t\t}" + NL + "\t\t\t" + NL + "\t\t\tfileDialog.setFilterExtensions(allFilters);" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\tfileDialog.setFilterExtensions(fileExtensionFilters);" + NL + "\t\t}" + NL + "\t\tfileDialog.open();" + NL + "\t\t" + NL + "\t\tString[] filenames = fileDialog.getFileNames();" + NL + "\t\tString[] result = new String[filenames.length];" + NL + "\t\tString path = fileDialog.getFilterPath() + File.separator;" + NL + "\t\tString extension = null;" + NL + "\t\t" + NL + "\t\t// If extension adding requested, get the dotted extension corresponding to the selected filter." + NL + "\t\t//" + NL + "\t\tif (addExtension)" + NL + "\t\t{" + NL + "\t\t\tint i = fileDialog.getFilterIndex();" + NL + "\t\t\tif (i != -1 && (!includeAllFilter || i != fileExtensionFilters.length))" + NL + "\t\t\t{" + NL + "\t\t\t\ti = includeGroupFilter && i == 0 ? 0 : i - offset;" + NL + "\t\t\t\tString filter = fileExtensionFilters[i];" + NL + "\t\t\t\tint dot = filter.lastIndexOf('.');" + NL + "\t\t\t\tif (dot == 1 && filter.charAt(0) == '*')" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\textension = filter.substring(dot);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t// Build the result by adding the selected path and, if needed, auto-appending the extension." + NL + "\t\t//" + NL + "\t\tfor (int i = 0; i < filenames.length; i++)" + NL + "\t\t{" + NL + "\t\t\tString filename = path + filenames[i];" + NL + "\t\t\tif (extension != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tint dot = filename.lastIndexOf('.');" + NL + "\t\t\t\tif (dot == -1 || !Arrays.asList(fileExtensionFilters).contains(\"*\" + filename.substring(dot)))";
- protected final String TEXT_77 = NL + "\t\t\t\t{" + NL + "\t\t\t\t\tfilename += extension;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tresult[i] = filename;" + NL + "\t\t}" + NL + "\t\treturn result;" + NL + "\t}";
- protected final String TEXT_78 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static boolean openEditor(IWorkbench workbench, URI uri)" + NL + "\t{" + NL + "\t\tIWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow();" + NL + "\t\tIWorkbenchPage page = workbenchWindow.getActivePage();" + NL + "\t\t" + NL + "\t\tIEditorDescriptor editorDescriptor = EditUIUtil.getDefaultEditor(uri, null);" + NL + "\t\tif (editorDescriptor == null)" + NL + "\t\t{" + NL + "\t\t\tMessageDialog.openError(" + NL + "\t\t\t\tworkbenchWindow.getShell()," + NL + "\t\t\t\tgetString(\"_UI_Error_title\"),";
- protected final String TEXT_79 = NL + "\t\t\t\tgetString(\"_WARN_No_Editor\", uri.lastSegment()));";
- protected final String TEXT_80 = NL + "\t\t\treturn false;" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\ttry" + NL + "\t\t\t{" + NL + "\t\t\t\tpage.openEditor(new URIEditorInput(uri), editorDescriptor.getId());" + NL + "\t\t\t}" + NL + "\t\t\tcatch (PartInitException exception)" + NL + "\t\t\t{" + NL + "\t\t\t\tMessageDialog.openError(" + NL + "\t\t\t\t\tworkbenchWindow.getShell()," + NL + "\t\t\t\t\tgetString(\"_UI_OpenEditorError_label\"),";
- protected final String TEXT_81 = NL + "\t\t\t\t\texception.getMessage());" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn true;" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @see org.eclipse.ui.application.WorkbenchAdvisor#getInitialWindowPerspectiveId()" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_82 = NL + "\t\t@Override";
- protected final String TEXT_83 = NL + "\tpublic String getInitialWindowPerspectiveId()" + NL + "\t{" + NL + "\t\treturn Perspective.ID_PERSPECTIVE;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @see org.eclipse.ui.application.WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer)" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_84 = NL + "\t\t@Override";
- protected final String TEXT_85 = NL + "\tpublic void initialize(IWorkbenchConfigurer configurer)" + NL + "\t{" + NL + "\t\tsuper.initialize(configurer);" + NL + "\t\tconfigurer.setSaveAndRestore(true);" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @see org.eclipse.ui.application.WorkbenchAdvisor#createWorkbenchWindowAdvisor(org.eclipse.ui.application.IWorkbenchWindowConfigurer)" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_86 = NL + "\t\t@Override";
- protected final String TEXT_87 = NL + "\tpublic WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer)" + NL + "\t{" + NL + "\t\treturn new WindowAdvisor(configurer);" + NL + "\t}" + NL + "}";
- protected final String TEXT_88 = NL;
+ protected final String TEXT_20 = NL + " * @generated" + NL + " */";
+ protected final String TEXT_21 = NL + "@Deprecated";
+ protected final String TEXT_22 = NL + "@SuppressWarnings(\"deprecation\")";
+ protected final String TEXT_23 = NL + "public final class ";
+ protected final String TEXT_24 = " extends WorkbenchAdvisor" + NL + "{";
+ protected final String TEXT_25 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final String copyright = ";
+ protected final String TEXT_26 = NL;
+ protected final String TEXT_27 = NL + "\t/**" + NL + "\t * The default file extension filters for use in dialogs." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_28 = NL + "\tprivate static final String[] FILE_EXTENSION_FILTERS = ";
+ protected final String TEXT_29 = "(String[])";
+ protected final String TEXT_30 = ".FILE_EXTENSION_FILTERS.toArray(new String[0]);";
+ protected final String TEXT_31 = NL + "\tprivate static final String[] FILE_EXTENSION_FILTERS = getFileExtensionFilters();" + NL + "" + NL + "\t/**" + NL + "\t * Returns the default file extension filters. This method should only be used to initialize {@link #FILE_EXTENSION_FILTERS}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String[] getFileExtensionFilters()" + NL + "\t{" + NL + "\t\t";
+ protected final String TEXT_32 = " result = new ";
+ protected final String TEXT_33 = "();";
+ protected final String TEXT_34 = NL + "\t\tresult.addAll(";
+ protected final String TEXT_35 = ".FILE_EXTENSION_FILTERS);";
+ protected final String TEXT_36 = NL + "\t\treturn ";
+ protected final String TEXT_37 = "result.toArray(new String[0]);" + NL + "\t}";
+ protected final String TEXT_38 = " ";
+ protected final String TEXT_39 = NL + NL + "\t/**" + NL + "\t * This looks up a string in the plugin's plugin.properties file." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key)" + NL + "\t{" + NL + "\t\treturn ";
+ protected final String TEXT_40 = ".INSTANCE.getString(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This looks up a string in plugin.properties, making a substitution." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key, Object s1)" + NL + "\t{" + NL + "\t\treturn ";
+ protected final String TEXT_41 = ".INSTANCE.getString(key, new Object [] { s1 });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * RCP's application" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class Application implements IApplication" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Object start(IApplicationContext context) throws Exception" + NL + "\t\t{" + NL + "\t\t\tWorkbenchAdvisor workbenchAdvisor = new ";
+ protected final String TEXT_42 = "();" + NL + "\t\t\tDisplay display = PlatformUI.createDisplay();" + NL + "\t\t\ttry" + NL + "\t\t\t{" + NL + "\t\t\t\tint returnCode = PlatformUI.createAndRunWorkbench(display, workbenchAdvisor);" + NL + "\t\t\t\tif (returnCode == PlatformUI.RETURN_RESTART)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\treturn IApplication.EXIT_RESTART;" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\treturn IApplication.EXIT_OK;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tfinally" + NL + "\t\t\t{" + NL + "\t\t\t\tdisplay.dispose();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.equinox.app.IApplication#stop()" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void stop()" + NL + "\t\t{" + NL + "\t\t\t// Do nothing." + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * RCP's perspective" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class Perspective implements IPerspectiveFactory" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * Perspective ID" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static final String ID_PERSPECTIVE = \"";
+ protected final String TEXT_43 = "Perspective\";";
+ protected final String TEXT_44 = NL + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void createInitialLayout(IPageLayout layout)" + NL + "\t\t{" + NL + "\t\t\tlayout.setEditorAreaVisible(true);" + NL + "\t\t\tlayout.addPerspectiveShortcut(ID_PERSPECTIVE);" + NL + "" + NL + "\t\t\tIFolderLayout right = layout.createFolder(\"right\", IPageLayout.RIGHT, (float)0.66, layout.getEditorArea());";
+ protected final String TEXT_45 = NL + "\t\t\tright.addView(IPageLayout.ID_OUTLINE);" + NL + "" + NL + "\t\t\tIFolderLayout bottonRight = layout.createFolder(\"bottonRight\", IPageLayout.BOTTOM, (float)0.60, \"right\");";
+ protected final String TEXT_46 = NL + "\t\t\tbottonRight.addView(IPageLayout.ID_PROP_SHEET);" + NL + "\t\t}" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * RCP's window advisor" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class WindowAdvisor extends WorkbenchWindowAdvisor" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * @see WorkbenchWindowAdvisor#WorkbenchWindowAdvisor(org.eclipse.ui.application.IWorkbenchWindowConfigurer)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic WindowAdvisor(IWorkbenchWindowConfigurer configurer)" + NL + "\t\t{" + NL + "\t\t\tsuper(configurer);" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#preWindowOpen()" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
+ protected final String TEXT_47 = NL + "\t\t@Override";
+ protected final String TEXT_48 = NL + "\t\tpublic void preWindowOpen()" + NL + "\t\t{" + NL + "\t\t\tIWorkbenchWindowConfigurer configurer = getWindowConfigurer();" + NL + "\t\t\tconfigurer.setInitialSize(new Point(600, 450));" + NL + "\t\t\tconfigurer.setShowCoolBar(false);" + NL + "\t\t\tconfigurer.setShowStatusLine(true);" + NL + "\t\t\tconfigurer.setTitle(getString(\"_UI_Application_title\"));";
+ protected final String TEXT_49 = NL + "\t\t}" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#createActionBarAdvisor(org.eclipse.ui.application.IActionBarConfigurer)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
+ protected final String TEXT_50 = NL + "\t\tpublic ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer)" + NL + "\t\t{" + NL + "\t\t\treturn new WindowActionBarAdvisor(configurer);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * RCP's action bar advisor" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class WindowActionBarAdvisor extends ActionBarAdvisor" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * @see ActionBarAdvisor#ActionBarAdvisor(org.eclipse.ui.application.IActionBarConfigurer)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic WindowActionBarAdvisor(IActionBarConfigurer configurer)" + NL + "\t\t{" + NL + "\t\t\tsuper(configurer);" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.application.ActionBarAdvisor#fillMenuBar(org.eclipse.jface.action.IMenuManager)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
+ protected final String TEXT_51 = NL + "\t\tprotected void fillMenuBar(IMenuManager menuBar)" + NL + "\t\t{" + NL + "\t\t\tIWorkbenchWindow window = getActionBarConfigurer().getWindowConfigurer().getWindow();" + NL + "\t\t\tmenuBar.add(createFileMenu(window));" + NL + "\t\t\tmenuBar.add(createEditMenu(window));" + NL + "\t\t\tmenuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));" + NL + "\t\t\tmenuBar.add(createWindowMenu(window));" + NL + "\t\t\tmenuBar.add(createHelpMenu(window));\t\t\t\t\t" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * Creates the 'File' menu." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected IMenuManager createFileMenu(IWorkbenchWindow window)" + NL + "\t\t{" + NL + "\t\t\tIMenuManager menu = new MenuManager(getString(\"_UI_Menu_File_label\"),";
+ protected final String TEXT_52 = NL + "\t\t\tIWorkbenchActionConstants.M_FILE); " + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.FILE_START));" + NL + "\t" + NL + "\t\t\tIMenuManager newMenu = new MenuManager(getString(\"_UI_Menu_New_label\"), \"new\");";
+ protected final String TEXT_53 = NL + "\t\t\tnewMenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));" + NL + "\t" + NL + "\t\t\tmenu.add(newMenu);" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.CLOSE.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.CLOSE_ALL.create(window));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.SAVE.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.SAVE_AS.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.SAVE_ALL.create(window));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.QUIT.create(window));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END));" + NL + "\t\t\treturn menu;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Creates the 'Edit' menu." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected IMenuManager createEditMenu(IWorkbenchWindow window)" + NL + "\t\t{" + NL + "\t\t\tIMenuManager menu = new MenuManager(getString(\"_UI_Menu_Edit_label\"),";
+ protected final String TEXT_54 = NL + "\t\t\tIWorkbenchActionConstants.M_EDIT);" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));" + NL + "\t" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.UNDO.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.REDO.create(window));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.CUT.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.COPY.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.PASTE.create(window));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.DELETE.create(window));" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.SELECT_ALL.create(window));" + NL + "\t\t\tmenu.add(new Separator());" + NL + "\t" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));" + NL + "\t" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));" + NL + "\t\t\tmenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));" + NL + "\t\t\treturn menu;" + NL + "\t\t}" + NL + "\t" + NL + "\t\t/**" + NL + "\t\t * Creates the 'Window' menu." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected IMenuManager createWindowMenu(IWorkbenchWindow window)" + NL + "\t\t{" + NL + "\t\t\tIMenuManager menu = new MenuManager(getString(\"_UI_Menu_Window_label\"),";
+ protected final String TEXT_55 = NL + "\t\t\tIWorkbenchActionConstants.M_WINDOW);" + NL + "\t" + NL + "\t\t\taddToMenuAndRegister(menu, ActionFactory.OPEN_NEW_WINDOW.create(window));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));";
+ protected final String TEXT_56 = NL + "\t\t\tmenu.add(ContributionItemFactory.OPEN_WINDOWS.create(window));";
+ protected final String TEXT_57 = NL + "\t" + NL + "\t\t\treturn menu;" + NL + "\t\t}" + NL + "\t" + NL + "\t\t/**" + NL + "\t\t * Creates the 'Help' menu." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected IMenuManager createHelpMenu(IWorkbenchWindow window)" + NL + "\t\t{" + NL + "\t\t\tIMenuManager menu = new MenuManager(getString(\"_UI_Menu_Help_label\"), IWorkbenchActionConstants.M_HELP);";
+ protected final String TEXT_58 = NL + "\t\t\t// Welcome or intro page would go here" + NL + "\t\t\t// Help contents would go here" + NL + "\t\t\t// Tips and tricks page would go here" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.HELP_START));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.HELP_END));" + NL + "\t\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));" + NL + "\t\t\treturn menu;" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * Adds the specified action to the given menu and also registers the action with the" + NL + "\t\t * action bar configurer, in order to activate its key binding." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void addToMenuAndRegister(IMenuManager menuManager, IAction action)" + NL + "\t\t{" + NL + "\t\t\tmenuManager.add(action);" + NL + "\t\t\tgetActionBarConfigurer().registerGlobalAction(action);" + NL + "\t\t}" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * About action for the RCP application." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class AboutAction extends WorkbenchWindowActionDelegate" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void run(IAction action)" + NL + "\t\t{" + NL + "\t\t\tMessageDialog.openInformation(getWindow().getShell(), getString(\"_UI_About_title\"),";
+ protected final String TEXT_59 = NL + "\t\t\tgetString(\"_UI_About_text\"));";
+ protected final String TEXT_60 = NL + "\t\t}" + NL + "\t}" + NL + "\t";
+ protected final String TEXT_61 = NL + "\t/**" + NL + "\t * Open action for the objects from the ";
+ protected final String TEXT_62 = " model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class OpenAction extends WorkbenchWindowActionDelegate" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * Opens the editors for the files selected using the file dialog." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void run(IAction action)" + NL + "\t\t{" + NL + "\t\t\tString[] filePaths = openFilePathDialog(getWindow().getShell(), SWT.OPEN, null);" + NL + "\t\t\tif (filePaths.length > 0)" + NL + "\t\t\t{" + NL + "\t\t\t\topenEditor(getWindow().getWorkbench(), URI.createFileURI(filePaths[0]));" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}";
+ protected final String TEXT_63 = NL + "\t" + NL + "\t/**" + NL + "\t * Open URI action for the objects from the ";
+ protected final String TEXT_64 = " model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static class OpenURIAction extends WorkbenchWindowActionDelegate" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * Opens the editors for the files selected using the LoadResourceDialog." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void run(IAction action)" + NL + "\t\t{" + NL + "\t\t\tLoadResourceAction.LoadResourceDialog loadResourceDialog = new LoadResourceAction.LoadResourceDialog(getWindow().getShell());" + NL + "\t\t\tif (Window.OK == loadResourceDialog.open())" + NL + "\t\t\t{";
+ protected final String TEXT_65 = NL + "\t\t\t\tfor (URI uri : loadResourceDialog.getURIs())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\topenEditor(getWindow().getWorkbench(), uri);" + NL + "\t\t\t\t}";
+ protected final String TEXT_66 = NL + "\t\t\t\tfor (Iterator i = loadResourceDialog.getURIs().iterator(); i.hasNext();)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\topenEditor(getWindow().getWorkbench(), (URI)i.next());" + NL + "\t\t\t\t}";
+ protected final String TEXT_67 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\t";
+ protected final String TEXT_68 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static String[] openFilePathDialog(Shell shell, int style, String[] fileExtensionFilters)" + NL + "\t{" + NL + "\t\treturn openFilePathDialog(shell, style, fileExtensionFilters, (style & SWT.OPEN) != 0, (style & SWT.OPEN) != 0, (style & SWT.SAVE) != 0);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static String[] openFilePathDialog(Shell shell, int style, String[] fileExtensionFilters, boolean includeGroupFilter, boolean includeAllFilter, boolean addExtension)" + NL + "\t{" + NL + "\t\tFileDialog fileDialog = new FileDialog(shell, style);" + NL + "\t\tif (fileExtensionFilters == null)" + NL + "\t\t{" + NL + "\t\t\tfileExtensionFilters = FILE_EXTENSION_FILTERS;" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t// If requested, augment the file extension filters by adding a group of all the other filters (*.ext1;*.ext2;...)" + NL + "\t\t// at the beginning and/or an all files wildcard (*.*) at the end." + NL + "\t\t//" + NL + "\t\tincludeGroupFilter &= fileExtensionFilters.length > 1;" + NL + "\t\tint offset = includeGroupFilter ? 1 : 0;" + NL + "\t\t" + NL + "\t\tif (includeGroupFilter || includeAllFilter)" + NL + "\t\t{" + NL + "\t\t\tint size = fileExtensionFilters.length + offset + (includeAllFilter ? 1 : 0);" + NL + "\t\t\tString[] allFilters = new String[size];" + NL + "\t\t\t";
+ protected final String TEXT_69 = " group = includeGroupFilter ? new ";
+ protected final String TEXT_70 = "() : null;" + NL + "\t\t\t" + NL + "\t\t\tfor (int i = 0; i < fileExtensionFilters.length; i++)" + NL + "\t\t\t{" + NL + "\t\t\t\tif (includeGroupFilter)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tif (i != 0)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tgroup.append(';');" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tgroup.append(fileExtensionFilters[i]);" + NL + "\t\t\t\t}" + NL + "\t\t\t\tallFilters[i + offset] = fileExtensionFilters[i];" + NL + "\t\t\t}" + NL + "\t\t\t" + NL + "\t\t\tif (includeGroupFilter)" + NL + "\t\t\t{" + NL + "\t\t\t\tallFilters[0] = group.toString();" + NL + "\t\t\t}" + NL + "\t\t\tif (includeAllFilter)" + NL + "\t\t\t{" + NL + "\t\t\t\tallFilters[allFilters.length - 1] = \"*.*\";";
+ protected final String TEXT_71 = NL + "\t\t\t}" + NL + "\t\t\t" + NL + "\t\t\tfileDialog.setFilterExtensions(allFilters);" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\tfileDialog.setFilterExtensions(fileExtensionFilters);" + NL + "\t\t}" + NL + "\t\tfileDialog.open();" + NL + "\t\t" + NL + "\t\tString[] filenames = fileDialog.getFileNames();" + NL + "\t\tString[] result = new String[filenames.length];" + NL + "\t\tString path = fileDialog.getFilterPath() + File.separator;" + NL + "\t\tString extension = null;" + NL + "\t\t" + NL + "\t\t// If extension adding requested, get the dotted extension corresponding to the selected filter." + NL + "\t\t//" + NL + "\t\tif (addExtension)" + NL + "\t\t{" + NL + "\t\t\tint i = fileDialog.getFilterIndex();" + NL + "\t\t\tif (i != -1 && (!includeAllFilter || i != fileExtensionFilters.length))" + NL + "\t\t\t{" + NL + "\t\t\t\ti = includeGroupFilter && i == 0 ? 0 : i - offset;" + NL + "\t\t\t\tString filter = fileExtensionFilters[i];" + NL + "\t\t\t\tint dot = filter.lastIndexOf('.');" + NL + "\t\t\t\tif (dot == 1 && filter.charAt(0) == '*')" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\textension = filter.substring(dot);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t// Build the result by adding the selected path and, if needed, auto-appending the extension." + NL + "\t\t//" + NL + "\t\tfor (int i = 0; i < filenames.length; i++)" + NL + "\t\t{" + NL + "\t\t\tString filename = path + filenames[i];" + NL + "\t\t\tif (extension != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tint dot = filename.lastIndexOf('.');" + NL + "\t\t\t\tif (dot == -1 || !Arrays.asList(fileExtensionFilters).contains(\"*\" + filename.substring(dot)))";
+ protected final String TEXT_72 = NL + "\t\t\t\t{" + NL + "\t\t\t\t\tfilename += extension;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tresult[i] = filename;" + NL + "\t\t}" + NL + "\t\treturn result;" + NL + "\t}";
+ protected final String TEXT_73 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static boolean openEditor(IWorkbench workbench, URI uri)" + NL + "\t{" + NL + "\t\tIWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow();" + NL + "\t\tIWorkbenchPage page = workbenchWindow.getActivePage();" + NL + "\t\t" + NL + "\t\tIEditorDescriptor editorDescriptor = EditUIUtil.getDefaultEditor(uri, null);" + NL + "\t\tif (editorDescriptor == null)" + NL + "\t\t{" + NL + "\t\t\tMessageDialog.openError(" + NL + "\t\t\t\tworkbenchWindow.getShell()," + NL + "\t\t\t\tgetString(\"_UI_Error_title\"),";
+ protected final String TEXT_74 = NL + "\t\t\t\tgetString(\"_WARN_No_Editor\", uri.lastSegment()));";
+ protected final String TEXT_75 = NL + "\t\t\treturn false;" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\ttry" + NL + "\t\t\t{" + NL + "\t\t\t\tpage.openEditor(new URIEditorInput(uri), editorDescriptor.getId());" + NL + "\t\t\t}" + NL + "\t\t\tcatch (PartInitException exception)" + NL + "\t\t\t{" + NL + "\t\t\t\tMessageDialog.openError(" + NL + "\t\t\t\t\tworkbenchWindow.getShell()," + NL + "\t\t\t\t\tgetString(\"_UI_OpenEditorError_label\"),";
+ protected final String TEXT_76 = NL + "\t\t\t\t\texception.getMessage());" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn true;" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @see org.eclipse.ui.application.WorkbenchAdvisor#getInitialWindowPerspectiveId()" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_77 = NL + "\tpublic String getInitialWindowPerspectiveId()" + NL + "\t{" + NL + "\t\treturn Perspective.ID_PERSPECTIVE;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @see org.eclipse.ui.application.WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer)" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_78 = NL + "\tpublic void initialize(IWorkbenchConfigurer configurer)" + NL + "\t{" + NL + "\t\tsuper.initialize(configurer);" + NL + "\t\tconfigurer.setSaveAndRestore(true);" + NL + "\t}" + NL + "\t" + NL + "\t/**" + NL + "\t * @see org.eclipse.ui.application.WorkbenchAdvisor#createWorkbenchWindowAdvisor(org.eclipse.ui.application.IWorkbenchWindowConfigurer)" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_79 = NL + "\tpublic WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer)" + NL + "\t{" + NL + "\t\treturn new WindowAdvisor(configurer);" + NL + "\t}" + NL + "}";
public String generate(Object argument)
{
@@ -165,87 +156,97 @@ public class Advisor
genModel.markImportLocation(stringBuffer);
stringBuffer.append(TEXT_19);
if (genModel.hasAPITags()) {
- stringBuffer.append(TEXT_20);
+ stringBuffer.append(TEXT_3);
stringBuffer.append(genModel.getAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_21);
+ stringBuffer.append(TEXT_20);
if (isJDK50 && genModel.hasAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_21);
} else if (isJDK50 && GenModelUtil.hasAPIDeprecatedTag(genModel.getAllGenPackagesWithConcreteClasses())) {
- stringBuffer.append(TEXT_23);
+ stringBuffer.append(TEXT_22);
}
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_23);
stringBuffer.append(genModel.getEditorAdvisorClassName());
- stringBuffer.append(TEXT_25);
+ stringBuffer.append(TEXT_24);
if (genModel.hasCopyrightField()) {
- stringBuffer.append(TEXT_26);
+ stringBuffer.append(TEXT_25);
stringBuffer.append(genModel.getCopyrightFieldLiteral());
- stringBuffer.append(TEXT_27);
+ stringBuffer.append(TEXT_18);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_28);
+ stringBuffer.append(TEXT_26);
}
if (!genModel.isRichAjaxPlatform()) {
- stringBuffer.append(TEXT_29);
+ stringBuffer.append(TEXT_27);
if (genModel.getAllGenPackagesWithConcreteClasses().size() == 1) {
- stringBuffer.append(TEXT_30);
+ stringBuffer.append(TEXT_28);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_31);
+ stringBuffer.append(TEXT_29);
}
stringBuffer.append(genModel.getAllGenPackagesWithConcreteClasses().get(0).getImportedEditorClassName());
- stringBuffer.append(TEXT_32);
+ stringBuffer.append(TEXT_30);
} else {
- stringBuffer.append(TEXT_33);
+ stringBuffer.append(TEXT_31);
stringBuffer.append(_ListOfString);
- stringBuffer.append(TEXT_34);
+ stringBuffer.append(TEXT_32);
stringBuffer.append(_UniqueEListOfString);
- stringBuffer.append(TEXT_35);
+ stringBuffer.append(TEXT_33);
for (GenPackage genPackage : genModel.getAllGenPackagesWithConcreteClasses()) {
- stringBuffer.append(TEXT_36);
+ stringBuffer.append(TEXT_34);
stringBuffer.append(genPackage.getImportedEditorClassName());
+ stringBuffer.append(TEXT_35);
+ }
+ stringBuffer.append(TEXT_36);
+ if (!genModel.useGenerics()) {
+ stringBuffer.append(TEXT_29);
+ }
stringBuffer.append(TEXT_37);
}
stringBuffer.append(TEXT_38);
- if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_39);
}
+ stringBuffer.append(TEXT_39);
+ stringBuffer.append(genModel.getEditorPluginClassName());
stringBuffer.append(TEXT_40);
- }
+ stringBuffer.append(genModel.getQualifiedEditorPluginClassName());
stringBuffer.append(TEXT_41);
- }
+ stringBuffer.append(genModel.getEditorAdvisorClassName());
stringBuffer.append(TEXT_42);
- stringBuffer.append(genModel.getEditorPluginClassName());
+ stringBuffer.append(genModel.getQualifiedEditorAdvisorClassName());
stringBuffer.append(TEXT_43);
- stringBuffer.append(genModel.getQualifiedEditorPluginClassName());
+ stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(TEXT_44);
- stringBuffer.append(genModel.getEditorAdvisorClassName());
+ stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(TEXT_45);
- stringBuffer.append(genModel.getQualifiedEditorAdvisorClassName());
- stringBuffer.append(TEXT_46);
stringBuffer.append(genModel.getNonNLS());
+ stringBuffer.append(genModel.getNonNLS(2));
+ stringBuffer.append(TEXT_46);
+ if (genModel.useClassOverrideAnnotation()) {
stringBuffer.append(TEXT_47);
- stringBuffer.append(genModel.getNonNLS());
+ }
stringBuffer.append(TEXT_48);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(genModel.getNonNLS(2));
stringBuffer.append(TEXT_49);
if (genModel.useClassOverrideAnnotation()) {
+ stringBuffer.append(TEXT_47);
+ }
stringBuffer.append(TEXT_50);
+ if (genModel.useClassOverrideAnnotation()) {
+ stringBuffer.append(TEXT_47);
}
stringBuffer.append(TEXT_51);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(TEXT_52);
- if (genModel.useClassOverrideAnnotation()) {
+ stringBuffer.append(genModel.getNonNLS());
+ stringBuffer.append(genModel.getNonNLS(2));
stringBuffer.append(TEXT_53);
- }
+ stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(TEXT_54);
- if (genModel.useClassOverrideAnnotation()) {
+ stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(TEXT_55);
- }
+ if (!genModel.isRichAjaxPlatform()) {
stringBuffer.append(TEXT_56);
- stringBuffer.append(genModel.getNonNLS());
+ }
stringBuffer.append(TEXT_57);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(genModel.getNonNLS(2));
stringBuffer.append(TEXT_58);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(TEXT_59);
@@ -253,60 +254,50 @@ public class Advisor
stringBuffer.append(TEXT_60);
if (!genModel.isRichAjaxPlatform()) {
stringBuffer.append(TEXT_61);
- }
+ stringBuffer.append(genModel.getModelName());
stringBuffer.append(TEXT_62);
- stringBuffer.append(genModel.getNonNLS());
+ }
stringBuffer.append(TEXT_63);
- stringBuffer.append(genModel.getNonNLS());
+ stringBuffer.append(genModel.getModelName());
stringBuffer.append(TEXT_64);
- stringBuffer.append(genModel.getNonNLS());
+ if (genModel.useGenerics()) {
stringBuffer.append(TEXT_65);
- if (!genModel.isRichAjaxPlatform()) {
+ } else {
stringBuffer.append(TEXT_66);
- stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_67);
}
+ stringBuffer.append(TEXT_67);
+ if (!genModel.isRichAjaxPlatform()) {
stringBuffer.append(TEXT_68);
- stringBuffer.append(genModel.getModelName());
+ stringBuffer.append(_StringBuilder);
stringBuffer.append(TEXT_69);
- if (genModel.useGenerics()) {
+ stringBuffer.append(_StringBuilder);
stringBuffer.append(TEXT_70);
- } else {
+ stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(TEXT_71);
- }
+ stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(TEXT_72);
- if (!genModel.isRichAjaxPlatform()) {
+ }
stringBuffer.append(TEXT_73);
- stringBuffer.append(_StringBuilder);
+ stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(TEXT_74);
- stringBuffer.append(_StringBuilder);
+ stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(TEXT_75);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(TEXT_76);
- stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_77);
- }
- stringBuffer.append(TEXT_78);
- stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_79);
- stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_80);
- stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_81);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_82);
+ stringBuffer.append(TEXT_47);
}
- stringBuffer.append(TEXT_83);
+ stringBuffer.append(TEXT_77);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_84);
+ stringBuffer.append(TEXT_47);
}
- stringBuffer.append(TEXT_85);
+ stringBuffer.append(TEXT_78);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_86);
+ stringBuffer.append(TEXT_47);
}
- stringBuffer.append(TEXT_87);
+ stringBuffer.append(TEXT_79);
genModel.emitSortedImports();
- stringBuffer.append(TEXT_88);
+ stringBuffer.append(TEXT_26);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/AppEngineWebXML.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/AppEngineWebXML.java
index f42d86df2..903507740 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/AppEngineWebXML.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/AppEngineWebXML.java
@@ -21,7 +21,6 @@ public class AppEngineWebXML
protected final String TEXT_4 = NL + " ";
protected final String TEXT_5 = NL + "-->" + NL + "<appengine-web-app xmlns=\"http://appengine.google.com/ns/1.0\">" + NL + "\t<application>";
protected final String TEXT_6 = "-editor</application>" + NL + "\t<version>1</version>" + NL + "</appengine-web-app>";
- protected final String TEXT_7 = NL;
public String generate(Object argument)
{
@@ -50,7 +49,7 @@ public class AppEngineWebXML
stringBuffer.append(TEXT_5);
stringBuffer.append(genModel.getModelName().toLowerCase().replaceAll("\\s", "-"));
stringBuffer.append(TEXT_6);
- stringBuffer.append(TEXT_7);
+ stringBuffer.append(TEXT_2);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/BuildProperties.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/BuildProperties.java
index 03210fcde..6e6394a7b 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/BuildProperties.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/BuildProperties.java
@@ -25,10 +25,9 @@ public class BuildProperties
protected final String TEXT_8 = NL + "source.";
protected final String TEXT_9 = " = ";
protected final String TEXT_10 = NL + "output.";
- protected final String TEXT_11 = " = ";
- protected final String TEXT_12 = "bin";
- protected final String TEXT_13 = "war/WEB-INF/classes";
- protected final String TEXT_14 = NL;
+ protected final String TEXT_11 = "bin";
+ protected final String TEXT_12 = "war/WEB-INF/classes";
+ protected final String TEXT_13 = NL;
public String generate(Object argument)
{
@@ -76,13 +75,13 @@ public class BuildProperties
}}
stringBuffer.append(TEXT_10);
stringBuffer.append(pluginClassesLocation);
- stringBuffer.append(TEXT_11);
+ stringBuffer.append(TEXT_9);
if (genModel.getRuntimePlatform() != GenRuntimePlatform.GWT) {
- stringBuffer.append(TEXT_12);
+ stringBuffer.append(TEXT_11);
} else {
- stringBuffer.append(TEXT_13);
+ stringBuffer.append(TEXT_12);
}
- stringBuffer.append(TEXT_14);
+ stringBuffer.append(TEXT_13);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/Editor.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/Editor.java
index caf624057..3795a9357 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/Editor.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/Editor.java
@@ -42,507 +42,345 @@ public class Editor
protected final String TEXT_25 = NL + "import org.eclipse.ui.IFileEditorInput;";
protected final String TEXT_26 = NL + "import org.eclipse.ui.IPartListener;" + NL + "import org.eclipse.ui.IWorkbenchPart;" + NL + "import org.eclipse.ui.PartInitException;";
protected final String TEXT_27 = NL + NL + "import org.eclipse.ui.dialogs.SaveAsDialog;" + NL + "" + NL + "import org.eclipse.ui.ide.IGotoMarker;";
- protected final String TEXT_28 = NL;
- protected final String TEXT_29 = NL + "import org.eclipse.ui.part.FileEditorInput;";
- protected final String TEXT_30 = NL + "import org.eclipse.ui.part.MultiPageEditorPart;" + NL + "" + NL + "import org.eclipse.ui.views.contentoutline.ContentOutline;" + NL + "import org.eclipse.ui.views.contentoutline.ContentOutlinePage;" + NL + "import org.eclipse.ui.views.contentoutline.IContentOutlinePage;" + NL + "" + NL + "import org.eclipse.ui.views.properties.IPropertySheetPage;" + NL + "import org.eclipse.ui.views.properties.PropertySheet;" + NL + "import org.eclipse.ui.views.properties.PropertySheetPage;" + NL + "" + NL + "import org.eclipse.emf.common.command.BasicCommandStack;" + NL + "import org.eclipse.emf.common.command.Command;" + NL + "import org.eclipse.emf.common.command.CommandStack;" + NL + "import org.eclipse.emf.common.command.CommandStackListener;" + NL + "" + NL + "import org.eclipse.emf.common.notify.AdapterFactory;" + NL + "import org.eclipse.emf.common.notify.Notification;" + NL;
- protected final String TEXT_31 = NL + "import org.eclipse.emf.common.ui.MarkerHelper;";
- protected final String TEXT_32 = NL + "import org.eclipse.emf.common.ui.ViewerPane;";
- protected final String TEXT_33 = NL + NL + "import org.eclipse.emf.common.ui.editor.ProblemEditorPart;" + NL + "" + NL + "import org.eclipse.emf.common.ui.viewer.IViewerProvider;" + NL + "" + NL + "import org.eclipse.emf.common.util.BasicDiagnostic;" + NL + "import org.eclipse.emf.common.util.Diagnostic;" + NL + "import org.eclipse.emf.common.util.URI;" + NL;
- protected final String TEXT_34 = NL + "import org.eclipse.emf.ecore.EObject;" + NL + "import org.eclipse.emf.ecore.EValidator;";
- protected final String TEXT_35 = NL + NL + "import org.eclipse.emf.ecore.resource.Resource;";
- protected final String TEXT_36 = NL + "import org.eclipse.emf.ecore.resource.ResourceSet;";
- protected final String TEXT_37 = NL + NL + "import org.eclipse.emf.ecore.util.EContentAdapter;" + NL + "import org.eclipse.emf.ecore.util.EcoreUtil;" + NL + "" + NL + "import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;" + NL + "import org.eclipse.emf.edit.domain.EditingDomain;" + NL + "import org.eclipse.emf.edit.domain.IEditingDomainProvider;" + NL + "" + NL + "import org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator;" + NL + "import org.eclipse.emf.edit.provider.ComposedAdapterFactory;" + NL + "import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory;" + NL + "" + NL + "import org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory;" + NL + "" + NL + "import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor;" + NL + "" + NL + "import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor;" + NL + "" + NL + "import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter;" + NL + "import org.eclipse.emf.edit.ui.dnd.LocalTransfer;" + NL + "import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter;" + NL + "" + NL + "import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider;" + NL + "import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;";
- protected final String TEXT_38 = NL + "import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider;";
- protected final String TEXT_39 = NL + NL + "import org.eclipse.emf.edit.ui.util.EditUIMarkerHelper;";
- protected final String TEXT_40 = NL + "import org.eclipse.emf.edit.ui.util.EditUIUtil;";
- protected final String TEXT_41 = NL + NL + "import org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage;" + NL + "" + NL + "import ";
- protected final String TEXT_42 = ";" + NL;
- protected final String TEXT_43 = NL + NL + NL + "/**" + NL + " * This is an example of a ";
- protected final String TEXT_44 = " model editor." + NL + " * <!-- begin-user-doc -->" + NL + " * <!-- end-user-doc -->";
- protected final String TEXT_45 = NL + " * ";
- protected final String TEXT_46 = NL + " * @generated" + NL + " */";
- protected final String TEXT_47 = NL + "@Deprecated";
- protected final String TEXT_48 = NL + "public class ";
- protected final String TEXT_49 = NL + "\textends MultiPageEditorPart" + NL + "\timplements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider";
- protected final String TEXT_50 = ", IGotoMarker";
- protected final String TEXT_51 = NL + "{";
- protected final String TEXT_52 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
- protected final String TEXT_53 = " copyright = ";
- protected final String TEXT_54 = ";";
- protected final String TEXT_55 = NL;
- protected final String TEXT_56 = NL + "\t/**" + NL + "\t * The filters for file extensions supported by the editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_57 = NL + "\tpublic static final ";
- protected final String TEXT_58 = " FILE_EXTENSION_FILTERS = prefixExtensions(";
- protected final String TEXT_59 = ".FILE_EXTENSIONS, \"*.\");";
- protected final String TEXT_60 = NL + "\t";
- protected final String TEXT_61 = NL + "\tpublic static final ";
- protected final String TEXT_62 = " FILE_EXTENSION_FILTERS = prefixExtensions(";
- protected final String TEXT_63 = ".asList(";
- protected final String TEXT_64 = ".INSTANCE.getString(\"_UI_";
- protected final String TEXT_65 = "FilenameExtensions\").split(\"\\\\s*,\\\\s*\")), \"*.\");";
- protected final String TEXT_66 = NL + "\t";
- protected final String TEXT_67 = NL + "\t/**" + NL + "\t * Returns a new unmodifiable list containing prefixed versions of the extensions in the given list." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static ";
- protected final String TEXT_68 = " prefixExtensions(";
- protected final String TEXT_69 = " extensions, String prefix)" + NL + "\t{" + NL + "\t\t";
- protected final String TEXT_70 = " result = new ";
- protected final String TEXT_71 = "();";
- protected final String TEXT_72 = NL + "\t\tfor (String extension : extensions)" + NL + "\t\t{" + NL + "\t\t\tresult.add(prefix + extension);";
- protected final String TEXT_73 = NL + "\t\tfor (Iterator iterator = extensions.iterator() ; iterator.hasNext(); )" + NL + "\t\t{" + NL + "\t\t\tresult.add(prefix + (String)iterator.next());";
- protected final String TEXT_74 = NL + "\t\t}" + NL + "\t\treturn Collections.unmodifiableList(result);" + NL + "\t}" + NL;
- protected final String TEXT_75 = NL + "\t/**" + NL + "\t * This keeps track of the editing domain that is used to track all changes to the model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected AdapterFactoryEditingDomain editingDomain;" + NL + "" + NL + "\t/**" + NL + "\t * This is the one adapter factory used for providing views of the model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ComposedAdapterFactory adapterFactory;" + NL + "" + NL + "\t/**" + NL + "\t * This is the content outline page." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IContentOutlinePage contentOutlinePage;" + NL + "" + NL + "\t/**" + NL + "\t * This is a kludge..." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IStatusLineManager contentOutlineStatusLineManager;" + NL + "" + NL + "\t/**" + NL + "\t * This is the content outline page's viewer." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TreeViewer contentOutlineViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This is the property sheet page." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_76 = " propertySheetPages = new ";
- protected final String TEXT_77 = "();" + NL + "" + NL + "\t/**" + NL + "\t * This is the viewer that shadows the selection in the content outline." + NL + "\t * The parent relation must be correctly defined for this to work." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TreeViewer selectionViewer;";
- protected final String TEXT_78 = NL + NL + "\t/**" + NL + "\t * This inverts the roll of parent and child in the content provider and show parents as a tree." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TreeViewer parentViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This shows how a tree view works." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TreeViewer treeViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This shows how a list view works." + NL + "\t * A list viewer doesn't support icons." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ListViewer listViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This shows how a table view works." + NL + "\t * A table can be used as a list with icons." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TableViewer tableViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This shows how a tree view with columns works." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TreeViewer treeViewerWithColumns;" + NL + "" + NL + "\t/**" + NL + "\t * This keeps track of the active viewer pane, in the book." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ViewerPane currentViewerPane;";
- protected final String TEXT_79 = NL + NL + "\t/**" + NL + "\t * This keeps track of the active content viewer, which may be either one of the viewers in the pages or the content outline viewer." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected Viewer currentViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This listens to which ever viewer is active." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ISelectionChangedListener selectionChangedListener;" + NL + "" + NL + "\t/**" + NL + "\t * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are listening to this editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_80 = " selectionChangedListeners = new ";
- protected final String TEXT_81 = "();" + NL + "" + NL + "\t/**" + NL + "\t * This keeps track of the selection of the editor as a whole." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ISelection editorSelection = StructuredSelection.EMPTY;" + NL;
- protected final String TEXT_82 = NL + "\t/**" + NL + "\t * The MarkerHelper is responsible for creating workspace resource markers presented" + NL + "\t * in Eclipse's Problems View." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected MarkerHelper markerHelper = new EditUIMarkerHelper();" + NL;
- protected final String TEXT_83 = NL + "\t/**" + NL + "\t * This listens for when the outline becomes active" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IPartListener partListener =" + NL + "\t\tnew IPartListener()" + NL + "\t\t{" + NL + "\t\t\tpublic void partActivated(IWorkbenchPart p)" + NL + "\t\t\t{" + NL + "\t\t\t\tif (p instanceof ContentOutline)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tif (((ContentOutline)p).getCurrentPage() == contentOutlinePage)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tgetActionBarContributor().setActiveEditor(";
- protected final String TEXT_84 = ".this);" + NL + "" + NL + "\t\t\t\t\t\tsetCurrentViewer(contentOutlineViewer);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse if (p instanceof PropertySheet)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tif (propertySheetPages.contains(((PropertySheet)p).getCurrentPage()))" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tgetActionBarContributor().setActiveEditor(";
- protected final String TEXT_85 = ".this);" + NL + "\t\t\t\t\t\thandleActivate();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse if (p == ";
- protected final String TEXT_86 = ".this)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\thandleActivate();" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tpublic void partBroughtToTop(IWorkbenchPart p)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Ignore." + NL + "\t\t\t}" + NL + "\t\t\tpublic void partClosed(IWorkbenchPart p)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Ignore." + NL + "\t\t\t}" + NL + "\t\t\tpublic void partDeactivated(IWorkbenchPart p)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Ignore." + NL + "\t\t\t}" + NL + "\t\t\tpublic void partOpened(IWorkbenchPart p)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Ignore." + NL + "\t\t\t}" + NL + "\t\t};" + NL + "" + NL + "\t/**" + NL + "\t * Resources that have been removed since last activation." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_87 = " removedResources = new ";
- protected final String TEXT_88 = "();" + NL + "" + NL + "\t/**" + NL + "\t * Resources that have been changed since last activation." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_89 = " changedResources = new ";
- protected final String TEXT_90 = "();" + NL + "" + NL + "\t/**" + NL + "\t * Resources that have been saved." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_91 = " savedResources = new ";
- protected final String TEXT_92 = "();" + NL + "" + NL + "\t/**" + NL + "\t * Map to store the diagnostic associated with a resource." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_93 = " resourceToDiagnosticMap = new ";
- protected final String TEXT_94 = "();" + NL + "" + NL + "\t/**" + NL + "\t * Controls whether the problem indication should be updated." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean updateProblemIndication = true;" + NL + "" + NL + "\t/**" + NL + "\t * Adapter used to update the problem indication when resources are demanded loaded." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected EContentAdapter problemIndicationAdapter =" + NL + "\t\tnew EContentAdapter()" + NL + "\t\t{" + NL + "\t\t\tprotected boolean dispatching;" + NL;
- protected final String TEXT_95 = NL + "\t\t\t@Override";
- protected final String TEXT_96 = NL + "\t\t\tpublic void notifyChanged(Notification notification)" + NL + "\t\t\t{" + NL + "\t\t\t\tif (notification.getNotifier() instanceof Resource)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tswitch (notification.getFeatureID(Resource.class))" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tcase Resource.RESOURCE__IS_LOADED:" + NL + "\t\t\t\t\t\tcase Resource.RESOURCE__ERRORS:" + NL + "\t\t\t\t\t\tcase Resource.RESOURCE__WARNINGS:" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tResource resource = (Resource)notification.getNotifier();" + NL + "\t\t\t\t\t\t\tDiagnostic diagnostic = analyzeResourceProblems(resource, null);" + NL + "\t\t\t\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tresourceToDiagnosticMap.put(resource, diagnostic);" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\telse" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tresourceToDiagnosticMap.remove(resource);" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\tdispatchUpdateProblemIndication();" + 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}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.notifyChanged(notification);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprotected void dispatchUpdateProblemIndication()" + NL + "\t\t\t{" + NL + "\t\t\t\tif (updateProblemIndication && !dispatching)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tdispatching = true;" + NL + "\t\t\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t dispatching = false;" + NL + "\t\t\t\t\t\t\t\t updateProblemIndication();" + NL + "\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t });" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL;
- protected final String TEXT_97 = NL + "\t\t\t@Override";
- protected final String TEXT_98 = NL + "\t\t\tprotected void setTarget(Resource target)" + NL + "\t\t\t{" + NL + "\t\t\t\tbasicSetTarget(target);" + NL + "\t\t\t}" + NL;
- protected final String TEXT_99 = NL + "\t\t\t@Override";
- protected final String TEXT_100 = NL + "\t\t\tprotected void unsetTarget(Resource target)" + NL + "\t\t\t{" + NL + "\t\t\t\tbasicUnsetTarget(target);" + NL + "\t\t\t\tresourceToDiagnosticMap.remove(target);" + NL + "\t\t\t\tdispatchUpdateProblemIndication();" + NL + "\t\t\t}" + NL + "\t\t};";
- protected final String TEXT_101 = NL + NL + "\t/**" + NL + "\t * This listens for workspace changes." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IResourceChangeListener resourceChangeListener =" + NL + "\t\tnew IResourceChangeListener()" + NL + "\t\t{" + NL + "\t\t\tpublic void resourceChanged(IResourceChangeEvent event)" + NL + "\t\t\t{" + NL + "\t\t\t\tIResourceDelta delta = event.getDelta();" + NL + "\t\t\t\ttry" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tclass ResourceDeltaVisitor implements IResourceDeltaVisitor" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tprotected ResourceSet resourceSet = editingDomain.getResourceSet();" + NL + "\t\t\t\t\t\tprotected ";
- protected final String TEXT_102 = " changedResources = new ";
- protected final String TEXT_103 = "();" + NL + "\t\t\t\t\t\tprotected ";
- protected final String TEXT_104 = " removedResources = new ";
- protected final String TEXT_105 = "();" + NL + "" + NL + "\t\t\t\t\t\tpublic boolean visit(";
- protected final String TEXT_106 = "final ";
- protected final String TEXT_107 = "IResourceDelta delta)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tif (delta.getResource().getType() == IResource.FILE)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tif (delta.getKind() == IResourceDelta.REMOVED ||" + NL + "\t\t\t\t\t\t\t\t delta.getKind() == IResourceDelta.CHANGED";
- protected final String TEXT_108 = " && delta.getFlags() != IResourceDelta.MARKERS";
- protected final String TEXT_109 = ")" + NL + "\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t";
- protected final String TEXT_110 = "final ";
- protected final String TEXT_111 = "Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false);" + NL + "\t\t\t\t\t\t\t\t\tif (resource != null)" + NL + "\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\tif (delta.getKind() == IResourceDelta.REMOVED)" + NL + "\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\tremovedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t\t\t}";
- protected final String TEXT_112 = NL + "\t\t\t\t\t\t\t\t\t\telse if (!savedResources.remove(resource))" + NL + "\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\tchangedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t\t\t}";
- protected final String TEXT_113 = NL + "\t\t\t\t\t\t\t\t\t\telse" + NL + "\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\tif ((delta.getFlags() & IResourceDelta.MARKERS) != 0)" + NL + "\t\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\t\t";
- protected final String TEXT_114 = ".DiagnosticAdapter.update(resource, markerHelper.getMarkerDiagnostics(resource, (IFile)delta.getResource()";
- protected final String TEXT_115 = ", false";
- protected final String TEXT_116 = "));" + NL + "\t\t\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t\t\t\tif ((delta.getFlags() & IResourceDelta.CONTENT) != 0)" + NL + "\t\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\t\tif (!savedResources.remove(resource))" + NL + "\t\t\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\t\t\tchangedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t\t\t}";
- protected final String TEXT_117 = NL + "\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\treturn false;" + NL + "\t\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\tpublic ";
- protected final String TEXT_118 = " getChangedResources()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn changedResources;" + NL + "\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\tpublic ";
- protected final String TEXT_119 = " getRemovedResources()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn removedResources;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\tfinal ResourceDeltaVisitor visitor = new ResourceDeltaVisitor();" + NL + "\t\t\t\t\tdelta.accept(visitor);" + NL + "" + NL + "\t\t\t\t\tif (!visitor.getRemovedResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t removedResources.addAll(visitor.getRemovedResources());" + NL + "\t\t\t\t\t\t\t\t\t if (!isDirty())" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t getSite().getPage().closeEditor(";
- protected final String TEXT_120 = ".this, false);" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t });" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\tif (!visitor.getChangedResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t changedResources.addAll(visitor.getChangedResources());" + NL + "\t\t\t\t\t\t\t\t\t if (getSite().getPage().getActiveEditor() == ";
- protected final String TEXT_121 = ".this)" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t handleActivate();" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t });" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (CoreException exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_122 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t};";
- protected final String TEXT_123 = NL + NL + "\t/**" + NL + "\t * Handles activation of the editor or it's associated views." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void handleActivate()" + NL + "\t{" + NL + "\t\t// Recompute the read only state." + NL + "\t\t//" + NL + "\t\tif (editingDomain.getResourceToReadOnlyMap() != null)" + NL + "\t\t{" + NL + "\t\t editingDomain.getResourceToReadOnlyMap().clear();" + NL + "" + NL + "\t\t // Refresh any actions that may become enabled or disabled." + NL + "\t\t //" + NL + "\t\t setSelection(getSelection());" + NL + "\t\t}" + NL + "" + NL + "\t\tif (!removedResources.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tif (handleDirtyConflict())" + NL + "\t\t\t{" + NL + "\t\t\t\tgetSite().getPage().closeEditor(";
- protected final String TEXT_124 = ".this, false);" + NL + "\t\t\t}" + NL + "\t\t\telse" + NL + "\t\t\t{" + NL + "\t\t\t\tremovedResources.clear();" + NL + "\t\t\t\tchangedResources.clear();" + NL + "\t\t\t\tsavedResources.clear();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\telse if (!changedResources.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tchangedResources.removeAll(savedResources);" + NL + "\t\t\thandleChangedResources();" + NL + "\t\t\tchangedResources.clear();" + NL + "\t\t\tsavedResources.clear();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Handles what to do with changed resources on activation." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void handleChangedResources()" + NL + "\t{" + NL + "\t\tif (!changedResources.isEmpty() && (!isDirty() || handleDirtyConflict()))" + NL + "\t\t{" + NL + "\t\t\tif (isDirty())" + NL + "\t\t\t{" + NL + "\t\t\t\tchangedResources.addAll(editingDomain.getResourceSet().getResources());" + NL + "\t\t\t}" + NL + "\t\t\teditingDomain.getCommandStack().flush();" + NL + "" + NL + "\t\t\tupdateProblemIndication = false;";
- protected final String TEXT_125 = NL + "\t\t\tfor (Resource resource : changedResources)";
- protected final String TEXT_126 = NL + "\t\t\tfor (Iterator i = changedResources.iterator(); i.hasNext(); )";
- protected final String TEXT_127 = NL + "\t\t\t{";
- protected final String TEXT_128 = NL + "\t\t\t\tResource resource = (Resource)i.next();";
- protected final String TEXT_129 = NL + "\t\t\t\tif (resource.isLoaded())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tresource.unload();" + NL + "\t\t\t\t\ttry" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tresource.load(Collections.EMPTY_MAP);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcatch (IOException exception)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tif (!resourceToDiagnosticMap.containsKey(resource))" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tresourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL;
- protected final String TEXT_130 = NL + "\t\t\tif (AdapterFactoryEditingDomain.isStale(editorSelection))" + NL + "\t\t\t{" + NL + "\t\t\t\tsetSelection(StructuredSelection.EMPTY);" + NL + "\t\t\t}";
- protected final String TEXT_131 = NL + NL + "\t\t\tupdateProblemIndication = true;" + NL + "\t\t\tupdateProblemIndication();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Updates the problems indication with the information described in the specified diagnostic." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void updateProblemIndication()" + NL + "\t{" + NL + "\t\tif (updateProblemIndication)" + NL + "\t\t{" + NL + "\t\t\tBasicDiagnostic diagnostic =" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(Diagnostic.OK," + NL + "\t\t\t\t\t \"";
- protected final String TEXT_132 = "\",";
- protected final String TEXT_133 = NL + "\t\t\t\t\t 0," + NL + "\t\t\t\t\t null," + NL + "\t\t\t\t\t new Object [] { editingDomain.getResourceSet() });";
- protected final String TEXT_134 = NL + "\t\t\tfor (Diagnostic childDiagnostic : resourceToDiagnosticMap.values())";
- protected final String TEXT_135 = NL + "\t\t\tfor (Iterator i = resourceToDiagnosticMap.values().iterator(); i.hasNext(); )";
- protected final String TEXT_136 = NL + "\t\t\t{";
- protected final String TEXT_137 = NL + "\t\t\t\tDiagnostic childDiagnostic = (Diagnostic)i.next();";
- protected final String TEXT_138 = NL + "\t\t\t\tif (childDiagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tdiagnostic.add(childDiagnostic);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tint lastEditorPage = getPageCount() - 1;" + NL + "\t\t\tif (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart)" + NL + "\t\t\t{" + NL + "\t\t\t\t((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic);" + NL + "\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsetActivePage(lastEditorPage);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\telse if (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t{" + NL + "\t\t\t\tProblemEditorPart problemEditorPart = new ProblemEditorPart();" + NL + "\t\t\t\tproblemEditorPart.setDiagnostic(diagnostic);";
- protected final String TEXT_139 = NL + "\t\t\t\tproblemEditorPart.setMarkerHelper(markerHelper);";
- protected final String TEXT_140 = NL + "\t\t\t\ttry" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\taddPage(++lastEditorPage, problemEditorPart, getEditorInput());" + NL + "\t\t\t\t\tsetPageText(lastEditorPage, problemEditorPart.getPartName());" + NL + "\t\t\t\t\tsetActivePage(lastEditorPage);" + NL + "\t\t\t\t\tshowTabs();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (PartInitException exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_141 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
- protected final String TEXT_142 = NL + NL + "\t\t\tif (markerHelper.hasMarkers(editingDomain.getResourceSet()))" + NL + "\t\t\t{";
- protected final String TEXT_143 = NL + "\t\t\t\tmarkerHelper.deleteMarkers(editingDomain.getResourceSet());" + NL + "\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\ttry" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tmarkerHelper.createMarkers(diagnostic);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcatch (CoreException exception)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_144 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}";
- protected final String TEXT_145 = NL + "\t\t\t\ttry" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tmarkerHelper.updateMarkers(diagnostic);" + NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (CoreException exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_146 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}";
- protected final String TEXT_147 = NL + "\t\t\t}";
- protected final String TEXT_148 = NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Shows a dialog that asks if conflicting changes should be discarded." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean handleDirtyConflict()" + NL + "\t{" + NL + "\t\treturn" + NL + "\t\t\tMessageDialog.openQuestion" + NL + "\t\t\t\t(getSite().getShell()," + NL + "\t\t\t\t getString(\"_UI_FileConflict_label\"),";
- protected final String TEXT_149 = NL + "\t\t\t\t getString(\"_WARN_FileConflict\"));";
- protected final String TEXT_150 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This creates a model editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
- protected final String TEXT_151 = "()" + NL + "\t{" + NL + "\t\tsuper();" + NL + "\t\tinitializeEditingDomain();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This sets up the editing domain for the model editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void initializeEditingDomain()" + NL + "\t{" + NL + "\t\t// Create an adapter factory that yields item providers." + NL + "\t\t//" + NL + "\t\tadapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);" + NL + "" + NL + "\t\tadapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory());";
- protected final String TEXT_152 = NL + "\t\tadapterFactory.addAdapterFactory(new ";
- protected final String TEXT_153 = "());";
- protected final String TEXT_154 = NL + "\t\tadapterFactory.addAdapterFactory(new ";
- protected final String TEXT_155 = "());";
- protected final String TEXT_156 = NL + "\t\tadapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());" + NL + "" + NL + "\t\t// Create the command stack that will notify this editor as commands are executed." + NL + "\t\t//";
- protected final String TEXT_157 = NL + "\t\tBasicCommandStack commandStack = new BasicCommandStack();";
- protected final String TEXT_158 = NL + "\t\tBasicCommandStack commandStack =" + NL + "\t\t\tnew BasicCommandStack()" + NL + "\t\t\t{";
- protected final String TEXT_159 = NL + "\t\t\t\t@Override";
- protected final String TEXT_160 = NL + "\t\t\t\tpublic void execute(Command command)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t// Cancel live validation before executing a command that will trigger a new round of validation." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tif (!(command instanceof ";
- protected final String TEXT_161 = ".NonDirtying))" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t";
- protected final String TEXT_162 = ".cancel(editingDomain);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tsuper.execute(command);" + NL + "\t\t\t\t}" + NL + "\t\t\t};";
- protected final String TEXT_163 = NL + NL + "\t\t// Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus." + NL + "\t\t//" + NL + "\t\tcommandStack.addCommandStackListener" + NL + "\t\t\t(new CommandStackListener()" + NL + "\t\t\t {" + NL + "\t\t\t\t public void commandStackChanged(final EventObject event)" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t getContainer().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t (new Runnable()" + NL + "\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t firePropertyChange(IEditorPart.PROP_DIRTY);" + NL + "" + NL + "\t\t\t\t\t\t\t\t // Try to select the affected objects." + NL + "\t\t\t\t\t\t\t\t //" + NL + "\t\t\t\t\t\t\t\t Command mostRecentCommand = ((CommandStack)event.getSource()).getMostRecentCommand();" + NL + "\t\t\t\t\t\t\t\t if (mostRecentCommand != null)" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t setSelectionToViewer(mostRecentCommand.getAffectedObjects());" + NL + "\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t for (Iterator";
- protected final String TEXT_164 = "<PropertySheetPage>";
- protected final String TEXT_165 = " i = propertySheetPages.iterator(); i.hasNext(); )" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t PropertySheetPage propertySheetPage = ";
- protected final String TEXT_166 = "(PropertySheetPage)";
- protected final String TEXT_167 = "i.next();" + NL + "\t\t\t\t\t\t\t\t\t if (propertySheetPage.getControl().isDisposed())" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t i.remove();" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t\t else" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t propertySheetPage.refresh();" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t });" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL + "" + NL + "\t\t// Create the editing domain with a special command stack." + NL + "\t\t//" + NL + "\t\teditingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new ";
- protected final String TEXT_168 = "());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is here for the listener to be able to call it." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_169 = NL + "\t\t\t@Override";
- protected final String TEXT_170 = NL + "\tprotected void firePropertyChange(int action)" + NL + "\t{" + NL + "\t\tsuper.firePropertyChange(action);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This sets the selection into whichever viewer is active." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setSelectionToViewer(";
- protected final String TEXT_171 = " collection)" + NL + "\t{" + NL + "\t\tfinal ";
- protected final String TEXT_172 = " theSelection = collection;" + NL + "\t\t// Make sure it's okay." + NL + "\t\t//" + NL + "\t\tif (theSelection != null && !theSelection.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tRunnable runnable =" + NL + "\t\t\t\tnew Runnable()" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tpublic void run()" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t// Try to select the items in the current content viewer of the editor." + NL + "\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\tif (currentViewer != null)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tcurrentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\tgetSite().getShell().getDisplay().asyncExec(runnable);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns the editing domain as required by the {@link IEditingDomainProvider} interface." + NL + "\t * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain}" + NL + "\t * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic EditingDomain getEditingDomain()" + NL + "\t{" + NL + "\t\treturn editingDomain;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory)" + NL + "\t\t{" + NL + "\t\t\tsuper(adapterFactory);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
- protected final String TEXT_173 = NL + "\t\t@Override";
- protected final String TEXT_174 = NL + "\t\tpublic Object [] getElements(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
- protected final String TEXT_175 = NL + "\t\t@Override";
- protected final String TEXT_176 = NL + "\t\tpublic Object [] getChildren(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
- protected final String TEXT_177 = NL + "\t\t@Override";
- protected final String TEXT_178 = NL + "\t\tpublic boolean hasChildren(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn parent != null;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
- protected final String TEXT_179 = NL + "\t\t@Override";
- protected final String TEXT_180 = NL + "\t\tpublic Object getParent(Object object)" + NL + "\t\t{" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t}";
- protected final String TEXT_181 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setCurrentViewerPane(ViewerPane viewerPane)" + NL + "\t{" + NL + "\t\tif (currentViewerPane != viewerPane)" + NL + "\t\t{" + NL + "\t\t\tif (currentViewerPane != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tcurrentViewerPane.showFocus(false);" + NL + "\t\t\t}" + NL + "\t\t\tcurrentViewerPane = viewerPane;" + NL + "\t\t}" + NL + "\t\tsetCurrentViewer(currentViewerPane.getViewer());" + NL + "\t}";
- protected final String TEXT_182 = NL + NL + "\t/**" + NL + "\t * This makes sure that one content viewer, either for the current page or the outline view, if it has focus," + NL + "\t * is the current one." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setCurrentViewer(Viewer viewer)" + NL + "\t{" + NL + "\t\t// If it is changing..." + NL + "\t\t//" + NL + "\t\tif (currentViewer != viewer)" + NL + "\t\t{" + NL + "\t\t\tif (selectionChangedListener == null)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Create the listener on demand." + NL + "\t\t\t\t//" + NL + "\t\t\t\tselectionChangedListener =" + NL + "\t\t\t\t\tnew ISelectionChangedListener()" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t// This just notifies those things that are affected by the section." + NL + "\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\tpublic void selectionChanged(SelectionChangedEvent selectionChangedEvent)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsetSelection(selectionChangedEvent.getSelection());" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Stop listening to the old one." + NL + "\t\t\t//" + NL + "\t\t\tif (currentViewer != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tcurrentViewer.removeSelectionChangedListener(selectionChangedListener);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Start listening to the new one." + NL + "\t\t\t//" + NL + "\t\t\tif (viewer != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tviewer.addSelectionChangedListener(selectionChangedListener);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Remember it." + NL + "\t\t\t//" + NL + "\t\t\tcurrentViewer = viewer;" + NL + "" + NL + "\t\t\t// Set the editors selection based on the current viewer's selection." + NL + "\t\t\t//" + NL + "\t\t\tsetSelection(currentViewer == null ? StructuredSelection.EMPTY : currentViewer.getSelection());" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns the viewer as required by the {@link IViewerProvider} interface." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Viewer getViewer()" + NL + "\t{" + NL + "\t\treturn currentViewer;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This creates a context menu for the viewer and adds a listener as well registering the menu for extension." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void createContextMenuFor(StructuredViewer viewer)" + NL + "\t{" + NL + "\t\tMenuManager contextMenu = new MenuManager(\"#PopUp\");";
- protected final String TEXT_183 = NL + "\t\tcontextMenu.add(new Separator(\"additions\"));";
- protected final String TEXT_184 = NL + "\t\tcontextMenu.setRemoveAllWhenShown(true);" + NL + "\t\tcontextMenu.addMenuListener(this);" + NL + "\t\tMenu menu= contextMenu.createContextMenu(viewer.getControl());" + NL + "\t\tviewer.getControl().setMenu(menu);";
- protected final String TEXT_185 = NL + "\t\tgetSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer));";
- protected final String TEXT_186 = NL + "\t\tgetSite().registerContextMenu(contextMenu, viewer);";
- protected final String TEXT_187 = NL + NL + "\t\tint dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;" + NL + "\t\tTransfer[] transfers = new Transfer[] { LocalTransfer.getInstance()";
- protected final String TEXT_188 = ", LocalSelectionTransfer.getTransfer(), FileTransfer.getInstance()";
- protected final String TEXT_189 = " };" + NL + "\t\tviewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer));" + NL + "\t\tviewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(editingDomain, viewer));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is the method called to load a resource into the editing domain's resource set based on the editor's input." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void createModel()" + NL + "\t{";
- protected final String TEXT_190 = NL + "\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput(), editingDomain.getResourceSet().getURIConverter());";
- protected final String TEXT_191 = NL + "\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());";
- protected final String TEXT_192 = NL + "\t\tURI resourceURI = URI.createURI(getEditorInput().getName());";
- protected final String TEXT_193 = NL + "\t\t// Assumes that the input is a file object." + NL + "\t\t//" + NL + "\t\tIFileEditorInput modelFile = (IFileEditorInput)getEditorInput();" + NL + "\t\tURI resourceURI = URI.createPlatformResourceURI(modelFile.getFile().getFullPath().toString(), true);";
- protected final String TEXT_194 = NL + "\t\tException exception = null;" + NL + "\t\tResource resource = null;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\t// Load the resource through the editing domain." + NL + "\t\t\t//" + NL + "\t\t\tresource = editingDomain.getResourceSet().getResource(resourceURI, true);" + NL + "\t\t}" + NL + "\t\tcatch (Exception e)" + NL + "\t\t{" + NL + "\t\t\texception = e;" + NL + "\t\t\tresource = editingDomain.getResourceSet().getResource(resourceURI, false);" + NL + "\t\t}" + NL + "" + NL + "\t\tDiagnostic diagnostic = analyzeResourceProblems(resource, exception);" + NL + "\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t{" + NL + "\t\t\tresourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));" + NL + "\t\t}" + NL + "\t\teditingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns a diagnostic describing the errors and warnings listed in the resource" + NL + "\t * and the specified exception (if any)." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Diagnostic analyzeResourceProblems(Resource resource, Exception exception)" + NL + "\t{" + NL + "\t\tboolean hasErrors = !resource.getErrors().isEmpty();" + NL + "\t\tif (hasErrors || !resource.getWarnings().isEmpty())" + NL + "\t\t{" + NL + "\t\t\tBasicDiagnostic basicDiagnostic =" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(hasErrors ? Diagnostic.ERROR : Diagnostic.WARNING," + NL + "\t\t\t\t\t \"";
- protected final String TEXT_195 = "\",";
- protected final String TEXT_196 = NL + "\t\t\t\t\t 0," + NL + "\t\t\t\t\t getString(\"_UI_CreateModelError_message\", resource.getURI()),";
- protected final String TEXT_197 = NL + "\t\t\t\t\t new Object [] { exception == null ? (Object)resource : exception });" + NL + "\t\t\tbasicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true));" + NL + "\t\t\treturn basicDiagnostic;" + NL + "\t\t}" + NL + "\t\telse if (exception != null)" + NL + "\t\t{" + NL + "\t\t\treturn" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(Diagnostic.ERROR," + NL + "\t\t\t\t\t \"";
- protected final String TEXT_198 = "\",";
- protected final String TEXT_199 = NL + "\t\t\t\t\t 0," + NL + "\t\t\t\t\t getString(\"_UI_CreateModelError_message\", resource.getURI()),";
- protected final String TEXT_200 = NL + "\t\t\t\t\t new Object[] { exception });" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\treturn Diagnostic.OK_INSTANCE;" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is the method used by the framework to install your own controls." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_201 = NL + "\t@Override";
- protected final String TEXT_202 = NL + "\tpublic void createPages()" + NL + "\t{" + NL + "\t\t// Creates the model from the editor input" + NL + "\t\t//" + NL + "\t\tcreateModel();" + NL + "" + NL + "\t\t// Only creates the other pages if there is something that can be edited" + NL + "\t\t//" + NL + "\t\tif (!getEditingDomain().getResourceSet().getResources().isEmpty())" + NL + "\t\t{" + NL + "\t\t\t// Create a page for the selection tree view." + NL + "\t\t\t//";
- protected final String TEXT_203 = NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
- protected final String TEXT_204 = ".this)" + NL + "\t\t\t\t\t{";
- protected final String TEXT_205 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_206 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tTree tree = new Tree(composite, SWT.MULTI);" + NL + "\t\t\t\t\t\t\tTreeViewer newTreeViewer = new TreeViewer(tree);" + NL + "\t\t\t\t\t\t\treturn newTreeViewer;" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_207 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_208 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\tselectionViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\tselectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\tselectionViewer.setUseHashlookup(true);" + NL + "" + NL + "\t\t\t\tselectionViewer.setLabelProvider(";
- protected final String TEXT_209 = "new ";
- protected final String TEXT_210 = "(";
- protected final String TEXT_211 = "new ";
- protected final String TEXT_212 = "(";
- protected final String TEXT_213 = "new ";
- protected final String TEXT_214 = "(adapterFactory";
- protected final String TEXT_215 = ", selectionViewer";
- protected final String TEXT_216 = ")";
- protected final String TEXT_217 = ", new ";
- protected final String TEXT_218 = "(editingDomain";
- protected final String TEXT_219 = ".getResourceSet()";
- protected final String TEXT_220 = ", selectionViewer";
- protected final String TEXT_221 = ", ";
- protected final String TEXT_222 = ".getPlugin().getDialogSettings()";
- protected final String TEXT_223 = "))";
- protected final String TEXT_224 = ")";
- protected final String TEXT_225 = ");" + NL + "\t\t\t\tselectionViewer.setInput(editingDomain.getResourceSet());" + NL + "\t\t\t\tselectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "\t\t\t\tviewerPane.setTitle(editingDomain.getResourceSet());" + NL + "" + NL + "\t\t\t\tnew AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);";
- protected final String TEXT_226 = NL + "\t\t\t\tnew ";
- protected final String TEXT_227 = "(selectionViewer, new ";
- protected final String TEXT_228 = ".EditingDomainLocationListener(editingDomain, selectionViewer));";
- protected final String TEXT_229 = NL + NL + "\t\t\t\tcreateContextMenuFor(selectionViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));";
- protected final String TEXT_230 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Create a page for the parent tree view." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
- protected final String TEXT_231 = ".this)" + NL + "\t\t\t\t\t{";
- protected final String TEXT_232 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_233 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tTree tree = new Tree(composite, SWT.MULTI);" + NL + "\t\t\t\t\t\t\tTreeViewer newTreeViewer = new TreeViewer(tree);" + NL + "\t\t\t\t\t\t\treturn newTreeViewer;" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_234 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_235 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\tparentViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\tparentViewer.setAutoExpandLevel(30);" + NL + "\t\t\t\tparentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\tparentViewer.setLabelProvider(";
- protected final String TEXT_236 = "new ";
- protected final String TEXT_237 = "(";
- protected final String TEXT_238 = "new ";
- protected final String TEXT_239 = "(adapterFactory";
- protected final String TEXT_240 = ", parentViewer";
- protected final String TEXT_241 = ")";
- protected final String TEXT_242 = ")";
- protected final String TEXT_243 = ");" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(parentViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_ParentPage_label\"));";
- protected final String TEXT_244 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the list viewer" + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
- protected final String TEXT_245 = ".this)" + NL + "\t\t\t\t\t{";
- protected final String TEXT_246 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_247 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new ListViewer(composite);" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_248 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_249 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\tlistViewer = (ListViewer)viewerPane.getViewer();" + NL + "\t\t\t\tlistViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\tlistViewer.setLabelProvider(";
- protected final String TEXT_250 = "new ";
- protected final String TEXT_251 = "(";
- protected final String TEXT_252 = "new ";
- protected final String TEXT_253 = "(adapterFactory";
- protected final String TEXT_254 = ", listViewer";
- protected final String TEXT_255 = ")";
- protected final String TEXT_256 = ")";
- protected final String TEXT_257 = ");" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(listViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_ListPage_label\"));";
- protected final String TEXT_258 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the tree viewer" + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
- protected final String TEXT_259 = ".this)" + NL + "\t\t\t\t\t{";
- protected final String TEXT_260 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_261 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new TreeViewer(composite);" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_262 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_263 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\ttreeViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\ttreeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttreeViewer.setLabelProvider(";
- protected final String TEXT_264 = "new ";
- protected final String TEXT_265 = "(";
- protected final String TEXT_266 = "new ";
- protected final String TEXT_267 = "(";
- protected final String TEXT_268 = "new ";
- protected final String TEXT_269 = "(adapterFactory";
- protected final String TEXT_270 = ", treeViewer";
- protected final String TEXT_271 = ")";
- protected final String TEXT_272 = ", new ";
- protected final String TEXT_273 = "(editingDomain";
- protected final String TEXT_274 = ".getResourceSet()";
- protected final String TEXT_275 = ", treeViewer))";
- protected final String TEXT_276 = ")";
- protected final String TEXT_277 = ");" + NL + "" + NL + "\t\t\t\tnew AdapterFactoryTreeEditor(treeViewer.getTree(), adapterFactory);";
- protected final String TEXT_278 = NL + "\t\t\t\tnew ";
- protected final String TEXT_279 = "(treeViewer, new ";
- protected final String TEXT_280 = ".EditingDomainLocationListener(editingDomain, treeViewer));";
- protected final String TEXT_281 = NL + NL + "\t\t\t\tcreateContextMenuFor(treeViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TreePage_label\"));";
- protected final String TEXT_282 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the table viewer." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
- protected final String TEXT_283 = ".this)" + NL + "\t\t\t\t\t{";
- protected final String TEXT_284 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_285 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new TableViewer(composite);" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_286 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_287 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\ttableViewer = (TableViewer)viewerPane.getViewer();" + NL + "" + NL + "\t\t\t\tTable table = tableViewer.getTable();" + NL + "\t\t\t\tTableLayout layout = new TableLayout();" + NL + "\t\t\t\ttable.setLayout(layout);" + NL + "\t\t\t\ttable.setHeaderVisible(true);" + NL + "\t\t\t\ttable.setLinesVisible(true);" + NL + "" + NL + "\t\t\t\tTableColumn objectColumn = new TableColumn(table, SWT.NONE);" + NL + "\t\t\t\tlayout.addColumnData(new ColumnWeightData(3, 100, true));" + NL + "\t\t\t\tobjectColumn.setText(getString(\"_UI_ObjectColumn_label\"));";
- protected final String TEXT_288 = NL + "\t\t\t\tobjectColumn.setResizable(true);" + NL + "" + NL + "\t\t\t\tTableColumn selfColumn = new TableColumn(table, SWT.NONE);" + NL + "\t\t\t\tlayout.addColumnData(new ColumnWeightData(2, 100, true));" + NL + "\t\t\t\tselfColumn.setText(getString(\"_UI_SelfColumn_label\"));";
- protected final String TEXT_289 = NL + "\t\t\t\tselfColumn.setResizable(true);" + NL + "" + NL + "\t\t\t\ttableViewer.setColumnProperties(new String [] {\"a\", \"b\"});";
- protected final String TEXT_290 = NL + "\t\t\t\ttableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttableViewer.setLabelProvider(";
- protected final String TEXT_291 = "new ";
- protected final String TEXT_292 = "(";
- protected final String TEXT_293 = "new ";
- protected final String TEXT_294 = "(";
- protected final String TEXT_295 = "new ";
- protected final String TEXT_296 = "(adapterFactory";
- protected final String TEXT_297 = ", tableViewer";
- protected final String TEXT_298 = ")";
- protected final String TEXT_299 = ", new ";
- protected final String TEXT_300 = "(editingDomain";
- protected final String TEXT_301 = ".getResourceSet()";
- protected final String TEXT_302 = ", tableViewer";
- protected final String TEXT_303 = ", ";
- protected final String TEXT_304 = ".getPlugin().getDialogSettings()";
- protected final String TEXT_305 = "))";
- protected final String TEXT_306 = ")";
- protected final String TEXT_307 = ");" + NL;
- protected final String TEXT_308 = NL + "\t\t\t\tnew ";
- protected final String TEXT_309 = "(tableViewer, new ";
- protected final String TEXT_310 = ".EditingDomainLocationListener(editingDomain, tableViewer));" + NL;
- protected final String TEXT_311 = NL + "\t\t\t\tcreateContextMenuFor(tableViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TablePage_label\"));";
- protected final String TEXT_312 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the table tree viewer." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
- protected final String TEXT_313 = ".this)" + NL + "\t\t\t\t\t{";
- protected final String TEXT_314 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_315 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new TreeViewer(composite);" + NL + "\t\t\t\t\t\t}";
- protected final String TEXT_316 = NL + "\t\t\t\t\t\t@Override";
- protected final String TEXT_317 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\ttreeViewerWithColumns = (TreeViewer)viewerPane.getViewer();" + NL + "" + NL + "\t\t\t\tTree tree = treeViewerWithColumns.getTree();" + NL + "\t\t\t\ttree.setLayoutData(new FillLayout());" + NL + "\t\t\t\ttree.setHeaderVisible(true);" + NL + "\t\t\t\ttree.setLinesVisible(true);" + NL + "" + NL + "\t\t\t\tTreeColumn objectColumn = new TreeColumn(tree, SWT.NONE);" + NL + "\t\t\t\tobjectColumn.setText(getString(\"_UI_ObjectColumn_label\"));";
- protected final String TEXT_318 = NL + "\t\t\t\tobjectColumn.setResizable(true);" + NL + "\t\t\t\tobjectColumn.setWidth(250);" + NL + "" + NL + "\t\t\t\tTreeColumn selfColumn = new TreeColumn(tree, SWT.NONE);" + NL + "\t\t\t\tselfColumn.setText(getString(\"_UI_SelfColumn_label\"));";
- protected final String TEXT_319 = NL + "\t\t\t\tselfColumn.setResizable(true);" + NL + "\t\t\t\tselfColumn.setWidth(200);" + NL + "" + NL + "\t\t\t\ttreeViewerWithColumns.setColumnProperties(new String [] {\"a\", \"b\"});";
- protected final String TEXT_320 = NL + "\t\t\t\ttreeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttreeViewerWithColumns.setLabelProvider(";
- protected final String TEXT_321 = "new ";
- protected final String TEXT_322 = "(";
- protected final String TEXT_323 = "new ";
- protected final String TEXT_324 = "(";
- protected final String TEXT_325 = "new ";
- protected final String TEXT_326 = "(adapterFactory";
- protected final String TEXT_327 = ", treeViewerWithColumns";
- protected final String TEXT_328 = ")";
- protected final String TEXT_329 = ", new ";
- protected final String TEXT_330 = "(editingDomain";
- protected final String TEXT_331 = ".getResourceSet()";
- protected final String TEXT_332 = ", treeViewerWithColumns";
- protected final String TEXT_333 = ", ";
- protected final String TEXT_334 = ".getPlugin().getDialogSettings()";
- protected final String TEXT_335 = "))";
- protected final String TEXT_336 = ")";
- protected final String TEXT_337 = ");" + NL;
- protected final String TEXT_338 = NL + "\t\t\t\tnew ";
- protected final String TEXT_339 = "(treeViewerWithColumns, new ";
- protected final String TEXT_340 = ".EditingDomainLocationListener(editingDomain, treeViewerWithColumns));" + NL;
- protected final String TEXT_341 = NL + "\t\t\t\tcreateContextMenuFor(treeViewerWithColumns);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TreeWithColumnsPage_label\"));";
- protected final String TEXT_342 = NL + "\t\t\t}";
- protected final String TEXT_343 = NL + "\t\t\tTree tree = new Tree(getContainer(), SWT.MULTI);" + NL + "\t\t\tselectionViewer = new TreeViewer(tree);" + NL + "\t\t\tsetCurrentViewer(selectionViewer);" + NL + "" + NL + "\t\t\tselectionViewer.setUseHashlookup(true);" + NL + "\t\t\tselectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\tselectionViewer.setLabelProvider(";
- protected final String TEXT_344 = "new ";
- protected final String TEXT_345 = "(";
- protected final String TEXT_346 = "new ";
- protected final String TEXT_347 = "(";
- protected final String TEXT_348 = "new ";
- protected final String TEXT_349 = "(adapterFactory";
- protected final String TEXT_350 = ", selectionViewer";
- protected final String TEXT_351 = ")";
- protected final String TEXT_352 = ", new ";
- protected final String TEXT_353 = "(editingDomain";
- protected final String TEXT_354 = ".getResourceSet()";
- protected final String TEXT_355 = ", selectionViewer";
- protected final String TEXT_356 = ", ";
- protected final String TEXT_357 = ".getPlugin().getDialogSettings()";
- protected final String TEXT_358 = "))";
- protected final String TEXT_359 = ")";
- protected final String TEXT_360 = ");" + NL + "\t\t\tselectionViewer.setInput(editingDomain.getResourceSet());" + NL + "\t\t\tselectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "" + NL + "\t\t\tnew AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);";
- protected final String TEXT_361 = NL + "\t\t\tnew ";
- protected final String TEXT_362 = "(selectionViewer, new ";
- protected final String TEXT_363 = ".EditingDomainLocationListener(editingDomain, selectionViewer));";
- protected final String TEXT_364 = NL + NL + "\t\t\tcreateContextMenuFor(selectionViewer);" + NL + "\t\t\tint pageIndex = addPage(tree);" + NL + "\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));";
- protected final String TEXT_365 = NL + NL + "\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t(new Runnable()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t if (!getContainer().isDisposed())" + NL + "\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t setActivePage(0);" + NL + "\t\t\t\t\t\t }" + NL + "\t\t\t\t\t }" + NL + "\t\t\t\t });" + NL + "\t\t}" + NL + "" + NL + "\t\t// Ensures that this editor will only display the page's tab" + NL + "\t\t// area if there are more than one page" + NL + "\t\t//" + NL + "\t\tgetContainer().addControlListener" + NL + "\t\t\t(new ControlAdapter()" + NL + "\t\t\t {" + NL + "\t\t\t\tboolean guard = false;";
- protected final String TEXT_366 = NL + "\t\t\t\t@Override";
- protected final String TEXT_367 = NL + "\t\t\t\tpublic void controlResized(ControlEvent event)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tif (!guard)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tguard = true;" + NL + "\t\t\t\t\t\thideTabs();" + NL + "\t\t\t\t\t\tguard = false;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t });" + NL + "" + NL + "\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t(new Runnable()" + NL + "\t\t\t {" + NL + "\t\t\t\t public void run()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t updateProblemIndication();" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * If there is just one page in the multi-page editor part," + NL + "\t * this hides the single tab at the bottom." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void hideTabs()" + NL + "\t{" + NL + "\t\tif (getPageCount() <= 1)" + NL + "\t\t{" + NL + "\t\t\tsetPageText(0, \"\");";
- protected final String TEXT_368 = NL + "\t\t\tif (getContainer() instanceof CTabFolder)" + NL + "\t\t\t{" + NL + "\t\t\t\tPoint point = getContainer().getSize();" + NL + "\t\t\t\tRectangle clientArea = getContainer().getClientArea();" + NL + "\t\t\t\tgetContainer().setSize(point.x, 2 * point.y - clientArea.height - clientArea.y);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * If there is more than one page in the multi-page editor part," + NL + "\t * this shows the tabs at the bottom." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void showTabs()" + NL + "\t{" + NL + "\t\tif (getPageCount() > 1)" + NL + "\t\t{" + NL + "\t\t\tsetPageText(0, getString(\"_UI_SelectionPage_label\"));";
- protected final String TEXT_369 = NL + "\t\t\tif (getContainer() instanceof CTabFolder)" + NL + "\t\t\t{" + NL + "\t\t\t\tPoint point = getContainer().getSize();" + NL + "\t\t\t\tRectangle clientArea = getContainer().getClientArea();" + NL + "\t\t\t\tgetContainer().setSize(point.x, clientArea.height + clientArea.y);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is used to track the active viewer." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_370 = NL + "\t@Override";
- protected final String TEXT_371 = NL + "\tprotected void pageChange(int pageIndex)" + NL + "\t{" + NL + "\t\tsuper.pageChange(pageIndex);" + NL + "" + NL + "\t\tif (contentOutlinePage != null)" + NL + "\t\t{" + NL + "\t\t\thandleContentOutlineSelection(contentOutlinePage.getSelection());" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is how the framework determines which interfaces we implement." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_372 = NL + "\t@SuppressWarnings(\"";
- protected final String TEXT_373 = "rawtypes";
- protected final String TEXT_374 = "unchecked";
- protected final String TEXT_375 = "\")";
- protected final String TEXT_376 = NL + "\t@Override";
- protected final String TEXT_377 = NL + "\tpublic <T> T getAdapter(Class<T> key)";
- protected final String TEXT_378 = NL + "\tpublic Object getAdapter(Class key)";
- protected final String TEXT_379 = NL + "\t{" + NL + "\t\tif (key.equals(IContentOutlinePage.class))" + NL + "\t\t{";
- protected final String TEXT_380 = NL + "\t\t\treturn showOutlineView() ? key.cast(getContentOutlinePage()) : null;";
- protected final String TEXT_381 = NL + "\t\t\treturn showOutlineView() ? getContentOutlinePage() : null;";
- protected final String TEXT_382 = NL + "\t\t}" + NL + "\t\telse if (key.equals(IPropertySheetPage.class))" + NL + "\t\t{";
- protected final String TEXT_383 = NL + "\t\t\treturn key.cast(getPropertySheetPage());";
- protected final String TEXT_384 = NL + "\t\t\treturn getPropertySheetPage();";
- protected final String TEXT_385 = NL + "\t\t}";
- protected final String TEXT_386 = NL + "\t\telse if (key.equals(IGotoMarker.class))" + NL + "\t\t{";
- protected final String TEXT_387 = NL + "\t\t\treturn key.cast(this);";
- protected final String TEXT_388 = NL + "\t\t\treturn this;";
- protected final String TEXT_389 = NL + "\t\t}";
- protected final String TEXT_390 = NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\treturn super.getAdapter(key);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This accesses a cached version of the content outliner." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IContentOutlinePage getContentOutlinePage()" + NL + "\t{" + NL + "\t\tif (contentOutlinePage == null)" + NL + "\t\t{" + NL + "\t\t\t// The content outline is just a tree." + NL + "\t\t\t//" + NL + "\t\t\tclass MyContentOutlinePage extends ContentOutlinePage" + NL + "\t\t\t{";
- protected final String TEXT_391 = NL + "\t\t\t\t@Override";
- protected final String TEXT_392 = NL + "\t\t\t\tpublic void createControl(Composite parent)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.createControl(parent);" + NL + "\t\t\t\t\tcontentOutlineViewer = getTreeViewer();" + NL + "\t\t\t\t\tcontentOutlineViewer.addSelectionChangedListener(this);" + NL + "" + NL + "\t\t\t\t\t// Set up the tree viewer." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tcontentOutlineViewer.setUseHashlookup(true);" + NL + "\t\t\t\t\tcontentOutlineViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\t\tcontentOutlineViewer.setLabelProvider(";
- protected final String TEXT_393 = "new ";
- protected final String TEXT_394 = "(";
- protected final String TEXT_395 = "new ";
- protected final String TEXT_396 = "(";
- protected final String TEXT_397 = "new ";
- protected final String TEXT_398 = "(adapterFactory";
- protected final String TEXT_399 = ", contentOutlineViewer";
- protected final String TEXT_400 = ")";
- protected final String TEXT_401 = ", new ";
- protected final String TEXT_402 = "(editingDomain";
- protected final String TEXT_403 = ".getResourceSet()";
- protected final String TEXT_404 = ", contentOutlineViewer";
- protected final String TEXT_405 = ", ";
- protected final String TEXT_406 = ".getPlugin().getDialogSettings()";
- protected final String TEXT_407 = "))";
- protected final String TEXT_408 = ")";
- protected final String TEXT_409 = ");" + NL + "\t\t\t\t\tcontentOutlineViewer.setInput(editingDomain.getResourceSet());" + NL;
- protected final String TEXT_410 = NL + "\t\t\t\t\tnew ";
- protected final String TEXT_411 = "(contentOutlineViewer, new ";
- protected final String TEXT_412 = ".EditingDomainLocationListener(editingDomain, contentOutlineViewer));" + NL;
- protected final String TEXT_413 = NL + "\t\t\t\t\t// Make sure our popups work." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tcreateContextMenuFor(contentOutlineViewer);" + NL + "" + NL + "\t\t\t\t\tif (!editingDomain.getResourceSet().getResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t // Select the root object in the view." + NL + "\t\t\t\t\t //" + NL + "\t\t\t\t\t contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL;
- protected final String TEXT_414 = NL + "\t\t\t\t@Override";
- protected final String TEXT_415 = NL + "\t\t\t\tpublic void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.makeContributions(menuManager, toolBarManager, statusLineManager);" + NL + "\t\t\t\t\tcontentOutlineStatusLineManager = statusLineManager;" + NL + "\t\t\t\t}" + NL;
- protected final String TEXT_416 = NL + "\t\t\t\t@Override";
- protected final String TEXT_417 = NL + "\t\t\t\tpublic void setActionBars(IActionBars actionBars)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.setActionBars(actionBars);" + NL + "\t\t\t\t\tgetActionBarContributor().shareGlobalActions(this, actionBars);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tcontentOutlinePage = new MyContentOutlinePage();" + NL + "" + NL + "\t\t\t// Listen to selection so that we can handle it is a special way." + NL + "\t\t\t//" + NL + "\t\t\tcontentOutlinePage.addSelectionChangedListener" + NL + "\t\t\t\t(new ISelectionChangedListener()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t // This ensures that we handle selections correctly." + NL + "\t\t\t\t\t //" + NL + "\t\t\t\t\t public void selectionChanged(SelectionChangedEvent event)" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t handleContentOutlineSelection(event.getSelection());" + NL + "\t\t\t\t\t }" + NL + "\t\t\t\t });" + NL + "\t\t}" + NL + "" + NL + "\t\treturn contentOutlinePage;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This accesses a cached version of the property sheet." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IPropertySheetPage getPropertySheetPage()" + NL + "\t{" + NL + "\t\tPropertySheetPage propertySheetPage =" + NL + "\t\t\tnew ExtendedPropertySheetPage(editingDomain";
- protected final String TEXT_418 = ", ExtendedPropertySheetPage.Decoration.MANUAL";
- protected final String TEXT_419 = ", ExtendedPropertySheetPage.Decoration.LIVE, ";
- protected final String TEXT_420 = ".getPlugin().getDialogSettings()";
- protected final String TEXT_421 = ", ";
- protected final String TEXT_422 = "ExtendedPropertySheetPage.Decoration.NONE, ";
- protected final String TEXT_423 = "null, ";
- protected final String TEXT_424 = ", ";
- protected final String TEXT_425 = ")" + NL + "\t\t\t{";
- protected final String TEXT_426 = NL + "\t\t\t\t@Override";
- protected final String TEXT_427 = NL + "\t\t\t\tpublic void setSelectionToViewer(";
- protected final String TEXT_428 = " selection)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_429 = ".this.setSelectionToViewer(selection);" + NL + "\t\t\t\t\t";
- protected final String TEXT_430 = ".this.setFocus();" + NL + "\t\t\t\t}" + NL;
- protected final String TEXT_431 = NL + "\t\t\t\t@Override";
- protected final String TEXT_432 = NL + "\t\t\t\tpublic void setActionBars(IActionBars actionBars)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.setActionBars(actionBars);" + NL + "\t\t\t\t\tgetActionBarContributor().shareGlobalActions(this, actionBars);" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\tpropertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\tpropertySheetPages.add(propertySheetPage);" + NL + "" + NL + "\t\treturn propertySheetPage;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This deals with how we want selection in the outliner to affect the other views." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void handleContentOutlineSelection(ISelection selection)" + NL + "\t{";
- protected final String TEXT_433 = NL + "\t\tif (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection)";
- protected final String TEXT_434 = NL + "\t\tif (selectionViewer != null && !selection.isEmpty() && selection instanceof IStructuredSelection)";
- protected final String TEXT_435 = NL + "\t\t{" + NL + "\t\t\tIterator";
- protected final String TEXT_436 = "<?>";
- protected final String TEXT_437 = " selectedElements = ((IStructuredSelection)selection).iterator();" + NL + "\t\t\tif (selectedElements.hasNext())" + NL + "\t\t\t{" + NL + "\t\t\t\t// Get the first selected element." + NL + "\t\t\t\t//" + NL + "\t\t\t\tObject selectedElement = selectedElements.next();" + NL;
- protected final String TEXT_438 = NL + "\t\t\t\t// If it's the selection viewer, then we want it to select the same selection as this selection." + NL + "\t\t\t\t//" + NL + "\t\t\t\tif (currentViewerPane.getViewer() == selectionViewer)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_439 = " selectionList = new ";
- protected final String TEXT_440 = "();" + NL + "\t\t\t\t\tselectionList.add(selectedElement);" + NL + "\t\t\t\t\twhile (selectedElements.hasNext())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tselectionList.add(selectedElements.next());" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t// Set the selection to the widget." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tselectionViewer.setSelection(new StructuredSelection(selectionList));" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t// Set the input to the widget." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tif (currentViewerPane.getViewer().getInput() != selectedElement)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tcurrentViewerPane.getViewer().setInput(selectedElement);" + NL + "\t\t\t\t\t\tcurrentViewerPane.setTitle(selectedElement);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}";
- protected final String TEXT_441 = NL + "\t\t\t\t";
- protected final String TEXT_442 = " selectionList = new ";
- protected final String TEXT_443 = "();" + NL + "\t\t\t\tselectionList.add(selectedElement);" + NL + "\t\t\t\twhile (selectedElements.hasNext())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tselectionList.add(selectedElements.next());" + NL + "\t\t\t\t}" + NL + "" + NL + "\t\t\t\t// Set the selection to the widget." + NL + "\t\t\t\t//" + NL + "\t\t\t\tselectionViewer.setSelection(new StructuredSelection(selectionList));";
- protected final String TEXT_444 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is for implementing {@link IEditorPart} and simply tests the command stack." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_445 = NL + "\t@Override";
- protected final String TEXT_446 = NL + "\tpublic boolean isDirty()" + NL + "\t{" + NL + "\t\treturn ((BasicCommandStack)editingDomain.getCommandStack()).isSaveNeeded();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is for implementing {@link IEditorPart} and simply saves the model file." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_447 = NL + "\t@Override";
- protected final String TEXT_448 = NL + "\tpublic void doSave(IProgressMonitor progressMonitor)" + NL + "\t{" + NL + "\t\t// Save only resources that have actually changed." + NL + "\t\t//" + NL + "\t\tfinal ";
- protected final String TEXT_449 = " saveOptions = new ";
- protected final String TEXT_450 = "();";
- protected final String TEXT_451 = NL + "\t\tsaveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);";
- protected final String TEXT_452 = NL + "\t\tsaveOptions.put(Resource.OPTION_LINE_DELIMITER, Resource.OPTION_LINE_DELIMITER_UNSPECIFIED);";
- protected final String TEXT_453 = NL + NL + "\t\t// Do the work within an operation because this is a long running activity that modifies the workbench." + NL + "\t\t//" + NL + "\t\t";
- protected final String TEXT_454 = " operation =" + NL + "\t\t\tnew ";
- protected final String TEXT_455 = "()" + NL + "\t\t\t{" + NL + "\t\t\t\t// This is the method that gets invoked when the operation runs." + NL + "\t\t\t\t//";
- protected final String TEXT_456 = NL + "\t\t\t\t@Override";
- protected final String TEXT_457 = NL + "\t\t\t\tpublic void ";
- protected final String TEXT_458 = "(IProgressMonitor monitor)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t// Save the resources to the file system." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tboolean first = true;" + NL + "\t\t\t\t\t";
- protected final String TEXT_459 = " resources = editingDomain.getResourceSet().getResources();" + NL + "\t\t\t\t\tfor (int i = 0; i < resources.size(); ++i)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tResource resource = ";
- protected final String TEXT_460 = "(Resource)";
- protected final String TEXT_461 = "resources.get(i);" + NL + "\t\t\t\t\t\tif ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource))" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\ttry" + NL + "\t\t\t\t\t\t\t{";
- protected final String TEXT_462 = NL + "\t\t\t\t\t\t\t\tlong timeStamp = resource.getTimeStamp();" + NL + "\t\t\t\t\t\t\t\tresource.save(saveOptions);" + NL + "\t\t\t\t\t\t\t\tif (resource.getTimeStamp() != timeStamp)" + NL + "\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\tsavedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t}";
- protected final String TEXT_463 = NL + "\t\t\t\t\t\t\t\tresource.save(saveOptions);" + NL + "\t\t\t\t\t\t\t\tsavedResources.add(resource);";
- protected final String TEXT_464 = NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\tcatch (Exception exception)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tresourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\tfirst = false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "" + NL + "\t\tupdateProblemIndication = false;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\t// This runs the options, and shows progress." + NL + "\t\t\t//" + NL + "\t\t\tnew ProgressMonitorDialog(getSite().getShell()).run(true, false, operation);" + NL + "" + NL + "\t\t\t// Refresh the necessary state." + NL + "\t\t\t//" + NL + "\t\t\t((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone();" + NL + "\t\t\tfirePropertyChange(IEditorPart.PROP_DIRTY);" + NL + "\t\t}" + NL + "\t\tcatch (Exception exception)" + NL + "\t\t{" + NL + "\t\t\t// Something went wrong that shouldn't." + NL + "\t\t\t//" + NL + "\t\t\t";
- protected final String TEXT_465 = ".INSTANCE.log(exception);" + NL + "\t\t}" + NL + "\t\tupdateProblemIndication = true;" + NL + "\t\tupdateProblemIndication();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns whether something has been persisted to the URI of the specified resource." + NL + "\t * The implementation uses the URI converter from the editor's resource set to try to open an input stream." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isPersisted(Resource resource)" + NL + "\t{" + NL + "\t\tboolean result = false;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\tInputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI());" + NL + "\t\t\tif (stream != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tresult = true;" + NL + "\t\t\t\tstream.close();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tcatch (IOException e)" + NL + "\t\t{" + NL + "\t\t\t// Ignore" + NL + "\t\t}" + NL + "\t\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This always returns true because it is not currently supported." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_466 = NL + "\t@Override";
- protected final String TEXT_467 = NL + "\tpublic boolean isSaveAsAllowed()" + NL + "\t{" + NL + "\t\treturn true;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This also changes the editor's input." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_468 = NL + "\t@Override";
- protected final String TEXT_469 = NL + "\tpublic void doSaveAs()" + NL + "\t{";
- protected final String TEXT_470 = NL + "\t\tnew ";
- protected final String TEXT_471 = "(getSite().getShell(), null, SWT.NONE)" + NL + "\t\t\t{";
- protected final String TEXT_472 = NL + "\t\t\t\t@Override";
- protected final String TEXT_473 = NL + "\t\t\t\tprotected boolean isSave()" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\treturn true;" + NL + "\t\t\t\t}" + NL;
- protected final String TEXT_474 = NL + "\t\t\t\t@Override";
- protected final String TEXT_475 = NL + "\t\t\t\tprotected boolean processResources()" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
- protected final String TEXT_476 = " uris = getURIs();" + NL + "\t\t\t\t\tif (uris.size() > 0)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tURI uri = ";
- protected final String TEXT_477 = "uris.get(0);" + NL + "\t\t\t\t\t\tdoSaveAs(uri, new ";
- protected final String TEXT_478 = "(uri));" + NL + "\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\telse" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\treturn false;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}.open();";
- protected final String TEXT_479 = NL + "\t\tString[] filters = ";
- protected final String TEXT_480 = "(String[])";
- protected final String TEXT_481 = "FILE_EXTENSION_FILTERS.toArray(new String[FILE_EXTENSION_FILTERS.size()]);" + NL + "\t\tString[] files = ";
- protected final String TEXT_482 = ".openFilePathDialog(getSite().getShell(), ";
- protected final String TEXT_483 = ".SAVE, filters);" + NL + "\t\tif (files.length > 0)" + NL + "\t\t{" + NL + "\t\t\tURI uri = URI.createFileURI(files[0]);" + NL + "\t\t\tdoSaveAs(uri, new ";
- protected final String TEXT_484 = "(uri));" + NL + "\t\t}";
- protected final String TEXT_485 = NL + "\t\tSaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());" + NL + "\t\tsaveAsDialog.open();" + NL + "\t\tIPath path = saveAsDialog.getResult();" + NL + "\t\tif (path != null)" + NL + "\t\t{" + NL + "\t\t\tIFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);" + NL + "\t\t\tif (file != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tdoSaveAs(URI.createPlatformResourceURI(file.getFullPath().toString(), true), new FileEditorInput(file));" + NL + "\t\t\t}" + NL + "\t\t}";
- protected final String TEXT_486 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void doSaveAs(URI uri, IEditorInput editorInput)" + NL + "\t{" + NL + "\t\t(";
- protected final String TEXT_487 = "(Resource)";
- protected final String TEXT_488 = "editingDomain.getResourceSet().getResources().get(0)).setURI(uri);" + NL + "\t\tsetInputWithNotify(editorInput);" + NL + "\t\tsetPartName(editorInput.getName());" + NL + "\t\tIProgressMonitor progressMonitor =" + NL + "\t\t\tgetActionBars().getStatusLineManager() != null ?" + NL + "\t\t\t\tgetActionBars().getStatusLineManager().getProgressMonitor() :" + NL + "\t\t\t\tnew ";
- protected final String TEXT_489 = "();" + NL + "\t\tdoSave(progressMonitor);" + NL + "\t}";
- protected final String TEXT_490 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void gotoMarker(IMarker marker)" + NL + "\t{";
- protected final String TEXT_491 = NL + "\t\t";
- protected final String TEXT_492 = " targetObjects = markerHelper.getTargetObjects(editingDomain, marker);" + NL + "\t\tif (!targetObjects.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tsetSelectionToViewer(targetObjects);" + NL + "\t\t}";
- protected final String TEXT_493 = NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\tif (marker.isSubtypeOf(EValidator.MARKER))" + NL + "\t\t\t{" + NL + "\t\t\t\tString uriAttribute = marker.getAttribute(EValidator.URI_ATTRIBUTE, null);" + NL + "\t\t\t\tif (uriAttribute != null)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tURI uri = URI.createURI(uriAttribute);" + NL + "\t\t\t\t\tEObject eObject = editingDomain.getResourceSet().getEObject(uri, true);" + NL + "\t\t\t\t\tif (eObject != null)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t setSelectionToViewer(Collections.singleton(editingDomain.getWrapper(eObject)));" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tcatch (CoreException exception)" + NL + "\t\t{" + NL + "\t\t\t";
- protected final String TEXT_494 = ".INSTANCE.log(exception);" + NL + "\t\t}";
- protected final String TEXT_495 = NL + "\t}";
- protected final String TEXT_496 = NL + NL + "\t/**" + NL + "\t * This is called during startup." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_497 = NL + "\t@Override";
- protected final String TEXT_498 = NL + "\tpublic void init(IEditorSite site, IEditorInput editorInput)" + NL + "\t{" + NL + "\t\tsetSite(site);" + NL + "\t\tsetInputWithNotify(editorInput);" + NL + "\t\tsetPartName(editorInput.getName());" + NL + "\t\tsite.setSelectionProvider(this);" + NL + "\t\tsite.getPage().addPartListener(partListener);";
- protected final String TEXT_499 = NL + "\t\tResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE);";
- protected final String TEXT_500 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_501 = NL + "\t@Override";
- protected final String TEXT_502 = NL + "\tpublic void setFocus()" + NL + "\t{";
- protected final String TEXT_503 = NL + "\t\tif (currentViewerPane != null)" + NL + "\t\t{" + NL + "\t\t\tcurrentViewerPane.setFocus();" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\tgetControl(getActivePage()).setFocus();" + NL + "\t\t}";
- protected final String TEXT_504 = NL + "\t\tgetControl(getActivePage()).setFocus();";
- protected final String TEXT_505 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addSelectionChangedListener(ISelectionChangedListener listener)" + NL + "\t{" + NL + "\t\tselectionChangedListeners.add(listener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeSelectionChangedListener(ISelectionChangedListener listener)" + NL + "\t{" + NL + "\t\tselectionChangedListeners.remove(listener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ISelection getSelection()" + NL + "\t{" + NL + "\t\treturn editorSelection;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection." + NL + "\t * Calling this result will notify the listeners." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setSelection(ISelection selection)" + NL + "\t{" + NL + "\t\teditorSelection = selection;" + NL;
- protected final String TEXT_506 = NL + "\t\tfor (ISelectionChangedListener listener : selectionChangedListeners)";
- protected final String TEXT_507 = NL + "\t\tfor (Iterator listeners = selectionChangedListeners.iterator(); listeners.hasNext(); )";
- protected final String TEXT_508 = NL + "\t\t{";
- protected final String TEXT_509 = NL + "\t\t\tISelectionChangedListener listener = (ISelectionChangedListener)listeners.next();";
- protected final String TEXT_510 = NL + "\t\t\tlistener.selectionChanged(new SelectionChangedEvent(this, selection));" + NL + "\t\t}" + NL + "\t\tsetStatusLineManager(selection);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setStatusLineManager(ISelection selection)" + NL + "\t{" + NL + "\t\tIStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ?" + NL + "\t\t\tcontentOutlineStatusLineManager : getActionBars().getStatusLineManager();" + NL + "" + NL + "\t\tif (statusLineManager != null)" + NL + "\t\t{" + NL + "\t\t\tif (selection instanceof IStructuredSelection)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
- protected final String TEXT_511 = " collection = ((IStructuredSelection)selection).toList();" + NL + "\t\t\t\tswitch (collection.size())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tcase 0:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_NoObjectSelected\"));";
- protected final String TEXT_512 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcase 1:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tString text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next());" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_SingleObjectSelected\", text));";
- protected final String TEXT_513 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tdefault:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_MultiObjectSelected\", Integer.toString(collection.size())));";
- protected final String TEXT_514 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\telse" + NL + "\t\t\t{" + NL + "\t\t\t\tstatusLineManager.setMessage(\"\");";
- protected final String TEXT_515 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This looks up a string in the plugin's plugin.properties file." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key)" + NL + "\t{" + NL + "\t\treturn ";
- protected final String TEXT_516 = ".INSTANCE.getString(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This looks up a string in plugin.properties, making a substitution." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key, Object s1)" + NL + "\t{" + NL + "\t\treturn ";
- protected final String TEXT_517 = ".INSTANCE.getString(key, new Object [] { s1 });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions from the Edit menu." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void menuAboutToShow(IMenuManager menuManager)" + NL + "\t{" + NL + "\t\t((IMenuListener)getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic EditingDomainActionBarContributor getActionBarContributor()" + NL + "\t{" + NL + "\t\treturn (EditingDomainActionBarContributor)getEditorSite().getActionBarContributor();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IActionBars getActionBars()" + NL + "\t{" + NL + "\t\treturn getActionBarContributor().getActionBars();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic AdapterFactory getAdapterFactory()" + NL + "\t{" + NL + "\t\treturn adapterFactory;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_518 = NL + "\t@Override";
- protected final String TEXT_519 = NL + "\tpublic void dispose()" + NL + "\t{" + NL + "\t\tupdateProblemIndication = false;" + NL;
- protected final String TEXT_520 = NL + "\t\tResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);" + NL;
- protected final String TEXT_521 = NL + "\t\tgetSite().getPage().removePartListener(partListener);" + NL + "" + NL + "\t\tadapterFactory.dispose();" + NL + "" + NL + "\t\tif (getActionBarContributor().getActiveEditor() == this)" + NL + "\t\t{" + NL + "\t\t\tgetActionBarContributor().setActiveEditor(null);" + NL + "\t\t}" + NL;
- protected final String TEXT_522 = NL + "\t\tfor (PropertySheetPage propertySheetPage : propertySheetPages)";
- protected final String TEXT_523 = NL + "\t\tfor (Iterator i = propertySheetPages.iterator(); i.hasNext(); )";
- protected final String TEXT_524 = NL + "\t\t{";
- protected final String TEXT_525 = NL + "\t\t\tPropertySheetPage propertySheetPage = (PropertySheetPage)i.next();";
- protected final String TEXT_526 = NL + "\t\t\tpropertySheetPage.dispose();" + NL + "\t\t}" + NL + "" + NL + "\t\tif (contentOutlinePage != null)" + NL + "\t\t{" + NL + "\t\t\tcontentOutlinePage.dispose();" + NL + "\t\t}" + NL + "" + NL + "\t\tsuper.dispose();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns whether the outline view should be presented to the user." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean showOutlineView()" + NL + "\t{" + NL + "\t\treturn ";
- protected final String TEXT_527 = ";" + NL + "\t}" + NL + "}";
- protected final String TEXT_528 = NL;
+ protected final String TEXT_28 = NL + "import org.eclipse.ui.part.FileEditorInput;";
+ protected final String TEXT_29 = NL + "import org.eclipse.ui.part.MultiPageEditorPart;" + NL + "" + NL + "import org.eclipse.ui.views.contentoutline.ContentOutline;" + NL + "import org.eclipse.ui.views.contentoutline.ContentOutlinePage;" + NL + "import org.eclipse.ui.views.contentoutline.IContentOutlinePage;" + NL + "" + NL + "import org.eclipse.ui.views.properties.IPropertySheetPage;" + NL + "import org.eclipse.ui.views.properties.PropertySheet;" + NL + "import org.eclipse.ui.views.properties.PropertySheetPage;" + NL + "" + NL + "import org.eclipse.emf.common.command.BasicCommandStack;" + NL + "import org.eclipse.emf.common.command.Command;" + NL + "import org.eclipse.emf.common.command.CommandStack;" + NL + "import org.eclipse.emf.common.command.CommandStackListener;" + NL + "" + NL + "import org.eclipse.emf.common.notify.AdapterFactory;" + NL + "import org.eclipse.emf.common.notify.Notification;" + NL;
+ protected final String TEXT_30 = NL + "import org.eclipse.emf.common.ui.MarkerHelper;";
+ protected final String TEXT_31 = NL + "import org.eclipse.emf.common.ui.ViewerPane;";
+ protected final String TEXT_32 = NL + NL + "import org.eclipse.emf.common.ui.editor.ProblemEditorPart;" + NL + "" + NL + "import org.eclipse.emf.common.ui.viewer.IViewerProvider;" + NL + "" + NL + "import org.eclipse.emf.common.util.BasicDiagnostic;" + NL + "import org.eclipse.emf.common.util.Diagnostic;" + NL + "import org.eclipse.emf.common.util.URI;" + NL;
+ protected final String TEXT_33 = NL + "import org.eclipse.emf.ecore.EObject;" + NL + "import org.eclipse.emf.ecore.EValidator;";
+ protected final String TEXT_34 = NL + NL + "import org.eclipse.emf.ecore.resource.Resource;";
+ protected final String TEXT_35 = NL + "import org.eclipse.emf.ecore.resource.ResourceSet;";
+ protected final String TEXT_36 = NL + NL + "import org.eclipse.emf.ecore.util.EContentAdapter;" + NL + "import org.eclipse.emf.ecore.util.EcoreUtil;" + NL + "" + NL + "import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;" + NL + "import org.eclipse.emf.edit.domain.EditingDomain;" + NL + "import org.eclipse.emf.edit.domain.IEditingDomainProvider;" + NL + "" + NL + "import org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator;" + NL + "import org.eclipse.emf.edit.provider.ComposedAdapterFactory;" + NL + "import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory;" + NL + "" + NL + "import org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory;" + NL + "" + NL + "import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor;" + NL + "" + NL + "import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor;" + NL + "" + NL + "import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter;" + NL + "import org.eclipse.emf.edit.ui.dnd.LocalTransfer;" + NL + "import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter;" + NL + "" + NL + "import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider;" + NL + "import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;";
+ protected final String TEXT_37 = NL + "import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider;";
+ protected final String TEXT_38 = NL + NL + "import org.eclipse.emf.edit.ui.util.EditUIMarkerHelper;";
+ protected final String TEXT_39 = NL + "import org.eclipse.emf.edit.ui.util.EditUIUtil;";
+ protected final String TEXT_40 = NL + NL + "import org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage;" + NL + "" + NL + "import ";
+ protected final String TEXT_41 = ";" + NL;
+ protected final String TEXT_42 = NL + NL + NL + "/**" + NL + " * This is an example of a ";
+ protected final String TEXT_43 = " model editor." + NL + " * <!-- begin-user-doc -->" + NL + " * <!-- end-user-doc -->";
+ protected final String TEXT_44 = NL + " * @generated" + NL + " */";
+ protected final String TEXT_45 = NL + "@Deprecated";
+ protected final String TEXT_46 = NL + "public class ";
+ protected final String TEXT_47 = NL + "\textends MultiPageEditorPart" + NL + "\timplements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider";
+ protected final String TEXT_48 = ", IGotoMarker";
+ protected final String TEXT_49 = NL + "{";
+ protected final String TEXT_50 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
+ protected final String TEXT_51 = " copyright = ";
+ protected final String TEXT_52 = ";";
+ protected final String TEXT_53 = NL + "\t/**" + NL + "\t * The filters for file extensions supported by the editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_54 = NL + "\tpublic static final ";
+ protected final String TEXT_55 = " FILE_EXTENSION_FILTERS = prefixExtensions(";
+ protected final String TEXT_56 = ".FILE_EXTENSIONS, \"*.\");";
+ protected final String TEXT_57 = NL + "\t";
+ protected final String TEXT_58 = ".asList(";
+ protected final String TEXT_59 = ".INSTANCE.getString(\"_UI_";
+ protected final String TEXT_60 = "FilenameExtensions\").split(\"\\\\s*,\\\\s*\")), \"*.\");";
+ protected final String TEXT_61 = NL + "\t/**" + NL + "\t * Returns a new unmodifiable list containing prefixed versions of the extensions in the given list." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static ";
+ protected final String TEXT_62 = " prefixExtensions(";
+ protected final String TEXT_63 = " extensions, String prefix)" + NL + "\t{" + NL + "\t\t";
+ protected final String TEXT_64 = " result = new ";
+ protected final String TEXT_65 = "();";
+ protected final String TEXT_66 = NL + "\t\tfor (String extension : extensions)" + NL + "\t\t{" + NL + "\t\t\tresult.add(prefix + extension);";
+ protected final String TEXT_67 = NL + "\t\tfor (Iterator iterator = extensions.iterator() ; iterator.hasNext(); )" + NL + "\t\t{" + NL + "\t\t\tresult.add(prefix + (String)iterator.next());";
+ protected final String TEXT_68 = NL + "\t\t}" + NL + "\t\treturn Collections.unmodifiableList(result);" + NL + "\t}" + NL;
+ protected final String TEXT_69 = NL + "\t/**" + NL + "\t * This keeps track of the editing domain that is used to track all changes to the model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected AdapterFactoryEditingDomain editingDomain;" + NL + "" + NL + "\t/**" + NL + "\t * This is the one adapter factory used for providing views of the model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ComposedAdapterFactory adapterFactory;" + NL + "" + NL + "\t/**" + NL + "\t * This is the content outline page." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IContentOutlinePage contentOutlinePage;" + NL + "" + NL + "\t/**" + NL + "\t * This is a kludge..." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IStatusLineManager contentOutlineStatusLineManager;" + NL + "" + NL + "\t/**" + NL + "\t * This is the content outline page's viewer." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TreeViewer contentOutlineViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This is the property sheet page." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_70 = " propertySheetPages = new ";
+ protected final String TEXT_71 = "();" + NL + "" + NL + "\t/**" + NL + "\t * This is the viewer that shadows the selection in the content outline." + NL + "\t * The parent relation must be correctly defined for this to work." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TreeViewer selectionViewer;";
+ protected final String TEXT_72 = NL + NL + "\t/**" + NL + "\t * This inverts the roll of parent and child in the content provider and show parents as a tree." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TreeViewer parentViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This shows how a tree view works." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TreeViewer treeViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This shows how a list view works." + NL + "\t * A list viewer doesn't support icons." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ListViewer listViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This shows how a table view works." + NL + "\t * A table can be used as a list with icons." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TableViewer tableViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This shows how a tree view with columns works." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected TreeViewer treeViewerWithColumns;" + NL + "" + NL + "\t/**" + NL + "\t * This keeps track of the active viewer pane, in the book." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ViewerPane currentViewerPane;";
+ protected final String TEXT_73 = NL + NL + "\t/**" + NL + "\t * This keeps track of the active content viewer, which may be either one of the viewers in the pages or the content outline viewer." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected Viewer currentViewer;" + NL + "" + NL + "\t/**" + NL + "\t * This listens to which ever viewer is active." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ISelectionChangedListener selectionChangedListener;" + NL + "" + NL + "\t/**" + NL + "\t * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are listening to this editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_74 = " selectionChangedListeners = new ";
+ protected final String TEXT_75 = "();" + NL + "" + NL + "\t/**" + NL + "\t * This keeps track of the selection of the editor as a whole." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ISelection editorSelection = StructuredSelection.EMPTY;" + NL;
+ protected final String TEXT_76 = NL + "\t/**" + NL + "\t * The MarkerHelper is responsible for creating workspace resource markers presented" + NL + "\t * in Eclipse's Problems View." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected MarkerHelper markerHelper = new EditUIMarkerHelper();" + NL;
+ protected final String TEXT_77 = NL + "\t/**" + NL + "\t * This listens for when the outline becomes active" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IPartListener partListener =" + NL + "\t\tnew IPartListener()" + NL + "\t\t{" + NL + "\t\t\tpublic void partActivated(IWorkbenchPart p)" + NL + "\t\t\t{" + NL + "\t\t\t\tif (p instanceof ContentOutline)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tif (((ContentOutline)p).getCurrentPage() == contentOutlinePage)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tgetActionBarContributor().setActiveEditor(";
+ protected final String TEXT_78 = ".this);" + NL + "" + NL + "\t\t\t\t\t\tsetCurrentViewer(contentOutlineViewer);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse if (p instanceof PropertySheet)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tif (propertySheetPages.contains(((PropertySheet)p).getCurrentPage()))" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tgetActionBarContributor().setActiveEditor(";
+ protected final String TEXT_79 = ".this);" + NL + "\t\t\t\t\t\thandleActivate();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse if (p == ";
+ protected final String TEXT_80 = ".this)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\thandleActivate();" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tpublic void partBroughtToTop(IWorkbenchPart p)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Ignore." + NL + "\t\t\t}" + NL + "\t\t\tpublic void partClosed(IWorkbenchPart p)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Ignore." + NL + "\t\t\t}" + NL + "\t\t\tpublic void partDeactivated(IWorkbenchPart p)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Ignore." + NL + "\t\t\t}" + NL + "\t\t\tpublic void partOpened(IWorkbenchPart p)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Ignore." + NL + "\t\t\t}" + NL + "\t\t};" + NL + "" + NL + "\t/**" + NL + "\t * Resources that have been removed since last activation." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_81 = " removedResources = new ";
+ protected final String TEXT_82 = "();" + NL + "" + NL + "\t/**" + NL + "\t * Resources that have been changed since last activation." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_83 = " changedResources = new ";
+ protected final String TEXT_84 = "();" + NL + "" + NL + "\t/**" + NL + "\t * Resources that have been saved." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_85 = " savedResources = new ";
+ protected final String TEXT_86 = "();" + NL + "" + NL + "\t/**" + NL + "\t * Map to store the diagnostic associated with a resource." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_87 = " resourceToDiagnosticMap = new ";
+ protected final String TEXT_88 = "();" + NL + "" + NL + "\t/**" + NL + "\t * Controls whether the problem indication should be updated." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean updateProblemIndication = true;" + NL + "" + NL + "\t/**" + NL + "\t * Adapter used to update the problem indication when resources are demanded loaded." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected EContentAdapter problemIndicationAdapter =" + NL + "\t\tnew EContentAdapter()" + NL + "\t\t{" + NL + "\t\t\tprotected boolean dispatching;" + NL;
+ protected final String TEXT_89 = NL + "\t\t\t@Override";
+ protected final String TEXT_90 = NL + "\t\t\tpublic void notifyChanged(Notification notification)" + NL + "\t\t\t{" + NL + "\t\t\t\tif (notification.getNotifier() instanceof Resource)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tswitch (notification.getFeatureID(Resource.class))" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tcase Resource.RESOURCE__IS_LOADED:" + NL + "\t\t\t\t\t\tcase Resource.RESOURCE__ERRORS:" + NL + "\t\t\t\t\t\tcase Resource.RESOURCE__WARNINGS:" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tResource resource = (Resource)notification.getNotifier();" + NL + "\t\t\t\t\t\t\tDiagnostic diagnostic = analyzeResourceProblems(resource, null);" + NL + "\t\t\t\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tresourceToDiagnosticMap.put(resource, diagnostic);" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\telse" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tresourceToDiagnosticMap.remove(resource);" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\tdispatchUpdateProblemIndication();" + 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}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.notifyChanged(notification);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprotected void dispatchUpdateProblemIndication()" + NL + "\t\t\t{" + NL + "\t\t\t\tif (updateProblemIndication && !dispatching)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tdispatching = true;" + NL + "\t\t\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t dispatching = false;" + NL + "\t\t\t\t\t\t\t\t updateProblemIndication();" + NL + "\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t });" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL;
+ protected final String TEXT_91 = NL + "\t\t\tprotected void setTarget(Resource target)" + NL + "\t\t\t{" + NL + "\t\t\t\tbasicSetTarget(target);" + NL + "\t\t\t}" + NL;
+ protected final String TEXT_92 = NL + "\t\t\tprotected void unsetTarget(Resource target)" + NL + "\t\t\t{" + NL + "\t\t\t\tbasicUnsetTarget(target);" + NL + "\t\t\t\tresourceToDiagnosticMap.remove(target);" + NL + "\t\t\t\tdispatchUpdateProblemIndication();" + NL + "\t\t\t}" + NL + "\t\t};";
+ protected final String TEXT_93 = NL + NL + "\t/**" + NL + "\t * This listens for workspace changes." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IResourceChangeListener resourceChangeListener =" + NL + "\t\tnew IResourceChangeListener()" + NL + "\t\t{" + NL + "\t\t\tpublic void resourceChanged(IResourceChangeEvent event)" + NL + "\t\t\t{" + NL + "\t\t\t\tIResourceDelta delta = event.getDelta();" + NL + "\t\t\t\ttry" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tclass ResourceDeltaVisitor implements IResourceDeltaVisitor" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tprotected ResourceSet resourceSet = editingDomain.getResourceSet();" + NL + "\t\t\t\t\t\tprotected ";
+ protected final String TEXT_94 = "();" + NL + "\t\t\t\t\t\tprotected ";
+ protected final String TEXT_95 = "();" + NL + "" + NL + "\t\t\t\t\t\tpublic boolean visit(";
+ protected final String TEXT_96 = "final ";
+ protected final String TEXT_97 = "IResourceDelta delta)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tif (delta.getResource().getType() == IResource.FILE)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tif (delta.getKind() == IResourceDelta.REMOVED ||" + NL + "\t\t\t\t\t\t\t\t delta.getKind() == IResourceDelta.CHANGED";
+ protected final String TEXT_98 = " && delta.getFlags() != IResourceDelta.MARKERS";
+ protected final String TEXT_99 = ")" + NL + "\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t";
+ protected final String TEXT_100 = "Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(delta.getFullPath().toString(), true), false);" + NL + "\t\t\t\t\t\t\t\t\tif (resource != null)" + NL + "\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\tif (delta.getKind() == IResourceDelta.REMOVED)" + NL + "\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\tremovedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t\t\t}";
+ protected final String TEXT_101 = NL + "\t\t\t\t\t\t\t\t\t\telse if (!savedResources.remove(resource))" + NL + "\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\tchangedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t\t\t}";
+ protected final String TEXT_102 = NL + "\t\t\t\t\t\t\t\t\t\telse" + NL + "\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\tif ((delta.getFlags() & IResourceDelta.MARKERS) != 0)" + NL + "\t\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\t\t";
+ protected final String TEXT_103 = ".DiagnosticAdapter.update(resource, markerHelper.getMarkerDiagnostics(resource, (IFile)delta.getResource()";
+ protected final String TEXT_104 = ", false";
+ protected final String TEXT_105 = "));" + NL + "\t\t\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t\t\t\tif ((delta.getFlags() & IResourceDelta.CONTENT) != 0)" + NL + "\t\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\t\tif (!savedResources.remove(resource))" + NL + "\t\t\t\t\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\t\t\t\t\tchangedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t\t\t}";
+ protected final String TEXT_106 = NL + "\t\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\t\treturn false;" + NL + "\t\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\tpublic ";
+ protected final String TEXT_107 = " getChangedResources()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn changedResources;" + NL + "\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\tpublic ";
+ protected final String TEXT_108 = " getRemovedResources()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn removedResources;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\tfinal ResourceDeltaVisitor visitor = new ResourceDeltaVisitor();" + NL + "\t\t\t\t\tdelta.accept(visitor);" + NL + "" + NL + "\t\t\t\t\tif (!visitor.getRemovedResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t removedResources.addAll(visitor.getRemovedResources());" + NL + "\t\t\t\t\t\t\t\t\t if (!isDirty())" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t getSite().getPage().closeEditor(";
+ protected final String TEXT_109 = ".this, false);" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t });" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\tif (!visitor.getChangedResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t changedResources.addAll(visitor.getChangedResources());" + NL + "\t\t\t\t\t\t\t\t\t if (getSite().getPage().getActiveEditor() == ";
+ protected final String TEXT_110 = ".this)" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t handleActivate();" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t });" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (CoreException exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
+ protected final String TEXT_111 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t};";
+ protected final String TEXT_112 = NL + NL + "\t/**" + NL + "\t * Handles activation of the editor or it's associated views." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void handleActivate()" + NL + "\t{" + NL + "\t\t// Recompute the read only state." + NL + "\t\t//" + NL + "\t\tif (editingDomain.getResourceToReadOnlyMap() != null)" + NL + "\t\t{" + NL + "\t\t editingDomain.getResourceToReadOnlyMap().clear();" + NL + "" + NL + "\t\t // Refresh any actions that may become enabled or disabled." + NL + "\t\t //" + NL + "\t\t setSelection(getSelection());" + NL + "\t\t}" + NL + "" + NL + "\t\tif (!removedResources.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tif (handleDirtyConflict())" + NL + "\t\t\t{" + NL + "\t\t\t\tgetSite().getPage().closeEditor(";
+ protected final String TEXT_113 = ".this, false);" + NL + "\t\t\t}" + NL + "\t\t\telse" + NL + "\t\t\t{" + NL + "\t\t\t\tremovedResources.clear();" + NL + "\t\t\t\tchangedResources.clear();" + NL + "\t\t\t\tsavedResources.clear();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\telse if (!changedResources.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tchangedResources.removeAll(savedResources);" + NL + "\t\t\thandleChangedResources();" + NL + "\t\t\tchangedResources.clear();" + NL + "\t\t\tsavedResources.clear();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Handles what to do with changed resources on activation." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void handleChangedResources()" + NL + "\t{" + NL + "\t\tif (!changedResources.isEmpty() && (!isDirty() || handleDirtyConflict()))" + NL + "\t\t{" + NL + "\t\t\tif (isDirty())" + NL + "\t\t\t{" + NL + "\t\t\t\tchangedResources.addAll(editingDomain.getResourceSet().getResources());" + NL + "\t\t\t}" + NL + "\t\t\teditingDomain.getCommandStack().flush();" + NL + "" + NL + "\t\t\tupdateProblemIndication = false;";
+ protected final String TEXT_114 = NL + "\t\t\tfor (Resource resource : changedResources)";
+ protected final String TEXT_115 = NL + "\t\t\tfor (Iterator i = changedResources.iterator(); i.hasNext(); )";
+ protected final String TEXT_116 = NL + "\t\t\t{";
+ protected final String TEXT_117 = NL + "\t\t\t\tResource resource = (Resource)i.next();";
+ protected final String TEXT_118 = NL + "\t\t\t\tif (resource.isLoaded())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tresource.unload();" + NL + "\t\t\t\t\ttry" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tresource.load(Collections.EMPTY_MAP);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcatch (IOException exception)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tif (!resourceToDiagnosticMap.containsKey(resource))" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tresourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL;
+ protected final String TEXT_119 = NL + "\t\t\tif (AdapterFactoryEditingDomain.isStale(editorSelection))" + NL + "\t\t\t{" + NL + "\t\t\t\tsetSelection(StructuredSelection.EMPTY);" + NL + "\t\t\t}";
+ protected final String TEXT_120 = NL + NL + "\t\t\tupdateProblemIndication = true;" + NL + "\t\t\tupdateProblemIndication();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Updates the problems indication with the information described in the specified diagnostic." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void updateProblemIndication()" + NL + "\t{" + NL + "\t\tif (updateProblemIndication)" + NL + "\t\t{" + NL + "\t\t\tBasicDiagnostic diagnostic =" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(Diagnostic.OK," + NL + "\t\t\t\t\t \"";
+ protected final String TEXT_121 = "\",";
+ protected final String TEXT_122 = NL + "\t\t\t\t\t 0," + NL + "\t\t\t\t\t null," + NL + "\t\t\t\t\t new Object [] { editingDomain.getResourceSet() });";
+ protected final String TEXT_123 = NL + "\t\t\tfor (Diagnostic childDiagnostic : resourceToDiagnosticMap.values())";
+ protected final String TEXT_124 = NL + "\t\t\tfor (Iterator i = resourceToDiagnosticMap.values().iterator(); i.hasNext(); )";
+ protected final String TEXT_125 = NL + "\t\t\t\tDiagnostic childDiagnostic = (Diagnostic)i.next();";
+ protected final String TEXT_126 = NL + "\t\t\t\tif (childDiagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tdiagnostic.add(childDiagnostic);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tint lastEditorPage = getPageCount() - 1;" + NL + "\t\t\tif (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart)" + NL + "\t\t\t{" + NL + "\t\t\t\t((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic);" + NL + "\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsetActivePage(lastEditorPage);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\telse if (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t{" + NL + "\t\t\t\tProblemEditorPart problemEditorPart = new ProblemEditorPart();" + NL + "\t\t\t\tproblemEditorPart.setDiagnostic(diagnostic);";
+ protected final String TEXT_127 = NL + "\t\t\t\tproblemEditorPart.setMarkerHelper(markerHelper);";
+ protected final String TEXT_128 = NL + "\t\t\t\ttry" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\taddPage(++lastEditorPage, problemEditorPart, getEditorInput());" + NL + "\t\t\t\t\tsetPageText(lastEditorPage, problemEditorPart.getPartName());" + NL + "\t\t\t\t\tsetActivePage(lastEditorPage);" + NL + "\t\t\t\t\tshowTabs();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (PartInitException exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
+ protected final String TEXT_129 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
+ protected final String TEXT_130 = NL + NL + "\t\t\tif (markerHelper.hasMarkers(editingDomain.getResourceSet()))" + NL + "\t\t\t{";
+ protected final String TEXT_131 = NL + "\t\t\t\tmarkerHelper.deleteMarkers(editingDomain.getResourceSet());" + NL + "\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\ttry" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tmarkerHelper.createMarkers(diagnostic);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcatch (CoreException exception)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_132 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}";
+ protected final String TEXT_133 = NL + "\t\t\t\ttry" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tmarkerHelper.updateMarkers(diagnostic);" + NL + "\t\t\t\t}" + NL + "\t\t\t\tcatch (CoreException exception)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
+ protected final String TEXT_134 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t}";
+ protected final String TEXT_135 = NL + "\t\t\t}";
+ protected final String TEXT_136 = NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Shows a dialog that asks if conflicting changes should be discarded." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean handleDirtyConflict()" + NL + "\t{" + NL + "\t\treturn" + NL + "\t\t\tMessageDialog.openQuestion" + NL + "\t\t\t\t(getSite().getShell()," + NL + "\t\t\t\t getString(\"_UI_FileConflict_label\"),";
+ protected final String TEXT_137 = NL + "\t\t\t\t getString(\"_WARN_FileConflict\"));";
+ protected final String TEXT_138 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This creates a model editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ";
+ protected final String TEXT_139 = "()" + NL + "\t{" + NL + "\t\tsuper();" + NL + "\t\tinitializeEditingDomain();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This sets up the editing domain for the model editor." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void initializeEditingDomain()" + NL + "\t{" + NL + "\t\t// Create an adapter factory that yields item providers." + NL + "\t\t//" + NL + "\t\tadapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);" + NL + "" + NL + "\t\tadapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory());";
+ protected final String TEXT_140 = NL + "\t\tadapterFactory.addAdapterFactory(new ";
+ protected final String TEXT_141 = "());";
+ protected final String TEXT_142 = NL + "\t\tadapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());" + NL + "" + NL + "\t\t// Create the command stack that will notify this editor as commands are executed." + NL + "\t\t//";
+ protected final String TEXT_143 = NL + "\t\tBasicCommandStack commandStack = new BasicCommandStack();";
+ protected final String TEXT_144 = NL + "\t\tBasicCommandStack commandStack =" + NL + "\t\t\tnew BasicCommandStack()" + NL + "\t\t\t{";
+ protected final String TEXT_145 = NL + "\t\t\t\t@Override";
+ protected final String TEXT_146 = NL + "\t\t\t\tpublic void execute(Command command)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t// Cancel live validation before executing a command that will trigger a new round of validation." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tif (!(command instanceof ";
+ protected final String TEXT_147 = ".NonDirtying))" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t";
+ protected final String TEXT_148 = ".cancel(editingDomain);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tsuper.execute(command);" + NL + "\t\t\t\t}" + NL + "\t\t\t};";
+ protected final String TEXT_149 = NL + NL + "\t\t// Add a listener to set the most recent command's affected objects to be the selection of the viewer with focus." + NL + "\t\t//" + NL + "\t\tcommandStack.addCommandStackListener" + NL + "\t\t\t(new CommandStackListener()" + NL + "\t\t\t {" + NL + "\t\t\t\t public void commandStackChanged(final EventObject event)" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t getContainer().getDisplay().asyncExec" + NL + "\t\t\t\t\t\t (new Runnable()" + NL + "\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t firePropertyChange(IEditorPart.PROP_DIRTY);" + NL + "" + NL + "\t\t\t\t\t\t\t\t // Try to select the affected objects." + NL + "\t\t\t\t\t\t\t\t //" + NL + "\t\t\t\t\t\t\t\t Command mostRecentCommand = ((CommandStack)event.getSource()).getMostRecentCommand();" + NL + "\t\t\t\t\t\t\t\t if (mostRecentCommand != null)" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t setSelectionToViewer(mostRecentCommand.getAffectedObjects());" + NL + "\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t for (Iterator";
+ protected final String TEXT_150 = "<PropertySheetPage>";
+ protected final String TEXT_151 = " i = propertySheetPages.iterator(); i.hasNext(); )" + NL + "\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t PropertySheetPage propertySheetPage = ";
+ protected final String TEXT_152 = "(PropertySheetPage)";
+ protected final String TEXT_153 = "i.next();" + NL + "\t\t\t\t\t\t\t\t\t if (propertySheetPage.getControl().isDisposed())" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t i.remove();" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t\t else" + NL + "\t\t\t\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t\t\t\t propertySheetPage.refresh();" + NL + "\t\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t\t }" + NL + "\t\t\t\t\t\t });" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL + "" + NL + "\t\t// Create the editing domain with a special command stack." + NL + "\t\t//" + NL + "\t\teditingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new ";
+ protected final String TEXT_154 = "());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is here for the listener to be able to call it." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_155 = NL + "\tprotected void firePropertyChange(int action)" + NL + "\t{" + NL + "\t\tsuper.firePropertyChange(action);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This sets the selection into whichever viewer is active." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setSelectionToViewer(";
+ protected final String TEXT_156 = " collection)" + NL + "\t{" + NL + "\t\tfinal ";
+ protected final String TEXT_157 = " theSelection = collection;" + NL + "\t\t// Make sure it's okay." + NL + "\t\t//" + NL + "\t\tif (theSelection != null && !theSelection.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tRunnable runnable =" + NL + "\t\t\t\tnew Runnable()" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tpublic void run()" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t// Try to select the items in the current content viewer of the editor." + NL + "\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\tif (currentViewer != null)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tcurrentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\tgetSite().getShell().getDisplay().asyncExec(runnable);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns the editing domain as required by the {@link IEditingDomainProvider} interface." + NL + "\t * This is important for implementing the static methods of {@link AdapterFactoryEditingDomain}" + NL + "\t * and for supporting {@link org.eclipse.emf.edit.ui.action.CommandAction}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic EditingDomain getEditingDomain()" + NL + "\t{" + NL + "\t\treturn editingDomain;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory)" + NL + "\t\t{" + NL + "\t\t\tsuper(adapterFactory);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
+ protected final String TEXT_158 = NL + "\t\t@Override";
+ protected final String TEXT_159 = NL + "\t\tpublic Object [] getElements(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
+ protected final String TEXT_160 = NL + "\t\tpublic Object [] getChildren(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
+ protected final String TEXT_161 = NL + "\t\tpublic boolean hasChildren(Object object)" + NL + "\t\t{" + NL + "\t\t\tObject parent = super.getParent(object);" + NL + "\t\t\treturn parent != null;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
+ protected final String TEXT_162 = NL + "\t\tpublic Object getParent(Object object)" + NL + "\t\t{" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t}";
+ protected final String TEXT_163 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setCurrentViewerPane(ViewerPane viewerPane)" + NL + "\t{" + NL + "\t\tif (currentViewerPane != viewerPane)" + NL + "\t\t{" + NL + "\t\t\tif (currentViewerPane != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tcurrentViewerPane.showFocus(false);" + NL + "\t\t\t}" + NL + "\t\t\tcurrentViewerPane = viewerPane;" + NL + "\t\t}" + NL + "\t\tsetCurrentViewer(currentViewerPane.getViewer());" + NL + "\t}";
+ protected final String TEXT_164 = NL + NL + "\t/**" + NL + "\t * This makes sure that one content viewer, either for the current page or the outline view, if it has focus," + NL + "\t * is the current one." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setCurrentViewer(Viewer viewer)" + NL + "\t{" + NL + "\t\t// If it is changing..." + NL + "\t\t//" + NL + "\t\tif (currentViewer != viewer)" + NL + "\t\t{" + NL + "\t\t\tif (selectionChangedListener == null)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Create the listener on demand." + NL + "\t\t\t\t//" + NL + "\t\t\t\tselectionChangedListener =" + NL + "\t\t\t\t\tnew ISelectionChangedListener()" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\t// This just notifies those things that are affected by the section." + NL + "\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\tpublic void selectionChanged(SelectionChangedEvent selectionChangedEvent)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsetSelection(selectionChangedEvent.getSelection());" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Stop listening to the old one." + NL + "\t\t\t//" + NL + "\t\t\tif (currentViewer != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tcurrentViewer.removeSelectionChangedListener(selectionChangedListener);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Start listening to the new one." + NL + "\t\t\t//" + NL + "\t\t\tif (viewer != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tviewer.addSelectionChangedListener(selectionChangedListener);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Remember it." + NL + "\t\t\t//" + NL + "\t\t\tcurrentViewer = viewer;" + NL + "" + NL + "\t\t\t// Set the editors selection based on the current viewer's selection." + NL + "\t\t\t//" + NL + "\t\t\tsetSelection(currentViewer == null ? StructuredSelection.EMPTY : currentViewer.getSelection());" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns the viewer as required by the {@link IViewerProvider} interface." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Viewer getViewer()" + NL + "\t{" + NL + "\t\treturn currentViewer;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This creates a context menu for the viewer and adds a listener as well registering the menu for extension." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void createContextMenuFor(StructuredViewer viewer)" + NL + "\t{" + NL + "\t\tMenuManager contextMenu = new MenuManager(\"#PopUp\");";
+ protected final String TEXT_165 = NL + "\t\tcontextMenu.add(new Separator(\"additions\"));";
+ protected final String TEXT_166 = NL + "\t\tcontextMenu.setRemoveAllWhenShown(true);" + NL + "\t\tcontextMenu.addMenuListener(this);" + NL + "\t\tMenu menu= contextMenu.createContextMenu(viewer.getControl());" + NL + "\t\tviewer.getControl().setMenu(menu);";
+ protected final String TEXT_167 = NL + "\t\tgetSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer));";
+ protected final String TEXT_168 = NL + "\t\tgetSite().registerContextMenu(contextMenu, viewer);";
+ protected final String TEXT_169 = NL + NL + "\t\tint dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;" + NL + "\t\tTransfer[] transfers = new Transfer[] { LocalTransfer.getInstance()";
+ protected final String TEXT_170 = ", LocalSelectionTransfer.getTransfer(), FileTransfer.getInstance()";
+ protected final String TEXT_171 = " };" + NL + "\t\tviewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer));" + NL + "\t\tviewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(editingDomain, viewer));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is the method called to load a resource into the editing domain's resource set based on the editor's input." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void createModel()" + NL + "\t{";
+ protected final String TEXT_172 = NL + "\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput(), editingDomain.getResourceSet().getURIConverter());";
+ protected final String TEXT_173 = NL + "\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());";
+ protected final String TEXT_174 = NL + "\t\tURI resourceURI = URI.createURI(getEditorInput().getName());";
+ protected final String TEXT_175 = NL + "\t\t// Assumes that the input is a file object." + NL + "\t\t//" + NL + "\t\tIFileEditorInput modelFile = (IFileEditorInput)getEditorInput();" + NL + "\t\tURI resourceURI = URI.createPlatformResourceURI(modelFile.getFile().getFullPath().toString(), true);";
+ protected final String TEXT_176 = NL + "\t\tException exception = null;" + NL + "\t\tResource resource = null;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\t// Load the resource through the editing domain." + NL + "\t\t\t//" + NL + "\t\t\tresource = editingDomain.getResourceSet().getResource(resourceURI, true);" + NL + "\t\t}" + NL + "\t\tcatch (Exception e)" + NL + "\t\t{" + NL + "\t\t\texception = e;" + NL + "\t\t\tresource = editingDomain.getResourceSet().getResource(resourceURI, false);" + NL + "\t\t}" + NL + "" + NL + "\t\tDiagnostic diagnostic = analyzeResourceProblems(resource, exception);" + NL + "\t\tif (diagnostic.getSeverity() != Diagnostic.OK)" + NL + "\t\t{" + NL + "\t\t\tresourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));" + NL + "\t\t}" + NL + "\t\teditingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns a diagnostic describing the errors and warnings listed in the resource" + NL + "\t * and the specified exception (if any)." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Diagnostic analyzeResourceProblems(Resource resource, Exception exception)" + NL + "\t{" + NL + "\t\tboolean hasErrors = !resource.getErrors().isEmpty();" + NL + "\t\tif (hasErrors || !resource.getWarnings().isEmpty())" + NL + "\t\t{" + NL + "\t\t\tBasicDiagnostic basicDiagnostic =" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(hasErrors ? Diagnostic.ERROR : Diagnostic.WARNING," + NL + "\t\t\t\t\t \"";
+ protected final String TEXT_177 = NL + "\t\t\t\t\t 0," + NL + "\t\t\t\t\t getString(\"_UI_CreateModelError_message\", resource.getURI()),";
+ protected final String TEXT_178 = NL + "\t\t\t\t\t new Object [] { exception == null ? (Object)resource : exception });" + NL + "\t\t\tbasicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true));" + NL + "\t\t\treturn basicDiagnostic;" + NL + "\t\t}" + NL + "\t\telse if (exception != null)" + NL + "\t\t{" + NL + "\t\t\treturn" + NL + "\t\t\t\tnew BasicDiagnostic" + NL + "\t\t\t\t\t(Diagnostic.ERROR," + NL + "\t\t\t\t\t \"";
+ protected final String TEXT_179 = NL + "\t\t\t\t\t new Object[] { exception });" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\treturn Diagnostic.OK_INSTANCE;" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is the method used by the framework to install your own controls." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_180 = NL + "\t@Override";
+ protected final String TEXT_181 = NL + "\tpublic void createPages()" + NL + "\t{" + NL + "\t\t// Creates the model from the editor input" + NL + "\t\t//" + NL + "\t\tcreateModel();" + NL + "" + NL + "\t\t// Only creates the other pages if there is something that can be edited" + NL + "\t\t//" + NL + "\t\tif (!getEditingDomain().getResourceSet().getResources().isEmpty())" + NL + "\t\t{" + NL + "\t\t\t// Create a page for the selection tree view." + NL + "\t\t\t//";
+ protected final String TEXT_182 = NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
+ protected final String TEXT_183 = ".this)" + NL + "\t\t\t\t\t{";
+ protected final String TEXT_184 = NL + "\t\t\t\t\t\t@Override";
+ protected final String TEXT_185 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tTree tree = new Tree(composite, SWT.MULTI);" + NL + "\t\t\t\t\t\t\tTreeViewer newTreeViewer = new TreeViewer(tree);" + NL + "\t\t\t\t\t\t\treturn newTreeViewer;" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_186 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\tselectionViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\tselectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\tselectionViewer.setUseHashlookup(true);" + NL + "" + NL + "\t\t\t\tselectionViewer.setLabelProvider(";
+ protected final String TEXT_187 = "new ";
+ protected final String TEXT_188 = "(";
+ protected final String TEXT_189 = "(adapterFactory";
+ protected final String TEXT_190 = ", selectionViewer";
+ protected final String TEXT_191 = ")";
+ protected final String TEXT_192 = ", new ";
+ protected final String TEXT_193 = "(editingDomain";
+ protected final String TEXT_194 = ".getResourceSet()";
+ protected final String TEXT_195 = ", ";
+ protected final String TEXT_196 = ".getPlugin().getDialogSettings()";
+ protected final String TEXT_197 = "))";
+ protected final String TEXT_198 = ");" + NL + "\t\t\t\tselectionViewer.setInput(editingDomain.getResourceSet());" + NL + "\t\t\t\tselectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "\t\t\t\tviewerPane.setTitle(editingDomain.getResourceSet());" + NL + "" + NL + "\t\t\t\tnew AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);";
+ protected final String TEXT_199 = NL + "\t\t\t\tnew ";
+ protected final String TEXT_200 = "(selectionViewer, new ";
+ protected final String TEXT_201 = ".EditingDomainLocationListener(editingDomain, selectionViewer));";
+ protected final String TEXT_202 = NL + NL + "\t\t\t\tcreateContextMenuFor(selectionViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));";
+ protected final String TEXT_203 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Create a page for the parent tree view." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
+ protected final String TEXT_204 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\tparentViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\tparentViewer.setAutoExpandLevel(30);" + NL + "\t\t\t\tparentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\tparentViewer.setLabelProvider(";
+ protected final String TEXT_205 = ", parentViewer";
+ protected final String TEXT_206 = ");" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(parentViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_ParentPage_label\"));";
+ protected final String TEXT_207 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the list viewer" + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
+ protected final String TEXT_208 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new ListViewer(composite);" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_209 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\tlistViewer = (ListViewer)viewerPane.getViewer();" + NL + "\t\t\t\tlistViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\tlistViewer.setLabelProvider(";
+ protected final String TEXT_210 = ", listViewer";
+ protected final String TEXT_211 = ");" + NL + "" + NL + "\t\t\t\tcreateContextMenuFor(listViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_ListPage_label\"));";
+ protected final String TEXT_212 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the tree viewer" + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
+ protected final String TEXT_213 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new TreeViewer(composite);" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_214 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\ttreeViewer = (TreeViewer)viewerPane.getViewer();" + NL + "\t\t\t\ttreeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttreeViewer.setLabelProvider(";
+ protected final String TEXT_215 = ", treeViewer";
+ protected final String TEXT_216 = ", treeViewer))";
+ protected final String TEXT_217 = ");" + NL + "" + NL + "\t\t\t\tnew AdapterFactoryTreeEditor(treeViewer.getTree(), adapterFactory);";
+ protected final String TEXT_218 = "(treeViewer, new ";
+ protected final String TEXT_219 = ".EditingDomainLocationListener(editingDomain, treeViewer));";
+ protected final String TEXT_220 = NL + NL + "\t\t\t\tcreateContextMenuFor(treeViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TreePage_label\"));";
+ protected final String TEXT_221 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the table viewer." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
+ protected final String TEXT_222 = NL + "\t\t\t\t\t\tpublic Viewer createViewer(Composite composite)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\treturn new TableViewer(composite);" + NL + "\t\t\t\t\t\t}";
+ protected final String TEXT_223 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "\t\t\t\ttableViewer = (TableViewer)viewerPane.getViewer();" + NL + "" + NL + "\t\t\t\tTable table = tableViewer.getTable();" + NL + "\t\t\t\tTableLayout layout = new TableLayout();" + NL + "\t\t\t\ttable.setLayout(layout);" + NL + "\t\t\t\ttable.setHeaderVisible(true);" + NL + "\t\t\t\ttable.setLinesVisible(true);" + NL + "" + NL + "\t\t\t\tTableColumn objectColumn = new TableColumn(table, SWT.NONE);" + NL + "\t\t\t\tlayout.addColumnData(new ColumnWeightData(3, 100, true));" + NL + "\t\t\t\tobjectColumn.setText(getString(\"_UI_ObjectColumn_label\"));";
+ protected final String TEXT_224 = NL + "\t\t\t\tobjectColumn.setResizable(true);" + NL + "" + NL + "\t\t\t\tTableColumn selfColumn = new TableColumn(table, SWT.NONE);" + NL + "\t\t\t\tlayout.addColumnData(new ColumnWeightData(2, 100, true));" + NL + "\t\t\t\tselfColumn.setText(getString(\"_UI_SelfColumn_label\"));";
+ protected final String TEXT_225 = NL + "\t\t\t\tselfColumn.setResizable(true);" + NL + "" + NL + "\t\t\t\ttableViewer.setColumnProperties(new String [] {\"a\", \"b\"});";
+ protected final String TEXT_226 = NL + "\t\t\t\ttableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttableViewer.setLabelProvider(";
+ protected final String TEXT_227 = ", tableViewer";
+ protected final String TEXT_228 = ");" + NL;
+ protected final String TEXT_229 = "(tableViewer, new ";
+ protected final String TEXT_230 = ".EditingDomainLocationListener(editingDomain, tableViewer));" + NL;
+ protected final String TEXT_231 = NL + "\t\t\t\tcreateContextMenuFor(tableViewer);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TablePage_label\"));";
+ protected final String TEXT_232 = NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// This is the page for the table tree viewer." + NL + "\t\t\t//" + NL + "\t\t\t{" + NL + "\t\t\t\tViewerPane viewerPane =" + NL + "\t\t\t\t\tnew ViewerPane(getSite().getPage(), ";
+ protected final String TEXT_233 = NL + "\t\t\t\t\t\tpublic void requestActivation()" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tsuper.requestActivation();" + NL + "\t\t\t\t\t\t\tsetCurrentViewerPane(this);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t};" + NL + "\t\t\t\tviewerPane.createControl(getContainer());" + NL + "" + NL + "\t\t\t\ttreeViewerWithColumns = (TreeViewer)viewerPane.getViewer();" + NL + "" + NL + "\t\t\t\tTree tree = treeViewerWithColumns.getTree();" + NL + "\t\t\t\ttree.setLayoutData(new FillLayout());" + NL + "\t\t\t\ttree.setHeaderVisible(true);" + NL + "\t\t\t\ttree.setLinesVisible(true);" + NL + "" + NL + "\t\t\t\tTreeColumn objectColumn = new TreeColumn(tree, SWT.NONE);" + NL + "\t\t\t\tobjectColumn.setText(getString(\"_UI_ObjectColumn_label\"));";
+ protected final String TEXT_234 = NL + "\t\t\t\tobjectColumn.setResizable(true);" + NL + "\t\t\t\tobjectColumn.setWidth(250);" + NL + "" + NL + "\t\t\t\tTreeColumn selfColumn = new TreeColumn(tree, SWT.NONE);" + NL + "\t\t\t\tselfColumn.setText(getString(\"_UI_SelfColumn_label\"));";
+ protected final String TEXT_235 = NL + "\t\t\t\tselfColumn.setResizable(true);" + NL + "\t\t\t\tselfColumn.setWidth(200);" + NL + "" + NL + "\t\t\t\ttreeViewerWithColumns.setColumnProperties(new String [] {\"a\", \"b\"});";
+ protected final String TEXT_236 = NL + "\t\t\t\ttreeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\ttreeViewerWithColumns.setLabelProvider(";
+ protected final String TEXT_237 = ", treeViewerWithColumns";
+ protected final String TEXT_238 = "(treeViewerWithColumns, new ";
+ protected final String TEXT_239 = ".EditingDomainLocationListener(editingDomain, treeViewerWithColumns));" + NL;
+ protected final String TEXT_240 = NL + "\t\t\t\tcreateContextMenuFor(treeViewerWithColumns);" + NL + "\t\t\t\tint pageIndex = addPage(viewerPane.getControl());" + NL + "\t\t\t\tsetPageText(pageIndex, getString(\"_UI_TreeWithColumnsPage_label\"));";
+ protected final String TEXT_241 = NL + "\t\t\tTree tree = new Tree(getContainer(), SWT.MULTI);" + NL + "\t\t\tselectionViewer = new TreeViewer(tree);" + NL + "\t\t\tsetCurrentViewer(selectionViewer);" + NL + "" + NL + "\t\t\tselectionViewer.setUseHashlookup(true);" + NL + "\t\t\tselectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\tselectionViewer.setLabelProvider(";
+ protected final String TEXT_242 = ");" + NL + "\t\t\tselectionViewer.setInput(editingDomain.getResourceSet());" + NL + "\t\t\tselectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "" + NL + "\t\t\tnew AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);";
+ protected final String TEXT_243 = NL + "\t\t\tnew ";
+ protected final String TEXT_244 = NL + NL + "\t\t\tcreateContextMenuFor(selectionViewer);" + NL + "\t\t\tint pageIndex = addPage(tree);" + NL + "\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));";
+ protected final String TEXT_245 = NL + NL + "\t\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t\t(new Runnable()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t if (!getContainer().isDisposed())" + NL + "\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t setActivePage(0);" + NL + "\t\t\t\t\t\t }" + NL + "\t\t\t\t\t }" + NL + "\t\t\t\t });" + NL + "\t\t}" + NL + "" + NL + "\t\t// Ensures that this editor will only display the page's tab" + NL + "\t\t// area if there are more than one page" + NL + "\t\t//" + NL + "\t\tgetContainer().addControlListener" + NL + "\t\t\t(new ControlAdapter()" + NL + "\t\t\t {" + NL + "\t\t\t\tboolean guard = false;";
+ protected final String TEXT_246 = NL + "\t\t\t\tpublic void controlResized(ControlEvent event)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tif (!guard)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tguard = true;" + NL + "\t\t\t\t\t\thideTabs();" + NL + "\t\t\t\t\t\tguard = false;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t });" + NL + "" + NL + "\t\tgetSite().getShell().getDisplay().asyncExec" + NL + "\t\t\t(new Runnable()" + NL + "\t\t\t {" + NL + "\t\t\t\t public void run()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t updateProblemIndication();" + NL + "\t\t\t\t }" + NL + "\t\t\t });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * If there is just one page in the multi-page editor part," + NL + "\t * this hides the single tab at the bottom." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void hideTabs()" + NL + "\t{" + NL + "\t\tif (getPageCount() <= 1)" + NL + "\t\t{" + NL + "\t\t\tsetPageText(0, \"\");";
+ protected final String TEXT_247 = NL + "\t\t\tif (getContainer() instanceof CTabFolder)" + NL + "\t\t\t{" + NL + "\t\t\t\tPoint point = getContainer().getSize();" + NL + "\t\t\t\tRectangle clientArea = getContainer().getClientArea();" + NL + "\t\t\t\tgetContainer().setSize(point.x, 2 * point.y - clientArea.height - clientArea.y);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * If there is more than one page in the multi-page editor part," + NL + "\t * this shows the tabs at the bottom." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void showTabs()" + NL + "\t{" + NL + "\t\tif (getPageCount() > 1)" + NL + "\t\t{" + NL + "\t\t\tsetPageText(0, getString(\"_UI_SelectionPage_label\"));";
+ protected final String TEXT_248 = NL + "\t\t\tif (getContainer() instanceof CTabFolder)" + NL + "\t\t\t{" + NL + "\t\t\t\tPoint point = getContainer().getSize();" + NL + "\t\t\t\tRectangle clientArea = getContainer().getClientArea();" + NL + "\t\t\t\tgetContainer().setSize(point.x, clientArea.height + clientArea.y);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is used to track the active viewer." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_249 = NL + "\tprotected void pageChange(int pageIndex)" + NL + "\t{" + NL + "\t\tsuper.pageChange(pageIndex);" + NL + "" + NL + "\t\tif (contentOutlinePage != null)" + NL + "\t\t{" + NL + "\t\t\thandleContentOutlineSelection(contentOutlinePage.getSelection());" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is how the framework determines which interfaces we implement." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_250 = NL + "\t@SuppressWarnings(\"";
+ protected final String TEXT_251 = "rawtypes";
+ protected final String TEXT_252 = "unchecked";
+ protected final String TEXT_253 = "\")";
+ protected final String TEXT_254 = NL + "\tpublic <T> T getAdapter(Class<T> key)";
+ protected final String TEXT_255 = NL + "\tpublic Object getAdapter(Class key)";
+ protected final String TEXT_256 = NL + "\t{" + NL + "\t\tif (key.equals(IContentOutlinePage.class))" + NL + "\t\t{";
+ protected final String TEXT_257 = NL + "\t\t\treturn showOutlineView() ? key.cast(getContentOutlinePage()) : null;";
+ protected final String TEXT_258 = NL + "\t\t\treturn showOutlineView() ? getContentOutlinePage() : null;";
+ protected final String TEXT_259 = NL + "\t\t}" + NL + "\t\telse if (key.equals(IPropertySheetPage.class))" + NL + "\t\t{";
+ protected final String TEXT_260 = NL + "\t\t\treturn key.cast(getPropertySheetPage());";
+ protected final String TEXT_261 = NL + "\t\t\treturn getPropertySheetPage();";
+ protected final String TEXT_262 = NL + "\t\t}";
+ protected final String TEXT_263 = NL + "\t\telse if (key.equals(IGotoMarker.class))" + NL + "\t\t{";
+ protected final String TEXT_264 = NL + "\t\t\treturn key.cast(this);";
+ protected final String TEXT_265 = NL + "\t\t\treturn this;";
+ protected final String TEXT_266 = NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\treturn super.getAdapter(key);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This accesses a cached version of the content outliner." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IContentOutlinePage getContentOutlinePage()" + NL + "\t{" + NL + "\t\tif (contentOutlinePage == null)" + NL + "\t\t{" + NL + "\t\t\t// The content outline is just a tree." + NL + "\t\t\t//" + NL + "\t\t\tclass MyContentOutlinePage extends ContentOutlinePage" + NL + "\t\t\t{";
+ protected final String TEXT_267 = NL + "\t\t\t\tpublic void createControl(Composite parent)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.createControl(parent);" + NL + "\t\t\t\t\tcontentOutlineViewer = getTreeViewer();" + NL + "\t\t\t\t\tcontentOutlineViewer.addSelectionChangedListener(this);" + NL + "" + NL + "\t\t\t\t\t// Set up the tree viewer." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tcontentOutlineViewer.setUseHashlookup(true);" + NL + "\t\t\t\t\tcontentOutlineViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\t\t\t\tcontentOutlineViewer.setLabelProvider(";
+ protected final String TEXT_268 = ", contentOutlineViewer";
+ protected final String TEXT_269 = ");" + NL + "\t\t\t\t\tcontentOutlineViewer.setInput(editingDomain.getResourceSet());" + NL;
+ protected final String TEXT_270 = NL + "\t\t\t\t\tnew ";
+ protected final String TEXT_271 = "(contentOutlineViewer, new ";
+ protected final String TEXT_272 = ".EditingDomainLocationListener(editingDomain, contentOutlineViewer));" + NL;
+ protected final String TEXT_273 = NL + "\t\t\t\t\t// Make sure our popups work." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tcreateContextMenuFor(contentOutlineViewer);" + NL + "" + NL + "\t\t\t\t\tif (!editingDomain.getResourceSet().getResources().isEmpty())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t // Select the root object in the view." + NL + "\t\t\t\t\t //" + NL + "\t\t\t\t\t contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL;
+ protected final String TEXT_274 = NL + "\t\t\t\tpublic void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.makeContributions(menuManager, toolBarManager, statusLineManager);" + NL + "\t\t\t\t\tcontentOutlineStatusLineManager = statusLineManager;" + NL + "\t\t\t\t}" + NL;
+ protected final String TEXT_275 = NL + "\t\t\t\tpublic void setActionBars(IActionBars actionBars)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.setActionBars(actionBars);" + NL + "\t\t\t\t\tgetActionBarContributor().shareGlobalActions(this, actionBars);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tcontentOutlinePage = new MyContentOutlinePage();" + NL + "" + NL + "\t\t\t// Listen to selection so that we can handle it is a special way." + NL + "\t\t\t//" + NL + "\t\t\tcontentOutlinePage.addSelectionChangedListener" + NL + "\t\t\t\t(new ISelectionChangedListener()" + NL + "\t\t\t\t {" + NL + "\t\t\t\t\t // This ensures that we handle selections correctly." + NL + "\t\t\t\t\t //" + NL + "\t\t\t\t\t public void selectionChanged(SelectionChangedEvent event)" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t handleContentOutlineSelection(event.getSelection());" + NL + "\t\t\t\t\t }" + NL + "\t\t\t\t });" + NL + "\t\t}" + NL + "" + NL + "\t\treturn contentOutlinePage;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This accesses a cached version of the property sheet." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IPropertySheetPage getPropertySheetPage()" + NL + "\t{" + NL + "\t\tPropertySheetPage propertySheetPage =" + NL + "\t\t\tnew ExtendedPropertySheetPage(editingDomain";
+ protected final String TEXT_276 = ", ExtendedPropertySheetPage.Decoration.MANUAL";
+ protected final String TEXT_277 = ", ExtendedPropertySheetPage.Decoration.LIVE, ";
+ protected final String TEXT_278 = "ExtendedPropertySheetPage.Decoration.NONE, ";
+ protected final String TEXT_279 = "null, ";
+ protected final String TEXT_280 = ")" + NL + "\t\t\t{";
+ protected final String TEXT_281 = NL + "\t\t\t\tpublic void setSelectionToViewer(";
+ protected final String TEXT_282 = " selection)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
+ protected final String TEXT_283 = ".this.setSelectionToViewer(selection);" + NL + "\t\t\t\t\t";
+ protected final String TEXT_284 = ".this.setFocus();" + NL + "\t\t\t\t}" + NL;
+ protected final String TEXT_285 = NL + "\t\t\t\tpublic void setActionBars(IActionBars actionBars)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsuper.setActionBars(actionBars);" + NL + "\t\t\t\t\tgetActionBarContributor().shareGlobalActions(this, actionBars);" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\tpropertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory));" + NL + "\t\tpropertySheetPages.add(propertySheetPage);" + NL + "" + NL + "\t\treturn propertySheetPage;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This deals with how we want selection in the outliner to affect the other views." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void handleContentOutlineSelection(ISelection selection)" + NL + "\t{";
+ protected final String TEXT_286 = NL + "\t\tif (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection)";
+ protected final String TEXT_287 = NL + "\t\tif (selectionViewer != null && !selection.isEmpty() && selection instanceof IStructuredSelection)";
+ protected final String TEXT_288 = NL + "\t\t{" + NL + "\t\t\tIterator";
+ protected final String TEXT_289 = "<?>";
+ protected final String TEXT_290 = " selectedElements = ((IStructuredSelection)selection).iterator();" + NL + "\t\t\tif (selectedElements.hasNext())" + NL + "\t\t\t{" + NL + "\t\t\t\t// Get the first selected element." + NL + "\t\t\t\t//" + NL + "\t\t\t\tObject selectedElement = selectedElements.next();" + NL;
+ protected final String TEXT_291 = NL + "\t\t\t\t// If it's the selection viewer, then we want it to select the same selection as this selection." + NL + "\t\t\t\t//" + NL + "\t\t\t\tif (currentViewerPane.getViewer() == selectionViewer)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
+ protected final String TEXT_292 = " selectionList = new ";
+ protected final String TEXT_293 = "();" + NL + "\t\t\t\t\tselectionList.add(selectedElement);" + NL + "\t\t\t\t\twhile (selectedElements.hasNext())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tselectionList.add(selectedElements.next());" + NL + "\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t// Set the selection to the widget." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tselectionViewer.setSelection(new StructuredSelection(selectionList));" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t// Set the input to the widget." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tif (currentViewerPane.getViewer().getInput() != selectedElement)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tcurrentViewerPane.getViewer().setInput(selectedElement);" + NL + "\t\t\t\t\t\tcurrentViewerPane.setTitle(selectedElement);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}";
+ protected final String TEXT_294 = NL + "\t\t\t\t";
+ protected final String TEXT_295 = "();" + NL + "\t\t\t\tselectionList.add(selectedElement);" + NL + "\t\t\t\twhile (selectedElements.hasNext())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tselectionList.add(selectedElements.next());" + NL + "\t\t\t\t}" + NL + "" + NL + "\t\t\t\t// Set the selection to the widget." + NL + "\t\t\t\t//" + NL + "\t\t\t\tselectionViewer.setSelection(new StructuredSelection(selectionList));";
+ protected final String TEXT_296 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is for implementing {@link IEditorPart} and simply tests the command stack." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_297 = NL + "\tpublic boolean isDirty()" + NL + "\t{" + NL + "\t\treturn ((BasicCommandStack)editingDomain.getCommandStack()).isSaveNeeded();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This is for implementing {@link IEditorPart} and simply saves the model file." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_298 = NL + "\tpublic void doSave(IProgressMonitor progressMonitor)" + NL + "\t{" + NL + "\t\t// Save only resources that have actually changed." + NL + "\t\t//" + NL + "\t\tfinal ";
+ protected final String TEXT_299 = " saveOptions = new ";
+ protected final String TEXT_300 = NL + "\t\tsaveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);";
+ protected final String TEXT_301 = NL + "\t\tsaveOptions.put(Resource.OPTION_LINE_DELIMITER, Resource.OPTION_LINE_DELIMITER_UNSPECIFIED);";
+ protected final String TEXT_302 = NL + NL + "\t\t// Do the work within an operation because this is a long running activity that modifies the workbench." + NL + "\t\t//" + NL + "\t\t";
+ protected final String TEXT_303 = " operation =" + NL + "\t\t\tnew ";
+ protected final String TEXT_304 = "()" + NL + "\t\t\t{" + NL + "\t\t\t\t// This is the method that gets invoked when the operation runs." + NL + "\t\t\t\t//";
+ protected final String TEXT_305 = NL + "\t\t\t\tpublic void ";
+ protected final String TEXT_306 = "(IProgressMonitor monitor)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t// Save the resources to the file system." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tboolean first = true;" + NL + "\t\t\t\t\t";
+ protected final String TEXT_307 = " resources = editingDomain.getResourceSet().getResources();" + NL + "\t\t\t\t\tfor (int i = 0; i < resources.size(); ++i)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tResource resource = ";
+ protected final String TEXT_308 = "(Resource)";
+ protected final String TEXT_309 = "resources.get(i);" + NL + "\t\t\t\t\t\tif ((first || !resource.getContents().isEmpty() || isPersisted(resource)) && !editingDomain.isReadOnly(resource))" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\ttry" + NL + "\t\t\t\t\t\t\t{";
+ protected final String TEXT_310 = NL + "\t\t\t\t\t\t\t\tlong timeStamp = resource.getTimeStamp();" + NL + "\t\t\t\t\t\t\t\tresource.save(saveOptions);" + NL + "\t\t\t\t\t\t\t\tif (resource.getTimeStamp() != timeStamp)" + NL + "\t\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\t\tsavedResources.add(resource);" + NL + "\t\t\t\t\t\t\t\t}";
+ protected final String TEXT_311 = NL + "\t\t\t\t\t\t\t\tresource.save(saveOptions);" + NL + "\t\t\t\t\t\t\t\tsavedResources.add(resource);";
+ protected final String TEXT_312 = NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\tcatch (Exception exception)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tresourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));" + NL + "\t\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t\tfirst = false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "" + NL + "\t\tupdateProblemIndication = false;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\t// This runs the options, and shows progress." + NL + "\t\t\t//" + NL + "\t\t\tnew ProgressMonitorDialog(getSite().getShell()).run(true, false, operation);" + NL + "" + NL + "\t\t\t// Refresh the necessary state." + NL + "\t\t\t//" + NL + "\t\t\t((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone();" + NL + "\t\t\tfirePropertyChange(IEditorPart.PROP_DIRTY);" + NL + "\t\t}" + NL + "\t\tcatch (Exception exception)" + NL + "\t\t{" + NL + "\t\t\t// Something went wrong that shouldn't." + NL + "\t\t\t//" + NL + "\t\t\t";
+ protected final String TEXT_313 = ".INSTANCE.log(exception);" + NL + "\t\t}" + NL + "\t\tupdateProblemIndication = true;" + NL + "\t\tupdateProblemIndication();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This returns whether something has been persisted to the URI of the specified resource." + NL + "\t * The implementation uses the URI converter from the editor's resource set to try to open an input stream." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isPersisted(Resource resource)" + NL + "\t{" + NL + "\t\tboolean result = false;" + NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\tInputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream(resource.getURI());" + NL + "\t\t\tif (stream != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tresult = true;" + NL + "\t\t\t\tstream.close();" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tcatch (IOException e)" + NL + "\t\t{" + NL + "\t\t\t// Ignore" + NL + "\t\t}" + NL + "\t\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This always returns true because it is not currently supported." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_314 = NL + "\tpublic boolean isSaveAsAllowed()" + NL + "\t{" + NL + "\t\treturn true;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This also changes the editor's input." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_315 = NL + "\tpublic void doSaveAs()" + NL + "\t{";
+ protected final String TEXT_316 = NL + "\t\tnew ";
+ protected final String TEXT_317 = "(getSite().getShell(), null, SWT.NONE)" + NL + "\t\t\t{";
+ protected final String TEXT_318 = NL + "\t\t\t\tprotected boolean isSave()" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\treturn true;" + NL + "\t\t\t\t}" + NL;
+ protected final String TEXT_319 = NL + "\t\t\t\tprotected boolean processResources()" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t";
+ protected final String TEXT_320 = " uris = getURIs();" + NL + "\t\t\t\t\tif (uris.size() > 0)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tURI uri = ";
+ protected final String TEXT_321 = "uris.get(0);" + NL + "\t\t\t\t\t\tdoSaveAs(uri, new ";
+ protected final String TEXT_322 = "(uri));" + NL + "\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\telse" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\treturn false;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}.open();";
+ protected final String TEXT_323 = NL + "\t\tString[] filters = ";
+ protected final String TEXT_324 = "(String[])";
+ protected final String TEXT_325 = "FILE_EXTENSION_FILTERS.toArray(new String[FILE_EXTENSION_FILTERS.size()]);" + NL + "\t\tString[] files = ";
+ protected final String TEXT_326 = ".openFilePathDialog(getSite().getShell(), ";
+ protected final String TEXT_327 = ".SAVE, filters);" + NL + "\t\tif (files.length > 0)" + NL + "\t\t{" + NL + "\t\t\tURI uri = URI.createFileURI(files[0]);" + NL + "\t\t\tdoSaveAs(uri, new ";
+ protected final String TEXT_328 = "(uri));" + NL + "\t\t}";
+ protected final String TEXT_329 = NL + "\t\tSaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());" + NL + "\t\tsaveAsDialog.open();" + NL + "\t\tIPath path = saveAsDialog.getResult();" + NL + "\t\tif (path != null)" + NL + "\t\t{" + NL + "\t\t\tIFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);" + NL + "\t\t\tif (file != null)" + NL + "\t\t\t{" + NL + "\t\t\t\tdoSaveAs(URI.createPlatformResourceURI(file.getFullPath().toString(), true), new FileEditorInput(file));" + NL + "\t\t\t}" + NL + "\t\t}";
+ protected final String TEXT_330 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void doSaveAs(URI uri, IEditorInput editorInput)" + NL + "\t{" + NL + "\t\t(";
+ protected final String TEXT_331 = "editingDomain.getResourceSet().getResources().get(0)).setURI(uri);" + NL + "\t\tsetInputWithNotify(editorInput);" + NL + "\t\tsetPartName(editorInput.getName());" + NL + "\t\tIProgressMonitor progressMonitor =" + NL + "\t\t\tgetActionBars().getStatusLineManager() != null ?" + NL + "\t\t\t\tgetActionBars().getStatusLineManager().getProgressMonitor() :" + NL + "\t\t\t\tnew ";
+ protected final String TEXT_332 = "();" + NL + "\t\tdoSave(progressMonitor);" + NL + "\t}";
+ protected final String TEXT_333 = NL + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void gotoMarker(IMarker marker)" + NL + "\t{";
+ protected final String TEXT_334 = NL + "\t\t";
+ protected final String TEXT_335 = " targetObjects = markerHelper.getTargetObjects(editingDomain, marker);" + NL + "\t\tif (!targetObjects.isEmpty())" + NL + "\t\t{" + NL + "\t\t\tsetSelectionToViewer(targetObjects);" + NL + "\t\t}";
+ protected final String TEXT_336 = NL + "\t\ttry" + NL + "\t\t{" + NL + "\t\t\tif (marker.isSubtypeOf(EValidator.MARKER))" + NL + "\t\t\t{" + NL + "\t\t\t\tString uriAttribute = marker.getAttribute(EValidator.URI_ATTRIBUTE, null);" + NL + "\t\t\t\tif (uriAttribute != null)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tURI uri = URI.createURI(uriAttribute);" + NL + "\t\t\t\t\tEObject eObject = editingDomain.getResourceSet().getEObject(uri, true);" + NL + "\t\t\t\t\tif (eObject != null)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t setSelectionToViewer(Collections.singleton(editingDomain.getWrapper(eObject)));" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tcatch (CoreException exception)" + NL + "\t\t{" + NL + "\t\t\t";
+ protected final String TEXT_337 = ".INSTANCE.log(exception);" + NL + "\t\t}";
+ protected final String TEXT_338 = NL + "\t}";
+ protected final String TEXT_339 = NL + NL + "\t/**" + NL + "\t * This is called during startup." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_340 = NL + "\tpublic void init(IEditorSite site, IEditorInput editorInput)" + NL + "\t{" + NL + "\t\tsetSite(site);" + NL + "\t\tsetInputWithNotify(editorInput);" + NL + "\t\tsetPartName(editorInput.getName());" + NL + "\t\tsite.setSelectionProvider(this);" + NL + "\t\tsite.getPage().addPartListener(partListener);";
+ protected final String TEXT_341 = NL + "\t\tResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeEvent.POST_CHANGE);";
+ protected final String TEXT_342 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_343 = NL + "\tpublic void setFocus()" + NL + "\t{";
+ protected final String TEXT_344 = NL + "\t\tif (currentViewerPane != null)" + NL + "\t\t{" + NL + "\t\t\tcurrentViewerPane.setFocus();" + NL + "\t\t}" + NL + "\t\telse" + NL + "\t\t{" + NL + "\t\t\tgetControl(getActivePage()).setFocus();" + NL + "\t\t}";
+ protected final String TEXT_345 = NL + "\t\tgetControl(getActivePage()).setFocus();";
+ protected final String TEXT_346 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addSelectionChangedListener(ISelectionChangedListener listener)" + NL + "\t{" + NL + "\t\tselectionChangedListeners.add(listener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeSelectionChangedListener(ISelectionChangedListener listener)" + NL + "\t{" + NL + "\t\tselectionChangedListeners.remove(listener);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic ISelection getSelection()" + NL + "\t{" + NL + "\t\treturn editorSelection;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection." + NL + "\t * Calling this result will notify the listeners." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setSelection(ISelection selection)" + NL + "\t{" + NL + "\t\teditorSelection = selection;" + NL;
+ protected final String TEXT_347 = NL + "\t\tfor (ISelectionChangedListener listener : selectionChangedListeners)";
+ protected final String TEXT_348 = NL + "\t\tfor (Iterator listeners = selectionChangedListeners.iterator(); listeners.hasNext(); )";
+ protected final String TEXT_349 = NL + "\t\t{";
+ protected final String TEXT_350 = NL + "\t\t\tISelectionChangedListener listener = (ISelectionChangedListener)listeners.next();";
+ protected final String TEXT_351 = NL + "\t\t\tlistener.selectionChanged(new SelectionChangedEvent(this, selection));" + NL + "\t\t}" + NL + "\t\tsetStatusLineManager(selection);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void setStatusLineManager(ISelection selection)" + NL + "\t{" + NL + "\t\tIStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ?" + NL + "\t\t\tcontentOutlineStatusLineManager : getActionBars().getStatusLineManager();" + NL + "" + NL + "\t\tif (statusLineManager != null)" + NL + "\t\t{" + NL + "\t\t\tif (selection instanceof IStructuredSelection)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
+ protected final String TEXT_352 = " collection = ((IStructuredSelection)selection).toList();" + NL + "\t\t\t\tswitch (collection.size())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tcase 0:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_NoObjectSelected\"));";
+ protected final String TEXT_353 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcase 1:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tString text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection.iterator().next());" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_SingleObjectSelected\", text));";
+ protected final String TEXT_354 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tdefault:" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tstatusLineManager.setMessage(getString(\"_UI_MultiObjectSelected\", Integer.toString(collection.size())));";
+ protected final String TEXT_355 = NL + "\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\telse" + NL + "\t\t\t{" + NL + "\t\t\t\tstatusLineManager.setMessage(\"\");";
+ protected final String TEXT_356 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This looks up a string in the plugin's plugin.properties file." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key)" + NL + "\t{" + NL + "\t\treturn ";
+ protected final String TEXT_357 = ".INSTANCE.getString(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This looks up a string in plugin.properties, making a substitution." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static String getString(String key, Object s1)" + NL + "\t{" + NL + "\t\treturn ";
+ protected final String TEXT_358 = ".INSTANCE.getString(key, new Object [] { s1 });" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with contributions from the Edit menu." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void menuAboutToShow(IMenuManager menuManager)" + NL + "\t{" + NL + "\t\t((IMenuListener)getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic EditingDomainActionBarContributor getActionBarContributor()" + NL + "\t{" + NL + "\t\treturn (EditingDomainActionBarContributor)getEditorSite().getActionBarContributor();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IActionBars getActionBars()" + NL + "\t{" + NL + "\t\treturn getActionBarContributor().getActionBars();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic AdapterFactory getAdapterFactory()" + NL + "\t{" + NL + "\t\treturn adapterFactory;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_359 = NL + "\tpublic void dispose()" + NL + "\t{" + NL + "\t\tupdateProblemIndication = false;" + NL;
+ protected final String TEXT_360 = NL + "\t\tResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);" + NL;
+ protected final String TEXT_361 = NL + "\t\tgetSite().getPage().removePartListener(partListener);" + NL + "" + NL + "\t\tadapterFactory.dispose();" + NL + "" + NL + "\t\tif (getActionBarContributor().getActiveEditor() == this)" + NL + "\t\t{" + NL + "\t\t\tgetActionBarContributor().setActiveEditor(null);" + NL + "\t\t}" + NL;
+ protected final String TEXT_362 = NL + "\t\tfor (PropertySheetPage propertySheetPage : propertySheetPages)";
+ protected final String TEXT_363 = NL + "\t\tfor (Iterator i = propertySheetPages.iterator(); i.hasNext(); )";
+ protected final String TEXT_364 = NL + "\t\t\tPropertySheetPage propertySheetPage = (PropertySheetPage)i.next();";
+ protected final String TEXT_365 = NL + "\t\t\tpropertySheetPage.dispose();" + NL + "\t\t}" + NL + "" + NL + "\t\tif (contentOutlinePage != null)" + NL + "\t\t{" + NL + "\t\t\tcontentOutlinePage.dispose();" + NL + "\t\t}" + NL + "" + NL + "\t\tsuper.dispose();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Returns whether the outline view should be presented to the user." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean showOutlineView()" + NL + "\t{" + NL + "\t\treturn ";
+ protected final String TEXT_366 = ";" + NL + "\t}" + NL + "}";
public String generate(Object argument)
{
@@ -642,1044 +480,1044 @@ public class Editor
if (!genModel.isRichClientPlatform()) {
stringBuffer.append(TEXT_27);
}
- stringBuffer.append(TEXT_28);
+ stringBuffer.append(TEXT_7);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_29);
+ stringBuffer.append(TEXT_28);
}
- stringBuffer.append(TEXT_30);
+ stringBuffer.append(TEXT_29);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_31);
+ stringBuffer.append(TEXT_30);
}
if (genPackage.isMultipleEditorPages()) {
- stringBuffer.append(TEXT_32);
+ stringBuffer.append(TEXT_31);
}
- stringBuffer.append(TEXT_33);
+ stringBuffer.append(TEXT_32);
if (!genModel.isRichClientPlatform() && genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF23_VALUE) {
- stringBuffer.append(TEXT_34);
+ stringBuffer.append(TEXT_33);
}
- stringBuffer.append(TEXT_35);
+ stringBuffer.append(TEXT_34);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_36);
+ stringBuffer.append(TEXT_35);
}
- stringBuffer.append(TEXT_37);
+ stringBuffer.append(TEXT_36);
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF23_VALUE) {
- stringBuffer.append(TEXT_38);
+ stringBuffer.append(TEXT_37);
}
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_39);
+ stringBuffer.append(TEXT_38);
}
if (genModel.getComplianceLevel().getValue() >= GenJDKLevel.JDK50) {
- stringBuffer.append(TEXT_40);
+ stringBuffer.append(TEXT_39);
}
- stringBuffer.append(TEXT_41);
+ stringBuffer.append(TEXT_40);
stringBuffer.append(genPackage.getQualifiedItemProviderAdapterFactoryClassName());
- stringBuffer.append(TEXT_42);
+ stringBuffer.append(TEXT_41);
genModel.markImportLocation(stringBuffer);
- stringBuffer.append(TEXT_43);
+ stringBuffer.append(TEXT_42);
stringBuffer.append(genPackage.getPrefix());
- stringBuffer.append(TEXT_44);
+ stringBuffer.append(TEXT_43);
if (genPackage.hasAPITags()) {
- stringBuffer.append(TEXT_45);
+ stringBuffer.append(TEXT_3);
stringBuffer.append(genPackage.getAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_46);
+ stringBuffer.append(TEXT_44);
if (isJDK50 && genPackage.hasAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_47);
+ stringBuffer.append(TEXT_45);
}
- stringBuffer.append(TEXT_48);
+ stringBuffer.append(TEXT_46);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_49);
+ stringBuffer.append(TEXT_47);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_50);
+ stringBuffer.append(TEXT_48);
}
- stringBuffer.append(TEXT_51);
+ stringBuffer.append(TEXT_49);
if (genModel.hasCopyrightField()) {
- stringBuffer.append(TEXT_52);
+ stringBuffer.append(TEXT_50);
stringBuffer.append(genModel.getImportedName("java.lang.String"));
- stringBuffer.append(TEXT_53);
+ stringBuffer.append(TEXT_51);
stringBuffer.append(genModel.getCopyrightFieldLiteral());
- stringBuffer.append(TEXT_54);
+ stringBuffer.append(TEXT_52);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_55);
+ stringBuffer.append(TEXT_7);
}
if (genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_56);
+ stringBuffer.append(TEXT_53);
if (genPackage.isGenerateModelWizard()) {
- stringBuffer.append(TEXT_57);
+ stringBuffer.append(TEXT_54);
stringBuffer.append(_ListOfString);
- stringBuffer.append(TEXT_58);
+ stringBuffer.append(TEXT_55);
stringBuffer.append(genPackage.getImportedModelWizardClassName());
- stringBuffer.append(TEXT_59);
+ stringBuffer.append(TEXT_56);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_60);
+ stringBuffer.append(TEXT_57);
} else {
- stringBuffer.append(TEXT_61);
+ stringBuffer.append(TEXT_54);
stringBuffer.append(_ListOfString);
- stringBuffer.append(TEXT_62);
+ stringBuffer.append(TEXT_55);
stringBuffer.append(genModel.getImportedName("java.util.Arrays"));
- stringBuffer.append(TEXT_63);
+ stringBuffer.append(TEXT_58);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_64);
+ stringBuffer.append(TEXT_59);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_65);
+ stringBuffer.append(TEXT_60);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
stringBuffer.append(genModel.getNonNLS(3));
- stringBuffer.append(TEXT_66);
+ stringBuffer.append(TEXT_57);
}
- stringBuffer.append(TEXT_67);
+ stringBuffer.append(TEXT_61);
stringBuffer.append(_ListOfString);
- stringBuffer.append(TEXT_68);
+ stringBuffer.append(TEXT_62);
stringBuffer.append(_ListOfString);
- stringBuffer.append(TEXT_69);
+ stringBuffer.append(TEXT_63);
stringBuffer.append(_ListOfString);
- stringBuffer.append(TEXT_70);
+ stringBuffer.append(TEXT_64);
stringBuffer.append(_ArrayListOfString);
- stringBuffer.append(TEXT_71);
+ stringBuffer.append(TEXT_65);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_72);
+ stringBuffer.append(TEXT_66);
} else {
- stringBuffer.append(TEXT_73);
+ stringBuffer.append(TEXT_67);
}
- stringBuffer.append(TEXT_74);
+ stringBuffer.append(TEXT_68);
}
- stringBuffer.append(TEXT_75);
+ stringBuffer.append(TEXT_69);
stringBuffer.append(_ListOfPropertySheetPage);
- stringBuffer.append(TEXT_76);
+ stringBuffer.append(TEXT_70);
stringBuffer.append(_ArrayListOfPropertySheetPage);
- stringBuffer.append(TEXT_77);
+ stringBuffer.append(TEXT_71);
if (genPackage.isMultipleEditorPages()) {
- stringBuffer.append(TEXT_78);
+ stringBuffer.append(TEXT_72);
}
- stringBuffer.append(TEXT_79);
+ stringBuffer.append(TEXT_73);
stringBuffer.append(_CollectionOfSelectionChangedListener);
- stringBuffer.append(TEXT_80);
+ stringBuffer.append(TEXT_74);
stringBuffer.append(_ArrayListOfSelectionChangedListener);
- stringBuffer.append(TEXT_81);
+ stringBuffer.append(TEXT_75);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_82);
+ stringBuffer.append(TEXT_76);
}
- stringBuffer.append(TEXT_83);
+ stringBuffer.append(TEXT_77);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_84);
+ stringBuffer.append(TEXT_78);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_85);
+ stringBuffer.append(TEXT_79);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_86);
+ stringBuffer.append(TEXT_80);
stringBuffer.append(_CollectionOfResource);
- stringBuffer.append(TEXT_87);
+ stringBuffer.append(TEXT_81);
stringBuffer.append(_ArrayListOfResource);
- stringBuffer.append(TEXT_88);
+ stringBuffer.append(TEXT_82);
stringBuffer.append(_CollectionOfResource);
- stringBuffer.append(TEXT_89);
+ stringBuffer.append(TEXT_83);
stringBuffer.append(_ArrayListOfResource);
- stringBuffer.append(TEXT_90);
+ stringBuffer.append(TEXT_84);
stringBuffer.append(_CollectionOfResource);
- stringBuffer.append(TEXT_91);
+ stringBuffer.append(TEXT_85);
stringBuffer.append(_ArrayListOfResource);
- stringBuffer.append(TEXT_92);
+ stringBuffer.append(TEXT_86);
stringBuffer.append(_MapOfResourceToDiagnostic);
- stringBuffer.append(TEXT_93);
+ stringBuffer.append(TEXT_87);
stringBuffer.append(_LinkedHashMapOfResourceToDiagnostic);
- stringBuffer.append(TEXT_94);
+ stringBuffer.append(TEXT_88);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_95);
+ stringBuffer.append(TEXT_89);
}
- stringBuffer.append(TEXT_96);
+ stringBuffer.append(TEXT_90);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_97);
+ stringBuffer.append(TEXT_89);
}
- stringBuffer.append(TEXT_98);
+ stringBuffer.append(TEXT_91);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_99);
+ stringBuffer.append(TEXT_89);
}
- stringBuffer.append(TEXT_100);
+ stringBuffer.append(TEXT_92);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_101);
+ stringBuffer.append(TEXT_93);
stringBuffer.append(_CollectionOfResource);
- stringBuffer.append(TEXT_102);
+ stringBuffer.append(TEXT_83);
stringBuffer.append(_ArrayListOfResource);
- stringBuffer.append(TEXT_103);
+ stringBuffer.append(TEXT_94);
stringBuffer.append(_CollectionOfResource);
- stringBuffer.append(TEXT_104);
+ stringBuffer.append(TEXT_81);
stringBuffer.append(_ArrayListOfResource);
- stringBuffer.append(TEXT_105);
+ stringBuffer.append(TEXT_95);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_106);
+ stringBuffer.append(TEXT_96);
}
- stringBuffer.append(TEXT_107);
+ stringBuffer.append(TEXT_97);
if (genModel.getDecoration() == GenDecoration.NONE) {
- stringBuffer.append(TEXT_108);
+ stringBuffer.append(TEXT_98);
}
- stringBuffer.append(TEXT_109);
+ stringBuffer.append(TEXT_99);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_110);
+ stringBuffer.append(TEXT_96);
}
- stringBuffer.append(TEXT_111);
+ stringBuffer.append(TEXT_100);
if (genModel.getDecoration() == GenDecoration.NONE) {
- stringBuffer.append(TEXT_112);
+ stringBuffer.append(TEXT_101);
} else {
- stringBuffer.append(TEXT_113);
+ stringBuffer.append(TEXT_102);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_114);
+ stringBuffer.append(TEXT_103);
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF211_VALUE) {
- stringBuffer.append(TEXT_115);
+ stringBuffer.append(TEXT_104);
}
- stringBuffer.append(TEXT_116);
+ stringBuffer.append(TEXT_105);
}
- stringBuffer.append(TEXT_117);
+ stringBuffer.append(TEXT_106);
stringBuffer.append(_CollectionOfResource);
- stringBuffer.append(TEXT_118);
+ stringBuffer.append(TEXT_107);
stringBuffer.append(_CollectionOfResource);
- stringBuffer.append(TEXT_119);
+ stringBuffer.append(TEXT_108);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_120);
+ stringBuffer.append(TEXT_109);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_121);
+ stringBuffer.append(TEXT_110);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_122);
+ stringBuffer.append(TEXT_111);
}
- stringBuffer.append(TEXT_123);
+ stringBuffer.append(TEXT_112);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_124);
+ stringBuffer.append(TEXT_113);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_125);
+ stringBuffer.append(TEXT_114);
} else {
- stringBuffer.append(TEXT_126);
+ stringBuffer.append(TEXT_115);
}
- stringBuffer.append(TEXT_127);
+ stringBuffer.append(TEXT_116);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_128);
+ stringBuffer.append(TEXT_117);
}
- stringBuffer.append(TEXT_129);
+ stringBuffer.append(TEXT_118);
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF24_VALUE) {
- stringBuffer.append(TEXT_130);
+ stringBuffer.append(TEXT_119);
}
- stringBuffer.append(TEXT_131);
+ stringBuffer.append(TEXT_120);
stringBuffer.append(genPackage.getGenModel().getEditorPluginID());
- stringBuffer.append(TEXT_132);
+ stringBuffer.append(TEXT_121);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_133);
+ stringBuffer.append(TEXT_122);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_134);
+ stringBuffer.append(TEXT_123);
} else {
- stringBuffer.append(TEXT_135);
+ stringBuffer.append(TEXT_124);
}
- stringBuffer.append(TEXT_136);
+ stringBuffer.append(TEXT_116);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_137);
+ stringBuffer.append(TEXT_125);
}
- stringBuffer.append(TEXT_138);
+ stringBuffer.append(TEXT_126);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_139);
+ stringBuffer.append(TEXT_127);
}
- stringBuffer.append(TEXT_140);
+ stringBuffer.append(TEXT_128);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_141);
+ stringBuffer.append(TEXT_129);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_142);
+ stringBuffer.append(TEXT_130);
if (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF213_VALUE) {
- stringBuffer.append(TEXT_143);
+ stringBuffer.append(TEXT_131);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_144);
+ stringBuffer.append(TEXT_132);
} else {
- stringBuffer.append(TEXT_145);
+ stringBuffer.append(TEXT_133);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_146);
+ stringBuffer.append(TEXT_134);
}
- stringBuffer.append(TEXT_147);
+ stringBuffer.append(TEXT_135);
}
- stringBuffer.append(TEXT_148);
+ stringBuffer.append(TEXT_136);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_149);
+ stringBuffer.append(TEXT_137);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_150);
+ stringBuffer.append(TEXT_138);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_151);
+ stringBuffer.append(TEXT_139);
for (GenPackage aGenPackage : genModel.getAllGenPackagesWithClassifiers()) {
if (!aGenPackage.getGenClasses().isEmpty() && aGenPackage.getGenModel().hasEditSupport()) {
- stringBuffer.append(TEXT_152);
+ stringBuffer.append(TEXT_140);
stringBuffer.append(aGenPackage.getImportedItemProviderAdapterFactoryClassName());
- stringBuffer.append(TEXT_153);
+ stringBuffer.append(TEXT_141);
}
}
for (GenPackage aGenPackage : genModel.getAllUsedGenPackagesWithClassifiers()) {
if (!aGenPackage.getGenClasses().isEmpty() && aGenPackage.getGenModel().hasEditSupport()) {
- stringBuffer.append(TEXT_154);
+ stringBuffer.append(TEXT_140);
stringBuffer.append(aGenPackage.getImportedItemProviderAdapterFactoryClassName());
- stringBuffer.append(TEXT_155);
+ stringBuffer.append(TEXT_141);
}
}
//Editor/addItemproviderFactories.override.javajetinc"
- stringBuffer.append(TEXT_156);
+ stringBuffer.append(TEXT_142);
if (genModel.getDecoration() != GenDecoration.LIVE || genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF212_VALUE) {
- stringBuffer.append(TEXT_157);
+ stringBuffer.append(TEXT_143);
} else {
- stringBuffer.append(TEXT_158);
+ stringBuffer.append(TEXT_144);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_159);
+ stringBuffer.append(TEXT_145);
}
- stringBuffer.append(TEXT_160);
+ stringBuffer.append(TEXT_146);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.command.AbstractCommand"));
- stringBuffer.append(TEXT_161);
+ stringBuffer.append(TEXT_147);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_162);
+ stringBuffer.append(TEXT_148);
}
- stringBuffer.append(TEXT_163);
+ stringBuffer.append(TEXT_149);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_164);
+ stringBuffer.append(TEXT_150);
}
- stringBuffer.append(TEXT_165);
+ stringBuffer.append(TEXT_151);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_166);
+ stringBuffer.append(TEXT_152);
}
- stringBuffer.append(TEXT_167);
+ stringBuffer.append(TEXT_153);
stringBuffer.append(_HashMapOfResourceToBoolean);
- stringBuffer.append(TEXT_168);
+ stringBuffer.append(TEXT_154);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_169);
+ stringBuffer.append(TEXT_89);
}
- stringBuffer.append(TEXT_170);
+ stringBuffer.append(TEXT_155);
stringBuffer.append(_CollectionOfAnything);
- stringBuffer.append(TEXT_171);
+ stringBuffer.append(TEXT_156);
stringBuffer.append(_CollectionOfAnything);
- stringBuffer.append(TEXT_172);
+ stringBuffer.append(TEXT_157);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_173);
+ stringBuffer.append(TEXT_158);
}
- stringBuffer.append(TEXT_174);
+ stringBuffer.append(TEXT_159);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_175);
+ stringBuffer.append(TEXT_158);
}
- stringBuffer.append(TEXT_176);
+ stringBuffer.append(TEXT_160);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_177);
+ stringBuffer.append(TEXT_158);
}
- stringBuffer.append(TEXT_178);
+ stringBuffer.append(TEXT_161);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_179);
+ stringBuffer.append(TEXT_158);
}
- stringBuffer.append(TEXT_180);
+ stringBuffer.append(TEXT_162);
if (genPackage.isMultipleEditorPages()) {
- stringBuffer.append(TEXT_181);
+ stringBuffer.append(TEXT_163);
}
- stringBuffer.append(TEXT_182);
+ stringBuffer.append(TEXT_164);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_183);
+ stringBuffer.append(TEXT_165);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_184);
+ stringBuffer.append(TEXT_166);
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF23_VALUE) {
- stringBuffer.append(TEXT_185);
+ stringBuffer.append(TEXT_167);
} else {
- stringBuffer.append(TEXT_186);
+ stringBuffer.append(TEXT_168);
}
- stringBuffer.append(TEXT_187);
+ stringBuffer.append(TEXT_169);
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF29_VALUE) {
- stringBuffer.append(TEXT_188);
+ stringBuffer.append(TEXT_170);
}
- stringBuffer.append(TEXT_189);
+ stringBuffer.append(TEXT_171);
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF211_VALUE) {
- stringBuffer.append(TEXT_190);
+ stringBuffer.append(TEXT_172);
} else if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF23_VALUE) {
- stringBuffer.append(TEXT_191);
+ stringBuffer.append(TEXT_173);
} else if (genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_192);
+ stringBuffer.append(TEXT_174);
} else {
- stringBuffer.append(TEXT_193);
+ stringBuffer.append(TEXT_175);
}
- stringBuffer.append(TEXT_194);
+ stringBuffer.append(TEXT_176);
stringBuffer.append(genPackage.getGenModel().getEditorPluginID());
- stringBuffer.append(TEXT_195);
+ stringBuffer.append(TEXT_121);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_196);
+ stringBuffer.append(TEXT_177);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_197);
+ stringBuffer.append(TEXT_178);
stringBuffer.append(genPackage.getGenModel().getEditorPluginID());
- stringBuffer.append(TEXT_198);
+ stringBuffer.append(TEXT_121);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_199);
+ stringBuffer.append(TEXT_177);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_200);
+ stringBuffer.append(TEXT_179);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_201);
+ stringBuffer.append(TEXT_180);
}
- stringBuffer.append(TEXT_202);
+ stringBuffer.append(TEXT_181);
if (genPackage.isMultipleEditorPages()) {
- stringBuffer.append(TEXT_203);
+ stringBuffer.append(TEXT_182);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_204);
+ stringBuffer.append(TEXT_183);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_205);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_206);
+ stringBuffer.append(TEXT_185);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_207);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_208);
+ stringBuffer.append(TEXT_186);
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_209);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DelegatingAdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_210);
+ stringBuffer.append(TEXT_188);
}
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_211);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DecoratingColumLabelProvider);
- stringBuffer.append(TEXT_212);
+ stringBuffer.append(TEXT_188);
}
- stringBuffer.append(TEXT_213);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_AdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_214);
+ stringBuffer.append(TEXT_189);
if (useExtendedLabelProvider) {
- stringBuffer.append(TEXT_215);
+ stringBuffer.append(TEXT_190);
}
- stringBuffer.append(TEXT_216);
+ stringBuffer.append(TEXT_191);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_217);
+ stringBuffer.append(TEXT_192);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_218);
+ stringBuffer.append(TEXT_193);
if (genModel.getDecoration() == GenDecoration.MANUAL) {
- stringBuffer.append(TEXT_219);
+ stringBuffer.append(TEXT_194);
}
- stringBuffer.append(TEXT_220);
+ stringBuffer.append(TEXT_190);
if (genModel.getDecoration() == GenDecoration.LIVE) {
- stringBuffer.append(TEXT_221);
+ stringBuffer.append(TEXT_195);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_222);
+ stringBuffer.append(TEXT_196);
}
- stringBuffer.append(TEXT_223);
+ stringBuffer.append(TEXT_197);
}
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_224);
+ stringBuffer.append(TEXT_191);
}
- stringBuffer.append(TEXT_225);
+ stringBuffer.append(TEXT_198);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_226);
+ stringBuffer.append(TEXT_199);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.viewer.ColumnViewerInformationControlToolTipSupport"));
- stringBuffer.append(TEXT_227);
+ stringBuffer.append(TEXT_200);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_228);
+ stringBuffer.append(TEXT_201);
}
- stringBuffer.append(TEXT_229);
+ stringBuffer.append(TEXT_202);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_230);
+ stringBuffer.append(TEXT_203);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_231);
+ stringBuffer.append(TEXT_183);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_232);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_233);
+ stringBuffer.append(TEXT_185);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_234);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_235);
+ stringBuffer.append(TEXT_204);
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_236);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DelegatingAdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_237);
+ stringBuffer.append(TEXT_188);
}
- stringBuffer.append(TEXT_238);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_AdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_239);
+ stringBuffer.append(TEXT_189);
if (useExtendedLabelProvider) {
- stringBuffer.append(TEXT_240);
+ stringBuffer.append(TEXT_205);
}
- stringBuffer.append(TEXT_241);
+ stringBuffer.append(TEXT_191);
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_242);
+ stringBuffer.append(TEXT_191);
}
- stringBuffer.append(TEXT_243);
+ stringBuffer.append(TEXT_206);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_244);
+ stringBuffer.append(TEXT_207);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_245);
+ stringBuffer.append(TEXT_183);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_246);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_247);
+ stringBuffer.append(TEXT_208);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_248);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_249);
+ stringBuffer.append(TEXT_209);
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_250);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DelegatingAdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_251);
+ stringBuffer.append(TEXT_188);
}
- stringBuffer.append(TEXT_252);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_AdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_253);
+ stringBuffer.append(TEXT_189);
if (useExtendedLabelProvider) {
- stringBuffer.append(TEXT_254);
+ stringBuffer.append(TEXT_210);
}
- stringBuffer.append(TEXT_255);
+ stringBuffer.append(TEXT_191);
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_256);
+ stringBuffer.append(TEXT_191);
}
- stringBuffer.append(TEXT_257);
+ stringBuffer.append(TEXT_211);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_258);
+ stringBuffer.append(TEXT_212);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_259);
+ stringBuffer.append(TEXT_183);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_260);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_261);
+ stringBuffer.append(TEXT_213);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_262);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_263);
+ stringBuffer.append(TEXT_214);
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_264);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DelegatingAdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_265);
+ stringBuffer.append(TEXT_188);
}
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_266);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DecoratingColumLabelProvider);
- stringBuffer.append(TEXT_267);
+ stringBuffer.append(TEXT_188);
}
- stringBuffer.append(TEXT_268);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_AdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_269);
+ stringBuffer.append(TEXT_189);
if (useExtendedLabelProvider) {
- stringBuffer.append(TEXT_270);
+ stringBuffer.append(TEXT_215);
}
- stringBuffer.append(TEXT_271);
+ stringBuffer.append(TEXT_191);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_272);
+ stringBuffer.append(TEXT_192);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_273);
+ stringBuffer.append(TEXT_193);
if (genModel.getDecoration() == GenDecoration.MANUAL) {
- stringBuffer.append(TEXT_274);
+ stringBuffer.append(TEXT_194);
}
- stringBuffer.append(TEXT_275);
+ stringBuffer.append(TEXT_216);
}
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_276);
+ stringBuffer.append(TEXT_191);
}
- stringBuffer.append(TEXT_277);
+ stringBuffer.append(TEXT_217);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_278);
+ stringBuffer.append(TEXT_199);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.viewer.ColumnViewerInformationControlToolTipSupport"));
- stringBuffer.append(TEXT_279);
+ stringBuffer.append(TEXT_218);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_280);
+ stringBuffer.append(TEXT_219);
}
- stringBuffer.append(TEXT_281);
+ stringBuffer.append(TEXT_220);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_282);
+ stringBuffer.append(TEXT_221);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_283);
+ stringBuffer.append(TEXT_183);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_284);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_285);
+ stringBuffer.append(TEXT_222);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_286);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_287);
+ stringBuffer.append(TEXT_223);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_288);
+ stringBuffer.append(TEXT_224);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_289);
+ stringBuffer.append(TEXT_225);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
- stringBuffer.append(TEXT_290);
+ stringBuffer.append(TEXT_226);
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_291);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DelegatingAdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_292);
+ stringBuffer.append(TEXT_188);
}
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_293);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DecoratingColumLabelProvider);
- stringBuffer.append(TEXT_294);
+ stringBuffer.append(TEXT_188);
}
- stringBuffer.append(TEXT_295);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_AdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_296);
+ stringBuffer.append(TEXT_189);
if (useExtendedLabelProvider) {
- stringBuffer.append(TEXT_297);
+ stringBuffer.append(TEXT_227);
}
- stringBuffer.append(TEXT_298);
+ stringBuffer.append(TEXT_191);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_299);
+ stringBuffer.append(TEXT_192);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_300);
+ stringBuffer.append(TEXT_193);
if (genModel.getDecoration() == GenDecoration.MANUAL) {
- stringBuffer.append(TEXT_301);
+ stringBuffer.append(TEXT_194);
}
- stringBuffer.append(TEXT_302);
+ stringBuffer.append(TEXT_227);
if (genModel.getDecoration() == GenDecoration.LIVE) {
- stringBuffer.append(TEXT_303);
+ stringBuffer.append(TEXT_195);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_304);
+ stringBuffer.append(TEXT_196);
}
- stringBuffer.append(TEXT_305);
+ stringBuffer.append(TEXT_197);
}
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_306);
+ stringBuffer.append(TEXT_191);
}
- stringBuffer.append(TEXT_307);
+ stringBuffer.append(TEXT_228);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_308);
+ stringBuffer.append(TEXT_199);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.viewer.ColumnViewerInformationControlToolTipSupport"));
- stringBuffer.append(TEXT_309);
+ stringBuffer.append(TEXT_229);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_310);
+ stringBuffer.append(TEXT_230);
}
- stringBuffer.append(TEXT_311);
+ stringBuffer.append(TEXT_231);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_312);
+ stringBuffer.append(TEXT_232);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_313);
+ stringBuffer.append(TEXT_183);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_314);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_315);
+ stringBuffer.append(TEXT_213);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_316);
+ stringBuffer.append(TEXT_184);
}
- stringBuffer.append(TEXT_317);
+ stringBuffer.append(TEXT_233);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_318);
+ stringBuffer.append(TEXT_234);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_319);
+ stringBuffer.append(TEXT_235);
stringBuffer.append(genModel.getNonNLS());
stringBuffer.append(genModel.getNonNLS(2));
- stringBuffer.append(TEXT_320);
+ stringBuffer.append(TEXT_236);
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_321);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DelegatingAdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_322);
+ stringBuffer.append(TEXT_188);
}
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_323);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DecoratingColumLabelProvider);
- stringBuffer.append(TEXT_324);
+ stringBuffer.append(TEXT_188);
}
- stringBuffer.append(TEXT_325);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_AdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_326);
+ stringBuffer.append(TEXT_189);
if (useExtendedLabelProvider) {
- stringBuffer.append(TEXT_327);
+ stringBuffer.append(TEXT_237);
}
- stringBuffer.append(TEXT_328);
+ stringBuffer.append(TEXT_191);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_329);
+ stringBuffer.append(TEXT_192);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_330);
+ stringBuffer.append(TEXT_193);
if (genModel.getDecoration() == GenDecoration.MANUAL) {
- stringBuffer.append(TEXT_331);
+ stringBuffer.append(TEXT_194);
}
- stringBuffer.append(TEXT_332);
+ stringBuffer.append(TEXT_237);
if (genModel.getDecoration() == GenDecoration.LIVE) {
- stringBuffer.append(TEXT_333);
+ stringBuffer.append(TEXT_195);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_334);
+ stringBuffer.append(TEXT_196);
}
- stringBuffer.append(TEXT_335);
+ stringBuffer.append(TEXT_197);
}
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_336);
+ stringBuffer.append(TEXT_191);
}
- stringBuffer.append(TEXT_337);
+ stringBuffer.append(TEXT_228);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_338);
+ stringBuffer.append(TEXT_199);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.viewer.ColumnViewerInformationControlToolTipSupport"));
- stringBuffer.append(TEXT_339);
+ stringBuffer.append(TEXT_238);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_340);
+ stringBuffer.append(TEXT_239);
}
- stringBuffer.append(TEXT_341);
+ stringBuffer.append(TEXT_240);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_342);
+ stringBuffer.append(TEXT_135);
} else {
- stringBuffer.append(TEXT_343);
+ stringBuffer.append(TEXT_241);
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_344);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DelegatingAdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_345);
+ stringBuffer.append(TEXT_188);
}
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_346);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DecoratingColumLabelProvider);
- stringBuffer.append(TEXT_347);
+ stringBuffer.append(TEXT_188);
}
- stringBuffer.append(TEXT_348);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_AdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_349);
+ stringBuffer.append(TEXT_189);
if (useExtendedLabelProvider) {
- stringBuffer.append(TEXT_350);
+ stringBuffer.append(TEXT_190);
}
- stringBuffer.append(TEXT_351);
+ stringBuffer.append(TEXT_191);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_352);
+ stringBuffer.append(TEXT_192);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_353);
+ stringBuffer.append(TEXT_193);
if (genModel.getDecoration() == GenDecoration.MANUAL) {
- stringBuffer.append(TEXT_354);
+ stringBuffer.append(TEXT_194);
}
- stringBuffer.append(TEXT_355);
+ stringBuffer.append(TEXT_190);
if (genModel.getDecoration() == GenDecoration.LIVE) {
- stringBuffer.append(TEXT_356);
+ stringBuffer.append(TEXT_195);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_357);
+ stringBuffer.append(TEXT_196);
}
- stringBuffer.append(TEXT_358);
+ stringBuffer.append(TEXT_197);
}
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_359);
+ stringBuffer.append(TEXT_191);
}
- stringBuffer.append(TEXT_360);
+ stringBuffer.append(TEXT_242);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_361);
+ stringBuffer.append(TEXT_243);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.viewer.ColumnViewerInformationControlToolTipSupport"));
- stringBuffer.append(TEXT_362);
+ stringBuffer.append(TEXT_200);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_363);
+ stringBuffer.append(TEXT_201);
}
- stringBuffer.append(TEXT_364);
+ stringBuffer.append(TEXT_244);
stringBuffer.append(genModel.getNonNLS());
}
- stringBuffer.append(TEXT_365);
+ stringBuffer.append(TEXT_245);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_366);
+ stringBuffer.append(TEXT_145);
}
- stringBuffer.append(TEXT_367);
+ stringBuffer.append(TEXT_246);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_368);
+ stringBuffer.append(TEXT_247);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_369);
+ stringBuffer.append(TEXT_248);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_370);
+ stringBuffer.append(TEXT_180);
}
- stringBuffer.append(TEXT_371);
+ stringBuffer.append(TEXT_249);
if (genModel.useGenerics() && genModel.getEclipsePlatformVersion().getValue() < GenEclipsePlatformVersion.MARS_VALUE) {
- stringBuffer.append(TEXT_372);
+ stringBuffer.append(TEXT_250);
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF26_VALUE) {
- stringBuffer.append(TEXT_373);
+ stringBuffer.append(TEXT_251);
} else {
- stringBuffer.append(TEXT_374);
+ stringBuffer.append(TEXT_252);
}
- stringBuffer.append(TEXT_375);
+ stringBuffer.append(TEXT_253);
}
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_376);
+ stringBuffer.append(TEXT_180);
}
if (genModel.getEclipsePlatformVersion().getValue() >= GenEclipsePlatformVersion.MARS_VALUE) {
- stringBuffer.append(TEXT_377);
+ stringBuffer.append(TEXT_254);
} else {
- stringBuffer.append(TEXT_378);
+ stringBuffer.append(TEXT_255);
}
- stringBuffer.append(TEXT_379);
+ stringBuffer.append(TEXT_256);
if (genModel.getEclipsePlatformVersion().getValue() >= GenEclipsePlatformVersion.MARS_VALUE) {
- stringBuffer.append(TEXT_380);
+ stringBuffer.append(TEXT_257);
} else {
- stringBuffer.append(TEXT_381);
+ stringBuffer.append(TEXT_258);
}
- stringBuffer.append(TEXT_382);
+ stringBuffer.append(TEXT_259);
if (genModel.getEclipsePlatformVersion().getValue() >= GenEclipsePlatformVersion.MARS_VALUE) {
- stringBuffer.append(TEXT_383);
+ stringBuffer.append(TEXT_260);
} else {
- stringBuffer.append(TEXT_384);
+ stringBuffer.append(TEXT_261);
}
- stringBuffer.append(TEXT_385);
+ stringBuffer.append(TEXT_262);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_386);
+ stringBuffer.append(TEXT_263);
if (genModel.getEclipsePlatformVersion().getValue() >= GenEclipsePlatformVersion.MARS_VALUE) {
- stringBuffer.append(TEXT_387);
+ stringBuffer.append(TEXT_264);
} else {
- stringBuffer.append(TEXT_388);
+ stringBuffer.append(TEXT_265);
}
- stringBuffer.append(TEXT_389);
+ stringBuffer.append(TEXT_262);
}
- stringBuffer.append(TEXT_390);
+ stringBuffer.append(TEXT_266);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_391);
+ stringBuffer.append(TEXT_145);
}
- stringBuffer.append(TEXT_392);
+ stringBuffer.append(TEXT_267);
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_393);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DelegatingAdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_394);
+ stringBuffer.append(TEXT_188);
}
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_395);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_DecoratingColumLabelProvider);
- stringBuffer.append(TEXT_396);
+ stringBuffer.append(TEXT_188);
}
- stringBuffer.append(TEXT_397);
+ stringBuffer.append(TEXT_187);
stringBuffer.append(_AdapterFactoryLabelProvider);
- stringBuffer.append(TEXT_398);
+ stringBuffer.append(TEXT_189);
if (useExtendedLabelProvider) {
- stringBuffer.append(TEXT_399);
+ stringBuffer.append(TEXT_268);
}
- stringBuffer.append(TEXT_400);
+ stringBuffer.append(TEXT_191);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_401);
+ stringBuffer.append(TEXT_192);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_402);
+ stringBuffer.append(TEXT_193);
if (genModel.getDecoration() == GenDecoration.MANUAL) {
- stringBuffer.append(TEXT_403);
+ stringBuffer.append(TEXT_194);
}
- stringBuffer.append(TEXT_404);
+ stringBuffer.append(TEXT_268);
if (genModel.getDecoration() == GenDecoration.LIVE) {
- stringBuffer.append(TEXT_405);
+ stringBuffer.append(TEXT_195);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_406);
+ stringBuffer.append(TEXT_196);
}
- stringBuffer.append(TEXT_407);
+ stringBuffer.append(TEXT_197);
}
if (useStyledLabelProvider) {
- stringBuffer.append(TEXT_408);
+ stringBuffer.append(TEXT_191);
}
- stringBuffer.append(TEXT_409);
+ stringBuffer.append(TEXT_269);
if (genModel.getDecoration() != GenDecoration.NONE) {
- stringBuffer.append(TEXT_410);
+ stringBuffer.append(TEXT_270);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.viewer.ColumnViewerInformationControlToolTipSupport"));
- stringBuffer.append(TEXT_411);
+ stringBuffer.append(TEXT_271);
stringBuffer.append(_DiagnosticDecorator);
- stringBuffer.append(TEXT_412);
+ stringBuffer.append(TEXT_272);
}
- stringBuffer.append(TEXT_413);
+ stringBuffer.append(TEXT_273);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_414);
+ stringBuffer.append(TEXT_145);
}
- stringBuffer.append(TEXT_415);
+ stringBuffer.append(TEXT_274);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_416);
+ stringBuffer.append(TEXT_145);
}
- stringBuffer.append(TEXT_417);
+ stringBuffer.append(TEXT_275);
if (genModel.getDecoration() == GenDecoration.MANUAL) {
- stringBuffer.append(TEXT_418);
+ stringBuffer.append(TEXT_276);
} else if (genModel.getDecoration() == GenDecoration.LIVE) {
- stringBuffer.append(TEXT_419);
+ stringBuffer.append(TEXT_277);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_420);
+ stringBuffer.append(TEXT_196);
}
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF214_VALUE) {
- stringBuffer.append(TEXT_421);
+ stringBuffer.append(TEXT_195);
if (genModel.getDecoration() == GenDecoration.NONE) {
- stringBuffer.append(TEXT_422);
+ stringBuffer.append(TEXT_278);
}
if (genModel.getDecoration() != GenDecoration.LIVE) {
- stringBuffer.append(TEXT_423);
+ stringBuffer.append(TEXT_279);
}
stringBuffer.append(genModel.getAutoExpandProperties());
- stringBuffer.append(TEXT_424);
+ stringBuffer.append(TEXT_195);
stringBuffer.append(genModel.isAutoResizeProperties());
}
- stringBuffer.append(TEXT_425);
+ stringBuffer.append(TEXT_280);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_426);
+ stringBuffer.append(TEXT_145);
}
- stringBuffer.append(TEXT_427);
+ stringBuffer.append(TEXT_281);
stringBuffer.append(_ListOfAnything);
- stringBuffer.append(TEXT_428);
+ stringBuffer.append(TEXT_282);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_429);
+ stringBuffer.append(TEXT_283);
stringBuffer.append(genPackage.getEditorClassName());
- stringBuffer.append(TEXT_430);
+ stringBuffer.append(TEXT_284);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_431);
+ stringBuffer.append(TEXT_145);
}
- stringBuffer.append(TEXT_432);
+ stringBuffer.append(TEXT_285);
if (genPackage.isMultipleEditorPages()) {
- stringBuffer.append(TEXT_433);
+ stringBuffer.append(TEXT_286);
} else {
- stringBuffer.append(TEXT_434);
+ stringBuffer.append(TEXT_287);
}
- stringBuffer.append(TEXT_435);
+ stringBuffer.append(TEXT_288);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_436);
+ stringBuffer.append(TEXT_289);
}
- stringBuffer.append(TEXT_437);
+ stringBuffer.append(TEXT_290);
if (genPackage.isMultipleEditorPages()) {
- stringBuffer.append(TEXT_438);
+ stringBuffer.append(TEXT_291);
stringBuffer.append(_ArrayListOfObject);
- stringBuffer.append(TEXT_439);
+ stringBuffer.append(TEXT_292);
stringBuffer.append(_ArrayListOfObject);
- stringBuffer.append(TEXT_440);
+ stringBuffer.append(TEXT_293);
} else {
- stringBuffer.append(TEXT_441);
+ stringBuffer.append(TEXT_294);
stringBuffer.append(_ArrayListOfObject);
- stringBuffer.append(TEXT_442);
+ stringBuffer.append(TEXT_292);
stringBuffer.append(_ArrayListOfObject);
- stringBuffer.append(TEXT_443);
+ stringBuffer.append(TEXT_295);
}
- stringBuffer.append(TEXT_444);
+ stringBuffer.append(TEXT_296);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_445);
+ stringBuffer.append(TEXT_180);
}
- stringBuffer.append(TEXT_446);
+ stringBuffer.append(TEXT_297);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_447);
+ stringBuffer.append(TEXT_180);
}
- stringBuffer.append(TEXT_448);
+ stringBuffer.append(TEXT_298);
stringBuffer.append(_MapOfObjectToObject);
- stringBuffer.append(TEXT_449);
+ stringBuffer.append(TEXT_299);
stringBuffer.append(_HashMapOfObjectToObject);
- stringBuffer.append(TEXT_450);
+ stringBuffer.append(TEXT_65);
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF23_VALUE) {
- stringBuffer.append(TEXT_451);
+ stringBuffer.append(TEXT_300);
}
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF29_VALUE) {
- stringBuffer.append(TEXT_452);
+ stringBuffer.append(TEXT_301);
}
- stringBuffer.append(TEXT_453);
+ stringBuffer.append(TEXT_302);
stringBuffer.append(importedOperationClassName);
- stringBuffer.append(TEXT_454);
+ stringBuffer.append(TEXT_303);
stringBuffer.append(importedOperationClassName);
- stringBuffer.append(TEXT_455);
+ stringBuffer.append(TEXT_304);
if (!genModel.isRichClientPlatform() && genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_456);
+ stringBuffer.append(TEXT_145);
}
- stringBuffer.append(TEXT_457);
+ stringBuffer.append(TEXT_305);
stringBuffer.append(operationMethodName);
- stringBuffer.append(TEXT_458);
+ stringBuffer.append(TEXT_306);
stringBuffer.append(_ListOfResource);
- stringBuffer.append(TEXT_459);
+ stringBuffer.append(TEXT_307);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_460);
+ stringBuffer.append(TEXT_308);
}
- stringBuffer.append(TEXT_461);
+ stringBuffer.append(TEXT_309);
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF24_VALUE) {
- stringBuffer.append(TEXT_462);
+ stringBuffer.append(TEXT_310);
} else {
- stringBuffer.append(TEXT_463);
+ stringBuffer.append(TEXT_311);
}
- stringBuffer.append(TEXT_464);
+ stringBuffer.append(TEXT_312);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_465);
+ stringBuffer.append(TEXT_313);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_466);
+ stringBuffer.append(TEXT_180);
}
- stringBuffer.append(TEXT_467);
+ stringBuffer.append(TEXT_314);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_468);
+ stringBuffer.append(TEXT_180);
}
- stringBuffer.append(TEXT_469);
+ stringBuffer.append(TEXT_315);
if (genModel.isRichClientPlatform()) {
if (genModel.isRichAjaxPlatform()) {
- stringBuffer.append(TEXT_470);
+ stringBuffer.append(TEXT_316);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.dialogs.ResourceDialog"));
- stringBuffer.append(TEXT_471);
+ stringBuffer.append(TEXT_317);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_472);
+ stringBuffer.append(TEXT_145);
}
- stringBuffer.append(TEXT_473);
+ stringBuffer.append(TEXT_318);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_474);
+ stringBuffer.append(TEXT_145);
}
- stringBuffer.append(TEXT_475);
+ stringBuffer.append(TEXT_319);
stringBuffer.append("List" + (genModel.useGenerics() ? "<URI>" : ""));
- stringBuffer.append(TEXT_476);
+ stringBuffer.append(TEXT_320);
stringBuffer.append(genModel.useGenerics() ? "": "(URI)");
- stringBuffer.append(TEXT_477);
+ stringBuffer.append(TEXT_321);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.URIEditorInput"));
- stringBuffer.append(TEXT_478);
+ stringBuffer.append(TEXT_322);
} else {
- stringBuffer.append(TEXT_479);
+ stringBuffer.append(TEXT_323);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_480);
+ stringBuffer.append(TEXT_324);
}
- stringBuffer.append(TEXT_481);
+ stringBuffer.append(TEXT_325);
stringBuffer.append(genModel.getImportedName(genModel.getQualifiedEditorAdvisorClassName()));
- stringBuffer.append(TEXT_482);
+ stringBuffer.append(TEXT_326);
stringBuffer.append(genModel.getImportedName("org.eclipse.swt.SWT"));
- stringBuffer.append(TEXT_483);
+ stringBuffer.append(TEXT_327);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.common.ui.URIEditorInput"));
- stringBuffer.append(TEXT_484);
+ stringBuffer.append(TEXT_328);
}
} else {
- stringBuffer.append(TEXT_485);
+ stringBuffer.append(TEXT_329);
}
- stringBuffer.append(TEXT_486);
+ stringBuffer.append(TEXT_330);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_487);
+ stringBuffer.append(TEXT_308);
}
- stringBuffer.append(TEXT_488);
+ stringBuffer.append(TEXT_331);
stringBuffer.append(genModel.getImportedName("org.eclipse.core.runtime.NullProgressMonitor"));
- stringBuffer.append(TEXT_489);
+ stringBuffer.append(TEXT_332);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_490);
+ stringBuffer.append(TEXT_333);
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF23_VALUE) {
- stringBuffer.append(TEXT_491);
+ stringBuffer.append(TEXT_334);
stringBuffer.append(_ListOfAnything);
- stringBuffer.append(TEXT_492);
+ stringBuffer.append(TEXT_335);
} else {
- stringBuffer.append(TEXT_493);
+ stringBuffer.append(TEXT_336);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_494);
+ stringBuffer.append(TEXT_337);
}
- stringBuffer.append(TEXT_495);
+ stringBuffer.append(TEXT_338);
}
- stringBuffer.append(TEXT_496);
+ stringBuffer.append(TEXT_339);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_497);
+ stringBuffer.append(TEXT_180);
}
- stringBuffer.append(TEXT_498);
+ stringBuffer.append(TEXT_340);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_499);
+ stringBuffer.append(TEXT_341);
}
- stringBuffer.append(TEXT_500);
+ stringBuffer.append(TEXT_342);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_501);
+ stringBuffer.append(TEXT_180);
}
- stringBuffer.append(TEXT_502);
+ stringBuffer.append(TEXT_343);
if (genPackage.isMultipleEditorPages()) {
- stringBuffer.append(TEXT_503);
+ stringBuffer.append(TEXT_344);
} else {
- stringBuffer.append(TEXT_504);
+ stringBuffer.append(TEXT_345);
}
- stringBuffer.append(TEXT_505);
+ stringBuffer.append(TEXT_346);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_506);
+ stringBuffer.append(TEXT_347);
} else {
- stringBuffer.append(TEXT_507);
+ stringBuffer.append(TEXT_348);
}
- stringBuffer.append(TEXT_508);
+ stringBuffer.append(TEXT_349);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_509);
+ stringBuffer.append(TEXT_350);
}
- stringBuffer.append(TEXT_510);
+ stringBuffer.append(TEXT_351);
stringBuffer.append(_CollectionOfAnything);
- stringBuffer.append(TEXT_511);
+ stringBuffer.append(TEXT_352);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_512);
+ stringBuffer.append(TEXT_353);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_513);
+ stringBuffer.append(TEXT_354);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_514);
+ stringBuffer.append(TEXT_355);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_515);
+ stringBuffer.append(TEXT_356);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_516);
+ stringBuffer.append(TEXT_357);
stringBuffer.append(genPackage.getImportedEditorPluginClassName());
- stringBuffer.append(TEXT_517);
+ stringBuffer.append(TEXT_358);
if (genModel.useClassOverrideAnnotation()) {
- stringBuffer.append(TEXT_518);
+ stringBuffer.append(TEXT_180);
}
- stringBuffer.append(TEXT_519);
+ stringBuffer.append(TEXT_359);
if (!genModel.isRichClientPlatform()) {
- stringBuffer.append(TEXT_520);
+ stringBuffer.append(TEXT_360);
}
- stringBuffer.append(TEXT_521);
+ stringBuffer.append(TEXT_361);
if (genModel.useGenerics()) {
- stringBuffer.append(TEXT_522);
+ stringBuffer.append(TEXT_362);
} else {
- stringBuffer.append(TEXT_523);
+ stringBuffer.append(TEXT_363);
}
- stringBuffer.append(TEXT_524);
+ stringBuffer.append(TEXT_349);
if (!genModel.useGenerics()) {
- stringBuffer.append(TEXT_525);
+ stringBuffer.append(TEXT_364);
}
- stringBuffer.append(TEXT_526);
+ stringBuffer.append(TEXT_365);
stringBuffer.append(genPackage.isMultipleEditorPages());
- stringBuffer.append(TEXT_527);
+ stringBuffer.append(TEXT_366);
genModel.emitSortedImports();
- stringBuffer.append(TEXT_528);
+ stringBuffer.append(TEXT_7);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/EntryPoint.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/EntryPoint.java
index ad3f5f13f..6cf574a40 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/EntryPoint.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/EntryPoint.java
@@ -22,29 +22,28 @@ public class EntryPoint
protected final String TEXT_4 = NL + " */" + NL + "package ";
protected final String TEXT_5 = ";" + NL + "" + NL + "import org.eclipse.emf.edit.ui.EditorEntryPoint;";
protected final String TEXT_6 = NL + NL + "/**" + NL + " * This is the entry point." + NL + " * <!-- begin-user-doc -->" + NL + " * <!-- end-user-doc -->";
- protected final String TEXT_7 = NL + " * ";
- protected final String TEXT_8 = NL + " * @generated" + NL + " */";
- protected final String TEXT_9 = NL + "@Deprecated";
- protected final String TEXT_10 = NL + "@SuppressWarnings(\"deprecation\")";
- protected final String TEXT_11 = NL + "public class ";
- protected final String TEXT_12 = " extends EditorEntryPoint" + NL + "{";
- protected final String TEXT_13 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
- protected final String TEXT_14 = " copyright = ";
- protected final String TEXT_15 = ";";
- protected final String TEXT_16 = NL + "\t";
- protected final String TEXT_17 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tpublic void onModuleLoad()" + NL + "\t{" + NL + "\t\tsuper.onModuleLoad();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tprotected void registerPackages(";
- protected final String TEXT_18 = ".Registry packageRegistry)" + NL + "\t{";
- protected final String TEXT_19 = NL + "\t\tpackageRegistry.put(";
- protected final String TEXT_20 = ".eNS_URI, ";
- protected final String TEXT_21 = ".eINSTANCE);";
- protected final String TEXT_22 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tprotected void configureItemProviderAdapterFactories(";
- protected final String TEXT_23 = " adapterFactory)" + NL + "\t{";
- protected final String TEXT_24 = NL + "\t\tadapterFactory.addAdapterFactory(new ";
- protected final String TEXT_25 = "());";
- protected final String TEXT_26 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tprotected String getApplicationTitle()" + NL + "\t{" + NL + "\t\treturn \"";
- protected final String TEXT_27 = " Application\";";
- protected final String TEXT_28 = NL + "\t}" + NL + "}";
- protected final String TEXT_29 = NL;
+ protected final String TEXT_7 = NL + " * @generated" + NL + " */";
+ protected final String TEXT_8 = NL + "@Deprecated";
+ protected final String TEXT_9 = NL + "@SuppressWarnings(\"deprecation\")";
+ protected final String TEXT_10 = NL + "public class ";
+ protected final String TEXT_11 = " extends EditorEntryPoint" + NL + "{";
+ protected final String TEXT_12 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
+ protected final String TEXT_13 = " copyright = ";
+ protected final String TEXT_14 = ";";
+ protected final String TEXT_15 = NL + "\t";
+ protected final String TEXT_16 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tpublic void onModuleLoad()" + NL + "\t{" + NL + "\t\tsuper.onModuleLoad();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tprotected void registerPackages(";
+ protected final String TEXT_17 = ".Registry packageRegistry)" + NL + "\t{";
+ protected final String TEXT_18 = NL + "\t\tpackageRegistry.put(";
+ protected final String TEXT_19 = ".eNS_URI, ";
+ protected final String TEXT_20 = ".eINSTANCE);";
+ protected final String TEXT_21 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tprotected void configureItemProviderAdapterFactories(";
+ protected final String TEXT_22 = " adapterFactory)" + NL + "\t{";
+ protected final String TEXT_23 = NL + "\t\tadapterFactory.addAdapterFactory(new ";
+ protected final String TEXT_24 = "());";
+ protected final String TEXT_25 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\t@Override" + NL + "\tprotected String getApplicationTitle()" + NL + "\t{" + NL + "\t\treturn \"";
+ protected final String TEXT_26 = " Application\";";
+ protected final String TEXT_27 = NL + "\t}" + NL + "}";
+ protected final String TEXT_28 = NL;
public String generate(Object argument)
{
@@ -76,52 +75,52 @@ public class EntryPoint
genModel.markImportLocation(stringBuffer);
stringBuffer.append(TEXT_6);
if (genModel.hasAPITags()) {
- stringBuffer.append(TEXT_7);
+ stringBuffer.append(TEXT_3);
stringBuffer.append(genModel.getAPITags(genModel.getIndentation(stringBuffer)));
}
- stringBuffer.append(TEXT_8);
+ stringBuffer.append(TEXT_7);
if (isJDK50 && genModel.hasAPIDeprecatedTag()) {
- stringBuffer.append(TEXT_9);
+ stringBuffer.append(TEXT_8);
} else if (isJDK50 && GenModelUtil.hasAPIDeprecatedTag(genModel.getAllGenAndUsedGenPackagesWithClassifiers())) {
- stringBuffer.append(TEXT_10);
+ stringBuffer.append(TEXT_9);
}
- stringBuffer.append(TEXT_11);
+ stringBuffer.append(TEXT_10);
stringBuffer.append(genModel.getEditorEntryPointClassName());
- stringBuffer.append(TEXT_12);
+ stringBuffer.append(TEXT_11);
if (genModel.hasCopyrightField()) {
- stringBuffer.append(TEXT_13);
+ stringBuffer.append(TEXT_12);
stringBuffer.append(genModel.getImportedName("java.lang.String"));
- stringBuffer.append(TEXT_14);
+ stringBuffer.append(TEXT_13);
stringBuffer.append(genModel.getCopyrightFieldLiteral());
- stringBuffer.append(TEXT_15);
+ stringBuffer.append(TEXT_14);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_16);
+ stringBuffer.append(TEXT_15);
}
- stringBuffer.append(TEXT_17);
+ stringBuffer.append(TEXT_16);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.ecore.EPackage"));
- stringBuffer.append(TEXT_18);
+ stringBuffer.append(TEXT_17);
for (GenPackage genPackage : genModel.getAllGenAndUsedGenPackagesWithClassifiers()) {
+ stringBuffer.append(TEXT_18);
+ stringBuffer.append(genPackage.getImportedPackageInterfaceName());
stringBuffer.append(TEXT_19);
stringBuffer.append(genPackage.getImportedPackageInterfaceName());
stringBuffer.append(TEXT_20);
- stringBuffer.append(genPackage.getImportedPackageInterfaceName());
- stringBuffer.append(TEXT_21);
}
- stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_21);
stringBuffer.append(genModel.getImportedName("org.eclipse.emf.edit.provider.ComposedAdapterFactory"));
- stringBuffer.append(TEXT_23);
+ stringBuffer.append(TEXT_22);
for (GenPackage genPackage : genModel.getAllGenAndUsedGenPackagesWithClassifiers()) {
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_23);
stringBuffer.append(genPackage.getImportedItemProviderAdapterFactoryClassName());
- stringBuffer.append(TEXT_25);
+ stringBuffer.append(TEXT_24);
}
- stringBuffer.append(TEXT_26);
+ stringBuffer.append(TEXT_25);
stringBuffer.append(genModel.getModelName());
- stringBuffer.append(TEXT_27);
+ stringBuffer.append(TEXT_26);
stringBuffer.append(genModel.getNonNLS());
- stringBuffer.append(TEXT_28);
+ stringBuffer.append(TEXT_27);
genModel.emitSortedImports();
- stringBuffer.append(TEXT_29);
+ stringBuffer.append(TEXT_28);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ManifestMF.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ManifestMF.java
index 1343f6194..d1054c6b1 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ManifestMF.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ManifestMF.java
@@ -32,13 +32,10 @@ public class ManifestMF
protected final String TEXT_15 = NL + " ";
protected final String TEXT_16 = NL + "Require-Bundle: ";
protected final String TEXT_17 = ";visibility:=reexport";
- protected final String TEXT_18 = ",";
- protected final String TEXT_19 = NL + " ";
- protected final String TEXT_20 = ";visibility:=reexport";
- protected final String TEXT_21 = NL + "Import-Package: org.eclipse.emf.common.ui," + NL + " org.eclipse.emf.common.ui.action," + NL + " org.eclipse.emf.common.ui.dialogs," + NL + " org.eclipse.emf.common.ui.editor," + NL + " org.eclipse.emf.common.ui.viewer," + NL + " org.eclipse.emf.edit.ui," + NL + " org.eclipse.emf.edit.ui.action," + NL + " org.eclipse.emf.edit.ui.celleditor," + NL + " org.eclipse.emf.edit.ui.dnd," + NL + " org.eclipse.emf.edit.ui.provider," + NL + " org.eclipse.emf.edit.ui.util," + NL + " org.eclipse.emf.edit.ui.view," + NL + " org.eclipse.jface.action," + NL + " org.eclipse.jface.dialogs," + NL + " org.eclipse.jface.operation," + NL + " org.eclipse.jface.viewers," + NL + " org.eclipse.jface.window," + NL + " org.eclipse.jface.wizard," + NL + " org.eclipse.swt," + NL + " org.eclipse.swt.custom," + NL + " org.eclipse.swt.dnd," + NL + " org.eclipse.swt.events," + NL + " org.eclipse.swt.graphics," + NL + " org.eclipse.swt.layout," + NL + " org.eclipse.swt.widgets," + NL + " org.eclipse.ui;ui.workbench=\"split\"," + NL + " org.eclipse.ui.actions;ui.workbench=\"split\"," + NL + " org.eclipse.ui.application," + NL + " org.eclipse.ui.part;ui.workbench=\"split\"," + NL + " org.eclipse.ui.views," + NL + " org.eclipse.ui.views.contentoutline," + NL + " org.eclipse.ui.views.properties;ui.views=\"split\"";
- protected final String TEXT_22 = NL + "Eclipse-LazyStart: true";
- protected final String TEXT_23 = NL + "Bundle-ActivationPolicy: lazy";
- protected final String TEXT_24 = NL;
+ protected final String TEXT_18 = NL + "Import-Package: org.eclipse.emf.common.ui," + NL + " org.eclipse.emf.common.ui.action," + NL + " org.eclipse.emf.common.ui.dialogs," + NL + " org.eclipse.emf.common.ui.editor," + NL + " org.eclipse.emf.common.ui.viewer," + NL + " org.eclipse.emf.edit.ui," + NL + " org.eclipse.emf.edit.ui.action," + NL + " org.eclipse.emf.edit.ui.celleditor," + NL + " org.eclipse.emf.edit.ui.dnd," + NL + " org.eclipse.emf.edit.ui.provider," + NL + " org.eclipse.emf.edit.ui.util," + NL + " org.eclipse.emf.edit.ui.view," + NL + " org.eclipse.jface.action," + NL + " org.eclipse.jface.dialogs," + NL + " org.eclipse.jface.operation," + NL + " org.eclipse.jface.viewers," + NL + " org.eclipse.jface.window," + NL + " org.eclipse.jface.wizard," + NL + " org.eclipse.swt," + NL + " org.eclipse.swt.custom," + NL + " org.eclipse.swt.dnd," + NL + " org.eclipse.swt.events," + NL + " org.eclipse.swt.graphics," + NL + " org.eclipse.swt.layout," + NL + " org.eclipse.swt.widgets," + NL + " org.eclipse.ui;ui.workbench=\"split\"," + NL + " org.eclipse.ui.actions;ui.workbench=\"split\"," + NL + " org.eclipse.ui.application," + NL + " org.eclipse.ui.part;ui.workbench=\"split\"," + NL + " org.eclipse.ui.views," + NL + " org.eclipse.ui.views.contentoutline," + NL + " org.eclipse.ui.views.properties;ui.views=\"split\"";
+ protected final String TEXT_19 = NL + "Eclipse-LazyStart: true";
+ protected final String TEXT_20 = NL + "Bundle-ActivationPolicy: lazy";
+ protected final String TEXT_21 = NL;
public String generate(Object argument)
{
@@ -97,21 +94,21 @@ public class ManifestMF
if (!pluginID.startsWith("org.eclipse.core.runtime")){
stringBuffer.append(TEXT_17);
} while(requiredPluginIterator.hasNext()) { pluginID = requiredPluginIterator.next();
- stringBuffer.append(TEXT_18);
- stringBuffer.append(TEXT_19);
+ stringBuffer.append(TEXT_14);
+ stringBuffer.append(TEXT_15);
stringBuffer.append(pluginID);
if (!pluginID.startsWith("org.eclipse.core.runtime") && !pluginID.equals("org.eclipse.xtext.xbase.lib") && !pluginID.equals("org.eclipse.emf.ecore.xcore.lib")) {
- stringBuffer.append(TEXT_20);
+ stringBuffer.append(TEXT_17);
}}
}
if (genModel.isRichAjaxPlatform()) {
- stringBuffer.append(TEXT_21);
+ stringBuffer.append(TEXT_18);
}
if (genModel.getRuntimeVersion() == GenRuntimeVersion.EMF22 || genModel.getRuntimeVersion() == GenRuntimeVersion.EMF23) {
- stringBuffer.append(TEXT_22);
+ stringBuffer.append(TEXT_19);
}
- stringBuffer.append(TEXT_23);
- stringBuffer.append(TEXT_24);
+ stringBuffer.append(TEXT_20);
+ stringBuffer.append(TEXT_21);
return stringBuffer.toString();
}
}
diff --git a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ModelWizard.java b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ModelWizard.java
index 4ae3283f4..db44a6c4a 100644
--- a/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ModelWizard.java
+++ b/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/templates/editor/ModelWizard.java
@@ -29,235 +29,213 @@ public class ModelWizard
protected final String TEXT_13 = NL + "import org.eclipse.ui.actions.WorkspaceModifyOperation;" + NL + "" + NL + "import org.eclipse.ui.dialogs.WizardNewFileCreationPage;" + NL + "" + NL + "import org.eclipse.ui.part.FileEditorInput;" + NL + "import org.eclipse.ui.part.ISetSelectionTarget;" + NL;
protected final String TEXT_14 = NL + "import ";
protected final String TEXT_15 = ";";
- protected final String TEXT_16 = NL + "import ";
- protected final String TEXT_17 = ";" + NL + "import ";
- protected final String TEXT_18 = ";" + NL + NL;
- protected final String TEXT_19 = NL + NL + NL + "/**" + NL + " * This is a simple wizard for creating a new model file." + NL + " * <!-- begin-user-doc -->" + NL + " * <!-- end-user-doc -->";
- protected final String TEXT_20 = NL + " * ";
- protected final String TEXT_21 = NL + " * @generated" + NL + " */";
- protected final String TEXT_22 = NL + "@Deprecated";
- protected final String TEXT_23 = NL + "public class ";
- protected final String TEXT_24 = " extends Wizard implements INewWizard" + NL + "{";
- protected final String TEXT_25 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
- protected final String TEXT_26 = " copyright = ";
- protected final String TEXT_27 = ";";
- protected final String TEXT_28 = NL;
- protected final String TEXT_29 = NL + "\t/**" + NL + "\t * The supported extensions for created files." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
- protected final String TEXT_30 = " FILE_EXTENSIONS =" + NL + "\t\tCollections.unmodifiableList(Arrays.asList(";
- protected final String TEXT_31 = ".INSTANCE.getString(\"_UI_";
- protected final String TEXT_32 = "FilenameExtensions\").split(\"\\\\s*,\\\\s*\")));";
- protected final String TEXT_33 = NL + NL + "\t/**" + NL + "\t * A formatted list of supported file extensions, suitable for display." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final String FORMATTED_FILE_EXTENSIONS =" + NL + "\t\t";
- protected final String TEXT_34 = ".INSTANCE.getString(\"_UI_";
- protected final String TEXT_35 = "FilenameExtensions\").replaceAll(\"\\\\s*,\\\\s*\", \", \");";
- protected final String TEXT_36 = NL + NL + "\t/**" + NL + "\t * This caches an instance of the model package." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_37 = " ";
- protected final String TEXT_38 = " = ";
- protected final String TEXT_39 = ".eINSTANCE;" + NL + "" + NL + "\t/**" + NL + "\t * This caches an instance of the model factory." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_40 = " ";
- protected final String TEXT_41 = " = ";
- protected final String TEXT_42 = ".get";
- protected final String TEXT_43 = "();" + NL;
- protected final String TEXT_44 = NL + "\t/**" + NL + "\t * This is the file creation page." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_45 = "NewFileCreationPage newFileCreationPage;" + NL;
- protected final String TEXT_46 = NL + "\t/**" + NL + "\t * This is the initial object creation page." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_47 = "InitialObjectCreationPage initialObjectCreationPage;" + NL + "" + NL + "\t/**" + NL + "\t * Remember the selection during initialization for populating the default container." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IStructuredSelection selection;" + NL + "" + NL + "\t/**" + NL + "\t * Remember the workbench during initialization." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IWorkbench workbench;" + NL + "" + NL + "\t/**";
- protected final String TEXT_48 = NL + "\t * Caches the names of the types that can be created as the root object.";
- protected final String TEXT_49 = NL + "\t * Caches the names of the features representing global elements.";
- protected final String TEXT_50 = NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_51 = " initialObjectNames;" + NL + "" + NL + "\t/**" + NL + "\t * This just records the information." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void init(IWorkbench workbench, IStructuredSelection selection)" + NL + "\t{" + NL + "\t\tthis.workbench = workbench;" + NL + "\t\tthis.selection = selection;" + NL + "\t\tsetWindowTitle(";
- protected final String TEXT_52 = ".INSTANCE.getString(\"_UI_Wizard_label\"));";
- protected final String TEXT_53 = NL + "\t\tsetDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(";
- protected final String TEXT_54 = ".INSTANCE.getImage(\"full/wizban/New";
- protected final String TEXT_55 = "\")));";
- protected final String TEXT_56 = NL + "\t}" + NL + "" + NL + "\t/**";
- protected final String TEXT_57 = NL + "\t * Returns the names of the types that can be created as the root object.";
- protected final String TEXT_58 = NL + "\t * Returns the names of the features representing global elements.";
- protected final String TEXT_59 = NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
- protected final String TEXT_60 = " getInitialObjectNames()" + NL + "\t{" + NL + "\t\tif (initialObjectNames == null)" + NL + "\t\t{" + NL + "\t\t\tinitialObjectNames = new ";
- protected final String TEXT_61 = "();";
- protected final String TEXT_62 = NL + "\t\t\tfor (EClassifier eClassifier : ";
- protected final String TEXT_63 = ".getEClassifiers())";
- protected final String TEXT_64 = NL + "\t\t\tfor (Iterator classifiers = ";
- protected final String TEXT_65 = ".getEClassifiers().iterator(); classifiers.hasNext(); )";
- protected final String TEXT_66 = NL + "\t\t\t{";
- protected final String TEXT_67 = NL + "\t\t\t\tEClassifier eClassifier = (EClassifier)classifiers.next();";
- protected final String TEXT_68 = NL + "\t\t\t\tif (eClassifier instanceof EClass)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tEClass eClass = (EClass)eClassifier;" + NL + "\t\t\t\t\tif (!eClass.isAbstract())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tinitialObjectNames.add(eClass.getName());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
- protected final String TEXT_69 = NL + "\t\t\tfor (";
- protected final String TEXT_70 = " eStructuralFeature : ";
- protected final String TEXT_71 = ".INSTANCE.getAllElements(";
- protected final String TEXT_72 = ".INSTANCE.getDocumentRoot(";
- protected final String TEXT_73 = ")))";
- protected final String TEXT_74 = NL + "\t\t\tfor (Iterator elements = ";
- protected final String TEXT_75 = ".INSTANCE.getAllElements(";
- protected final String TEXT_76 = ".INSTANCE.getDocumentRoot(";
- protected final String TEXT_77 = ")).iterator(); elements.hasNext(); )";
- protected final String TEXT_78 = NL + "\t\t\t{";
- protected final String TEXT_79 = NL + "\t\t\t\t";
- protected final String TEXT_80 = " eStructuralFeature = (";
- protected final String TEXT_81 = ")elements.next();";
- protected final String TEXT_82 = NL + "\t\t\t\tif (eStructuralFeature.isChangeable())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tEClassifier eClassifier = eStructuralFeature.getEType();" + NL + "\t\t\t\t\tif (eClassifier instanceof EClass)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tEClass eClass = (EClass)eClassifier;" + NL + "\t\t\t\t\t\tif (!eClass.isAbstract())" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tinitialObjectNames.add(eStructuralFeature.getName());" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
- protected final String TEXT_83 = NL + "\t\t\tCollections.sort(initialObjectNames, ";
- protected final String TEXT_84 = "CommonPlugin.INSTANCE.getComparator()";
- protected final String TEXT_85 = "java.text.Collator.getInstance()";
- protected final String TEXT_86 = ");" + NL + "\t\t}" + NL + "\t\treturn initialObjectNames;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Create a new model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected EObject createInitialModel()" + NL + "\t{";
- protected final String TEXT_87 = NL + "\t\tEClass eClass = (EClass)";
- protected final String TEXT_88 = ".getEClassifier(initialObjectCreationPage.getInitialObjectName());" + NL + "\t\tEObject rootObject = ";
- protected final String TEXT_89 = ".create(eClass);";
- protected final String TEXT_90 = NL + "\t\tEClass eClass = ";
- protected final String TEXT_91 = ".INSTANCE.getDocumentRoot(";
- protected final String TEXT_92 = ");" + NL + "\t\tEStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(initialObjectCreationPage.getInitialObjectName());" + NL + "\t\tEObject rootObject = ";
- protected final String TEXT_93 = ".create(eClass);" + NL + "\t\trootObject.eSet(eStructuralFeature, ";
- protected final String TEXT_94 = ".create((EClass)eStructuralFeature.getEType()));";
- protected final String TEXT_95 = NL + "\t\treturn rootObject;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Do the work after everything is specified." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_96 = NL + "\t@Override";
- protected final String TEXT_97 = NL + "\tpublic boolean performFinish()" + NL + "\t{" + NL + "\t\ttry" + NL + "\t\t{";
- protected final String TEXT_98 = NL + "\t\t\t// Get the URI of the model file." + NL + "\t\t\t//" + NL + "\t\t\tfinal URI fileURI = getModelURI();" + NL + "\t\t\tif (new ";
- protected final String TEXT_99 = "(fileURI.toFileString()).exists())" + NL + "\t\t\t{" + NL + "\t\t\t\tif (!MessageDialog.openQuestion" + NL + "\t\t\t\t\t\t(getShell()," + NL + "\t\t\t\t\t\t ";
- protected final String TEXT_100 = ".INSTANCE.getString(\"_UI_Question_title\"),";
- protected final String TEXT_101 = NL + "\t\t\t\t\t\t ";
- protected final String TEXT_102 = ".INSTANCE.getString(\"_WARN_FileConflict\", new String []{ fileURI.toFileString() })))";
- protected final String TEXT_103 = NL + "\t\t\t\t{" + NL + "\t\t\t\t\tinitialObjectCreationPage.selectFileField();" + NL + "\t\t\t\t\treturn false;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\t" + NL + "\t\t\t// Do the work within an operation." + NL + "\t\t\t//" + NL + "\t\t\t";
- protected final String TEXT_104 = " operation = new ";
- protected final String TEXT_105 = "()" + NL + "\t\t\t{" + NL + "\t\t\t\tpublic void run(IProgressMonitor progressMonitor)";
- protected final String TEXT_106 = NL + "\t\t\t// Remember the file." + NL + "\t\t\t//" + NL + "\t\t\tfinal IFile modelFile = getModelFile();" + NL + "" + NL + "\t\t\t// Do the work within an operation." + NL + "\t\t\t//" + NL + "\t\t\tWorkspaceModifyOperation operation =" + NL + "\t\t\t\tnew WorkspaceModifyOperation()" + NL + "\t\t\t\t{";
- protected final String TEXT_107 = NL + "\t\t\t\t\t@Override";
- protected final String TEXT_108 = NL + "\t\t\t\t\tprotected void execute(IProgressMonitor progressMonitor)";
- protected final String TEXT_109 = NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\ttry" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t// Create a resource set" + NL + "\t\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\t\tResourceSet resourceSet = new ResourceSetImpl();" + NL;
- protected final String TEXT_110 = NL + "\t\t\t\t\t\t\t// Get the URI of the model file." + NL + "\t\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\t\tURI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);" + NL;
- protected final String TEXT_111 = NL + "\t\t\t\t\t\t\t// Create a resource for this file." + NL + "\t\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\t\tResource resource = resourceSet.createResource(fileURI";
- protected final String TEXT_112 = ", ";
- protected final String TEXT_113 = ".eCONTENT_TYPE";
- protected final String TEXT_114 = ");" + NL + "" + NL + "\t\t\t\t\t\t\t// Add the initial model object to the contents." + NL + "\t\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\t\tEObject rootObject = createInitialModel();" + NL + "\t\t\t\t\t\t\tif (rootObject != null)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tresource.getContents().add(rootObject);" + NL + "\t\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\t\t// Save the contents of the resource to the file system." + NL + "\t\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\t\t";
- protected final String TEXT_115 = " options = new ";
- protected final String TEXT_116 = "();" + NL + "\t\t\t\t\t\t\toptions.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());" + NL + "\t\t\t\t\t\t\tresource.save(options);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tcatch (Exception exception)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t";
- protected final String TEXT_117 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tfinally" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tprogressMonitor.done();" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "" + NL + "\t\t\tgetContainer().run(false, false, operation);" + NL;
- protected final String TEXT_118 = NL + "\t\t\treturn ";
- protected final String TEXT_119 = ".openEditor(workbench, fileURI);\t\t\t";
- protected final String TEXT_120 = NL + "\t\t\t// Select the new file resource in the current view." + NL + "\t\t\t//" + NL + "\t\t\t";
- protected final String TEXT_121 = " workbenchWindow = workbench.getActiveWorkbenchWindow();" + NL + "\t\t\t";
- protected final String TEXT_122 = " page = workbenchWindow.getActivePage();" + NL + "\t\t\tfinal ";
- protected final String TEXT_123 = " activePart = page.getActivePart();" + NL + "\t\t\tif (activePart instanceof ISetSelectionTarget)" + NL + "\t\t\t{" + NL + "\t\t\t\tfinal ";
- protected final String TEXT_124 = " targetSelection = new ";
- protected final String TEXT_125 = "(modelFile);" + NL + "\t\t\t\tgetShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t ((ISetSelectionTarget)activePart).selectReveal(targetSelection);" + NL + "\t\t\t\t\t\t }" + NL + "\t\t\t\t\t });" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Open an editor on the new file." + NL + "\t\t\t//" + NL + "\t\t\ttry" + NL + "\t\t\t{" + NL + "\t\t\t\tpage.openEditor" + NL + "\t\t\t\t\t(new FileEditorInput(modelFile)," + NL + "\t\t\t\t\t workbench.getEditorRegistry().getDefaultEditor";
- protected final String TEXT_126 = "(modelFile.getFullPath().toString()).getId());";
- protected final String TEXT_127 = NL + "\t\t\t\t\t \t(modelFile.getFullPath().toString()," + NL + "\t\t\t\t\t \t ";
- protected final String TEXT_128 = ".getContentTypeManager().getContentType(";
- protected final String TEXT_129 = ".eCONTENT_TYPE)).getId());";
- protected final String TEXT_130 = "\t\t\t\t\t \t " + NL + "\t\t\t}" + NL + "\t\t\tcatch (";
- protected final String TEXT_131 = " exception)" + NL + "\t\t\t{" + NL + "\t\t\t\tMessageDialog.openError(workbenchWindow.getShell(), ";
- protected final String TEXT_132 = ".INSTANCE.getString(\"_UI_OpenEditorError_label\"), exception.getMessage());";
- protected final String TEXT_133 = NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\treturn true;";
- protected final String TEXT_134 = NL + "\t\t}" + NL + "\t\tcatch (Exception exception)" + NL + "\t\t{" + NL + "\t\t\t";
- protected final String TEXT_135 = ".INSTANCE.log(exception);" + NL + "\t\t\treturn false;" + NL + "\t\t}" + NL + "\t}" + NL;
- protected final String TEXT_136 = NL + "\t/**" + NL + "\t * This is the one page of the wizard." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic class ";
- protected final String TEXT_137 = "NewFileCreationPage extends WizardNewFileCreationPage" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * Pass in the selection." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ";
- protected final String TEXT_138 = "NewFileCreationPage(String pageId, IStructuredSelection selection)" + NL + "\t\t{" + NL + "\t\t\tsuper(pageId, selection);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * The framework calls this to see if the file is correct." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
- protected final String TEXT_139 = NL + "\t\t@Override";
- protected final String TEXT_140 = NL + "\t\tprotected boolean validatePage()" + NL + "\t\t{" + NL + "\t\t\tif (super.validatePage())" + NL + "\t\t\t{" + NL + "\t\t\t\tString extension = new ";
- protected final String TEXT_141 = "(getFileName()).getFileExtension();" + NL + "\t\t\t\tif (extension == null || !FILE_EXTENSIONS.contains(extension))" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tString key = FILE_EXTENSIONS.size() > 1 ? \"_WARN_FilenameExtensions\" : \"_WARN_FilenameExtension\";";
- protected final String TEXT_142 = NL + "\t\t\t\t\tsetErrorMessage(";
- protected final String TEXT_143 = ".INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));" + NL + "\t\t\t\t\treturn false;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn true;" + NL + "\t\t\t}" + NL + "\t\t\treturn false;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic IFile getModelFile()" + NL + "\t\t{" + NL + "\t\t\treturn ResourcesPlugin.getWorkspace().getRoot().getFile(getContainerFullPath().append(getFileName()));" + NL + "\t\t}" + NL + "\t}" + NL;
- protected final String TEXT_144 = NL + "\t/**" + NL + "\t * This is the page where the type of object to create is selected." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic class ";
- protected final String TEXT_145 = "InitialObjectCreationPage extends WizardPage" + NL + "\t{";
- protected final String TEXT_146 = NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_147 = " fileField;" + NL;
- protected final String TEXT_148 = NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected Combo initialObjectField;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_149 = " encodings;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected Combo encodingField;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Pass in the selection." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ";
- protected final String TEXT_150 = "InitialObjectCreationPage(String pageId)" + NL + "\t\t{" + NL + "\t\t\tsuper(pageId);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void createControl(Composite parent)" + NL + "\t\t{" + NL + "\t\t\tComposite composite = new Composite(parent, SWT.NONE);" + NL + "\t\t\t{" + NL + "\t\t\t\tGridLayout layout = new GridLayout();" + NL + "\t\t\t\tlayout.numColumns = 1;" + NL + "\t\t\t\tlayout.verticalSpacing = 12;" + NL + "\t\t\t\tcomposite.setLayout(layout);" + NL + "" + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.verticalAlignment = GridData.FILL;" + NL + "\t\t\t\tdata.grabExcessVerticalSpace = true;" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tcomposite.setLayoutData(data);" + NL + "\t\t\t}" + NL;
- protected final String TEXT_151 = "\t\t\t" + NL + "\t\t\tLabel resourceURILabel = new Label(composite, SWT.LEFT);" + NL + "\t\t\t{" + NL + "\t\t\t\tresourceURILabel.setText(";
- protected final String TEXT_152 = ".INSTANCE.getString(\"_UI_File_label\"));";
- protected final String TEXT_153 = NL + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tresourceURILabel.setLayoutData(data);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tComposite fileComposite = new Composite(composite, SWT.NONE);" + NL + "\t\t\t{" + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.END;" + NL + "\t\t\t\tfileComposite.setLayoutData(data);" + NL + "" + NL + "\t\t\t\tGridLayout layout = new GridLayout();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tlayout.marginHeight = 0;" + NL + "\t\t\t\tlayout.marginWidth = 0;" + NL + "\t\t\t\tlayout.numColumns = 2;" + NL + "\t\t\t\tfileComposite.setLayout(layout);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tfileField = new ";
- protected final String TEXT_154 = "(fileComposite, SWT.BORDER);" + NL + "\t\t\t{" + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tdata.grabExcessHorizontalSpace = true;" + NL + "\t\t\t\tdata.horizontalSpan = 1;" + NL + "\t\t\t\tfileField.setLayoutData(data);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tfileField.addModifyListener(validator);" + NL;
- protected final String TEXT_155 = NL + "\t\t\t";
- protected final String TEXT_156 = " resourceURIBrowseFileSystemButton = new ";
- protected final String TEXT_157 = "(fileComposite, SWT.PUSH);" + NL + "\t\t\tresourceURIBrowseFileSystemButton.setText(";
- protected final String TEXT_158 = ".INSTANCE.getString(\"_UI_Browse_label\"));";
- protected final String TEXT_159 = NL + NL + "\t\t\tresourceURIBrowseFileSystemButton.addSelectionListener" + NL + "\t\t\t\t(new ";
- protected final String TEXT_160 = "()" + NL + "\t\t\t\t {";
- protected final String TEXT_161 = NL + "\t\t\t\t\t @Override";
- protected final String TEXT_162 = NL + "\t\t\t\t\t public void widgetSelected(";
- protected final String TEXT_163 = " event)" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t String[] filters = ";
- protected final String TEXT_164 = "(String[])";
- protected final String TEXT_165 = ".FILE_EXTENSION_FILTERS.toArray(new String[";
- protected final String TEXT_166 = ".FILE_EXTENSION_FILTERS.size()]);" + NL + "\t\t\t\t\t\t String[] files = ";
- protected final String TEXT_167 = ".openFilePathDialog(getShell(), ";
- protected final String TEXT_168 = ".SAVE, filters);" + NL + "\t\t\t\t\t\t if (files.length > 0)" + NL + "\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t fileField.setText(files[0]);" + NL + "\t\t\t\t\t\t }" + NL + "\t\t\t\t\t }" + NL + "\t\t\t\t });";
- protected final String TEXT_169 = NL + "\t\t\tLabel containerLabel = new Label(composite, SWT.LEFT);" + NL + "\t\t\t{" + NL + "\t\t\t\tcontainerLabel.setText(";
- protected final String TEXT_170 = ".INSTANCE.getString(\"_UI_ModelObject\"));";
- protected final String TEXT_171 = NL + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tcontainerLabel.setLayoutData(data);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tinitialObjectField = new Combo(composite, SWT.BORDER);" + NL + "\t\t\t{" + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tdata.grabExcessHorizontalSpace = true;" + NL + "\t\t\t\tinitialObjectField.setLayoutData(data);" + NL + "\t\t\t}" + NL;
- protected final String TEXT_172 = NL + "\t\t\tfor (String objectName : getInitialObjectNames())" + NL + "\t\t\t{" + NL + "\t\t\t\tinitialObjectField.add(getLabel(objectName));" + NL + "\t\t\t}";
- protected final String TEXT_173 = NL + "\t\t\tfor (Iterator i = getInitialObjectNames().iterator(); i.hasNext(); )" + NL + "\t\t\t{" + NL + "\t\t\t\tinitialObjectField.add(getLabel((String)i.next()));" + NL + "\t\t\t}";
- protected final String TEXT_174 = NL + NL + "\t\t\tif (initialObjectField.getItemCount() == 1)" + NL + "\t\t\t{" + NL + "\t\t\t\tinitialObjectField.select(0);" + NL + "\t\t\t}" + NL + "\t\t\tinitialObjectField.addModifyListener(validator);" + NL + "" + NL + "\t\t\tLabel encodingLabel = new Label(composite, SWT.LEFT);" + NL + "\t\t\t{" + NL + "\t\t\t\tencodingLabel.setText(";
- protected final String TEXT_175 = ".INSTANCE.getString(\"_UI_XMLEncoding\"));";
- protected final String TEXT_176 = NL + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tencodingLabel.setLayoutData(data);" + NL + "\t\t\t}" + NL + "\t\t\tencodingField = new Combo(composite, SWT.BORDER);" + NL + "\t\t\t{" + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tdata.grabExcessHorizontalSpace = true;" + NL + "\t\t\t\tencodingField.setLayoutData(data);" + NL + "\t\t\t}" + NL;
- protected final String TEXT_177 = NL + "\t\t\tfor (String encoding : getEncodings())" + NL + "\t\t\t{" + NL + "\t\t\t\tencodingField.add(encoding);" + NL + "\t\t\t}";
- protected final String TEXT_178 = NL + "\t\t\tfor (Iterator i = getEncodings().iterator(); i.hasNext(); )" + NL + "\t\t\t{" + NL + "\t\t\t\tencodingField.add((String)i.next());" + NL + "\t\t\t}";
- protected final String TEXT_179 = NL + NL + "\t\t\tencodingField.select(0);" + NL + "\t\t\tencodingField.addModifyListener(validator);" + NL + "" + NL + "\t\t\tsetPageComplete(validatePage());" + NL + "\t\t\tsetControl(composite);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ModifyListener validator =" + NL + "\t\t\tnew ModifyListener()" + NL + "\t\t\t{" + NL + "\t\t\t\tpublic void modifyText(ModifyEvent e)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsetPageComplete(validatePage());" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean validatePage()" + NL + "\t\t{";
- protected final String TEXT_180 = NL + "\t\t\tURI fileURI = getFileURI();" + NL + "\t\t\tif (fileURI == null || fileURI.isEmpty())" + NL + "\t\t\t{" + NL + "\t\t\t\tsetErrorMessage(null);" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tString extension = fileURI.fileExtension();" + NL + "\t\t\tif (extension == null || !FILE_EXTENSIONS.contains(extension))" + NL + "\t\t\t{" + NL + "\t\t\t\tString key = FILE_EXTENSIONS.size() > 1 ? \"_WARN_FilenameExtensions\" : \"_WARN_FilenameExtension\";";
- protected final String TEXT_181 = NL + "\t\t\t\tsetErrorMessage(";
- protected final String TEXT_182 = ".INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tsetErrorMessage(null);";
- protected final String TEXT_183 = NL + "\t\t\treturn getInitialObjectName() != null && getEncodings().contains(encodingField.getText());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
- protected final String TEXT_184 = NL + "\t\t@Override";
- protected final String TEXT_185 = NL + "\t\tpublic void setVisible(boolean visible)" + NL + "\t\t{" + NL + "\t\t\tsuper.setVisible(visible);" + NL + "\t\t\tif (visible)" + NL + "\t\t\t{";
- protected final String TEXT_186 = NL + "\t\t\t\tif (initialObjectField.getItemCount() == 1)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tinitialObjectField.clearSelection();" + NL + "\t\t\t\t\tencodingField.setFocus();" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tencodingField.clearSelection();" + NL + "\t\t\t\t\tinitialObjectField.setFocus();" + NL + "\t\t\t\t}";
- protected final String TEXT_187 = NL + "\t\t\t\tinitialObjectField.clearSelection();" + NL + "\t\t\t\tencodingField.clearSelection();" + NL + "\t\t\t\tfileField.setFocus();";
- protected final String TEXT_188 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic String getInitialObjectName()" + NL + "\t\t{" + NL + "\t\t\tString label = initialObjectField.getText();" + NL;
- protected final String TEXT_189 = NL + "\t\t\tfor (String name : getInitialObjectNames())";
- protected final String TEXT_190 = NL + "\t\t\tfor (Iterator i = getInitialObjectNames().iterator(); i.hasNext(); )";
- protected final String TEXT_191 = NL + "\t\t\t{";
- protected final String TEXT_192 = NL + "\t\t\t\tString name = (String)i.next();";
- protected final String TEXT_193 = NL + "\t\t\t\tif (getLabel(name).equals(label))" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\treturn name;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic String getEncoding()" + NL + "\t\t{" + NL + "\t\t\treturn encodingField.getText();" + NL + "\t\t}";
- protected final String TEXT_194 = NL + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic URI getFileURI()" + NL + "\t\t{" + NL + "\t\t\ttry" + NL + "\t\t\t{" + NL + "\t\t\t\treturn URI.createFileURI(fileField.getText());" + NL + "\t\t\t}" + NL + "\t\t\tcatch (Exception exception)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Ignore" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void selectFileField()" + NL + "\t\t{" + NL + "\t\t\t\tinitialObjectField.clearSelection();" + NL + "\t\t\t\tencodingField.clearSelection();" + NL + "\t\t\t\tfileField.selectAll();" + NL + "\t\t\t\tfileField.setFocus();" + NL + "\t\t}\t\t";
- protected final String TEXT_195 = NL + NL + "\t\t/**" + NL + "\t\t * Returns the label for the specified ";
- protected final String TEXT_196 = " name." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getLabel(String ";
- protected final String TEXT_197 = "Name)" + NL + "\t\t{" + NL + "\t\t\ttry" + NL + "\t\t\t{" + NL + "\t\t\t\treturn ";
- protected final String TEXT_198 = ".INSTANCE.getString(\"";
- protected final String TEXT_199 = "\" + ";
- protected final String TEXT_200 = "Name + \"_";
- protected final String TEXT_201 = "\");";
- protected final String TEXT_202 = NL + "\t\t\t}" + NL + "\t\t\tcatch(MissingResourceException mre)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
- protected final String TEXT_203 = ".INSTANCE.log(mre);" + NL + "\t\t\t}" + NL + "\t\t\treturn ";
- protected final String TEXT_204 = "Name;" + NL + "\t\t}";
- protected final String TEXT_205 = NL + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
- protected final String TEXT_206 = " getEncodings()" + NL + "\t\t{" + NL + "\t\t\tif (encodings == null)" + NL + "\t\t\t{" + NL + "\t\t\t\tencodings = new ";
- protected final String TEXT_207 = "();" + NL + "\t\t\t\tfor (StringTokenizer stringTokenizer = new StringTokenizer(";
- protected final String TEXT_208 = ".INSTANCE.getString(\"_UI_XMLEncodingChoices\")); stringTokenizer.hasMoreTokens(); )";
- protected final String TEXT_209 = NL + "\t\t\t\t{" + NL + "\t\t\t\t\tencodings.add(stringTokenizer.nextToken());" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn encodings;" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The framework calls this to create the contents of the wizard." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
- protected final String TEXT_210 = NL + "\t\t@Override";
- protected final String TEXT_211 = NL + "\tpublic void addPages()" + NL + "\t{";
- protected final String TEXT_212 = NL + "\t\t// Create a page, set the title, and the initial model file name." + NL + "\t\t//" + NL + "\t\tnewFileCreationPage = new ";
- protected final String TEXT_213 = "NewFileCreationPage(\"Whatever\", selection);";
- protected final String TEXT_214 = NL + "\t\tnewFileCreationPage.setTitle(";
- protected final String TEXT_215 = ".INSTANCE.getString(\"_UI_";
- protected final String TEXT_216 = "_label\"));";
- protected final String TEXT_217 = NL + "\t\tnewFileCreationPage.setDescription(";
- protected final String TEXT_218 = ".INSTANCE.getString(\"_UI_";
- protected final String TEXT_219 = "_description\"));";
- protected final String TEXT_220 = NL + "\t\tnewFileCreationPage.setFileName(";
- protected final String TEXT_221 = ".INSTANCE.getString(\"_UI_";
- protected final String TEXT_222 = "FilenameDefaultBase\") + \".\" + ";
- protected final String TEXT_223 = "(String)";
- protected final String TEXT_224 = "FILE_EXTENSIONS.get(0));";
- protected final String TEXT_225 = NL + "\t\taddPage(newFileCreationPage);" + NL + "" + NL + "\t\t// Try and get the resource selection to determine a current directory for the file dialog." + NL + "\t\t//" + NL + "\t\tif (selection != null && !selection.isEmpty())" + NL + "\t\t{" + NL + "\t\t\t// Get the resource..." + NL + "\t\t\t//" + NL + "\t\t\tObject selectedElement = selection.iterator().next();" + NL + "\t\t\tif (selectedElement instanceof IResource)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Get the resource parent, if its a file." + NL + "\t\t\t\t//" + NL + "\t\t\t\tIResource selectedResource = (IResource)selectedElement;" + NL + "\t\t\t\tif (selectedResource.getType() == IResource.FILE)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tselectedResource = selectedResource.getParent();" + NL + "\t\t\t\t}" + NL + "" + NL + "\t\t\t\t// This gives us a directory..." + NL + "\t\t\t\t//" + NL + "\t\t\t\tif (selectedResource instanceof IFolder || selectedResource instanceof IProject)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\t// Set this for the container." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tnewFileCreationPage.setContainerFullPath(selectedResource.getFullPath());" + NL + "" + NL + "\t\t\t\t\t// Make up a unique new name here." + NL + "\t\t\t\t\t//" + NL + "\t\t\t\t\tString defaultModelBaseFilename = ";
- protected final String TEXT_226 = ".INSTANCE.getString(\"_UI_";
- protected final String TEXT_227 = "FilenameDefaultBase\");";
- protected final String TEXT_228 = NL + "\t\t\t\t\tString defaultModelFilenameExtension = ";
- protected final String TEXT_229 = "(String)";
- protected final String TEXT_230 = "FILE_EXTENSIONS.get(0);" + NL + "\t\t\t\t\tString modelFilename = defaultModelBaseFilename + \".\" + defaultModelFilenameExtension;";
- protected final String TEXT_231 = NL + "\t\t\t\t\tfor (int i = 1; ((IContainer)selectedResource).findMember(modelFilename) != null; ++i)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tmodelFilename = defaultModelBaseFilename + i + \".\" + defaultModelFilenameExtension;";
- protected final String TEXT_232 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tnewFileCreationPage.setFileName(modelFilename);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}";
- protected final String TEXT_233 = NL + "\t\tinitialObjectCreationPage = new ";
- protected final String TEXT_234 = "InitialObjectCreationPage(\"Whatever2\");";
- protected final String TEXT_235 = NL + "\t\tinitialObjectCreationPage.setTitle(";
- protected final String TEXT_236 = ".INSTANCE.getString(\"_UI_";
- protected final String TEXT_237 = "_label\"));";
- protected final String TEXT_238 = NL + "\t\tinitialObjectCreationPage.setDescription(";
- protected final String TEXT_239 = ".INSTANCE.getString(\"_UI_Wizard_initial_object_description\"));";
- protected final String TEXT_240 = NL + "\t\taddPage(initialObjectCreationPage);" + NL + "\t}" + NL;
- protected final String TEXT_241 = NL + "\t/**" + NL + "\t * Get the URI from the page." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic URI getModelURI()" + NL + "\t{" + NL + "\t\treturn initialObjectCreationPage.getFileURI();" + NL + "\t}" + NL;
- protected final String TEXT_242 = NL + "\t/**" + NL + "\t * Get the file from the page." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IFile getModelFile()" + NL + "\t{" + NL + "\t\treturn newFileCreationPage.getModelFile();" + NL + "\t}" + NL;
- protected final String TEXT_243 = NL + "}";
- protected final String TEXT_244 = NL;
+ protected final String TEXT_16 = ";" + NL + "import ";
+ protected final String TEXT_17 = ";" + NL + NL;
+ protected final String TEXT_18 = NL + NL + NL + "/**" + NL + " * This is a simple wizard for creating a new model file." + NL + " * <!-- begin-user-doc -->" + NL + " * <!-- end-user-doc -->";
+ protected final String TEXT_19 = NL + " * @generated" + NL + " */";
+ protected final String TEXT_20 = NL + "@Deprecated";
+ protected final String TEXT_21 = NL + "public class ";
+ protected final String TEXT_22 = " extends Wizard implements INewWizard" + NL + "{";
+ protected final String TEXT_23 = NL + "\t/**" + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
+ protected final String TEXT_24 = " copyright = ";
+ protected final String TEXT_25 = NL;
+ protected final String TEXT_26 = NL + "\t/**" + NL + "\t * The supported extensions for created files." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final ";
+ protected final String TEXT_27 = " FILE_EXTENSIONS =" + NL + "\t\tCollections.unmodifiableList(Arrays.asList(";
+ protected final String TEXT_28 = ".INSTANCE.getString(\"_UI_";
+ protected final String TEXT_29 = "FilenameExtensions\").split(\"\\\\s*,\\\\s*\")));";
+ protected final String TEXT_30 = NL + NL + "\t/**" + NL + "\t * A formatted list of supported file extensions, suitable for display." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic static final String FORMATTED_FILE_EXTENSIONS =" + NL + "\t\t";
+ protected final String TEXT_31 = "FilenameExtensions\").replaceAll(\"\\\\s*,\\\\s*\", \", \");";
+ protected final String TEXT_32 = NL + NL + "\t/**" + NL + "\t * This caches an instance of the model package." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_33 = " ";
+ protected final String TEXT_34 = " = ";
+ protected final String TEXT_35 = ".eINSTANCE;" + NL + "" + NL + "\t/**" + NL + "\t * This caches an instance of the model factory." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_36 = ".get";
+ protected final String TEXT_37 = "();" + NL;
+ protected final String TEXT_38 = NL + "\t/**" + NL + "\t * This is the file creation page." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_39 = "NewFileCreationPage newFileCreationPage;" + NL;
+ protected final String TEXT_40 = NL + "\t/**" + NL + "\t * This is the initial object creation page." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_41 = "InitialObjectCreationPage initialObjectCreationPage;" + NL + "" + NL + "\t/**" + NL + "\t * Remember the selection during initialization for populating the default container." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IStructuredSelection selection;" + NL + "" + NL + "\t/**" + NL + "\t * Remember the workbench during initialization." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IWorkbench workbench;" + NL + "" + NL + "\t/**";
+ protected final String TEXT_42 = NL + "\t * Caches the names of the types that can be created as the root object.";
+ protected final String TEXT_43 = NL + "\t * Caches the names of the features representing global elements.";
+ protected final String TEXT_44 = NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected ";
+ protected final String TEXT_45 = " initialObjectNames;" + NL + "" + NL + "\t/**" + NL + "\t * This just records the information." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void init(IWorkbench workbench, IStructuredSelection selection)" + NL + "\t{" + NL + "\t\tthis.workbench = workbench;" + NL + "\t\tthis.selection = selection;" + NL + "\t\tsetWindowTitle(";
+ protected final String TEXT_46 = ".INSTANCE.getString(\"_UI_Wizard_label\"));";
+ protected final String TEXT_47 = NL + "\t\tsetDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(";
+ protected final String TEXT_48 = ".INSTANCE.getImage(\"full/wizban/New";
+ protected final String TEXT_49 = "\")));";
+ protected final String TEXT_50 = NL + "\t}" + NL + "" + NL + "\t/**";
+ protected final String TEXT_51 = NL + "\t * Returns the names of the types that can be created as the root object.";
+ protected final String TEXT_52 = NL + "\t * Returns the names of the features representing global elements.";
+ protected final String TEXT_53 = " getInitialObjectNames()" + NL + "\t{" + NL + "\t\tif (initialObjectNames == null)" + NL + "\t\t{" + NL + "\t\t\tinitialObjectNames = new ";
+ protected final String TEXT_54 = "();";
+ protected final String TEXT_55 = NL + "\t\t\tfor (EClassifier eClassifier : ";
+ protected final String TEXT_56 = ".getEClassifiers())";
+ protected final String TEXT_57 = NL + "\t\t\tfor (Iterator classifiers = ";
+ protected final String TEXT_58 = ".getEClassifiers().iterator(); classifiers.hasNext(); )";
+ protected final String TEXT_59 = NL + "\t\t\t{";
+ protected final String TEXT_60 = NL + "\t\t\t\tEClassifier eClassifier = (EClassifier)classifiers.next();";
+ protected final String TEXT_61 = NL + "\t\t\t\tif (eClassifier instanceof EClass)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tEClass eClass = (EClass)eClassifier;" + NL + "\t\t\t\t\tif (!eClass.isAbstract())" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tinitialObjectNames.add(eClass.getName());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
+ protected final String TEXT_62 = NL + "\t\t\tfor (";
+ protected final String TEXT_63 = " eStructuralFeature : ";
+ protected final String TEXT_64 = ".INSTANCE.getAllElements(";
+ protected final String TEXT_65 = ".INSTANCE.getDocumentRoot(";
+ protected final String TEXT_66 = ")))";
+ protected final String TEXT_67 = NL + "\t\t\tfor (Iterator elements = ";
+ protected final String TEXT_68 = ")).iterator(); elements.hasNext(); )";
+ protected final String TEXT_69 = NL + "\t\t\t\t";
+ protected final String TEXT_70 = " eStructuralFeature = (";
+ protected final String TEXT_71 = ")elements.next();";
+ protected final String TEXT_72 = NL + "\t\t\t\tif (eStructuralFeature.isChangeable())" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tEClassifier eClassifier = eStructuralFeature.getEType();" + NL + "\t\t\t\t\tif (eClassifier instanceof EClass)" + NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\tEClass eClass = (EClass)eClassifier;" + NL + "\t\t\t\t\t\tif (!eClass.isAbstract())" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tinitialObjectNames.add(eStructuralFeature.getName());" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}";
+ protected final String TEXT_73 = NL + "\t\t\tCollections.sort(initialObjectNames, ";
+ protected final String TEXT_74 = "CommonPlugin.INSTANCE.getComparator()";
+ protected final String TEXT_75 = "java.text.Collator.getInstance()";
+ protected final String TEXT_76 = ");" + NL + "\t\t}" + NL + "\t\treturn initialObjectNames;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Create a new model." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected EObject createInitialModel()" + NL + "\t{";
+ protected final String TEXT_77 = NL + "\t\tEClass eClass = (EClass)";
+ protected final String TEXT_78 = ".getEClassifier(initialObjectCreationPage.getInitialObjectName());" + NL + "\t\tEObject rootObject = ";
+ protected final String TEXT_79 = ".create(eClass);";
+ protected final String TEXT_80 = NL + "\t\tEClass eClass = ";
+ protected final String TEXT_81 = ");" + NL + "\t\tEStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(initialObjectCreationPage.getInitialObjectName());" + NL + "\t\tEObject rootObject = ";
+ protected final String TEXT_82 = ".create(eClass);" + NL + "\t\trootObject.eSet(eStructuralFeature, ";
+ protected final String TEXT_83 = ".create((EClass)eStructuralFeature.getEType()));";
+ protected final String TEXT_84 = NL + "\t\treturn rootObject;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Do the work after everything is specified." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_85 = NL + "\t@Override";
+ protected final String TEXT_86 = NL + "\tpublic boolean performFinish()" + NL + "\t{" + NL + "\t\ttry" + NL + "\t\t{";
+ protected final String TEXT_87 = NL + "\t\t\t// Get the URI of the model file." + NL + "\t\t\t//" + NL + "\t\t\tfinal URI fileURI = getModelURI();" + NL + "\t\t\tif (new ";
+ protected final String TEXT_88 = "(fileURI.toFileString()).exists())" + NL + "\t\t\t{" + NL + "\t\t\t\tif (!MessageDialog.openQuestion" + NL + "\t\t\t\t\t\t(getShell()," + NL + "\t\t\t\t\t\t ";
+ protected final String TEXT_89 = ".INSTANCE.getString(\"_UI_Question_title\"),";
+ protected final String TEXT_90 = NL + "\t\t\t\t\t\t ";
+ protected final String TEXT_91 = ".INSTANCE.getString(\"_WARN_FileConflict\", new String []{ fileURI.toFileString() })))";
+ protected final String TEXT_92 = NL + "\t\t\t\t{" + NL + "\t\t\t\t\tinitialObjectCreationPage.selectFileField();" + NL + "\t\t\t\t\treturn false;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\t" + NL + "\t\t\t// Do the work within an operation." + NL + "\t\t\t//" + NL + "\t\t\t";
+ protected final String TEXT_93 = " operation = new ";
+ protected final String TEXT_94 = "()" + NL + "\t\t\t{" + NL + "\t\t\t\tpublic void run(IProgressMonitor progressMonitor)";
+ protected final String TEXT_95 = NL + "\t\t\t// Remember the file." + NL + "\t\t\t//" + NL + "\t\t\tfinal IFile modelFile = getModelFile();" + NL + "" + NL + "\t\t\t// Do the work within an operation." + NL + "\t\t\t//" + NL + "\t\t\tWorkspaceModifyOperation operation =" + NL + "\t\t\t\tnew WorkspaceModifyOperation()" + NL + "\t\t\t\t{";
+ protected final String TEXT_96 = NL + "\t\t\t\t\t@Override";
+ protected final String TEXT_97 = NL + "\t\t\t\t\tprotected void execute(IProgressMonitor progressMonitor)";
+ protected final String TEXT_98 = NL + "\t\t\t\t\t{" + NL + "\t\t\t\t\t\ttry" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t// Create a resource set" + NL + "\t\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\t\tResourceSet resourceSet = new ResourceSetImpl();" + NL;
+ protected final String TEXT_99 = NL + "\t\t\t\t\t\t\t// Get the URI of the model file." + NL + "\t\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\t\tURI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);" + NL;
+ protected final String TEXT_100 = NL + "\t\t\t\t\t\t\t// Create a resource for this file." + NL + "\t\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\t\tResource resource = resourceSet.createResource(fileURI";
+ protected final String TEXT_101 = ", ";
+ protected final String TEXT_102 = ".eCONTENT_TYPE";
+ protected final String TEXT_103 = ");" + NL + "" + NL + "\t\t\t\t\t\t\t// Add the initial model object to the contents." + NL + "\t\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\t\tEObject rootObject = createInitialModel();" + NL + "\t\t\t\t\t\t\tif (rootObject != null)" + NL + "\t\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t\tresource.getContents().add(rootObject);" + NL + "\t\t\t\t\t\t\t}" + NL + "" + NL + "\t\t\t\t\t\t\t// Save the contents of the resource to the file system." + NL + "\t\t\t\t\t\t\t//" + NL + "\t\t\t\t\t\t\t";
+ protected final String TEXT_104 = " options = new ";
+ protected final String TEXT_105 = "();" + NL + "\t\t\t\t\t\t\toptions.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding());" + NL + "\t\t\t\t\t\t\tresource.save(options);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tcatch (Exception exception)" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\t";
+ protected final String TEXT_106 = ".INSTANCE.log(exception);" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tfinally" + NL + "\t\t\t\t\t\t{" + NL + "\t\t\t\t\t\t\tprogressMonitor.done();" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "" + NL + "\t\t\tgetContainer().run(false, false, operation);" + NL;
+ protected final String TEXT_107 = NL + "\t\t\treturn ";
+ protected final String TEXT_108 = ".openEditor(workbench, fileURI);\t\t\t";
+ protected final String TEXT_109 = NL + "\t\t\t// Select the new file resource in the current view." + NL + "\t\t\t//" + NL + "\t\t\t";
+ protected final String TEXT_110 = " workbenchWindow = workbench.getActiveWorkbenchWindow();" + NL + "\t\t\t";
+ protected final String TEXT_111 = " page = workbenchWindow.getActivePage();" + NL + "\t\t\tfinal ";
+ protected final String TEXT_112 = " activePart = page.getActivePart();" + NL + "\t\t\tif (activePart instanceof ISetSelectionTarget)" + NL + "\t\t\t{" + NL + "\t\t\t\tfinal ";
+ protected final String TEXT_113 = " targetSelection = new ";
+ protected final String TEXT_114 = "(modelFile);" + NL + "\t\t\t\tgetShell().getDisplay().asyncExec" + NL + "\t\t\t\t\t(new Runnable()" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t public void run()" + NL + "\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t ((ISetSelectionTarget)activePart).selectReveal(targetSelection);" + NL + "\t\t\t\t\t\t }" + NL + "\t\t\t\t\t });" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\t// Open an editor on the new file." + NL + "\t\t\t//" + NL + "\t\t\ttry" + NL + "\t\t\t{" + NL + "\t\t\t\tpage.openEditor" + NL + "\t\t\t\t\t(new FileEditorInput(modelFile)," + NL + "\t\t\t\t\t workbench.getEditorRegistry().getDefaultEditor";
+ protected final String TEXT_115 = "(modelFile.getFullPath().toString()).getId());";
+ protected final String TEXT_116 = NL + "\t\t\t\t\t \t(modelFile.getFullPath().toString()," + NL + "\t\t\t\t\t \t ";
+ protected final String TEXT_117 = ".getContentTypeManager().getContentType(";
+ protected final String TEXT_118 = ".eCONTENT_TYPE)).getId());";
+ protected final String TEXT_119 = "\t\t\t\t\t \t " + NL + "\t\t\t}" + NL + "\t\t\tcatch (";
+ protected final String TEXT_120 = " exception)" + NL + "\t\t\t{" + NL + "\t\t\t\tMessageDialog.openError(workbenchWindow.getShell(), ";
+ protected final String TEXT_121 = ".INSTANCE.getString(\"_UI_OpenEditorError_label\"), exception.getMessage());";
+ protected final String TEXT_122 = NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\treturn true;";
+ protected final String TEXT_123 = NL + "\t\t}" + NL + "\t\tcatch (Exception exception)" + NL + "\t\t{" + NL + "\t\t\t";
+ protected final String TEXT_124 = ".INSTANCE.log(exception);" + NL + "\t\t\treturn false;" + NL + "\t\t}" + NL + "\t}" + NL;
+ protected final String TEXT_125 = NL + "\t/**" + NL + "\t * This is the one page of the wizard." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic class ";
+ protected final String TEXT_126 = "NewFileCreationPage extends WizardNewFileCreationPage" + NL + "\t{" + NL + "\t\t/**" + NL + "\t\t * Pass in the selection." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ";
+ protected final String TEXT_127 = "NewFileCreationPage(String pageId, IStructuredSelection selection)" + NL + "\t\t{" + NL + "\t\t\tsuper(pageId, selection);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * The framework calls this to see if the file is correct." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
+ protected final String TEXT_128 = NL + "\t\t@Override";
+ protected final String TEXT_129 = NL + "\t\tprotected boolean validatePage()" + NL + "\t\t{" + NL + "\t\t\tif (super.validatePage())" + NL + "\t\t\t{" + NL + "\t\t\t\tString extension = new ";
+ protected final String TEXT_130 = "(getFileName()).getFileExtension();" + NL + "\t\t\t\tif (extension == null || !FILE_EXTENSIONS.contains(extension))" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tString key = FILE_EXTENSIONS.size() > 1 ? \"_WARN_FilenameExtensions\" : \"_WARN_FilenameExtension\";";
+ protected final String TEXT_131 = NL + "\t\t\t\t\tsetErrorMessage(";
+ protected final String TEXT_132 = ".INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));" + NL + "\t\t\t\t\treturn false;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn true;" + NL + "\t\t\t}" + NL + "\t\t\treturn false;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic IFile getModelFile()" + NL + "\t\t{" + NL + "\t\t\treturn ResourcesPlugin.getWorkspace().getRoot().getFile(getContainerFullPath().append(getFileName()));" + NL + "\t\t}" + NL + "\t}" + NL;
+ protected final String TEXT_133 = NL + "\t/**" + NL + "\t * This is the page where the type of object to create is selected." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic class ";
+ protected final String TEXT_134 = "InitialObjectCreationPage extends WizardPage" + NL + "\t{";
+ protected final String TEXT_135 = NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_136 = " fileField;" + NL;
+ protected final String TEXT_137 = NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected Combo initialObjectField;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_138 = " encodings;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected Combo encodingField;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Pass in the selection." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic ";
+ protected final String TEXT_139 = "InitialObjectCreationPage(String pageId)" + NL + "\t\t{" + NL + "\t\t\tsuper(pageId);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void createControl(Composite parent)" + NL + "\t\t{" + NL + "\t\t\tComposite composite = new Composite(parent, SWT.NONE);" + NL + "\t\t\t{" + NL + "\t\t\t\tGridLayout layout = new GridLayout();" + NL + "\t\t\t\tlayout.numColumns = 1;" + NL + "\t\t\t\tlayout.verticalSpacing = 12;" + NL + "\t\t\t\tcomposite.setLayout(layout);" + NL + "" + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.verticalAlignment = GridData.FILL;" + NL + "\t\t\t\tdata.grabExcessVerticalSpace = true;" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tcomposite.setLayoutData(data);" + NL + "\t\t\t}" + NL;
+ protected final String TEXT_140 = "\t\t\t" + NL + "\t\t\tLabel resourceURILabel = new Label(composite, SWT.LEFT);" + NL + "\t\t\t{" + NL + "\t\t\t\tresourceURILabel.setText(";
+ protected final String TEXT_141 = ".INSTANCE.getString(\"_UI_File_label\"));";
+ protected final String TEXT_142 = NL + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tresourceURILabel.setLayoutData(data);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tComposite fileComposite = new Composite(composite, SWT.NONE);" + NL + "\t\t\t{" + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.END;" + NL + "\t\t\t\tfileComposite.setLayoutData(data);" + NL + "" + NL + "\t\t\t\tGridLayout layout = new GridLayout();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tlayout.marginHeight = 0;" + NL + "\t\t\t\tlayout.marginWidth = 0;" + NL + "\t\t\t\tlayout.numColumns = 2;" + NL + "\t\t\t\tfileComposite.setLayout(layout);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tfileField = new ";
+ protected final String TEXT_143 = "(fileComposite, SWT.BORDER);" + NL + "\t\t\t{" + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tdata.grabExcessHorizontalSpace = true;" + NL + "\t\t\t\tdata.horizontalSpan = 1;" + NL + "\t\t\t\tfileField.setLayoutData(data);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tfileField.addModifyListener(validator);" + NL;
+ protected final String TEXT_144 = NL + "\t\t\t";
+ protected final String TEXT_145 = " resourceURIBrowseFileSystemButton = new ";
+ protected final String TEXT_146 = "(fileComposite, SWT.PUSH);" + NL + "\t\t\tresourceURIBrowseFileSystemButton.setText(";
+ protected final String TEXT_147 = ".INSTANCE.getString(\"_UI_Browse_label\"));";
+ protected final String TEXT_148 = NL + NL + "\t\t\tresourceURIBrowseFileSystemButton.addSelectionListener" + NL + "\t\t\t\t(new ";
+ protected final String TEXT_149 = "()" + NL + "\t\t\t\t {";
+ protected final String TEXT_150 = NL + "\t\t\t\t\t @Override";
+ protected final String TEXT_151 = NL + "\t\t\t\t\t public void widgetSelected(";
+ protected final String TEXT_152 = " event)" + NL + "\t\t\t\t\t {" + NL + "\t\t\t\t\t\t String[] filters = ";
+ protected final String TEXT_153 = "(String[])";
+ protected final String TEXT_154 = ".FILE_EXTENSION_FILTERS.toArray(new String[";
+ protected final String TEXT_155 = ".FILE_EXTENSION_FILTERS.size()]);" + NL + "\t\t\t\t\t\t String[] files = ";
+ protected final String TEXT_156 = ".openFilePathDialog(getShell(), ";
+ protected final String TEXT_157 = ".SAVE, filters);" + NL + "\t\t\t\t\t\t if (files.length > 0)" + NL + "\t\t\t\t\t\t {" + NL + "\t\t\t\t\t\t\t fileField.setText(files[0]);" + NL + "\t\t\t\t\t\t }" + NL + "\t\t\t\t\t }" + NL + "\t\t\t\t });";
+ protected final String TEXT_158 = NL + "\t\t\tLabel containerLabel = new Label(composite, SWT.LEFT);" + NL + "\t\t\t{" + NL + "\t\t\t\tcontainerLabel.setText(";
+ protected final String TEXT_159 = ".INSTANCE.getString(\"_UI_ModelObject\"));";
+ protected final String TEXT_160 = NL + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tcontainerLabel.setLayoutData(data);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tinitialObjectField = new Combo(composite, SWT.BORDER);" + NL + "\t\t\t{" + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tdata.grabExcessHorizontalSpace = true;" + NL + "\t\t\t\tinitialObjectField.setLayoutData(data);" + NL + "\t\t\t}" + NL;
+ protected final String TEXT_161 = NL + "\t\t\tfor (String objectName : getInitialObjectNames())" + NL + "\t\t\t{" + NL + "\t\t\t\tinitialObjectField.add(getLabel(objectName));" + NL + "\t\t\t}";
+ protected final String TEXT_162 = NL + "\t\t\tfor (Iterator i = getInitialObjectNames().iterator(); i.hasNext(); )" + NL + "\t\t\t{" + NL + "\t\t\t\tinitialObjectField.add(getLabel((String)i.next()));" + NL + "\t\t\t}";
+ protected final String TEXT_163 = NL + NL + "\t\t\tif (initialObjectField.getItemCount() == 1)" + NL + "\t\t\t{" + NL + "\t\t\t\tinitialObjectField.select(0);" + NL + "\t\t\t}" + NL + "\t\t\tinitialObjectField.addModifyListener(validator);" + NL + "" + NL + "\t\t\tLabel encodingLabel = new Label(composite, SWT.LEFT);" + NL + "\t\t\t{" + NL + "\t\t\t\tencodingLabel.setText(";
+ protected final String TEXT_164 = ".INSTANCE.getString(\"_UI_XMLEncoding\"));";
+ protected final String TEXT_165 = NL + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tencodingLabel.setLayoutData(data);" + NL + "\t\t\t}" + NL + "\t\t\tencodingField = new Combo(composite, SWT.BORDER);" + NL + "\t\t\t{" + NL + "\t\t\t\tGridData data = new GridData();" + NL + "\t\t\t\tdata.horizontalAlignment = GridData.FILL;" + NL + "\t\t\t\tdata.grabExcessHorizontalSpace = true;" + NL + "\t\t\t\tencodingField.setLayoutData(data);" + NL + "\t\t\t}" + NL;
+ protected final String TEXT_166 = NL + "\t\t\tfor (String encoding : getEncodings())" + NL + "\t\t\t{" + NL + "\t\t\t\tencodingField.add(encoding);" + NL + "\t\t\t}";
+ protected final String TEXT_167 = NL + "\t\t\tfor (Iterator i = getEncodings().iterator(); i.hasNext(); )" + NL + "\t\t\t{" + NL + "\t\t\t\tencodingField.add((String)i.next());" + NL + "\t\t\t}";
+ protected final String TEXT_168 = NL + NL + "\t\t\tencodingField.select(0);" + NL + "\t\t\tencodingField.addModifyListener(validator);" + NL + "" + NL + "\t\t\tsetPageComplete(validatePage());" + NL + "\t\t\tsetControl(composite);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ModifyListener validator =" + NL + "\t\t\tnew ModifyListener()" + NL + "\t\t\t{" + NL + "\t\t\t\tpublic void modifyText(ModifyEvent e)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tsetPageComplete(validatePage());" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean validatePage()" + NL + "\t\t{";
+ protected final String TEXT_169 = NL + "\t\t\tURI fileURI = getFileURI();" + NL + "\t\t\tif (fileURI == null || fileURI.isEmpty())" + NL + "\t\t\t{" + NL + "\t\t\t\tsetErrorMessage(null);" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tString extension = fileURI.fileExtension();" + NL + "\t\t\tif (extension == null || !FILE_EXTENSIONS.contains(extension))" + NL + "\t\t\t{" + NL + "\t\t\t\tString key = FILE_EXTENSIONS.size() > 1 ? \"_WARN_FilenameExtensions\" : \"_WARN_FilenameExtension\";";
+ protected final String TEXT_170 = NL + "\t\t\t\tsetErrorMessage(";
+ protected final String TEXT_171 = ".INSTANCE.getString(key, new Object [] { FORMATTED_FILE_EXTENSIONS }));" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tsetErrorMessage(null);";
+ protected final String TEXT_172 = NL + "\t\t\treturn getInitialObjectName() != null && getEncodings().contains(encodingField.getText());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */";
+ protected final String TEXT_173 = NL + "\t\tpublic void setVisible(boolean visible)" + NL + "\t\t{" + NL + "\t\t\tsuper.setVisible(visible);" + NL + "\t\t\tif (visible)" + NL + "\t\t\t{";
+ protected final String TEXT_174 = NL + "\t\t\t\tif (initialObjectField.getItemCount() == 1)" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tinitialObjectField.clearSelection();" + NL + "\t\t\t\t\tencodingField.setFocus();" + NL + "\t\t\t\t}" + NL + "\t\t\t\telse" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\tencodingField.clearSelection();" + NL + "\t\t\t\t\tinitialObjectField.setFocus();" + NL + "\t\t\t\t}";
+ protected final String TEXT_175 = NL + "\t\t\t\tinitialObjectField.clearSelection();" + NL + "\t\t\t\tencodingField.clearSelection();" + NL + "\t\t\t\tfileField.setFocus();";
+ protected final String TEXT_176 = NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic String getInitialObjectName()" + NL + "\t\t{" + NL + "\t\t\tString label = initialObjectField.getText();" + NL;
+ protected final String TEXT_177 = NL + "\t\t\tfor (String name : getInitialObjectNames())";
+ protected final String TEXT_178 = NL + "\t\t\tfor (Iterator i = getInitialObjectNames().iterator(); i.hasNext(); )";
+ protected final String TEXT_179 = NL + "\t\t\t\tString name = (String)i.next();";
+ protected final String TEXT_180 = NL + "\t\t\t\tif (getLabel(name).equals(label))" + NL + "\t\t\t\t{" + NL + "\t\t\t\t\treturn name;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic String getEncoding()" + NL + "\t\t{" + NL + "\t\t\treturn encodingField.getText();" + NL + "\t\t}";
+ protected final String TEXT_181 = NL + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic URI getFileURI()" + NL + "\t\t{" + NL + "\t\t\ttry" + NL + "\t\t\t{" + NL + "\t\t\t\treturn URI.createFileURI(fileField.getText());" + NL + "\t\t\t}" + NL + "\t\t\tcatch (Exception exception)" + NL + "\t\t\t{" + NL + "\t\t\t\t// Ignore" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void selectFileField()" + NL + "\t\t{" + NL + "\t\t\t\tinitialObjectField.clearSelection();" + NL + "\t\t\t\tencodingField.clearSelection();" + NL + "\t\t\t\tfileField.selectAll();" + NL + "\t\t\t\tfileField.setFocus();" + NL + "\t\t}\t\t";
+ protected final String TEXT_182 = NL + NL + "\t\t/**" + NL + "\t\t * Returns the label for the specified ";
+ protected final String TEXT_183 = " name." + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getLabel(String ";
+ protected final String TEXT_184 = "Name)" + NL + "\t\t{" + NL + "\t\t\ttry" + NL + "\t\t\t{" + NL + "\t\t\t\treturn ";
+ protected final String TEXT_185 = ".INSTANCE.getString(\"";
+ protected final String TEXT_186 = "\" + ";
+ protected final String TEXT_187 = "Name + \"_";
+ protected final String TEXT_188 = "\");";
+ protected final String TEXT_189 = NL + "\t\t\t}" + NL + "\t\t\tcatch(MissingResourceException mre)" + NL + "\t\t\t{" + NL + "\t\t\t\t";
+ protected final String TEXT_190 = ".INSTANCE.log(mre);" + NL + "\t\t\t}" + NL + "\t\t\treturn ";
+ protected final String TEXT_191 = "Name;" + NL + "\t\t}";
+ protected final String TEXT_192 = NL + NL + "\t\t/**" + NL + "\t\t * <!-- begin-user-doc -->" + NL + "\t\t * <!-- end-user-doc -->" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected ";
+ protected final String TEXT_193 = " getEncodings()" + NL + "\t\t{" + NL + "\t\t\tif (encodings == null)" + NL + "\t\t\t{" + NL + "\t\t\t\tencodings = new ";
+ protected final String TEXT_194 = "();" + NL + "\t\t\t\tfor (StringTokenizer stringTokenizer = new StringTokenizer(";
+ protected final String TEXT_195 = ".INSTANCE.getString(\"_UI_XMLEncodingChoices\")); stringTokenizer.hasMoreTokens(); )";
+ protected final String TEXT_196 = NL + "\t\t\t\t{" + NL + "\t\t\t\t\tencodings.add(stringTokenizer.nextToken());" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn encodings;" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The framework calls this to create the contents of the wizard." + NL + "\t * <!-- begin-user-doc -->" + NL + "\t * <!-- end-user-doc -->" + NL + "\t * @generated" + NL + "\t */";
+ protected final String TEXT_197 = NL + "\tpublic void addPages()" + NL + "\t{";
+ protected final String TEXT_198 = NL + "