Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2011-07-04 13:17:10 +0000
committercletavernie2011-07-04 13:17:10 +0000
commit7d57cd4bc0df106089501f9c62029445ef1a10c2 (patch)
treef3ed05d1fa55b07fc2ded752a72b78189510d087 /incoming
parent70acf6fcdd38a2d14b834ecf77943de6abba31e9 (diff)
downloadorg.eclipse.papyrus-7d57cd4bc0df106089501f9c62029445ef1a10c2.tar.gz
org.eclipse.papyrus-7d57cd4bc0df106089501f9c62029445ef1a10c2.tar.xz
org.eclipse.papyrus-7d57cd4bc0df106089501f9c62029445ef1a10c2.zip
Move oep.properties.customization from Core to ConfigurationTK
Diffstat (limited to 'incoming')
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/.classpath7
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/.project35
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/META-INF/MANIFEST.MF32
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/Customization.ctx970
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/CustomizationEnvironment.xmi6
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/custom.querySet45
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/EcoreInstanceOf.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/GridLayout.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/GroupAttributes.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/Label.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiValueEditor.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeConstraint.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeWidget.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeWidgetType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConfigProperty.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConstraintDescriptor.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConstraintType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleContext.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextElement.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextPackage.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextRoot.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDisplayUnit.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleElement.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleEnvironment.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleLayout.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleLayoutType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleModelElementFactoryDescriptor.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleProperty.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiplePropertyEditor.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiplePropertyEditorType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleReferenceAttribute.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleReferenceProperty.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleSection.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleStandardWidget.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleStandardWidgetType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleTab.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUIComponent.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUnknownComponent.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUnknownProperty.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleValueAttribute.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleValueProperty.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleView.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidget.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidgetAttribute.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidgetType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/OCLQuery.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/Single IntegerSpinner.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/Single ToggleButton.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeConstraint.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeWidget.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeWidgetType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConfigProperty.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConstraintDescriptor.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConstraintType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleContext.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextElement.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextPackage.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextRoot.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDisplayUnit.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleElement.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleEnvironment.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleFileSelector.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleLayout.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleLayoutType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleModelElementFactoryDescriptor.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleProperty.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditor.xwt30
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditorType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleReferenceAttribute.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleReferenceProperty.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleSection.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleStandardWidget.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleStandardWidgetType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleTab.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUIComponent.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUnknownComponent.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUnknownProperty.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleValueAttribute.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleValueProperty.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleView.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidget.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidgetAttribute.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidgetType.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/Stereotype.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Model/ui/UMLInstanceOf.xwt2
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/OSGI-INF/l10n/bundle.properties23
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Query/Contexts.querySet53
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/Query/Ui.querySet8
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/UICustom/context.uiCustom326
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/UICustom/environment.uiCustom13
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/UICustom/ui.uiCustom124
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/about.html28
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/build.properties11
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/icons/Context.gifbin584 -> 0 bytes
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/icons/Customization.gifbin341 -> 0 bytes
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/icons/DataContext.gifbin606 -> 0 bytes
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/icons/DataContexts.gifbin579 -> 0 bytes
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/icons/MultiView.gifbin562 -> 0 bytes
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/icons/error.gifbin353 -> 0 bytes
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/icons/papyrus.pngbin602 -> 0 bytes
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/icons/preview.pngbin3615 -> 0 bytes
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/icons/refresh.gifbin216 -> 0 bytes
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/plugin.xml181
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/Activator.java145
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/ContextEditorActionBarContributor.java340
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/MoDiscoDropAdapter.java66
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/UIEditor.java373
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/ViewFilter.java121
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CompoundCommandActionDelegate.java59
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateResourceCommand.java92
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateSectionAction.java201
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateSectionWidgetAction.java127
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoCopyAction.java51
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoCutAction.java53
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoDeleteAction.java79
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoPasteAction.java52
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ToggleDataContextAction.java48
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ToggleDataContextState.java19
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/TogglePreviewAction.java68
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/TogglePreviewState.java142
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ValidationAction.java30
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/preview/Preview.java491
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/messages/Messages.java95
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/messages/messages.properties34
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/CustomizationModelElement.java171
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/CustomizationModelElementFactory.java30
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeModelElement.java130
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeModelElementFactory.java57
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeObservable.java183
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericPropertyModelElementFactory.java58
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/SectionNameObservableValue.java97
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/perspective/CustomizationPerspectiveFactory.java35
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/preferences/CustomizationPreferencePage.java120
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/preferences/CustomizationPreferencesInitializer.java32
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/AbstractContextualContentProvider.java82
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ConstraintDescriptorContentProvider.java73
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ContextContentProvider.java82
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ContextLabelProvider.java93
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/DataContextElementContentProvider.java116
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/DependencyContentProvider.java28
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/EnvironmentContentProvider.java50
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/PropertyContentProvider.java121
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/TabContentProvider.java61
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/query/ShowContextQuery.java32
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/CopyContextAction.java212
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/CustomizationDialog.java275
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/EditContextAction.java42
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/OpenCustomization.java36
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/RemoveContextAction.java54
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/util/ActionUtil.java94
-rw-r--r--incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/util/ProjectUtil.java132
152 files changed, 0 insertions, 7233 deletions
diff --git a/incoming/org.eclipse.papyrus.properties.customization/.classpath b/incoming/org.eclipse.papyrus.properties.customization/.classpath
deleted file mode 100644
index 45f024e850e..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/.project b/incoming/org.eclipse.papyrus.properties.customization/.project
deleted file mode 100644
index 9df55dfd397..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/.project
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.properties.customization</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.emf.facet.common.core.builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.emf.facet.common.ProjectNature</nature>
- <nature>org.eclipse.m2m.qvt.oml.project.QVTONature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/.settings/org.eclipse.core.resources.prefs b/incoming/org.eclipse.papyrus.properties.customization/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 3d1f56a25d4..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Wed Feb 09 15:06:25 CET 2011
-eclipse.preferences.version=1
-encoding//src/org/eclipse/papyrus/properties/customization/messages/messages.properties=ISO-8859-1
diff --git a/incoming/org.eclipse.papyrus.properties.customization/META-INF/MANIFEST.MF b/incoming/org.eclipse.papyrus.properties.customization/META-INF/MANIFEST.MF
deleted file mode 100644
index afb4431a3c2..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,32 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name
-Bundle-SymbolicName: org.eclipse.papyrus.properties.customization;singleton:=true
-Bundle-Version: 0.8.1.qualifier
-Bundle-Activator: org.eclipse.papyrus.properties.customization.Activator
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.core.resources;bundle-version="3.6.0",
- org.eclipse.core.databinding.observable;bundle-version="1.3.0",
- org.eclipse.ui.views.properties.tabbed;bundle-version="3.5.100",
- org.eclipse.papyrus.log;bundle-version="0.8.0",
- org.eclipse.papyrus.widgets;bundle-version="0.8.0",
- org.eclipse.papyrus.diagram.common;bundle-version="0.8.0",
- org.eclipse.papyrus.properties;bundle-version="0.8.0",
- org.eclipse.papyrus.properties.model;bundle-version="0.8.0",
- org.eclipse.papyrus.properties.model.xwt;bundle-version="0.8.0",
- org.eclipse.emf.ecore.editor;bundle-version="2.6.0",
- org.eclipse.emf.facet.infra.facet.core;bundle-version="0.1.0",
- org.eclipse.emf.facet.infra.browser.uicore;bundle-version="0.1.0",
- org.eclipse.emf.facet.infra.browser.custom;bundle-version="0.1.0",
- org.eclipse.emf.facet.infra.browser.custom.core;bundle-version="0.1.0",
- org.eclipse.emf.facet.infra.query.core;bundle-version="0.1.0",
- org.eclipse.emf.facet.infra.facet;bundle-version="0.1.0",
- org.eclipse.emf.facet.infra.common.core;bundle-version="0.1.0",
- org.eclipse.emf.databinding;bundle-version="1.2.0"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Bundle-ClassPath: .,bin
-Export-Package: org.eclipse.papyrus.properties.customization.editor,
- org.eclipse.papyrus.properties.customization.modelelement,
- org.eclipse.papyrus.properties.customization.providers
-Bundle-Vendor: %Bundle-Vendor
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/Customization.ctx b/incoming/org.eclipse.papyrus.properties.customization/Model/Customization.ctx
deleted file mode 100644
index e3fa9c297f8..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/Customization.ctx
+++ /dev/null
@@ -1,970 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<contexts:Context xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:contexts="http://www.eclipse.org/papyrus/properties/contexts" name="Customization">
- <tabs label="Context" id="context" category="">
- <sections name="Single Environment" sectionFile="ui/SingleEnvironment.xwt">
- <widget href="ui/SingleEnvironment.xwt#/"/>
- </sections>
- <sections name="Multiple Environment" sectionFile="ui/MultipleEnvironment.xwt">
- <widget href="ui/MultipleEnvironment.xwt#/"/>
- </sections>
- <sections name="Single WidgetType" sectionFile="ui/SingleWidgetType.xwt">
- <widget href="ui/SingleWidgetType.xwt#/"/>
- </sections>
- <sections name="Multiple WidgetType" sectionFile="ui/MultipleWidgetType.xwt">
- <widget href="ui/MultipleWidgetType.xwt#/"/>
- </sections>
- <sections name="Single PropertyEditorType" sectionFile="ui/SinglePropertyEditorType.xwt">
- <widget href="ui/SinglePropertyEditorType.xwt#/"/>
- </sections>
- <sections name="Multiple PropertyEditorType" sectionFile="ui/MultiplePropertyEditorType.xwt">
- <widget href="ui/MultiplePropertyEditorType.xwt#/"/>
- </sections>
- <sections name="Single CompositeWidgetType" sectionFile="ui/SingleCompositeWidgetType.xwt">
- <widget href="ui/SingleCompositeWidgetType.xwt#/"/>
- </sections>
- <sections name="Multiple CompositeWidgetType" sectionFile="ui/MultipleCompositeWidgetType.xwt">
- <widget href="ui/MultipleCompositeWidgetType.xwt#/"/>
- </sections>
- <sections name="Single LayoutType" sectionFile="ui/SingleLayoutType.xwt">
- <widget href="ui/SingleLayoutType.xwt#/"/>
- </sections>
- <sections name="Multiple LayoutType" sectionFile="ui/MultipleLayoutType.xwt">
- <widget href="ui/MultipleLayoutType.xwt#/"/>
- </sections>
- <sections name="Single ConstraintType" sectionFile="ui/SingleConstraintType.xwt">
- <widget href="ui/SingleConstraintType.xwt#/"/>
- </sections>
- <sections name="Multiple ConstraintType" sectionFile="ui/MultipleConstraintType.xwt">
- <widget href="ui/MultipleConstraintType.xwt#/"/>
- </sections>
- <sections name="Single ModelElementFactoryDescriptor" sectionFile="ui/SingleModelElementFactoryDescriptor.xwt">
- <widget href="ui/SingleModelElementFactoryDescriptor.xwt#/"/>
- </sections>
- <sections name="Multiple ModelElementFactoryDescriptor" sectionFile="ui/MultipleModelElementFactoryDescriptor.xwt">
- <widget href="ui/MultipleModelElementFactoryDescriptor.xwt#/"/>
- </sections>
- <sections name="Single StandardWidgetType" sectionFile="ui/SingleStandardWidgetType.xwt">
- <widget href="ui/SingleStandardWidgetType.xwt#/"/>
- </sections>
- <sections name="Multiple StandardWidgetType" sectionFile="ui/MultipleStandardWidgetType.xwt">
- <widget href="ui/MultipleStandardWidgetType.xwt#/"/>
- </sections>
- <sections name="Single Context" sectionFile="ui/SingleContext.xwt">
- <widget href="ui/SingleContext.xwt#/"/>
- </sections>
- <sections name="Multiple Context" sectionFile="ui/MultipleContext.xwt">
- <widget href="ui/MultipleContext.xwt#/"/>
- </sections>
- <sections name="Single DisplayUnit" sectionFile="ui/SingleDisplayUnit.xwt">
- <widget href="ui/SingleDisplayUnit.xwt#/"/>
- </sections>
- <sections name="Multiple DisplayUnit" sectionFile="ui/MultipleDisplayUnit.xwt">
- <widget href="ui/MultipleDisplayUnit.xwt#/"/>
- </sections>
- <sections name="Single View" sectionFile="ui/SingleView.xwt">
- <widget href="ui/SingleView.xwt#/"/>
- </sections>
- <sections name="Multiple View" sectionFile="ui/MultipleView.xwt">
- <widget href="ui/MultipleView.xwt#/"/>
- </sections>
- <sections name="Single Tab" sectionFile="ui/SingleTab.xwt">
- <widget href="ui/SingleTab.xwt#/"/>
- </sections>
- <sections name="Multiple Tab" sectionFile="ui/MultipleTab.xwt">
- <widget href="ui/MultipleTab.xwt#/"/>
- </sections>
- <sections name="Single Section" sectionFile="ui/SingleSection.xwt">
- <widget href="ui/SingleSection.xwt#/"/>
- </sections>
- <sections name="Multiple Section" sectionFile="ui/MultipleSection.xwt">
- <widget href="ui/MultipleSection.xwt#/"/>
- </sections>
- <sections name="Single DataContextElement" sectionFile="ui/SingleDataContextElement.xwt">
- <widget href="ui/SingleDataContextElement.xwt#/"/>
- </sections>
- <sections name="Multiple DataContextElement" sectionFile="ui/MultipleDataContextElement.xwt">
- <widget href="ui/MultipleDataContextElement.xwt#/"/>
- </sections>
- <sections name="Single Property" sectionFile="ui/SingleProperty.xwt">
- <widget href="ui/SingleProperty.xwt#/"/>
- </sections>
- <sections name="Multiple Property" sectionFile="ui/MultipleProperty.xwt">
- <widget href="ui/MultipleProperty.xwt#/"/>
- </sections>
- <sections name="Single UnknownProperty" sectionFile="ui/SingleUnknownProperty.xwt">
- <widget href="ui/SingleUnknownProperty.xwt#/"/>
- </sections>
- <sections name="Multiple UnknownProperty" sectionFile="ui/MultipleUnknownProperty.xwt">
- <widget href="ui/MultipleUnknownProperty.xwt#/"/>
- </sections>
- <sections name="Single DataContextPackage" sectionFile="ui/SingleDataContextPackage.xwt">
- <widget href="ui/SingleDataContextPackage.xwt#/"/>
- </sections>
- <sections name="Multiple DataContextPackage" sectionFile="ui/MultipleDataContextPackage.xwt">
- <widget href="ui/MultipleDataContextPackage.xwt#/"/>
- </sections>
- <sections name="Single DataContextRoot" sectionFile="ui/SingleDataContextRoot.xwt">
- <widget href="ui/SingleDataContextRoot.xwt#/"/>
- </sections>
- <sections name="Multiple DataContextRoot" sectionFile="ui/MultipleDataContextRoot.xwt">
- <widget href="ui/MultipleDataContextRoot.xwt#/"/>
- </sections>
- <sections name="Single ConstraintDescriptor" sectionFile="ui/SingleConstraintDescriptor.xwt">
- <widget href="ui/SingleConstraintDescriptor.xwt#/"/>
- </sections>
- <sections name="Multiple ConstraintDescriptor" sectionFile="ui/MultipleConstraintDescriptor.xwt">
- <widget href="ui/MultipleConstraintDescriptor.xwt#/"/>
- </sections>
- <sections name="Single ConfigProperty" sectionFile="ui/SingleConfigProperty.xwt">
- <widget href="ui/SingleConfigProperty.xwt#/"/>
- </sections>
- <sections name="Multiple ConfigProperty" sectionFile="ui/MultipleConfigProperty.xwt">
- <widget href="ui/MultipleConfigProperty.xwt#/"/>
- </sections>
- <sections name="Single ValueProperty" sectionFile="ui/SingleValueProperty.xwt">
- <widget href="ui/SingleValueProperty.xwt#/"/>
- </sections>
- <sections name="Multiple ValueProperty" sectionFile="ui/MultipleValueProperty.xwt">
- <widget href="ui/MultipleValueProperty.xwt#/"/>
- </sections>
- <sections name="Single ReferenceProperty" sectionFile="ui/SingleReferenceProperty.xwt">
- <widget href="ui/SingleReferenceProperty.xwt#/"/>
- </sections>
- <sections name="Multiple ReferenceProperty" sectionFile="ui/MultipleReferenceProperty.xwt">
- <widget href="ui/MultipleReferenceProperty.xwt#/"/>
- </sections>
- <sections name="Single Element" sectionFile="ui/SingleElement.xwt">
- <widget href="ui/SingleElement.xwt#/"/>
- </sections>
- <sections name="Multiple Element" sectionFile="ui/MultipleElement.xwt">
- <widget href="ui/MultipleElement.xwt#/"/>
- </sections>
- <sections name="Single UIComponent" sectionFile="ui/SingleUIComponent.xwt">
- <widget href="ui/SingleUIComponent.xwt#/"/>
- </sections>
- <sections name="Multiple UIComponent" sectionFile="ui/MultipleUIComponent.xwt">
- <widget href="ui/MultipleUIComponent.xwt#/"/>
- </sections>
- <sections name="Single Widget" sectionFile="ui/SingleWidget.xwt">
- <widget href="ui/SingleWidget.xwt#/"/>
- </sections>
- <sections name="Multiple Widget" sectionFile="ui/MultipleWidget.xwt">
- <widget href="ui/MultipleWidget.xwt#/"/>
- </sections>
- <sections name="Single StandardWidget" sectionFile="ui/SingleStandardWidget.xwt">
- <widget href="ui/SingleStandardWidget.xwt#/"/>
- </sections>
- <sections name="Multiple StandardWidget" sectionFile="ui/MultipleStandardWidget.xwt">
- <widget href="ui/MultipleStandardWidget.xwt#/"/>
- </sections>
- <sections name="Single PropertyEditor" sectionFile="ui/SinglePropertyEditor.xwt">
- <widget href="ui/SinglePropertyEditor.xwt#/"/>
- </sections>
- <sections name="Multiple PropertyEditor" sectionFile="ui/MultiplePropertyEditor.xwt">
- <widget href="ui/MultiplePropertyEditor.xwt#/"/>
- </sections>
- <sections name="Single CompositeWidget" sectionFile="ui/SingleCompositeWidget.xwt">
- <widget href="ui/SingleCompositeWidget.xwt#/"/>
- </sections>
- <sections name="Multiple CompositeWidget" sectionFile="ui/MultipleCompositeWidget.xwt">
- <widget href="ui/MultipleCompositeWidget.xwt#/"/>
- </sections>
- <sections name="Single Layout" sectionFile="ui/SingleLayout.xwt">
- <widget href="ui/SingleLayout.xwt#/"/>
- </sections>
- <sections name="Multiple Layout" sectionFile="ui/MultipleLayout.xwt">
- <widget href="ui/MultipleLayout.xwt#/"/>
- </sections>
- <sections name="Single WidgetAttribute" sectionFile="ui/SingleWidgetAttribute.xwt">
- <widget href="ui/SingleWidgetAttribute.xwt#/"/>
- </sections>
- <sections name="Multiple WidgetAttribute" sectionFile="ui/MultipleWidgetAttribute.xwt">
- <widget href="ui/MultipleWidgetAttribute.xwt#/"/>
- </sections>
- <sections name="Single ValueAttribute" sectionFile="ui/SingleValueAttribute.xwt">
- <widget href="ui/SingleValueAttribute.xwt#/"/>
- </sections>
- <sections name="Multiple ValueAttribute" sectionFile="ui/MultipleValueAttribute.xwt">
- <widget href="ui/MultipleValueAttribute.xwt#/"/>
- </sections>
- <sections name="Single ReferenceAttribute" sectionFile="ui/SingleReferenceAttribute.xwt">
- <widget href="ui/SingleReferenceAttribute.xwt#/"/>
- </sections>
- <sections name="Multiple ReferenceAttribute" sectionFile="ui/MultipleReferenceAttribute.xwt">
- <widget href="ui/MultipleReferenceAttribute.xwt#/"/>
- </sections>
- <sections name="Single UnknownComponent" sectionFile="ui/SingleUnknownComponent.xwt">
- <widget href="ui/SingleUnknownComponent.xwt#/"/>
- </sections>
- <sections name="Multiple UnknownComponent" sectionFile="ui/MultipleUnknownComponent.xwt">
- <widget href="ui/MultipleUnknownComponent.xwt#/"/>
- </sections>
- <sections name="GroupAttributes" sectionFile="ui/GroupAttributes.xwt">
- <constraints xsi:type="contexts:SimpleConstraint" name="isGroup">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.2"/>
- <properties xsi:type="contexts:ReferenceProperty" name="query">
- <value href="custom.querySet#isGroup"/>
- </properties>
- </constraints>
- <widget href="ui/GroupAttributes.xwt#/"/>
- </sections>
- <sections name="EcoreInstanceOf" sectionFile="ui/EcoreInstanceOf.xwt">
- <constraints xsi:type="contexts:SimpleConstraint" name="isEcoreInstanceOf">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.2"/>
- <properties xsi:type="contexts:ReferenceProperty" name="query">
- <value href="custom.querySet#isEcoreInstanceOf"/>
- </properties>
- </constraints>
- <widget href="ui/EcoreInstanceOf.xwt#/"/>
- </sections>
- <sections name="UMLInstanceOf" sectionFile="ui/UMLInstanceOf.xwt">
- <constraints xsi:type="contexts:SimpleConstraint" name="isUMLInstanceOf">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.2"/>
- <properties xsi:type="contexts:ReferenceProperty" name="query">
- <value href="custom.querySet#isUmlInstanceOf"/>
- </properties>
- </constraints>
- <widget href="ui/UMLInstanceOf.xwt#/"/>
- </sections>
- <sections name="OCLQuery" sectionFile="ui/OCLQuery.xwt">
- <constraints xsi:type="contexts:SimpleConstraint" name="isOCLQueryConstraint">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.2"/>
- <properties xsi:type="contexts:ReferenceProperty" name="query">
- <value href="custom.querySet#isOclQuery"/>
- </properties>
- </constraints>
- <widget href="ui/OCLQuery.xwt#/"/>
- </sections>
- <sections name="Stereotype" sectionFile="ui/Stereotype.xwt">
- <constraints xsi:type="contexts:SimpleConstraint" name="isStereotypeConstraint">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.2"/>
- <properties xsi:type="contexts:ReferenceProperty" name="query">
- <value href="custom.querySet#isStereotype"/>
- </properties>
- </constraints>
- <widget href="ui/Stereotype.xwt#/"/>
- </sections>
- <sections name="GridLayout" sectionFile="ui/GridLayout.xwt">
- <constraints xsi:type="contexts:SimpleConstraint" name="isGridLayout">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.2"/>
- <properties xsi:type="contexts:ReferenceProperty" name="query">
- <value href="custom.querySet#isGridLayout"/>
- </properties>
- </constraints>
- <widget href="ui/GridLayout.xwt#/"/>
- </sections>
- <sections name="Label" sectionFile="ui/Label.xwt">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSWTLabel">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.2"/>
- <properties xsi:type="contexts:ReferenceProperty" name="query">
- <value href="custom.querySet#isLabel"/>
- </properties>
- </constraints>
- <widget href="ui/Label.xwt#/"/>
- </sections>
- <sections name="Single ToggleButton" sectionFile="ui/Single ToggleButton.xwt">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleToggleButton">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.2"/>
- <properties xsi:type="contexts:ReferenceProperty" name="query">
- <value href="custom.querySet#isToggleButton"/>
- </properties>
- </constraints>
- <widget href="ui/Single ToggleButton.xwt#/"/>
- </sections>
- <sections name="SingleFileSelector" sectionFile="ui/SingleFileSelector.xwt">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleFileSelector">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.2"/>
- <properties xsi:type="contexts:ReferenceProperty" name="query">
- <value href="custom.querySet#isFileSelector"/>
- </properties>
- </constraints>
- <widget href="ui/SingleFileSelector.xwt#/"/>
- </sections>
- <sections name="Single IntegerSpinner" sectionFile="ui/Single IntegerSpinner.xwt">
- <constraints xsi:type="contexts:SimpleConstraint" name="isIntegerSpinner">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.2"/>
- <properties xsi:type="contexts:ReferenceProperty" name="query">
- <value href="custom.querySet#isIntegerSpinner"/>
- </properties>
- </constraints>
- <widget href="ui/Single IntegerSpinner.xwt#/"/>
- </sections>
- <sections name="SingleCompositeConstraint" sectionFile="ui/SingleCompositeConstraint.xwt">
- <widget href="ui/SingleCompositeConstraint.xwt#/"/>
- </sections>
- <sections name="MultipleCompositeConstraint" sectionFile="ui/MultipleCompositeConstraint.xwt">
- <widget href="ui/MultipleCompositeConstraint.xwt#/"/>
- </sections>
- </tabs>
- <views name="Single Environment" sections="//@tabs.0/@sections.0" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleEnvironment">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Environment"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- </constraints>
- </views>
- <views name="Multiple Environment" sections="//@tabs.0/@sections.1" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleEnvironment">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Environment"/>
- </constraints>
- </views>
- <views name="Single WidgetType" sections="//@tabs.0/@sections.2" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleWidgetType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="WidgetType"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- </constraints>
- </views>
- <views name="Multiple WidgetType" sections="//@tabs.0/@sections.3" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleWidgetType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="WidgetType"/>
- </constraints>
- </views>
- <views name="Single PropertyEditorType" sections="//@tabs.0/@sections.4" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSinglePropertyEditorType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="PropertyEditorType"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- </constraints>
- </views>
- <views name="Multiple PropertyEditorType" sections="//@tabs.0/@sections.5" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultiplePropertyEditorType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="PropertyEditorType"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- </constraints>
- </views>
- <views name="Single CompositeWidgetType" sections="//@tabs.0/@sections.6" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleCompositeWidgetType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="CompositeWidgetType"/>
- </constraints>
- </views>
- <views name="Multiple CompositeWidgetType" sections="//@tabs.0/@sections.7" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleCompositeWidgetType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="CompositeWidgetType"/>
- </constraints>
- </views>
- <views name="Single LayoutType" sections="//@tabs.0/@sections.8" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleLayoutType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="LayoutType"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- </constraints>
- </views>
- <views name="Multiple LayoutType" sections="//@tabs.0/@sections.9" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleLayoutType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="LayoutType"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- </constraints>
- </views>
- <views name="Single ConstraintType" sections="//@tabs.0/@sections.10" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleConstraintType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ConstraintType"/>
- </constraints>
- </views>
- <views name="Multiple ConstraintType" sections="//@tabs.0/@sections.11" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleConstraintType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ConstraintType"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- </constraints>
- </views>
- <views name="Single ModelElementFactoryDescriptor" sections="//@tabs.0/@sections.12" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleModelElementFactoryDescriptor">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ModelElementFactoryDescriptor"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- </constraints>
- </views>
- <views name="Multiple ModelElementFactoryDescriptor" sections="//@tabs.0/@sections.13" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleModelElementFactoryDescriptor">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ModelElementFactoryDescriptor"/>
- </constraints>
- </views>
- <views name="Single StandardWidgetType" sections="//@tabs.0/@sections.14" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleStandardWidgetType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="StandardWidgetType"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- </constraints>
- </views>
- <views name="Multiple StandardWidgetType" sections="//@tabs.0/@sections.15" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleStandardWidgetType">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="StandardWidgetType"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/environment"/>
- </constraints>
- </views>
- <views name="Single Context" sections="//@tabs.0/@sections.16" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleContext">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Context"/>
- </constraints>
- </views>
- <views name="Multiple Context" sections="//@tabs.0/@sections.17" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleContext">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Context"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Single DisplayUnit" sections="//@tabs.0/@sections.18" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleDisplayUnit">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="DisplayUnit"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Multiple DisplayUnit" sections="//@tabs.0/@sections.19" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleDisplayUnit">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="DisplayUnit"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Single View" sections="//@tabs.0/@sections.20" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleView">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="View"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Multiple View" sections="//@tabs.0/@sections.21" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleView">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="View"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Single Tab" sections="//@tabs.0/@sections.22" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleTab">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Tab"/>
- </constraints>
- </views>
- <views name="Multiple Tab" sections="//@tabs.0/@sections.23" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleTab">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Tab"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Single Section" sections="//@tabs.0/@sections.24" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleSection">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Section"/>
- </constraints>
- </views>
- <views name="Multiple Section" sections="//@tabs.0/@sections.25" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleSection">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Section"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Single DataContextElement" sections="//@tabs.0/@sections.26" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleDataContextElement">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="DataContextElement"/>
- </constraints>
- </views>
- <views name="Multiple DataContextElement" sections="//@tabs.0/@sections.27" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleDataContextElement">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="DataContextElement"/>
- </constraints>
- </views>
- <views name="Single Property" sections="//@tabs.0/@sections.28" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleProperty">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Property"/>
- </constraints>
- </views>
- <views name="Multiple Property" sections="//@tabs.0/@sections.29" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleProperty">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Property"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Single UnknownProperty" sections="//@tabs.0/@sections.30" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleUnknownProperty">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="UnknownProperty"/>
- </constraints>
- </views>
- <views name="Multiple UnknownProperty" sections="//@tabs.0/@sections.31" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleUnknownProperty">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="UnknownProperty"/>
- </constraints>
- </views>
- <views name="Single DataContextPackage" sections="//@tabs.0/@sections.32" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleDataContextPackage">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="DataContextPackage"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Multiple DataContextPackage" sections="//@tabs.0/@sections.33" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleDataContextPackage">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="DataContextPackage"/>
- </constraints>
- </views>
- <views name="Single DataContextRoot" sections="//@tabs.0/@sections.34" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleDataContextRoot">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="DataContextRoot"/>
- </constraints>
- </views>
- <views name="Multiple DataContextRoot" sections="//@tabs.0/@sections.35" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleDataContextRoot">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="DataContextRoot"/>
- </constraints>
- </views>
- <views name="Single ConstraintDescriptor" sections="//@tabs.0/@sections.36 //@tabs.0/@sections.67 //@tabs.0/@sections.68 //@tabs.0/@sections.69 //@tabs.0/@sections.70" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleConstraintDescriptor">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ConstraintDescriptor"/>
- </constraints>
- </views>
- <views name="Multiple ConstraintDescriptor" sections="//@tabs.0/@sections.37" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleConstraintDescriptor">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ConstraintDescriptor"/>
- </constraints>
- </views>
- <views name="Single ConfigProperty" sections="//@tabs.0/@sections.38" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleConfigProperty">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ConfigProperty"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Multiple ConfigProperty" sections="//@tabs.0/@sections.39" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleConfigProperty">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ConfigProperty"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Single ValueProperty" sections="//@tabs.0/@sections.40" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleValueProperty">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ValueProperty"/>
- </constraints>
- </views>
- <views name="Multiple ValueProperty" sections="//@tabs.0/@sections.41" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleValueProperty">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ValueProperty"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <views name="Single ReferenceProperty" sections="//@tabs.0/@sections.42" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleReferenceProperty">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ReferenceProperty"/>
- </constraints>
- </views>
- <views name="Multiple ReferenceProperty" sections="//@tabs.0/@sections.43" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleReferenceProperty">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ReferenceProperty"/>
- </constraints>
- </views>
- <views name="Single Element" sections="//@tabs.0/@sections.44" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleElement">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Element"/>
- </constraints>
- </views>
- <views name="Multiple Element" sections="//@tabs.0/@sections.45" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleElement">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Element"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- </constraints>
- </views>
- <views name="Single UIComponent" sections="//@tabs.0/@sections.46" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleUIComponent">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="UIComponent"/>
- </constraints>
- </views>
- <views name="Multiple UIComponent" sections="//@tabs.0/@sections.47" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleUIComponent">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="UIComponent"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- </constraints>
- </views>
- <views name="Single Widget" sections="//@tabs.0/@sections.48" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleWidget">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Widget"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- </constraints>
- </views>
- <views name="Multiple Widget" sections="//@tabs.0/@sections.49" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleWidget">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Widget"/>
- </constraints>
- </views>
- <views name="Single StandardWidget" sections="//@tabs.0/@sections.50 //@tabs.0/@sections.72" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleStandardWidget">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="StandardWidget"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- </constraints>
- </views>
- <views name="Multiple StandardWidget" sections="//@tabs.0/@sections.51" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleStandardWidget">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="StandardWidget"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- </constraints>
- </views>
- <views name="Single PropertyEditor" sections="//@tabs.0/@sections.52 //@tabs.0/@sections.73 //@tabs.0/@sections.74 //@tabs.0/@sections.75" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSinglePropertyEditor">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="PropertyEditor"/>
- </constraints>
- </views>
- <views name="Multiple PropertyEditor" sections="//@tabs.0/@sections.53" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultiplePropertyEditor">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="PropertyEditor"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- </constraints>
- </views>
- <views name="Single CompositeWidget" sections="//@tabs.0/@sections.54 //@tabs.0/@sections.66" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleCompositeWidget">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="CompositeWidget"/>
- </constraints>
- </views>
- <views name="Multiple CompositeWidget" sections="//@tabs.0/@sections.55" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleCompositeWidget">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="CompositeWidget"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- </constraints>
- </views>
- <views name="Single Layout" sections="//@tabs.0/@sections.56 //@tabs.0/@sections.71" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleLayout">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Layout"/>
- </constraints>
- </views>
- <views name="Multiple Layout" sections="//@tabs.0/@sections.57" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleLayout">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="Layout"/>
- </constraints>
- </views>
- <views name="Single WidgetAttribute" sections="//@tabs.0/@sections.58" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleWidgetAttribute">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="WidgetAttribute"/>
- </constraints>
- </views>
- <views name="Multiple WidgetAttribute" sections="//@tabs.0/@sections.59" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleWidgetAttribute">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="WidgetAttribute"/>
- </constraints>
- </views>
- <views name="Single ValueAttribute" sections="//@tabs.0/@sections.60" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleValueAttribute">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ValueAttribute"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- </constraints>
- </views>
- <views name="Multiple ValueAttribute" sections="//@tabs.0/@sections.61" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleValueAttribute">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ValueAttribute"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- </constraints>
- </views>
- <views name="Single ReferenceAttribute" sections="//@tabs.0/@sections.62" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleReferenceAttribute">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ReferenceAttribute"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- </constraints>
- </views>
- <views name="Multiple ReferenceAttribute" sections="//@tabs.0/@sections.63" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleReferenceAttribute">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="ReferenceAttribute"/>
- </constraints>
- </views>
- <views name="Single UnknownComponent" sections="//@tabs.0/@sections.64" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleUnknownComponent">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="UnknownComponent"/>
- </constraints>
- </views>
- <views name="Multiple UnknownComponent" sections="//@tabs.0/@sections.65" elementMultiplicity="-1" automaticContext="true">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleUnknownComponent">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="UnknownComponent"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/ui"/>
- </constraints>
- </views>
- <views name="SingleCompositeConstraint" sections="//@tabs.0/@sections.76">
- <constraints xsi:type="contexts:SimpleConstraint" name="isSingleCompositeConstraint">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="CompositeConstraint"/>
- </constraints>
- </views>
- <views name="MultipleCompositeConstraint" sections="//@tabs.0/@sections.77" elementMultiplicity="-1">
- <constraints xsi:type="contexts:SimpleConstraint" name="isMultipleCompositeConstraint">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.properties/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="contexts:ValueProperty" name="className" value="CompositeConstraint"/>
- <properties xsi:type="contexts:ValueProperty" name="nsUri" value="http://www.eclipse.org/papyrus/properties/contexts"/>
- </constraints>
- </views>
- <dataContexts name="properties" label="properties">
- <elements xsi:type="contexts:DataContextPackage" name="environment">
- <elements name="Environment">
- <properties name="modelElementFactories" type="Reference" multiplicity="-1"/>
- <properties name="constraintTypes" type="Reference" multiplicity="-1"/>
- <properties name="widgetTypes" type="Reference" multiplicity="-1"/>
- <properties name="propertyEditorTypes" type="Reference" multiplicity="-1"/>
- <properties name="compositeWidgetTypes" type="Reference" multiplicity="-1"/>
- <properties name="layoutTypes" type="Reference" multiplicity="-1"/>
- </elements>
- <elements name="PropertyEditorType" supertypes="//@dataContexts.0/@elements.0/@elements.2">
- <properties name="type" type="Enumeration"/>
- <properties name="multiplicity" type="Integer"/>
- </elements>
- <elements name="WidgetType">
- <properties name="label"/>
- <properties name="widgetClass"/>
- </elements>
- <elements name="CompositeWidgetType" supertypes="//@dataContexts.0/@elements.0/@elements.2"/>
- <elements name="LayoutType" supertypes="//@dataContexts.0/@elements.0/@elements.2"/>
- <elements name="ConstraintType">
- <properties name="label"/>
- <properties name="constraintClass"/>
- </elements>
- <elements name="ModelElementFactoryDescriptor">
- <properties name="name"/>
- <properties name="factoryClass"/>
- </elements>
- <elements name="StandardWidgetType" supertypes="//@dataContexts.0/@elements.0/@elements.2"/>
- </elements>
- <elements xsi:type="contexts:DataContextPackage" name="contexts">
- <elements name="Context">
- <properties name="name" description="The name of the Configuration"/>
- <properties name="views" type="Reference" multiplicity="-1" description="The list of views for this Configuration"/>
- <properties name="tabs" type="Reference" multiplicity="-1" description="The list of tabs for this Configuration"/>
- <properties name="dataContexts" type="Reference" multiplicity="-1" description="The list of Data Contexts used by this configuration"/>
- <properties name="dependencies" type="Reference" multiplicity="-1" description="The list of Configurations on which this configuration depends"/>
- </elements>
- <elements name="DisplayUnit">
- <properties name="constraints" type="Reference" multiplicity="-1" description="The constraints associated to this Display Unit. The unit will be displayed only if at least one constraint is matched"/>
- </elements>
- <elements name="View" supertypes="//@dataContexts.0/@elements.1/@elements.1">
- <properties name="name" description="The name of this view"/>
- <properties name="sections" type="Reference" multiplicity="-1" description="The list of sections for this view"/>
- <properties name="automaticContext" label="" type="Boolean" description="deprecated"/>
- <properties name="datacontexts" type="Reference" multiplicity="-1" description="deprecated"/>
- <properties name="elementMultiplicity" label="" type="Integer" description="The number of selected elements for which this view should be displayed. May be 1 (Single element), -1 (Any number of elements) or any positive integer (For a strict number of elements)"/>
- </elements>
- <elements name="Tab">
- <properties name="label" description="The tab's label"/>
- <properties name="id" description="The tab's id. The ID should be unique within its category"/>
- <properties name="category" description="The tab's category"/>
- <properties name="image" label="" description="The tab's image. The path should be of the form /&lt;plug-in id>/&lt;path to the image>"/>
- <properties name="afterTab" label="" type="Reference" description="The tab after which this tab will be displayed. The afterTab's category should be the same as this tab's category"/>
- <properties name="sections" type="Reference" multiplicity="-1" description="The list of sections that can be displayed in this tab"/>
- <properties name="indented" label="" type="Boolean" description="Indicates if this tab should be indented. The preview isn't available for indentation"/>
- </elements>
- <elements name="Section" supertypes="//@dataContexts.0/@elements.1/@elements.1">
- <properties name="name" description="The section's name. It should be unique within this Configuration"/>
- <properties name="tab" type="Reference" description="The tab in which this section will be displayed"/>
- <properties name="sectionFile" description="The XWT file containing this section's UI declaration"/>
- <properties name="widget" label="" type="Reference" description="The SWT Widget representing this section"/>
- </elements>
- <elements name="DataContextElement">
- <properties name="name" label="" description="The name of this Data Context element"/>
- <properties name="properties" label="" type="Reference" multiplicity="-1" description="The list of properties of this Element"/>
- <properties name="package" type="Reference" description="This element's package"/>
- <properties name="supertypes" type="Reference" multiplicity="-1" description="This element's direct supertypes"/>
- </elements>
- <elements name="Property">
- <properties name="name" label="" description="The name of the property"/>
- <properties name="label" description="The label of this property"/>
- <properties name="type" type="Enumeration" description="The type of this property"/>
- <properties name="contextElement" type="Reference" description="The element to which this property belongs"/>
- <properties name="multiplicity" type="Integer" description="The multiplicity of this property."/>
- <properties name="description"/>
- </elements>
- <elements name="UnknownProperty" supertypes="//@dataContexts.0/@elements.1/@elements.6"/>
- <elements name="DataContextPackage" supertypes="//@dataContexts.0/@elements.1/@elements.5">
- <properties name="elements" type="Reference" multiplicity="-1" description="The list of Data Context elements contained into this package"/>
- </elements>
- <elements name="DataContextRoot" supertypes="//@dataContexts.0/@elements.1/@elements.8">
- <properties name="label" label="" description="The label of this Data Context root"/>
- <properties name="modelElementFactory" type="Reference" description="The factory used to instantiate to ModelElements associated to all the DataContext Elements inside this DataContext Root"/>
- </elements>
- <elements name="ConstraintDescriptor">
- <properties name="name" description="The name of this constraint descriptor"/>
- <properties name="display" type="Reference" description="The display unit (View or Section) associated to this constraint."/>
- <properties name="constraints" type="Reference" multiplicity="-1" description="The sub-constraints of this constraint (Used for Composite constraints - Not implemented yet)"/>
- <properties name="overriddenConstraints" type="Reference" multiplicity="-1" description="The constraints overridden by this constraint. If two constraints match a given selection, a constraint may override another one. In such a case, the overridden constraint's displayUnit won't be displayed. This property is dedicated to manual resolution of constraints : the Constraint classes may also implement an automatic resolution of conflicts"/>
- <properties name="overrideable" type="Boolean" description="If set to false, this constraint cannot be automatically overridden by other constraints. Only constraints which explicitly specify they need to override this constraint (Through the &quot;overriddenConstraints&quot; property) will be able to disable it."/>
- </elements>
- <elements name="ConfigProperty">
- <properties name="name" description="The name of the property"/>
- </elements>
- <elements name="ValueProperty" supertypes="//@dataContexts.0/@elements.1/@elements.11">
- <properties name="value" description="The value of the property"/>
- </elements>
- <elements name="ReferenceProperty" supertypes="//@dataContexts.0/@elements.1/@elements.11">
- <properties name="value" label="" type="Reference" description="The value of the property"/>
- </elements>
- <elements name="CompositeConstraint" supertypes="//@dataContexts.0/@elements.1/@elements.10">
- <properties name="constraints" type="Reference" multiplicity="-1" description="The sub-constraints owned by this composite constraint. The composite constraint is matched if and only if all its sub-constraints are matched."/>
- </elements>
- <elements name="SimpleConstraint" supertypes="//@dataContexts.0/@elements.1/@elements.10">
- <properties name="constraintType" type="Reference" description="The type of this constraint"/>
- <properties name="properties" label="" type="Reference" multiplicity="-1" description="The list of properties used to instantiate this constraint (key - value pairs)"/>
- </elements>
- </elements>
- <elements xsi:type="contexts:DataContextPackage" name="ui">
- <elements name="Element"/>
- <elements name="UIComponent" supertypes="//@dataContexts.0/@elements.2/@elements.0">
- <properties name="attributes" type="Reference" multiplicity="-1" description="The attributes used to instantiate this element. Set of key - value pairs."/>
- </elements>
- <elements name="Widget" supertypes="//@dataContexts.0/@elements.2/@elements.1"/>
- <elements name="StandardWidget" supertypes="//@dataContexts.0/@elements.2/@elements.2">
- <properties name="widgetType" type="Reference" description="The type of this widget"/>
- </elements>
- <elements name="PropertyEditor" supertypes="//@dataContexts.0/@elements.2/@elements.2">
- <properties name="property" type="Reference" description="The property that this editor will edit"/>
- <properties name="readOnly" type="Boolean" description="Indicates if this editor should be read-only. Note that in some cases, the read only state may be applied at runtime, independently of this field's value"/>
- <properties name="widgetType" type="Reference" description="The type of this widget"/>
- <properties name="showLabel" type="Boolean" description="If set to false, the property editor's label won't be displayed"/>
- <properties name="customLabel" label="Custom label" description="Defines a custom label for this editor. The custom label will replace the property's default label (Only for this property editor)"/>
- </elements>
- <elements name="CompositeWidget" supertypes="//@dataContexts.0/@elements.2/@elements.2">
- <properties name="layout" type="Reference" description="The layout of this widget"/>
- <properties name="widgets" type="Reference" multiplicity="-1" description="The widgets directly contained into this Composite"/>
- <properties name="widgetType" type="Reference" description="The type of this Composite widget."/>
- </elements>
- <elements name="Layout" supertypes="//@dataContexts.0/@elements.2/@elements.1">
- <properties name="layoutType" label="" type="Reference" description="The type of this Layout"/>
- </elements>
- <elements name="WidgetAttribute" supertypes="//@dataContexts.0/@elements.2/@elements.0">
- <properties name="name" description="The name of the attribute"/>
- </elements>
- <elements name="ValueAttribute" supertypes="//@dataContexts.0/@elements.2/@elements.7">
- <properties name="value" description="The litteral value of this attribute"/>
- </elements>
- <elements name="ReferenceAttribute" supertypes="//@dataContexts.0/@elements.2/@elements.7">
- <properties name="value" type="Reference" description="The value of this attribute"/>
- </elements>
- <elements name="UnknownComponent" supertypes="//@dataContexts.0/@elements.2/@elements.2">
- <properties name="typeName" description="The fully-qualified name of this element"/>
- </elements>
- </elements>
- <modelElementFactory href="ppe:/environment/org.eclipse.papyrus.properties.customization/Model/CustomizationEnvironment.xmi#//@modelElementFactories.2"/>
- </dataContexts>
- <dataContexts name="Custom" label="Custom">
- <elements xsi:type="contexts:DataContextPackage" name="Attribute">
- <elements name="GridLayout">
- <properties name="numColumns" label="" type="Integer" description="The number of columns of this layout"/>
- <properties name="makeColumnsEqualWidth" description="Indicates if all columns should have the same width"/>
- </elements>
- <elements name="Group">
- <properties name="text" description="The label of this Group container"/>
- </elements>
- <elements name="Text">
- <properties name="text" description="The text to display"/>
- </elements>
- <elements name="Label">
- <properties name="text" label="Text" description="The text to display"/>
- </elements>
- <elements name="BooleanToggle">
- <properties name="image" label="Image"/>
- </elements>
- <elements name="FileSelector">
- <properties name="allowWorkspace"/>
- <properties name="allowFileSystem"/>
- <properties name="filteredExtension"/>
- </elements>
- <elements name="IntegerSpinner">
- <properties name="minimum" label="" description="The minimum value that this spinner can return"/>
- <properties name="maximum" description="The maximum value that this spinner can return"/>
- <properties name="increment" description="The increment value for this spinner"/>
- </elements>
- </elements>
- <modelElementFactory href="ppe:/environment/org.eclipse.papyrus.properties.customization/Model/CustomizationEnvironment.xmi#//@modelElementFactories.0"/>
- </dataContexts>
- <dataContexts name="Properties" label="Properties">
- <elements name="EcoreInstanceOf">
- <properties name="className" label="Class Name" description="The name of the Class"/>
- <properties name="nsUri" label="NS URI" description="The namespace URI (NsURI) of the EPackage containing the Class"/>
- </elements>
- <elements name="UMLInstanceOf">
- <properties name="umlClassName" label="UML Class name" description="The name of the UML Metaclass"/>
- </elements>
- <elements name="OCLQuery">
- <properties name="query" label="Query" type="Reference" description="The EMF Query"/>
- </elements>
- <elements name="Stereotype">
- <properties name="stereotypeName" label="Stereotype name" description="The fully qualified name of the Stereotype. The separator is &quot;::&quot;. For example : MyProfile::MyPackage::MyStereotype"/>
- </elements>
- <modelElementFactory href="ppe:/environment/org.eclipse.papyrus.properties.customization/Model/CustomizationEnvironment.xmi#//@modelElementFactories.1"/>
- </dataContexts>
-</contexts:Context>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/CustomizationEnvironment.xmi b/incoming/org.eclipse.papyrus.properties.customization/Model/CustomizationEnvironment.xmi
deleted file mode 100644
index 4e06632cea4..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/CustomizationEnvironment.xmi
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<environment:Environment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:environment="http://www.eclipse.org/papyrus/properties/environment">
- <modelElementFactories name="Generic Attribute" factoryClass="org.eclipse.papyrus.properties.customization.modelelement.GenericAttributeModelElementFactory"/>
- <modelElementFactories name="Generic Property" factoryClass="org.eclipse.papyrus.properties.customization.modelelement.GenericPropertyModelElementFactory"/>
- <modelElementFactories name="Customization Factory" factoryClass="org.eclipse.papyrus.properties.customization.modelelement.CustomizationModelElementFactory"/>
-</environment:Environment>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/custom.querySet b/incoming/org.eclipse.papyrus.properties.customization/Model/custom.querySet
deleted file mode 100644
index 3836dc3414e..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/custom.querySet
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<query:ModelQuerySet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="custom">
- <associatedMetamodels href="http://www.eclipse.org/papyrus/properties/contexts#/"/>
- <associatedMetamodels href="http://www.eclipse.org/papyrus/properties/ui#/"/>
- <queries xsi:type="query:OCLModelQuery" name="isGroup" lowerBound="1" query="widgetType.widgetClass = 'Group' and widgetType.namespace.oclIsUndefined()">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/ui#//CompositeWidget"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="isUmlInstanceOf" description="" lowerBound="1" query="self.constraintType.constraintClass = 'org.eclipse.papyrus.properties.uml.constraints.UmlInstanceOfConstraint'">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//ConstraintDescriptor"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="isEcoreInstanceOf" lowerBound="1" query="self.constraintType.constraintClass = 'org.eclipse.papyrus.properties.constraints.EMFInstanceOfConstraint'">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//ConstraintDescriptor"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="isOclQuery" lowerBound="1" query="self.constraintType.constraintClass = 'org.eclipse.papyrus.properties.constraints.EMFQueryConstraint'">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//ConstraintDescriptor"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="isStereotype" description="" lowerBound="1" query="self.constraintType.constraintClass = 'org.eclipse.papyrus.properties.uml.constraints.HasStereotypeConstraint'">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//ConstraintDescriptor"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="isGridLayout" lowerBound="1" query="layoutType.widgetClass = 'GridLayout' or (layoutType.widgetClass = 'PropertiesLayout' and layoutType.namespace.name = 'ppel')">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/ui#//Layout"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="isLabel" description="Tests if a standard widget is an SWT Label" lowerBound="1" query="self.widgetType.widgetClass = 'Label' and widgetType.namespace.oclIsUndefined()">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/ui#//StandardWidget"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="isToggleButton" description="Tests if the given PropertyEditor is a ToggleButton" lowerBound="1" query="widgetType.widgetClass = 'BooleanToggle' and widgetType.namespace.name = 'ppe'">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/ui#//PropertyEditor"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="isFileSelector" description="Tests if a PropertyEditor is a File Selector" lowerBound="1" query="widgetType.widgetClass = 'StringFileSelector' and widgetType.namespace.name = 'ppe'">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/ui#//PropertyEditor"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="isIntegerSpinner" description="Tests if a PropertyEditor is an IntegerSpinner" lowerBound="1" query="widgetType.widgetClass = 'IntegerSpinner' and widgetType.namespace.name = 'ppe'">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/ui#//PropertyEditor"/>
- </queries>
-</query:ModelQuerySet>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/EcoreInstanceOf.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/EcoreInstanceOf.xwt
deleted file mode 100644
index dc2e8c4b749..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/EcoreInstanceOf.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="Properties:EcoreInstanceOf:nsUri"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="Properties:EcoreInstanceOf:className"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/GridLayout.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/GridLayout.xwt
deleted file mode 100644
index 8b4b3a3a696..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/GridLayout.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="Custom:Attribute:GridLayout:numColumns"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="Custom:Attribute:GridLayout:makeColumnsEqualWidth"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/GroupAttributes.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/GroupAttributes.xwt
deleted file mode 100644
index 7e8020539b9..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/GroupAttributes.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="Custom:Attribute:Group:text"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Label.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Label.xwt
deleted file mode 100644
index beb4755ae1a..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Label.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="Custom:Attribute:Label:text"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiValueEditor.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiValueEditor.xwt
deleted file mode 100644
index bd0571a7538..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiValueEditor.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeConstraint.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeConstraint.xwt
deleted file mode 100644
index 615db8f43bb..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeConstraint.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:BooleanRadio property="properties:contexts:ConstraintDescriptor:overrideable" input="{Binding}"></ppe:BooleanRadio></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeWidget.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeWidget.xwt
deleted file mode 100644
index 01e70cc0e40..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeWidget.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeWidgetType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeWidgetType.xwt
deleted file mode 100644
index 2380a4c605f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleCompositeWidgetType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConfigProperty.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConfigProperty.xwt
deleted file mode 100644
index 21d4be90379..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConfigProperty.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConstraintDescriptor.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConstraintDescriptor.xwt
deleted file mode 100644
index c278bb83e9c..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConstraintDescriptor.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:ReferenceDialog input="{Binding}" property="properties:contexts:SimpleConstraint:constraintType"></ppe:ReferenceDialog><ppe:BooleanRadio input="{Binding}" property="properties:contexts:ConstraintDescriptor:overrideable"></ppe:BooleanRadio></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConstraintType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConstraintType.xwt
deleted file mode 100644
index d8af99ae532..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleConstraintType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleContext.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleContext.xwt
deleted file mode 100644
index 7302f1fef08..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleContext.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextElement.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextElement.xwt
deleted file mode 100644
index d8af99ae532..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextElement.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextPackage.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextPackage.xwt
deleted file mode 100644
index b7fa33615e2..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextPackage.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextRoot.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextRoot.xwt
deleted file mode 100644
index 627779f9e7f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDataContextRoot.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDisplayUnit.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDisplayUnit.xwt
deleted file mode 100644
index 7d59c5a021d..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleDisplayUnit.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleElement.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleElement.xwt
deleted file mode 100644
index 1ba60ede71f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleElement.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleEnvironment.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleEnvironment.xwt
deleted file mode 100644
index ab3d7fcf9b9..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleEnvironment.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleLayout.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleLayout.xwt
deleted file mode 100644
index 1ac31f24dbe..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleLayout.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleLayoutType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleLayoutType.xwt
deleted file mode 100644
index e042a6b22df..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleLayoutType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleModelElementFactoryDescriptor.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleModelElementFactoryDescriptor.xwt
deleted file mode 100644
index 7d59c5a021d..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleModelElementFactoryDescriptor.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleProperty.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleProperty.xwt
deleted file mode 100644
index 609c6c9572b..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleProperty.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:IntegerEditor input="{Binding}" property="properties:contexts:Property:multiplicity"></ppe:IntegerEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:EnumCombo input="{Binding}" property="properties:contexts:Property:type"></ppe:EnumCombo></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiplePropertyEditor.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiplePropertyEditor.xwt
deleted file mode 100644
index 12d84c2dd50..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiplePropertyEditor.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:BooleanRadio input="{Binding}" property="properties:ui:PropertyEditor:readOnly"></ppe:BooleanRadio></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiplePropertyEditorType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiplePropertyEditorType.xwt
deleted file mode 100644
index 4233462061f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultiplePropertyEditorType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:IntegerEditor input="{Binding}" property="properties:environment:PropertyEditorType:multiplicity"></ppe:IntegerEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:EnumCombo input="{Binding}" property="properties:environment:PropertyEditorType:type"></ppe:EnumCombo></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleReferenceAttribute.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleReferenceAttribute.xwt
deleted file mode 100644
index 699b974ca4f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleReferenceAttribute.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleReferenceProperty.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleReferenceProperty.xwt
deleted file mode 100644
index 699b974ca4f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleReferenceProperty.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleSection.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleSection.xwt
deleted file mode 100644
index ab3d7fcf9b9..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleSection.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleStandardWidget.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleStandardWidget.xwt
deleted file mode 100644
index 4411f6d9377..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleStandardWidget.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleStandardWidgetType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleStandardWidgetType.xwt
deleted file mode 100644
index 7d59c5a021d..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleStandardWidgetType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleTab.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleTab.xwt
deleted file mode 100644
index 3bcce30f714..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleTab.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:BooleanRadio input="{Binding}" property="properties:contexts:Tab:indented"></ppe:BooleanRadio></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUIComponent.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUIComponent.xwt
deleted file mode 100644
index 3de4720027c..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUIComponent.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUnknownComponent.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUnknownComponent.xwt
deleted file mode 100644
index 7302f1fef08..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUnknownComponent.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUnknownProperty.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUnknownProperty.xwt
deleted file mode 100644
index 27952085dc4..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleUnknownProperty.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:IntegerEditor input="{Binding}" property="properties:contexts:Property:multiplicity"></ppe:IntegerEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:EnumCombo input="{Binding}" property="properties:contexts:Property:type"></ppe:EnumCombo></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleValueAttribute.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleValueAttribute.xwt
deleted file mode 100644
index e042a6b22df..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleValueAttribute.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleValueProperty.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleValueProperty.xwt
deleted file mode 100644
index 627779f9e7f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleValueProperty.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleView.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleView.xwt
deleted file mode 100644
index 9c74caa6ca1..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleView.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:IntegerEditor input="{Binding}" property="properties:contexts:View:elementMultiplicity"></ppe:IntegerEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidget.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidget.xwt
deleted file mode 100644
index ab3d7fcf9b9..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidget.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidgetAttribute.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidgetAttribute.xwt
deleted file mode 100644
index 34c895e0be7..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidgetAttribute.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidgetType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidgetType.xwt
deleted file mode 100644
index 0652e3cca94..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/MultipleWidgetType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/OCLQuery.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/OCLQuery.xwt
deleted file mode 100644
index 9d2314c3993..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/OCLQuery.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:ReferenceDialog input="{Binding}" property="Properties:OCLQuery:query"></ppe:ReferenceDialog></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Single IntegerSpinner.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Single IntegerSpinner.xwt
deleted file mode 100644
index cd417d2364e..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Single IntegerSpinner.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="Custom:Attribute:IntegerSpinner:minimum"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="Custom:Attribute:IntegerSpinner:maximum"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="Custom:Attribute:IntegerSpinner:increment"></ppe:StringEditor></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Single ToggleButton.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Single ToggleButton.xwt
deleted file mode 100644
index f6f1ae3359e..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Single ToggleButton.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:StringFileSelector allowWorkspace="true" allowFileSystem="false" input="{Binding}" property="Custom:Attribute:BooleanToggle:image"></ppe:StringFileSelector></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeConstraint.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeConstraint.xwt
deleted file mode 100644
index ba8217a7cf3..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeConstraint.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor property="properties:contexts:ConstraintDescriptor:name" input="{Binding}"></ppe:StringEditor><ppe:BooleanRadio property="properties:contexts:ConstraintDescriptor:overrideable" input="{Binding}"></ppe:BooleanRadio><ppe:MultiReference property="properties:contexts:CompositeConstraint:constraints" input="{Binding}"></ppe:MultiReference><ppe:MultiReference input="{Binding}" property="properties:contexts:ConstraintDescriptor:overriddenConstraints"></ppe:MultiReference></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeWidget.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeWidget.xwt
deleted file mode 100644
index d36aff8a599..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeWidget.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppec="clr-namespace:org.eclipse.papyrus.properties.creation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:ReferenceDialog input="{Binding}" property="properties:ui:CompositeWidget:widgetType"></ppe:ReferenceDialog></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeWidgetType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeWidgetType.xwt
deleted file mode 100644
index 88ef6b197db..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleCompositeWidgetType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:environment:WidgetType:label"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:environment:WidgetType:widgetClass"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConfigProperty.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConfigProperty.xwt
deleted file mode 100644
index bc14daedba3..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConfigProperty.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:ConfigProperty:name"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConstraintDescriptor.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConstraintDescriptor.xwt
deleted file mode 100644
index 6c585193189..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConstraintDescriptor.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:ConstraintDescriptor:name"></ppe:StringEditor><ppe:ReferenceDialog input="{Binding}" property="properties:contexts:SimpleConstraint:constraintType"></ppe:ReferenceDialog><ppe:BooleanRadio input="{Binding}" property="properties:contexts:ConstraintDescriptor:overrideable"></ppe:BooleanRadio><ppe:MultiReference input="{Binding}" property="properties:contexts:ConstraintDescriptor:overriddenConstraints"></ppe:MultiReference></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConstraintType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConstraintType.xwt
deleted file mode 100644
index b1948e43bc0..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleConstraintType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:environment:ConstraintType:label"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:environment:ConstraintType:constraintClass"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleContext.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleContext.xwt
deleted file mode 100644
index ef11d6f49ab..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleContext.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:Context:name"></ppe:StringEditor><ppe:MultiReference input="{Binding}" property="properties:contexts:Context:dependencies"></ppe:MultiReference></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextElement.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextElement.xwt
deleted file mode 100644
index 6a38a9dfcd2..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextElement.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:DataContextElement:name"></ppe:StringEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:MultiReference input="{Binding}" property="properties:contexts:DataContextElement:supertypes"></ppe:MultiReference></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextPackage.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextPackage.xwt
deleted file mode 100644
index 1d536445eee..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextPackage.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:DataContextElement:name"></ppe:StringEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:MultiReference input="{Binding}" property="properties:contexts:DataContextElement:supertypes"></ppe:MultiReference><ppe:MultiReference input="{Binding}" property="properties:contexts:Property:contextElement"></ppe:MultiReference></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextRoot.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextRoot.xwt
deleted file mode 100644
index 72a36493415..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDataContextRoot.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:DataContextElement:name"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:contexts:DataContextRoot:label"></ppe:StringEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:ReferenceDialog input="{Binding}" property="properties:contexts:DataContextRoot:modelElementFactory"></ppe:ReferenceDialog></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:MultiReference input="{Binding}" property="properties:contexts:DataContextElement:supertypes"></ppe:MultiReference></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDisplayUnit.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDisplayUnit.xwt
deleted file mode 100644
index 43527b5a314..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleDisplayUnit.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleElement.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleElement.xwt
deleted file mode 100644
index d8af99ae532..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleElement.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleEnvironment.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleEnvironment.xwt
deleted file mode 100644
index ff64d5ab388..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleEnvironment.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleFileSelector.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleFileSelector.xwt
deleted file mode 100644
index e4532454c00..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleFileSelector.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="Custom:Attribute:FileSelector:allowWorkspace"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="Custom:Attribute:FileSelector:allowFileSystem"></ppe:StringEditor></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleLayout.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleLayout.xwt
deleted file mode 100644
index 41e992d003f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleLayout.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppec="clr-namespace:org.eclipse.papyrus.properties.creation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:ReferenceDialog input="{Binding}" property="properties:ui:Layout:layoutType"></ppe:ReferenceDialog></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleLayoutType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleLayoutType.xwt
deleted file mode 100644
index f808fbead44..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleLayoutType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:environment:WidgetType:label" showLabel="false"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:environment:WidgetType:widgetClass" showLabel="false"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleModelElementFactoryDescriptor.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleModelElementFactoryDescriptor.xwt
deleted file mode 100644
index 792a17e3129..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleModelElementFactoryDescriptor.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:environment:ModelElementFactoryDescriptor:name"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:environment:ModelElementFactoryDescriptor:factoryClass"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleProperty.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleProperty.xwt
deleted file mode 100644
index da938ce13b6..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleProperty.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:Property:name"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:contexts:Property:label"></ppe:StringEditor><ppe:StringMultiline input="{Binding}" property="properties:contexts:Property:description"></ppe:StringMultiline></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:IntegerEditor input="{Binding}" property="properties:contexts:Property:multiplicity"></ppe:IntegerEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:EnumCombo input="{Binding}" property="properties:contexts:Property:type"></ppe:EnumCombo></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditor.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditor.xwt
deleted file mode 100644
index 901f9695798..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditor.xwt
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt"
- xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"
- xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"
- xmlns:ppec="clr-namespace:org.eclipse.papyrus.properties.creation"
- xmlns="http://www.eclipse.org/xwt/presentation">
- <Composite.layout>
- <ppel:PropertiesLayout></ppel:PropertiesLayout>
- </Composite.layout>
- <Composite>
- <Composite.layout>
- <ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout>
- </Composite.layout>
- <ppe:BooleanRadio input="{Binding}"
- property="properties:ui:PropertyEditor:readOnly"></ppe:BooleanRadio>
- <ppe:BooleanRadio input="{Binding}"
- property="properties:ui:PropertyEditor:showLabel"></ppe:BooleanRadio>
- </Composite>
- <Composite>
- <Composite.layout>
- <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
- </Composite.layout>
- <ppe:ReferenceDialog input="{Binding}"
- property="properties:ui:PropertyEditor:property"></ppe:ReferenceDialog>
- <ppe:ReferenceDialog input="{Binding}"
- property="properties:ui:PropertyEditor:widgetType"></ppe:ReferenceDialog>
- <ppe:StringEditor input="{Binding}"
- property="properties:ui:PropertyEditor:customLabel"></ppe:StringEditor>
- </Composite>
-</Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditorType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditorType.xwt
deleted file mode 100644
index 939d78ffec8..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SinglePropertyEditorType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:environment:WidgetType:label"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:environment:WidgetType:widgetClass"></ppe:StringEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:IntegerEditor input="{Binding}" property="properties:environment:PropertyEditorType:multiplicity"></ppe:IntegerEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:EnumCombo input="{Binding}" property="properties:environment:PropertyEditorType:type"></ppe:EnumCombo></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleReferenceAttribute.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleReferenceAttribute.xwt
deleted file mode 100644
index 6d2476de0ff..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleReferenceAttribute.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:ui:WidgetAttribute:name"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleReferenceProperty.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleReferenceProperty.xwt
deleted file mode 100644
index c7eb02b7921..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleReferenceProperty.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:ConfigProperty:name"></ppe:StringEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:ReferenceDialog input="{Binding}" property="properties:contexts:ReferenceProperty:value"></ppe:ReferenceDialog></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleSection.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleSection.xwt
deleted file mode 100644
index 49b58b8457d..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleSection.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppec="clr-namespace:org.eclipse.papyrus.properties.creation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:Section:name"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:contexts:Section:sectionFile"></ppe:StringEditor><ppe:ReferenceCombo input="{Binding}" property="properties:contexts:Section:tab"></ppe:ReferenceCombo><ppe:MultiReference input="{Binding}" property="properties:contexts:DisplayUnit:constraints"></ppe:MultiReference></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleStandardWidget.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleStandardWidget.xwt
deleted file mode 100644
index f49eefc8ac6..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleStandardWidget.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:ppec="clr-namespace:org.eclipse.papyrus.properties.creation" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:ReferenceDialog input="{Binding}" property="properties:ui:StandardWidget:widgetType"></ppe:ReferenceDialog></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleStandardWidgetType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleStandardWidgetType.xwt
deleted file mode 100644
index c6887805c6c..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleStandardWidgetType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:environment:WidgetType:label"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:environment:WidgetType:widgetClass"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleTab.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleTab.xwt
deleted file mode 100644
index 637cef56787..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleTab.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:Tab:label"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:contexts:Tab:id"></ppe:StringEditor><ppe:StringFileSelector input="{Binding}" allowWorkspace="true" allowFileSystem="false" property="properties:contexts:Tab:image"></ppe:StringFileSelector><ppe:BooleanRadio input="{Binding}" property="properties:contexts:Tab:indented"></ppe:BooleanRadio></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:Tab:category"></ppe:StringEditor><ppe:ReferenceCombo input="{Binding}" property="properties:contexts:Tab:afterTab"></ppe:ReferenceCombo></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUIComponent.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUIComponent.xwt
deleted file mode 100644
index 162b5d2099d..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUIComponent.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppec="clr-namespace:org.eclipse.papyrus.properties.creation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:MultiReference input="{Binding}" property="properties:ui:UIComponent:attributes"><ppe:MultiReference.factory><ppec:EcorePropertyEditorFactory className="ValueAttribute" nsUri="http://www.eclipse.org/papyrus/properties/ui"></ppec:EcorePropertyEditorFactory></ppe:MultiReference.factory></ppe:MultiReference></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUnknownComponent.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUnknownComponent.xwt
deleted file mode 100644
index 72b487ee482..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUnknownComponent.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppec="clr-namespace:org.eclipse.papyrus.properties.creation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:ui:UnknownComponent:typeName"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUnknownProperty.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUnknownProperty.xwt
deleted file mode 100644
index 6b7fba7c3c4..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleUnknownProperty.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:Property:name"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:contexts:Property:label"></ppe:StringEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:IntegerEditor input="{Binding}" property="properties:contexts:Property:multiplicity"></ppe:IntegerEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:EnumCombo input="{Binding}" property="properties:contexts:Property:type"></ppe:EnumCombo></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleValueAttribute.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleValueAttribute.xwt
deleted file mode 100644
index 7626587722c..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleValueAttribute.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:ui:WidgetAttribute:name"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:ui:ValueAttribute:value"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleValueProperty.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleValueProperty.xwt
deleted file mode 100644
index d8f0e405cb2..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleValueProperty.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:ConfigProperty:name"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:contexts:ValueProperty:value"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleView.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleView.xwt
deleted file mode 100644
index 7fbc46f3910..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleView.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppec="clr-namespace:org.eclipse.papyrus.properties.creation" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:contexts:View:name"></ppe:StringEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout></Composite.layout><ppe:IntegerEditor input="{Binding}" property="properties:contexts:View:elementMultiplicity"></ppe:IntegerEditor></Composite><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:MultiReference input="{Binding}" property="properties:contexts:DisplayUnit:constraints"></ppe:MultiReference></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidget.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidget.xwt
deleted file mode 100644
index 3c8c16c9afc..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidget.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppec="clr-namespace:org.eclipse.papyrus.properties.creation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidgetAttribute.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidgetAttribute.xwt
deleted file mode 100644
index 14244acfae6..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidgetAttribute.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:ui:WidgetAttribute:name"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidgetType.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidgetType.xwt
deleted file mode 100644
index 8ea793200f8..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/SingleWidgetType.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="properties:environment:WidgetType:label"></ppe:StringEditor><ppe:StringEditor input="{Binding}" property="properties:environment:WidgetType:widgetClass"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Stereotype.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Stereotype.xwt
deleted file mode 100644
index 63db56d2dad..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/Stereotype.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="Properties:Stereotype:stereotypeName"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/UMLInstanceOf.xwt b/incoming/org.eclipse.papyrus.properties.customization/Model/ui/UMLInstanceOf.xwt
deleted file mode 100644
index 977189c4f2e..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Model/ui/UMLInstanceOf.xwt
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.properties.widgets" xmlns:ppel="clr-namespace:org.eclipse.papyrus.properties.widgets.layout" xmlns:x="http://www.eclipse.org/xwt" xmlns="http://www.eclipse.org/xwt/presentation"><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><Composite><Composite.layout><ppel:PropertiesLayout></ppel:PropertiesLayout></Composite.layout><ppe:StringEditor input="{Binding}" property="Properties:UMLInstanceOf:umlClassName"></ppe:StringEditor></Composite></Composite> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/OSGI-INF/l10n/bundle.properties b/incoming/org.eclipse.papyrus.properties.customization/OSGI-INF/l10n/bundle.properties
deleted file mode 100644
index ebe241d42d0..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/OSGI-INF/l10n/bundle.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#Properties file for org.eclipse.papyrus.properties.customization
-Bundle-Name = Papyrus properties customization (Incubation)
-Bundle-Vendor = Eclipse Modeling Project
-editor.name = UI Editor
-customize.command.label = Customize Property view
-customize.command.mnemonic = C
-customize.command.tooltip = Customize the content of the Property View
-customize.command.description = This command allows customization of the content of the properties view
-customize.command.name = Customize properties view
-view.name = Customization preview
-perspective.name = Property view Customization
-page.name = Property view customization
-command.description = Customize the Property view
-command.name = Customize property view
-command.description.0 = Toggles the customization's Preview view
-command.name.0 = Toggle preview
-command.description.1 = Toggles the DataContext display
-command.name.1 = Toggle DataContext
-toolbar.label = Papyrus customization toolbar
-command.label = Toggle preview
-command.tooltip = Toggles the customization's Preview view
-command.label.0 = Toggle DataContext
-command.tooltip.0 = Toggles the display of DataContext in the UIEditor view \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Query/Contexts.querySet b/incoming/org.eclipse.papyrus.properties.customization/Query/Contexts.querySet
deleted file mode 100644
index 5abb56d82ab..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Query/Contexts.querySet
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<query:ModelQuerySet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="Contexts" description="">
- <associatedMetamodels href="http://www.eclipse.org/papyrus/properties/contexts#/"/>
- <associatedMetamodels href="http://www.eclipse.org/papyrus/properties/ui#/"/>
- <queries xsi:type="query:OCLModelQuery" name="Tab label" description="Tab label" lowerBound="1" query="if label.oclIsUndefined() or label = '' then '&lt;&lt;Unnamed>>' else label endif">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//Tab"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="View label" description="View label" lowerBound="1" query="if name = null or name = '' then '&lt;&lt;Unnamed>>' else name endif">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//View"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="Context label" description="Context label" lowerBound="1" query="if name = null or name = '' then '&lt;&lt;Unnamed>>' else name endif">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//Context"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="Section label" description="Section label" lowerBound="1" query="if name = null or name = '' then '&lt;&lt;Unnamed>>' else name.concat(if tab.oclIsUndefined() then ' [&lt;&lt;Undefined>>]' else ' ['.concat(tab.label).concat(']') endif) endif">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//Section"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="Property editor label" description="Returns the PropertyEditor label" lowerBound="1" query="if property.oclIsUndefined() then '&lt;&lt;Undefined>>' else if property.label.oclIsUndefined() or property.label = '' then property.name else _property.label endif endif">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <scope href="http://www.eclipse.org/papyrus/properties/ui#//PropertyEditor"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="Composite label" lowerBound="1" query="if widgetType = null then '&lt;&lt;Undefined>>' else widgetType.label endif">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <scope href="http://www.eclipse.org/papyrus/properties/ui#//CompositeWidget"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="Layout label" description="Layout label" lowerBound="1" query="if layoutType = null then '&lt;&lt;Undefined>>' else layoutType.label endif">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <scope href="http://www.eclipse.org/papyrus/properties/ui#//Layout"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="Attribute label" lowerBound="1" query="if name = null or name = '' then '&lt;&lt;Undefined>>' else name endif">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <scope href="http://www.eclipse.org/papyrus/properties/ui#//WidgetAttribute"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="Property label" description="Property label" lowerBound="1" query="if label.oclIsUndefined() or label = '' then name else label endif">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//Property"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="DataContextElement label" description="DataContextElement label" lowerBound="1" query="name">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//DataContextElement"/>
- </queries>
- <queries xsi:type="query:JavaModelQuery" name="showDataContext-j" description="Tests if the data contexts should be displayed" lowerBound="1" implementationClassName="org.eclipse.papyrus.properties.customization.query.ShowContextQuery">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//Context"/>
- </queries>
- <queries xsi:type="query:OCLModelQuery" name="showDataContext" description="Blabla" lowerBound="1" query="true">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/contexts#//Context"/>
- </queries>
-</query:ModelQuerySet>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/Query/Ui.querySet b/incoming/org.eclipse.papyrus.properties.customization/Query/Ui.querySet
deleted file mode 100644
index d35080e5d2f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/Query/Ui.querySet
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<query:ModelQuerySet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="Ui">
- <associatedMetamodels href="http://www.eclipse.org/papyrus/properties/ui#/"/>
- <queries xsi:type="query:OCLModelQuery" name="isReferenceAttribute" description="Tests if an attribute is a ReferenceAttribute" lowerBound="1" query="self.oclIsKindOf(ReferenceAttribute)">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <scope href="http://www.eclipse.org/papyrus/properties/ui#//WidgetAttribute"/>
- </queries>
-</query:ModelQuerySet>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/UICustom/context.uiCustom b/incoming/org.eclipse.papyrus.properties.customization/UICustom/context.uiCustom
deleted file mode 100644
index 0c874d57aaa..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/UICustom/context.uiCustom
+++ /dev/null
@@ -1,326 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<uicustom:MetamodelView xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" xmlns:uicustom="http://www.eclipse.org/EmfFacet/infra/browser/custom/0.8" metamodelURI="http://www.eclipse.org/papyrus/properties/contexts">
- <types metaclassName="contexts.Context">
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:OCLModelQuery" href="emffacet:/query/Contexts#Context label"/>
- </defaultValue>
- </customizedFeatures>
- <attributes attributeName="name">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <references referenceName="constraints">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="views">
- <customizedFeatures customizedFeature="icon">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="/org.eclipse.papyrus.properties.customization/icons/MultiView.gif"/>
- </customizedFeatures>
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="Views"/>
- </customizedFeatures>
- </references>
- <references referenceName="tabs">
- <customizedFeatures customizedFeature="collapseLink">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- </references>
- <references referenceName="dataContexts">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:JavaModelQuery" href="emffacet:/query/Contexts#showDataContext-j"/>
- </defaultValue>
- </customizedFeatures>
- <customizedFeatures customizedFeature="icon">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="/org.eclipse.papyrus.properties.customization/icons/DataContexts.gif"/>
- </customizedFeatures>
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="Data contexts"/>
- </customizedFeatures>
- </references>
- <references referenceName="dependencies">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="contexts.ConfigProperty">
- <customizedFeatures customizedFeature="metaclassVisible">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </types>
- <types metaclassName="contexts.DataContextElement">
- <customizedFeatures customizedFeature="metaclassVisible">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:OCLModelQuery" href="emffacet:/query/Contexts#DataContextElement label"/>
- </defaultValue>
- </customizedFeatures>
- <customizedFeatures customizedFeature="hideMetaclassName">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- <attributes attributeName="name">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <references referenceName="properties">
- <customizedFeatures customizedFeature="collapseLink">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- </references>
- <references referenceName="package">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="supertypes">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="contexts.DataContextPackage">
- <customizedFeatures customizedFeature="metaclassVisible">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- <references referenceName="elements">
- <customizedFeatures customizedFeature="collapseLink">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="contexts.DataContextRoot">
- <customizedFeatures customizedFeature="metaclassVisible">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- <attributes attributeName="label">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <attributes attributeName="name">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <references referenceName="modelElementFactory">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="contexts.Property">
- <customizedFeatures customizedFeature="metaclassVisible">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:OCLModelQuery" href="emffacet:/query/Contexts#Property label"/>
- </defaultValue>
- </customizedFeatures>
- <customizedFeatures customizedFeature="hideMetaclassName">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- <attributes attributeName="description">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <attributes attributeName="label">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <attributes attributeName="multiplicity">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <attributes attributeName="name">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <attributes attributeName="type">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <references referenceName="contextElement">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="contexts.ReferenceProperty">
- <customizedFeatures customizedFeature="metaclassVisible">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </types>
- <types metaclassName="contexts.Section">
- <customizedFeatures customizedFeature="metaclassVisible">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:OCLModelQuery" href="emffacet:/query/Contexts#Section label"/>
- </defaultValue>
- </customizedFeatures>
- <attributes attributeName="name">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <attributes attributeName="sectionFile">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <references referenceName="tab">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="widget">
- <customizedFeatures customizedFeature="collapseLink">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- </references>
- <references referenceName="constraints">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="contexts.Tab">
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:OCLModelQuery" href="emffacet:/query/Contexts#Tab label"/>
- </defaultValue>
- </customizedFeatures>
- <customizedFeatures customizedFeature="metaclassVisible">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- <attributes attributeName="category">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <attributes attributeName="id">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <attributes attributeName="image">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <attributes attributeName="label">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <references referenceName="afterTab">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="sections">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="contexts.View">
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:OCLModelQuery" href="emffacet:/query/Contexts#View label"/>
- </defaultValue>
- </customizedFeatures>
- <customizedFeatures customizedFeature="metaclassVisible">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- <attributes attributeName="elementMultiplicity">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <attributes attributeName="name">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <attributes attributeName="automaticContext">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <references referenceName="constraints">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="sections">
- <customizedFeatures customizedFeature="collapseLink">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- </references>
- <references referenceName="datacontexts">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="context">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="contexts.ValueProperty">
- <customizedFeatures customizedFeature="metaclassVisible">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </types>
- <types metaclassName="contexts.DisplayUnit">
- <references referenceName="constraints">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="contexts.ConstraintDescriptor">
- <references referenceName="display">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="constraintType">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="constraints">
- <customizedFeatures customizedFeature="collapseLink">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- </references>
- <references referenceName="properties">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="overriddenConstraints">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
-</uicustom:MetamodelView>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/UICustom/environment.uiCustom b/incoming/org.eclipse.papyrus.properties.customization/UICustom/environment.uiCustom
deleted file mode 100644
index 9553d8434dc..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/UICustom/environment.uiCustom
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<uicustom:MetamodelView xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uicustom="http://www.eclipse.org/EmfFacet/infra/browser/custom/0.8" metamodelURI="http://www.eclipse.org/papyrus/properties/environment">
- <types metaclassName="environment.Environment">
- <customizedFeatures customizedFeature="metaclassVisible">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </types>
- <types metaclassName="environment.ConstraintType">
- <customizedFeatures customizedFeature="bold">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- </types>
-</uicustom:MetamodelView>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/UICustom/ui.uiCustom b/incoming/org.eclipse.papyrus.properties.customization/UICustom/ui.uiCustom
deleted file mode 100644
index e0dd487b017..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/UICustom/ui.uiCustom
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<uicustom:MetamodelView xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" xmlns:uicustom="http://www.eclipse.org/EmfFacet/infra/browser/custom/0.8" metamodelURI="http://www.eclipse.org/papyrus/properties/ui">
- <types metaclassName="ui.CompositeWidget">
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:OCLModelQuery" href="emffacet:/query/Contexts#Composite label"/>
- </defaultValue>
- </customizedFeatures>
- <references referenceName="layout">
- <customizedFeatures customizedFeature="collapseLink">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- </references>
- <references referenceName="widgetType">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="widgets">
- <customizedFeatures customizedFeature="collapseLink">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="ui.Layout">
- <customizedFeatures customizedFeature="color">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="(0,0,0)"/>
- </customizedFeatures>
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:OCLModelQuery" href="emffacet:/query/Contexts#Layout label"/>
- </defaultValue>
- </customizedFeatures>
- <references referenceName="layoutType">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="ui.PropertyEditor">
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:OCLModelQuery" href="emffacet:/query/Contexts#Property editor label"/>
- </defaultValue>
- </customizedFeatures>
- <customizedFeatures customizedFeature="color">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="(0,0,0)"/>
- </customizedFeatures>
- <attributes attributeName="readOnly">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </attributes>
- <references referenceName="attributes">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="property">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="widgetType">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="unresolvedProperty">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="ui.StandardWidget">
- <customizedFeatures customizedFeature="color">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="(0,0,0)"/>
- </customizedFeatures>
- <references referenceName="attributes">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="widgetType">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="ui.ReferenceAttribute">
- <customizedFeatures customizedFeature="color">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="(0,0,0)"/>
- </customizedFeatures>
- <references referenceName="value">
- <customizedFeatures customizedFeature="collapseLink">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- </references>
- </types>
- <types metaclassName="ui.ValueAttribute">
- <customizedFeatures customizedFeature="color">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="(0,0,0)"/>
- </customizedFeatures>
- </types>
- <types metaclassName="ui.UnknownComponent">
- <customizedFeatures customizedFeature="color">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="(0,0,0)"/>
- </customizedFeatures>
- </types>
- <types metaclassName="ui.WidgetAttribute">
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:OCLModelQuery" href="emffacet:/query/Contexts#Attribute label"/>
- </defaultValue>
- </customizedFeatures>
- </types>
- <types metaclassName="ui.UIComponent">
- <references referenceName="attributes">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
-</uicustom:MetamodelView>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/about.html b/incoming/org.eclipse.papyrus.properties.customization/about.html
deleted file mode 100644
index 82d49bf5f81..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2007</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/build.properties b/incoming/org.eclipse.papyrus.properties.customization/build.properties
deleted file mode 100644
index cf1a674eda8..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/build.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-output.. = bin/
-bin.includes = .,\
- plugin.xml,\
- META-INF/,\
- about.html,\
- icons/,\
- Query/,\
- UICustom/,\
- Model/,\
- OSGI-INF/
-source.. = src/
diff --git a/incoming/org.eclipse.papyrus.properties.customization/icons/Context.gif b/incoming/org.eclipse.papyrus.properties.customization/icons/Context.gif
deleted file mode 100644
index 9b09a7e4986..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/icons/Context.gif
+++ /dev/null
Binary files differ
diff --git a/incoming/org.eclipse.papyrus.properties.customization/icons/Customization.gif b/incoming/org.eclipse.papyrus.properties.customization/icons/Customization.gif
deleted file mode 100644
index 0b1be97b8cf..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/icons/Customization.gif
+++ /dev/null
Binary files differ
diff --git a/incoming/org.eclipse.papyrus.properties.customization/icons/DataContext.gif b/incoming/org.eclipse.papyrus.properties.customization/icons/DataContext.gif
deleted file mode 100644
index 48581fa9451..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/icons/DataContext.gif
+++ /dev/null
Binary files differ
diff --git a/incoming/org.eclipse.papyrus.properties.customization/icons/DataContexts.gif b/incoming/org.eclipse.papyrus.properties.customization/icons/DataContexts.gif
deleted file mode 100644
index 94b389f9da0..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/icons/DataContexts.gif
+++ /dev/null
Binary files differ
diff --git a/incoming/org.eclipse.papyrus.properties.customization/icons/MultiView.gif b/incoming/org.eclipse.papyrus.properties.customization/icons/MultiView.gif
deleted file mode 100644
index 2e85ba1b6f2..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/icons/MultiView.gif
+++ /dev/null
Binary files differ
diff --git a/incoming/org.eclipse.papyrus.properties.customization/icons/error.gif b/incoming/org.eclipse.papyrus.properties.customization/icons/error.gif
deleted file mode 100644
index 9b048d60532..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/icons/error.gif
+++ /dev/null
Binary files differ
diff --git a/incoming/org.eclipse.papyrus.properties.customization/icons/papyrus.png b/incoming/org.eclipse.papyrus.properties.customization/icons/papyrus.png
deleted file mode 100644
index 0f74e27b483..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/icons/papyrus.png
+++ /dev/null
Binary files differ
diff --git a/incoming/org.eclipse.papyrus.properties.customization/icons/preview.png b/incoming/org.eclipse.papyrus.properties.customization/icons/preview.png
deleted file mode 100644
index 4ccd82e526d..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/icons/preview.png
+++ /dev/null
Binary files differ
diff --git a/incoming/org.eclipse.papyrus.properties.customization/icons/refresh.gif b/incoming/org.eclipse.papyrus.properties.customization/icons/refresh.gif
deleted file mode 100644
index 634306d4c62..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/icons/refresh.gif
+++ /dev/null
Binary files differ
diff --git a/incoming/org.eclipse.papyrus.properties.customization/plugin.xml b/incoming/org.eclipse.papyrus.properties.customization/plugin.xml
deleted file mode 100644
index 0a5bd58514d..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/plugin.xml
+++ /dev/null
@@ -1,181 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?eclipse version="3.4"?>
-
-<plugin>
- <extension point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
- <browserCustomization file="UICustom/context.uiCustom" loadByDefault="true">
- </browserCustomization>
- </extension>
- <extension point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
- <browserCustomization file="UICustom/environment.uiCustom" loadByDefault="true"/>
- </extension>
- <extension point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
- <browserCustomization file="UICustom/ui.uiCustom" loadByDefault="true"/>
- </extension>
- <extension point="org.eclipse.emf.facet.infra.query.registration">
- <modelqueryset file="Query/Contexts.querySet"/>
- </extension>
- <extension
- point="org.eclipse.emf.facet.infra.query.registration">
- <modelqueryset
- file="Query/Ui.querySet">
- </modelqueryset>
- </extension>
- <extension point="org.eclipse.ui.editors">
- <editor class="org.eclipse.papyrus.properties.customization.editor.UIEditor" contributorClass="org.eclipse.papyrus.properties.customization.editor.ContextEditorActionBarContributor" default="true" extensions="ctx" icon="platform:/plugin/org.eclipse.papyrus.properties.model.edit/icons/full/obj16/Context.gif" id="org.eclipse.papyrus.property.customization.UIEditor" name="%editor.name">
- </editor>
- </extension>
- <extension point="org.eclipse.emf.ecore.uri_mapping">
- <mapping source="pathmap://PPECustom/" target="platform:/plugin/org.eclipse.papyrus.properties.customization/Model/">
- </mapping>
- </extension>
- <extension point="org.eclipse.papyrus.properties.environment">
- <environment environmentModel="Model/CustomizationEnvironment.xmi">
- </environment>
- </extension>
- <extension point="org.eclipse.papyrus.properties.context">
- <context contextModel="Model/Customization.ctx" loadDefault="true">
- </context>
- </extension>
- <extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
- <propertyContributor contributorId="CustomizationPropertyView" labelProvider="org.eclipse.papyrus.properties.providers.EMFObjectLabelProvider" tabDescriptorProvider="org.eclipse.papyrus.properties.xwt.XWTTabDescriptorProvider">
- </propertyContributor>
- </extension>
- <extension
- point="org.eclipse.ui.views">
- <view
- allowMultiple="true"
- category="org.eclipse.papyrus.views.category"
- class="org.eclipse.papyrus.properties.customization.editor.preview.Preview"
- icon="icons/preview.png"
- id="org.eclipse.papyrus.properties.customization.preview"
- name="%view.name"
- restorable="true">
- </view>
- </extension>
- <extension
- point="org.eclipse.ui.perspectives">
- <perspective
- class="org.eclipse.papyrus.properties.customization.perspective.CustomizationPerspectiveFactory"
- icon="icons/Customization.gif"
- id="org.eclipse.papyrus.properties.customization.perspective"
- name="%perspective.name">
- </perspective>
- </extension>
- <extension
- point="org.eclipse.core.runtime.preferences">
- <initializer
- class="org.eclipse.papyrus.properties.customization.preferences.CustomizationPreferencesInitializer">
- </initializer>
- </extension>
- <extension
- point="org.eclipse.ui.preferencePages">
- <page
- category="org.eclipse.papyrus.preferences.generalcategory"
- class="org.eclipse.papyrus.properties.customization.preferences.CustomizationPreferencePage"
- id="org.eclipse.papyrus.properties.customization.preferences"
- name="%page.name">
- </page>
- </extension>
- <extension
- point="org.eclipse.ui.handlers">
- <handler
- class="org.eclipse.papyrus.properties.customization.ui.OpenCustomization"
- commandId="org.eclipse.papyrus.properties.customization.customize">
- </handler>
- <handler
- class="org.eclipse.papyrus.properties.customization.editor.actions.TogglePreviewAction"
- commandId="org.eclipse.papyrus.properties.customization.TogglePreview">
- </handler>
- <handler
- class="org.eclipse.papyrus.properties.customization.editor.actions.ToggleDataContextAction"
- commandId="org.eclipse.papyrus.properties.customization.ToggleDataContext">
- </handler>
- </extension>
- <extension
- point="org.eclipse.ui.commands">
- <command
- description="%command.description"
- id="org.eclipse.papyrus.properties.customization.customize"
- name="%command.name">
- </command>
- <command
- description="%command.description.0"
- id="org.eclipse.papyrus.properties.customization.TogglePreview"
- name="%command.name.0">
- <state
- class="org.eclipse.papyrus.properties.customization.editor.actions.TogglePreviewState"
- id="org.eclipse.ui.commands.toggleState">
- </state>
- </command>
- <command
- description="%command.description.1"
- id="org.eclipse.papyrus.properties.customization.ToggleDataContext"
- name="%command.name.1">
- <state
- class="org.eclipse.papyrus.properties.customization.editor.actions.ToggleDataContextState"
- id="org.eclipse.papyrus.properties.customization.displayContextState">
- </state>
- </command>
- </extension>
- <extension
- point="org.eclipse.ui.menus">
- <menuContribution
- allPopups="false"
- locationURI="menu:org.eclipse.ui.views.PropertySheet">
- <command
- commandId="org.eclipse.papyrus.properties.customization.customize"
- icon="icons/Customization.gif"
- id="org.eclipse.papyrus.properties.customization.customizehandler"
- label="%customize.command.label"
- mnemonic="%customize.command.mnemonic"
- mode="FORCE_TEXT"
- style="push"
- tooltip="%customize.command.tooltip">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- </menuContribution>
- <menuContribution
- allPopups="false"
- locationURI="toolbar:org.eclipse.ui.main.toolbar">
- <toolbar
- id="org.eclipes.papyrus.properties.customization"
- label="%toolbar.label">
- <command
- commandId="org.eclipse.papyrus.properties.customization.TogglePreview"
- icon="icons/preview.png"
- id="org.eclipse.papyrus.properties.customization.togglePreview"
- label="%command.label"
- style="toggle"
- tooltip="%command.tooltip">
- <visibleWhen>
- <with
- variable="activeEditorId">
- <equals
- value="org.eclipse.papyrus.property.customization.UIEditor">
- </equals>
- </with>
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.properties.customization.ToggleDataContext"
- icon="icons/DataContexts.gif"
- id="org.eclipse.papyrus.properties.customization.toggleDataContext"
- label="%command.label.0"
- style="toggle"
- tooltip="%command.tooltip.0">
- <visibleWhen>
- <with
- variable="activeEditorId">
- <equals
- value="org.eclipse.papyrus.property.customization.UIEditor">
- </equals>
- </with>
- </visibleWhen>
- </command>
- </toolbar>
- </menuContribution>
- </extension>
-</plugin>
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/Activator.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/Activator.java
deleted file mode 100644
index a029c48212a..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/Activator.java
+++ /dev/null
@@ -1,145 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization;
-
-import java.util.List;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.facet.infra.browser.custom.MetamodelView;
-import org.eclipse.emf.facet.infra.browser.custom.core.CustomizationsCatalog;
-import org.eclipse.emf.facet.infra.browser.uicore.CustomizationManager;
-import org.eclipse.jface.resource.ImageRegistry;
-import org.eclipse.papyrus.log.LogHelper;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/** The activator class controls the plug-in life cycle */
-public class Activator extends AbstractUIPlugin {
-
- /**
- * The plug-in ID
- */
- public static final String PLUGIN_ID = "org.eclipse.papyrus.properties.customization"; //$NON-NLS-1$
-
- /**
- * The Preview view ID
- */
- public static final String PREVIEW_ID = "org.eclipse.papyrus.properties.customization.preview"; //$NON-NLS-1$
-
- /**
- * The Customization perspective ID
- */
- public static final String CUSTOMIZATION_PERSPECTIVE_ID = "org.eclipse.papyrus.properties.customization.perspective"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * The plug-in logger
- */
- public static LogHelper log;
-
- private CustomizationManager fCustomizationManager;
-
- @Override
- public void start(final BundleContext context) throws Exception {
- super.start(context);
- Activator.plugin = this;
- log = new LogHelper(plugin);
- }
-
- @Override
- public void stop(final BundleContext context) throws Exception {
- Activator.plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return Activator.plugin;
- }
-
- /**
- *
- * @return the customization manager in charge to adapt element in modisco
- */
- public CustomizationManager getCustomizationManager() {
- if(this.fCustomizationManager == null) {
- this.fCustomizationManager = new CustomizationManager();
- init(this.fCustomizationManager);
- }
- return this.fCustomizationManager;
- }
-
- private void init(final CustomizationManager customizationManager) {
- customizationManager.setShowContainer(false);
- customizationManager.setShowDerivedLinks(true);
- customizationManager.setShowEmptyLinks(true);
-
- try {
- List<MetamodelView> registryDefaultCustomizations = CustomizationsCatalog.getInstance().getRegistryDefaultCustomizations();
- for(MetamodelView metamodelView : registryDefaultCustomizations) {
- customizationManager.registerCustomization(metamodelView);
- }
-
- customizationManager.loadCustomizations();
- } catch (Throwable e) {
- Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Error initializing customizations", e)); //$NON-NLS-1$
- }
- }
-
- /**
- * @return The IPath representing the plugin's preferences folder location
- */
- public IPath getPreferencesPath() {
- return getStateLocation();
- }
-
- /**
- * Returns the image at the given path from this plugin
- *
- * @param path
- * the path of the image to be displayed
- * @return The Image at the given location, or null if it couldn't be found
- */
- public Image getImage(String path) {
- return getImage(PLUGIN_ID, path);
- }
-
- /**
- * Returns the image from the given image descriptor
- *
- * @param pluginId
- * The plugin in which the image is located
- * @param path
- * The path to the image from the plugin
- * @return
- * The Image at the given location, or null if it couldn't be found
- */
- public Image getImage(String pluginId, String path) {
- final ImageRegistry registry = getImageRegistry();
- String key = pluginId + "/" + path; //$NON-NLS-1$
- Image image = registry.get(key);
- if(image == null) {
- registry.put(key, AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, path));
- image = registry.get(key);
- }
- return image;
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/ContextEditorActionBarContributor.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/ContextEditorActionBarContributor.java
deleted file mode 100644
index 7d2d03ade42..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/ContextEditorActionBarContributor.java
+++ /dev/null
@@ -1,340 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor;
-
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-
-import org.eclipse.emf.ecore.presentation.EcoreActionBarContributor;
-import org.eclipse.emf.edit.ui.action.CopyAction;
-import org.eclipse.emf.edit.ui.action.CreateChildAction;
-import org.eclipse.emf.edit.ui.action.CreateSiblingAction;
-import org.eclipse.emf.edit.ui.action.CutAction;
-import org.eclipse.emf.edit.ui.action.DeleteAction;
-import org.eclipse.emf.edit.ui.action.PasteAction;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.contexts.Section;
-import org.eclipse.papyrus.properties.contexts.Tab;
-import org.eclipse.papyrus.properties.contexts.View;
-import org.eclipse.papyrus.properties.customization.editor.actions.CreateSectionAction;
-import org.eclipse.papyrus.properties.customization.editor.actions.CreateSectionWidgetAction;
-import org.eclipse.papyrus.properties.customization.editor.actions.MoDiscoCopyAction;
-import org.eclipse.papyrus.properties.customization.editor.actions.MoDiscoCutAction;
-import org.eclipse.papyrus.properties.customization.editor.actions.MoDiscoDeleteAction;
-import org.eclipse.papyrus.properties.customization.editor.actions.MoDiscoPasteAction;
-import org.eclipse.papyrus.properties.customization.editor.actions.ToggleDataContextAction;
-import org.eclipse.papyrus.properties.customization.editor.actions.ValidationAction;
-import org.eclipse.papyrus.properties.customization.util.ActionUtil;
-
-/**
- * The Action bar contributor for the Context Editor
- * Mainly serves as an Adapter for the Ecore actions, as the Ecore actions are
- * not natively compatible with the EMF Facet tree objects
- *
- * @author Camille Letavernier
- */
-public class ContextEditorActionBarContributor extends EcoreActionBarContributor {
-
- private int i = 0;
-
- /**
- *
- * Constructor.
- *
- */
- public ContextEditorActionBarContributor() {
- super();
- validateAction = new ValidationAction();
- }
-
- @Override
- protected void addGlobalActions(IMenuManager menuManager) {
- super.addGlobalActions(menuManager);
- }
-
- @Override
- public void menuAboutToShow(IMenuManager menuManager) {
- super.menuAboutToShow(menuManager);
- }
-
- @Override
- protected Collection<IAction> generateCreateChildActions(Collection<?> descriptors, ISelection selection) {
- Collection<IAction> result = super.generateCreateChildActions(descriptors, selection);
- if(selection instanceof IStructuredSelection) {
- IStructuredSelection sSelection = (IStructuredSelection)selection;
- if(sSelection.size() == 1) {
- Object firstElement = sSelection.getFirstElement();
- if(firstElement instanceof View) {
- result.addAll(createChildForView(selection, (View)sSelection.getFirstElement()));
- } else if(firstElement instanceof Section) {
- result.addAll(createChildForSection(selection));
- } else if(firstElement instanceof Tab) {
- removeChildActionsForTab(result);
- } else if(firstElement instanceof Context) {
- removeChildActionsForContext(result);
- }
- }
- }
-
- return result;
- }
-
- @Override
- protected Collection<IAction> generateCreateSiblingActions(Collection<?> descriptors, ISelection selection) {
- Collection<IAction> result = super.generateCreateSiblingActions(descriptors, selection);
- if(selection instanceof IStructuredSelection) {
- IStructuredSelection sSelection = (IStructuredSelection)selection;
- if(sSelection.size() == 1) {
- Object firstElement = sSelection.getFirstElement();
- if(firstElement instanceof Section) {
- removeSiblingActionsForSection(result);
- createSiblingActionsForSection(sSelection, (Section)firstElement);
- } else if(firstElement instanceof View || firstElement instanceof Tab) {
- removeSiblingActionsForViewAndTab(result);
- }
- }
- }
- return result;
- }
-
- /**
- * Remove the unused actions from the Tab's create child section
- *
- * @param actions
- * The actions generated by the Ecore action bar
- */
- protected void removeChildActionsForTab(Collection<IAction> actions) {
- Iterator<IAction> iterator = actions.iterator();
- while(iterator.hasNext()) {
- IAction action = iterator.next();
- if(action instanceof CreateChildAction) {
- CreateChildAction createChildAction = (CreateChildAction)action;
- if(createChildAction.getText().equals("Section")) { //It's the only relevant property we have access to... //$NON-NLS-1$
- iterator.remove();
- }
- }
- }
- }
-
- /**
- * Remove the unused actions from the Context's create child section
- *
- * @param actions
- * The actions generated by the Ecore action bar
- */
- protected void removeChildActionsForContext(Collection<IAction> actions) {
- Iterator<IAction> iterator = actions.iterator();
- while(iterator.hasNext()) {
- IAction action = iterator.next();
- if(action instanceof CreateChildAction) {
- CreateChildAction createChildAction = (CreateChildAction)action;
- if(!ToggleDataContextAction.showDataContext) {
- if(createChildAction.getText().equals("Data Context Root")) { //It's the only relevant property we have access to... //$NON-NLS-1$
- iterator.remove();
- }
- }
- }
- }
- }
-
- /**
- * Remove the unused actions from the Tab and View's create sibling section
- *
- * @param actions
- * The actions generated by the Ecore action bar
- */
- protected void removeSiblingActionsForViewAndTab(Collection<IAction> actions) {
- Iterator<IAction> iterator = actions.iterator();
- while(iterator.hasNext()) {
- IAction action = iterator.next();
- if(action instanceof CreateSiblingAction) {
- CreateSiblingAction createSiblingAction = (CreateSiblingAction)action;
- if(createSiblingAction.getText().equals("Data Context Root")) { //It's the only relevant property we have access to... //$NON-NLS-1$
- iterator.remove();
- }
- }
- }
- }
-
- /**
- * Remove the unused actions from the Section's create sibling section
- *
- * @param actions
- * The actions generated by the Ecore action bar
- */
- protected void removeSiblingActionsForSection(Collection<IAction> actions) {
- Iterator<IAction> iterator = actions.iterator();
- while(iterator.hasNext()) {
- IAction action = iterator.next();
- if(action instanceof CreateSiblingAction) {
- CreateSiblingAction createSiblingAction = (CreateSiblingAction)action;
- if(createSiblingAction.getText().equals("Section")) { //It's the only relevant property we have access to... //$NON-NLS-1$
- iterator.remove();
- }
- }
- }
- }
-
- /**
- * Adds new actions in the Section's create sibling section
- *
- * @param selection
- * The current selection
- * @param section
- * The section for which we want to add new actions
- * @return
- * The list of newly created {@link IAction}s
- */
- protected Collection<IAction> createSiblingActionsForSection(ISelection selection, Section section) {
- Collection<IAction> actions = new LinkedList<IAction>();
-
- //TODO : We need to retrieve the view owning the section. It is only possible with an access to the
- //ITreeElements, which we don't have here. Find a way to retrieve it.
-
- // String sectionName = getSectionName(view.getContext());
- // String sectionFile = getSectionFile(sectionName);
- // IAction action = new CreateSectionAction(selection, sectionName, sectionFile);
- // actions.add(action);
-
- return actions;
- }
-
- /**
- * Adds new actions in the View's create child section
- *
- * @param selection
- * The current selection
- * @param view
- * The View for which we want to add new actions
- * @return
- * The list of newly created {@link IAction}s
- */
- protected Collection<IAction> createChildForView(ISelection selection, View view) {
- Collection<IAction> actions = new LinkedList<IAction>();
-
- String sectionName = getSectionName(view.getContext());
- String sectionFile = getSectionFile(sectionName);
- IAction action = new CreateSectionAction(selection, sectionName, sectionFile);
- actions.add(action);
-
- return actions;
- }
-
- /**
- * Generate a name for a new section in the given context
- *
- * @param context
- * The context in which the new section will be created
- * @return
- * The generated name (Which should be unique in the given context)
- */
- protected String getSectionName(Context context) {
- String name;
- while(true) {
- name = "Section " + i; //$NON-NLS-1$
- if(isValidName(name, context)) {
- return name;
- }
- i++;
- }
- }
-
- /**
- * Tests if a section name is valid
- *
- * @param sectionName
- * The name to test
- * @param context
- * The Context in which the section name will be used
- * @return
- * True is the name is a valid section name
- */
- protected boolean isValidName(String sectionName, Context context) {
- for(Tab tab : context.getTabs()) {
- for(Section section : tab.getSections()) {
- if(section.getName().equals(sectionName))
- return false;
- }
- }
- return true;
- }
-
- /**
- * Return the path of the section file from a section name
- *
- * @param sectionName
- * The name of the section
- * @return
- * The path to the section's XWT file
- */
- protected String getSectionFile(String sectionName) {
- return "ui/" + sectionName + ".xwt"; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * Adds new actions to the Section's create child section
- *
- * @param selection
- * The current seleection
- * @return
- * The newly created {@link IAction}s
- */
- protected Collection<IAction> createChildForSection(ISelection selection) {
- Collection<IAction> actions = new LinkedList<IAction>();
-
- actions.add(new CreateSectionWidgetAction(selection));
-
- return actions;
- }
-
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- ISelection newSelection = ActionUtil.getAdaptedSelection(event.getSelection());
-
- SelectionChangedEvent newEvent = new SelectionChangedEvent(event.getSelectionProvider(), newSelection);
-
- super.selectionChanged(newEvent);
- }
-
- @Override
- protected DeleteAction createDeleteAction() {
- return new MoDiscoDeleteAction(removeAllReferencesOnDelete());
- }
-
- @Override
- protected boolean removeAllReferencesOnDelete() {
- return false; //When true, the whole model is loaded on "delete" actions, including *.xwt files
- //(Which cannot contain references to the deleted element, and are really slow to load)
- }
-
- @Override
- protected CutAction createCutAction() {
- return new MoDiscoCutAction();
- }
-
- @Override
- protected CopyAction createCopyAction() {
- return new MoDiscoCopyAction();
- }
-
- @Override
- protected PasteAction createPasteAction() {
- return new MoDiscoPasteAction();
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/MoDiscoDropAdapter.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/MoDiscoDropAdapter.java
deleted file mode 100644
index 5527bb17332..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/MoDiscoDropAdapter.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor;
-
-import java.util.Collection;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.papyrus.properties.customization.util.ActionUtil;
-import org.eclipse.swt.widgets.Widget;
-
-/**
- * An adapter for Drag & Drop in the Context editor. The default Ecore drag & drop
- * is not compatible with the EMF Facet Tree Elements
- *
- * @author Camille Letavernier
- */
-public class MoDiscoDropAdapter extends EditingDomainViewerDropAdapter {
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * The Editing domain for this Drop Adapter
- * @param viewer
- * The Viewer for this Drop Adapter
- */
- public MoDiscoDropAdapter(EditingDomain domain, Viewer viewer) {
- super(domain, viewer);
- }
-
- @Override
- protected Collection<?> extractDragSource(Object object) {
- if(object instanceof ISelection)
- return super.extractDragSource(ActionUtil.getAdaptedSelection((ISelection)object));
- else
- return super.extractDragSource(object);
- }
-
- @Override
- protected Object extractDropTarget(Widget item) {
- Object dropTarget = super.extractDropTarget(item);
- if(dropTarget instanceof IAdaptable) {
- Object adapter = ((IAdaptable)dropTarget).getAdapter(EObject.class);
- if(adapter != null)
- return adapter;
- }
-
- return dropTarget;
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/UIEditor.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/UIEditor.java
deleted file mode 100644
index 2dca619aac6..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/UIEditor.java
+++ /dev/null
@@ -1,373 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor;
-
-import java.util.EventObject;
-import java.util.HashSet;
-import java.util.Set;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.common.command.CommandStackListener;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.presentation.EcoreEditor;
-import org.eclipse.emf.ecore.presentation.EcoreEditorPlugin;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor;
-import org.eclipse.emf.edit.ui.dnd.LocalTransfer;
-import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter;
-import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.StructuredViewer;
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.customization.Activator;
-import org.eclipse.papyrus.properties.customization.editor.preview.Preview;
-import org.eclipse.papyrus.properties.customization.messages.Messages;
-import org.eclipse.papyrus.properties.customization.preferences.CustomizationPreferencePage;
-import org.eclipse.papyrus.properties.customization.providers.ContextContentProvider;
-import org.eclipse.papyrus.properties.customization.providers.ContextLabelProvider;
-import org.eclipse.papyrus.properties.runtime.ConfigurationManager;
-import org.eclipse.papyrus.properties.widgets.layout.GridData;
-import org.eclipse.papyrus.properties.widgets.layout.PropertiesLayout;
-import org.eclipse.papyrus.widgets.editors.AbstractEditor;
-import org.eclipse.papyrus.widgets.editors.ICommitListener;
-import org.eclipse.papyrus.widgets.editors.StringEditor;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.dnd.DND;
-import org.eclipse.swt.dnd.Transfer;
-import org.eclipse.swt.events.ControlAdapter;
-import org.eclipse.swt.events.ControlEvent;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.Tree;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IFileEditorInput;
-import org.eclipse.ui.IPerspectiveDescriptor;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.WorkbenchException;
-import org.eclipse.ui.dialogs.SaveAsDialog;
-import org.eclipse.ui.part.FileEditorInput;
-import org.eclipse.ui.views.properties.IPropertySheetPage;
-import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor;
-import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
-
-/**
- * A customization editor for Contexts from the Papyrus Property View.
- * The Editor is based on the Ecore reflective editor and the EMF Facet
- * customizable content & label providers
- *
- * @author Camille Letavernier
- */
-public class UIEditor extends EcoreEditor implements ITabbedPropertySheetPageContributor, CommandStackListener {
-
- private Set<Preview> previews = new HashSet<Preview>();
-
- private TreeViewer selectionViewer;
-
- @Override
- public void createPages() {
- // Creates the model from the editor input
- //
- createModel();
-
- getContainer().setBackground(new Color(getContainer().getDisplay(), 255, 255, 255));
- getContainer().setBackgroundMode(SWT.INHERIT_DEFAULT);
-
- Composite gParent = new Composite(getContainer(), SWT.NONE);
- gParent.setLayout(new FillLayout());
-
- //SashForm parent = new SashForm(gParent, SWT.VERTICAL | SWT.V_SCROLL | SWT.H_SCROLL);
- //parent.setLayout(new FillLayout());
-
- Composite parent = new Composite(gParent, SWT.NONE);
- parent.setLayout(new PropertiesLayout());
-
- // Only creates the other pages if there is something that can be edited
- //
- if(!getEditingDomain().getResourceSet().getResources().isEmpty()) {
- // Create a page for the selection tree view.
- //
-
- final ViewFilter filter = new ViewFilter();
-
- final StringEditor filterPattern = new StringEditor(parent, SWT.NONE, Messages.UIEditor_FilterViews);
- filterPattern.addCommitListener(new ICommitListener() {
-
- public void commit(AbstractEditor editor) {
- filter.setPattern((String)filterPattern.getValue());
- selectionViewer.refresh();
- }
-
- });
-
- Tree tree = new Tree(parent, SWT.BORDER | SWT.MULTI);
- tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- selectionViewer = new TreeViewer(tree);
- selectionViewer.setFilters(new ViewerFilter[]{ filter });
- setCurrentViewer(selectionViewer);
- ContextContentProvider contentProvider = new ContextContentProvider();
- contentProvider.getCustomizationManager().installCustomPainter(tree);
-
- ILabelProvider labelProvider = new ContextLabelProvider();
-
- editingDomain.getCommandStack().addCommandStackListener(this);
-
- selectionViewer.setContentProvider(contentProvider);
- selectionViewer.setLabelProvider(labelProvider);
-
- selectionViewer.setInput(editingDomain.getResourceSet());
- selectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
-
- new AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory);
-
- createContextMenuFor(selectionViewer);
- int pageIndex = addPage(gParent);
- setPageText(pageIndex, "Model"); //$NON-NLS-1$
-
- setActivePage(0);
-
- // Preview preview = new Preview(this);
- // preview.createPartControl(parent);
- // addPreview(preview);
-
- parent.layout();
- }
-
- // Ensures that this editor will only display the page's tab
- // area if there are more than one page
- //
- getContainer().addControlListener(new ControlAdapter() {
-
- boolean guard = false;
-
- @Override
- public void controlResized(ControlEvent event) {
- if(!guard) {
- guard = true;
- hideTabs();
- guard = false;
- }
- }
- });
-
- updateProblemIndication();
-
- changePerspective();
- }
-
- protected void changePerspective() {
- IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
- if(activePage == null) {
- return;
- }
-
- IPerspectiveDescriptor descriptor = activePage.getPerspective();
-
- if(descriptor.getId().equals(Activator.CUSTOMIZATION_PERSPECTIVE_ID)) {
- return;
- }
-
- boolean openPerspective;
-
- if(CustomizationPreferencePage.askForConfirmation()) {
- int defaultIndex = CustomizationPreferencePage.openCustomizationPerspective() ? 0 : 1;
- MessageDialog confirmationDialog = new MessageDialog(getContainer().getShell(), Messages.UIEditor_ChangePerspective, null, Messages.UIEditor_ChangePerspectiveMessage, MessageDialog.QUESTION, new String[]{ IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, defaultIndex);
- confirmationDialog.open();
- openPerspective = confirmationDialog.getReturnCode() == 0;
- } else {
- openPerspective = CustomizationPreferencePage.openCustomizationPerspective();
- }
-
- if(openPerspective) {
- try {
- PlatformUI.getWorkbench().showPerspective(Activator.CUSTOMIZATION_PERSPECTIVE_ID, PlatformUI.getWorkbench().getActiveWorkbenchWindow());
- } catch (WorkbenchException ex) {
- Activator.log.error(ex);
- }
- }
- }
-
- @Override
- protected void createContextMenuForGen(StructuredViewer viewer) {
- MenuManager contextMenu = new MenuManager("#PopUp"); //$NON-NLS-1$
- contextMenu.add(new Separator("additions")); //$NON-NLS-1$
- contextMenu.setRemoveAllWhenShown(true);
- contextMenu.addMenuListener(this);
- Menu menu = contextMenu.createContextMenu(viewer.getControl());
- viewer.getControl().setMenu(menu);
- getSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer));
-
- int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;
- Transfer[] transfers = new Transfer[]{ LocalTransfer.getInstance() };
- viewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer));
- viewer.addDropSupport(dndOperations, transfers, new MoDiscoDropAdapter(editingDomain, viewer));
- }
-
- @Override
- public void doSave(IProgressMonitor progressMonitor) {
- super.doSave(progressMonitor);
- refreshContext();
- }
-
- @Override
- public void doSaveAs() {
- SaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());
- saveAsDialog.create();
- saveAsDialog.setMessage(EcoreEditorPlugin.INSTANCE.getString("_UI_SaveAs_message")); //$NON-NLS-1$
- saveAsDialog.open();
- IPath path = saveAsDialog.getResult();
- if(path != null) {
- IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
- if(file != null) {
- ResourceSet resourceSet = editingDomain.getResourceSet();
- Resource currentResource = resourceSet.getResources().get(0);
- String currentExtension = currentResource.getURI().fileExtension();
-
- URI currentURI = currentResource.getURI();
- URI newURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
- String newExtension = newURI.fileExtension();
-
- if(currentExtension.equals(ECORE_FILE_EXTENSION) && newExtension.equals(EMOF_FILE_EXTENSION) || currentExtension.equals(EMOF_FILE_EXTENSION) && newExtension.equals(ECORE_FILE_EXTENSION)) {
- Resource newResource = resourceSet.createResource(newURI);
- newResource.getContents().addAll(currentResource.getContents());
- resourceSet.getResources().remove(0);
- resourceSet.getResources().move(0, newResource);
- } else {
- //System.out.println("Replace " + currentURI + " by " + newURI);
- currentResource.setURI(newURI);
- }
-
- IFileEditorInput modelFile = new FileEditorInput(file);
- setInputWithNotify(modelFile);
- setPartName(file.getName());
-
- Context context = getContext();
- if(context != null) {
- EcoreUtil.resolveAll(context);
- for(Resource resource : currentResource.getResourceSet().getResources()) {
- if(resource != currentResource) {
- if(isRelative(currentURI, resource)) {
- URI newResourceURI = resource.getURI().deresolve(currentURI).resolve(newURI);
- //System.out.println("Replace " + resource.getURI() + " by " + newResourceURI);
- resource.setURI(newResourceURI);
- }
- }
- }
- }
-
- doSave(getActionBars().getStatusLineManager().getProgressMonitor());
- }
- }
- }
-
- private boolean isRelative(URI baseURI, Resource resource) {
- URI resourceURI = resource.getURI();
- URI uri = resourceURI.deresolve(baseURI);
- if(uri.isRelative()) {
- if(!(uri.toString().startsWith("..") || uri.toString().startsWith("/"))) { //$NON-NLS-1$ //$NON-NLS-2$
- return true;
- }
- }
- return false;
- }
-
- protected Context getContext() {
- EObject object = getEditingDomain().getResourceSet().getResources().get(0).getContents().get(0);
- if(object instanceof Context) {
- return (Context)object;
- }
- return null;
- }
-
- private void refreshContext() {
- IEditorInput input = getEditorInput();
- if(input instanceof FileEditorInput) {
- FileEditorInput fileInput = (FileEditorInput)input;
- IFile file = fileInput.getFile();
- ConfigurationManager.instance.refresh(file.getLocation().toFile());
- }
- }
-
- @Override
- public IPropertySheetPage getPropertySheetPage() {
- if(iPropertySheetPage == null) {
- iPropertySheetPage = new TabbedPropertySheetPage(this);
- }
- return iPropertySheetPage;
- }
-
- public String getContributorId() {
- return "CustomizationPropertyView"; //$NON-NLS-1$
- }
-
- /**
- * Registers a Preview to this Editor
- *
- * @param preview
- */
- public void addPreview(Preview preview) {
- previews.add(preview);
- selectionViewer.addSelectionChangedListener(preview);
- preview.selectionChanged(new SelectionChangedEvent(this, this.currentViewer.getSelection()));
- }
-
- /**
- * Unregisters a Preview from this editor
- *
- * @param preview
- */
- public void removePreview(Preview preview) {
- previews.remove(preview);
- selectionViewer.removeSelectionChangedListener(preview);
- }
-
- @Override
- public void dispose() {
- for(Preview preview : previews) {
- selectionViewer.removeSelectionChangedListener(preview);
- }
- previews.clear();
- if(iPropertySheetPage != null) {
- iPropertySheetPage.dispose();
- }
- super.dispose();
- }
-
- /**
- * The Property sheet page for this editor
- */
- protected IPropertySheetPage iPropertySheetPage;
-
- public void commandStackChanged(EventObject event) {
- getViewer().refresh();
- for(Preview preview : previews) {
- preview.displayView();
- }
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/ViewFilter.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/ViewFilter.java
deleted file mode 100644
index 7ce726e46ba..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/ViewFilter.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.papyrus.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.properties.contexts.DataContextPackage;
-import org.eclipse.papyrus.properties.contexts.View;
-import org.eclipse.ui.internal.misc.StringMatcher;
-
-/**
- * A Filter for the UIEditor. The Filter can match Views and DataContextElements
- * An object is matched if it directly matches the filter, or if one of its parents
- * match it, or if one of his children (at any level) match it.
- *
- * @author Camille Letavernier
- */
-public class ViewFilter extends ViewerFilter {
-
- private StringMatcher matcher;
-
- /**
- * Sets the pattern for this filter
- *
- * @param pattern
- */
- public void setPattern(String pattern) {
- matcher = new StringMatcher("*" + pattern + "*", true, false); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- @Override
- public boolean select(Viewer viewer, Object parentElement, Object element) {
- if(matcher == null) {
- return true;
- }
-
- if(element instanceof IAdaptable) {
- EObject eObject = (EObject)((IAdaptable)element).getAdapter(EObject.class);
- if(eObject != null) {
- if(eObject instanceof View) {
- String viewName = ((View)eObject).getName();
- if(viewName == null) {
- return true;
- }
- return matcher.match(viewName);
- } else if(eObject instanceof DataContextPackage) {
- //FIXME : Le filtre ne fonctionne pas correctement pour afficher un DCElement dans un Package
- return select((DataContextPackage)eObject);
- } else if(eObject instanceof DataContextElement) {
- return select((DataContextElement)eObject);
- }
- }
- }
-
- return true;
- }
-
- /**
- * An element is displayed if its name matches the filter, or if one of its
- * children's or parent's name match it
- *
- * @param dataContextPackage
- * @return
- */
- private boolean select(DataContextPackage dataContextPackage) {
- if(dataContextPackage.getName() == null) {
- return true;
- }
-
- if(matcher.match(dataContextPackage.getName())) {
- return true;
- }
-
- for(DataContextElement subElement : dataContextPackage.getElements()) {
- if(subElement instanceof DataContextPackage) {
- if(select((DataContextPackage)subElement)) {
- return true;
- }
- }
-
- if(select(subElement)) {
- return true;
- }
- }
-
- return false;
- }
-
- private boolean select(DataContextElement dataContextElement) {
- if(dataContextElement.getName() == null) {
- return true;
- }
-
- if(matcher.match(dataContextElement.getName())) {
- return true;
- }
-
- DataContextPackage dataContextPackage = dataContextElement.getPackage();
- while(dataContextPackage != null) {
- if(matcher.match(dataContextPackage.getName())) {
- return true;
- }
-
- dataContextPackage = dataContextPackage.getPackage();
- }
-
- return false;
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CompoundCommandActionDelegate.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CompoundCommandActionDelegate.java
deleted file mode 100644
index b63a4b3d510..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CompoundCommandActionDelegate.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import org.eclipse.emf.common.command.CompoundCommand;
-import org.eclipse.emf.edit.command.CommandActionDelegate;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * An EMF Compound Command with support for Images, Tooltip text and description
- * (From CommandActionDelegate)
- * The first sub-command should be a CommandActionDelegate
- *
- * @author Camille Letavernier
- */
-public class CompoundCommandActionDelegate extends CompoundCommand implements CommandActionDelegate {
-
- private Image image;
-
- /**
- * Sets the Image for this command
- *
- * @param image
- * The image to display on the command
- */
- public void setImage(Image image) {
- this.image = image;
- }
-
- public Object getImage() {
- if(image == null)
- return ((CommandActionDelegate)getCommandList().get(0)).getImage();
- else
- return image;
- }
-
- public String getText() {
- return ((CommandActionDelegate)getCommandList().get(0)).getText();
- }
-
- public String getToolTipText() {
- return ((CommandActionDelegate)getCommandList().get(0)).getToolTipText();
- }
-
- @Override
- public String getDescription() {
- return ((CommandActionDelegate)getCommandList().get(0)).getDescription();
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateResourceCommand.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateResourceCommand.java
deleted file mode 100644
index 1d5cd9ab49f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateResourceCommand.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import java.io.IOException;
-import java.util.Collections;
-
-import org.eclipse.emf.common.command.AbstractCommand;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.edit.command.CommandActionDelegate;
-import org.eclipse.papyrus.properties.customization.Activator;
-
-/**
- * A command to create an EMF resource
- *
- * @author Camille Letavernier
- */
-public class CreateResourceCommand extends AbstractCommand implements CommandActionDelegate {
-
- private EObject object;
-
- private URI uri;
-
- private ResourceSet resourceSet;
-
- private Resource resource;
-
- /**
- *
- * Constructor. A Command to create an EMF Resource. The command can be undone.
- *
- * @param object
- * The EObject to persist in the resource
- * @param uri
- * The location of the resource
- * @param resourceSet
- * The resourceSet in which the resource should be created
- */
- public CreateResourceCommand(EObject object, URI uri, ResourceSet resourceSet) {
- super("Create new " + object.eClass().getName(), "Creates a new " + object.eClass().getName()); //$NON-NLS-1$ //$NON-NLS-2$
- this.object = object;
- this.uri = uri;
- this.resourceSet = resourceSet;
- }
-
- public void execute() {
- resource = resourceSet.createResource(uri);
- resource.getContents().add(object);
- }
-
- public void redo() {
- execute();
- }
-
- @Override
- public void undo() {
- try {
- resource.delete(Collections.EMPTY_MAP);
- } catch (IOException ex) {
- Activator.log.error(ex);
- }
- }
-
- public Object getImage() {
- return null;
- }
-
- public String getText() {
- return getLabel();
- }
-
- public String getToolTipText() {
- return getDescription();
- }
-
- @Override
- protected boolean prepare() {
- return true;
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateSectionAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateSectionAction.java
deleted file mode 100644
index 108144cb0f7..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateSectionAction.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.command.CompoundCommand;
-import org.eclipse.emf.common.command.UnexecutableCommand;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.edit.command.AddCommand;
-import org.eclipse.emf.edit.command.CommandParameter;
-import org.eclipse.emf.edit.command.CreateChildCommand;
-import org.eclipse.emf.edit.command.SetCommand;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.contexts.ContextsFactory;
-import org.eclipse.papyrus.properties.contexts.Section;
-import org.eclipse.papyrus.properties.contexts.View;
-import org.eclipse.papyrus.properties.runtime.ConfigurationManager;
-import org.eclipse.papyrus.properties.ui.CompositeWidget;
-import org.eclipse.papyrus.properties.ui.Layout;
-import org.eclipse.papyrus.properties.ui.UiFactory;
-import org.eclipse.papyrus.properties.ui.ValueAttribute;
-
-/**
- * A Command for create a {@link Section} in the given View.
- *
- * In the physical EMF Model, the section is owned by a Tab, and referenced
- * by one or more views. However, in the logical model used by the Customization
- * editor (Which is slightly different to be simpler), the view directly owns the
- * section, and the section refers to its Tab.
- *
- * This command creates the section in the default Tab, and creates a reference
- * from the view to the section.
- *
- * It also instantiates the XWT Resource associated to this sections, and fills
- * it with a default Composite widget and Layout.
- *
- * The command can be undone in a single operation.
- *
- * @author Camille Letavernier
- *
- */
-public class CreateSectionAction extends StaticSelectionCommandAction {
-
- private IStructuredSelection selection;
-
- private String sectionName, sectionFile;
-
- /**
- * Constructor.
- *
- * Creates a new CreateSectionAction, with the given name and file.
- * The sectionFile is a relative path from the section's URI, which is
- * the same as it's owning view.
- *
- * @param selection
- * The current selection
- * @param sectionName
- * The new section's name
- * @param sectionFile
- * The path to the section's XWT resource
- */
- public CreateSectionAction(ISelection selection, String sectionName, String sectionFile) {
- this.sectionName = sectionName;
- this.sectionFile = sectionFile;
-
- if(selection instanceof IStructuredSelection) {
- this.selection = (IStructuredSelection)selection;
- configureAction(selection);
- }
- }
-
- @Override
- protected Command createActionCommand(EditingDomain editingDomain, Collection<?> collection) {
- Object selectedElement = selection.getFirstElement();
- View view = null;
- if(selectedElement instanceof View) {
- view = (View)selectedElement;
- }
-
- if(view == null) {
- return UnexecutableCommand.INSTANCE;
- }
-
- EObject tab = null;
-
- for(Section section : view.getSections()) {
- if(section.getTab() != null) {
- tab = section.getTab();
- break;
- }
- }
-
- if(tab == null) {
- Context context = (Context)view.eContainer();
- if(context.getTabs().size() > 0)
- tab = context.getTabs().get(0);
- }
-
- if(tab == null) {
- return UnexecutableCommand.INSTANCE;
- }
-
- Section newSection = ContextsFactory.eINSTANCE.createSection();
- newSection.setName(getSectionName());
-
- CompositeWidget newWidget = createWidget();
-
- CommandParameter tabParameter = new CommandParameter(tab, tab.eClass().getEStructuralFeature("sections"), newSection); //$NON-NLS-1$
-
- Command createInTab = CreateChildCommand.create(editingDomain, tab, tabParameter, collection);
- Command addInView = AddCommand.create(editingDomain, view, view.eClass().getEStructuralFeature("sections"), newSection); //$NON-NLS-1$
- Command createWidgetResource = getCreateResourceCommand(newWidget, newSection, view.eResource());
- Command setWidget = getSetWidgetCommand(newWidget, newSection);
-
-
- CompoundCommand createActionCommand = new CompoundCommandActionDelegate();
- createActionCommand.append(createInTab);
- createActionCommand.append(addInView);
- createActionCommand.append(createWidgetResource);
- createActionCommand.append(setWidget);
-
- return createActionCommand;
- }
-
- private CompositeWidget createWidget() {
- CompositeWidget newWidget = UiFactory.eINSTANCE.createCompositeWidget();
-
-
- for(Map.Entry<String, String> entry : getNamespaces().entrySet()) {
- ValueAttribute attribute = UiFactory.eINSTANCE.createValueAttribute();
- attribute.setName(entry.getKey());
- attribute.setValue(entry.getValue());
- newWidget.getAttributes().add(attribute);
- }
-
- newWidget.setWidgetType(ConfigurationManager.instance.getDefaultCompositeType());
-
- Layout layout = UiFactory.eINSTANCE.createLayout();
- layout.setLayoutType(ConfigurationManager.instance.getDefaultLayoutType());
- newWidget.setLayout(layout);
-
- return newWidget;
- }
-
- private Map<String, String> getNamespaces() {
- Map<String, String> namespaces = new HashMap<String, String>();
- namespaces.put("xmlns", "http://www.eclipse.org/xwt/presentation"); //$NON-NLS-1$ //$NON-NLS-2$
- namespaces.put("xmlns:x", "http://www.eclipse.org/xwt"); //$NON-NLS-1$ //$NON-NLS-2$
- namespaces.put("xmlns:ppe", "clr-namespace:org.eclipse.papyrus.properties.widgets"); //$NON-NLS-1$ //$NON-NLS-2$
- namespaces.put("xmlns:ppel", "clr-namespace:org.eclipse.papyrus.properties.widgets.layout"); //$NON-NLS-1$ //$NON-NLS-2$
- return namespaces;
- }
-
- private Command getCreateResourceCommand(CompositeWidget newWidget, Section section, Resource baseResource) {
- URI widgetURI;
- if(section.getSectionFile() == null || section.getSectionFile().equals("")) { //$NON-NLS-1$
- section.setSectionFile(getSectionFile());
- }
-
- widgetURI = URI.createURI(section.getSectionFile());
- widgetURI = widgetURI.resolve(baseResource.getURI());
- Command createWidget = new CreateResourceCommand(newWidget, widgetURI, baseResource.getResourceSet());
-
- return createWidget;
- }
-
- private Command getSetWidgetCommand(CompositeWidget newWidget, Section section) {
- if(section.getWidget() == null)
- return SetCommand.create(editingDomain, section, section.eClass().getEStructuralFeature("widget"), newWidget); //$NON-NLS-1$
- else
- return UnexecutableCommand.INSTANCE;
- }
-
- private String getSectionFile() {
- return sectionFile;
- }
-
- private String getSectionName() {
- return sectionName;
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateSectionWidgetAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateSectionWidgetAction.java
deleted file mode 100644
index 5858d5f1245..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/CreateSectionWidgetAction.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.command.UnexecutableCommand;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.edit.command.SetCommand;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.properties.contexts.Section;
-import org.eclipse.papyrus.properties.runtime.ConfigurationManager;
-import org.eclipse.papyrus.properties.ui.CompositeWidget;
-import org.eclipse.papyrus.properties.ui.Layout;
-import org.eclipse.papyrus.properties.ui.UiFactory;
-import org.eclipse.papyrus.properties.ui.ValueAttribute;
-import org.eclipse.papyrus.widgets.Activator;
-
-/**
- * An Action to create a section's XWT Resource, with a default Composite
- * and layout.
- *
- * @author Camille Letavernier
- */
-public class CreateSectionWidgetAction extends StaticSelectionCommandAction {
-
- private Section section;
-
- /**
- * Constructor.
- *
- * @param selection
- * The current selection. The first element should be a Section.
- */
- public CreateSectionWidgetAction(ISelection selection) {
- if(selection instanceof IStructuredSelection) {
- IStructuredSelection sSelection = (IStructuredSelection)selection;
-
- Object selectedElement = sSelection.getFirstElement();
-
- if(selectedElement instanceof Section) {
- section = (Section)selectedElement;
- }
- }
- configureAction(selection);
- }
-
- @Override
- protected Command createActionCommand(EditingDomain editingDomain, Collection<?> collection) {
- if(section == null) {
- return UnexecutableCommand.INSTANCE;
- }
-
- CompositeWidget newWidget = createWidget();
-
- CompoundCommandActionDelegate createActionCommand = new CompoundCommandActionDelegate();
- createActionCommand.setImage(Activator.getDefault().getImage("org.eclipse.papyrus.properties.model.edit", "icons/full/obj16/CompositeWidget.gif")); //$NON-NLS-1$//$NON-NLS-2$
- createActionCommand.append(getCreateResourceCommand(newWidget));
- createActionCommand.append(getSetWidgetCommand(newWidget));
-
- return createActionCommand;
- }
-
- private CompositeWidget createWidget() {
- CompositeWidget newWidget = UiFactory.eINSTANCE.createCompositeWidget();
-
-
- for(Map.Entry<String, String> entry : getNamespaces().entrySet()) {
- ValueAttribute attribute = UiFactory.eINSTANCE.createValueAttribute();
- attribute.setName(entry.getKey());
- attribute.setValue(entry.getValue());
- newWidget.getAttributes().add(attribute);
- }
-
- newWidget.setWidgetType(ConfigurationManager.instance.getDefaultCompositeType());
-
- Layout layout = UiFactory.eINSTANCE.createLayout();
- layout.setLayoutType(ConfigurationManager.instance.getDefaultLayoutType());
- newWidget.setLayout(layout);
-
- return newWidget;
- }
-
- private Map<String, String> getNamespaces() {
- Map<String, String> namespaces = new HashMap<String, String>();
- namespaces.put("xmlns", "http://www.eclipse.org/xwt/presentation"); //$NON-NLS-1$ //$NON-NLS-2$
- namespaces.put("xmlns:x", "http://www.eclipse.org/xwt"); //$NON-NLS-1$ //$NON-NLS-2$
- namespaces.put("xmlns:ppe", "clr-namespace:org.eclipse.papyrus.properties.widgets"); //$NON-NLS-1$ //$NON-NLS-2$
- namespaces.put("xmlns:ppel", "clr-namespace:org.eclipse.papyrus.properties.widgets.layout"); //$NON-NLS-1$ //$NON-NLS-2$
- return namespaces;
- }
-
- private Command getCreateResourceCommand(CompositeWidget newWidget) {
- URI widgetURI;
- if(section.getSectionFile() == null || section.getSectionFile().equals("")) { //$NON-NLS-1$
- section.setSectionFile(section.getName() + ".xwt"); //$NON-NLS-1$
- }
-
- widgetURI = URI.createURI(section.getSectionFile());
- widgetURI = widgetURI.resolve(section.eResource().getURI());
- Command createWidget = new CreateResourceCommand(newWidget, widgetURI, section.eResource().getResourceSet());
-
- return createWidget;
- }
-
- private Command getSetWidgetCommand(CompositeWidget newWidget) {
- if(section.getWidget() == null)
- return SetCommand.create(editingDomain, section, section.eClass().getEStructuralFeature("widget"), newWidget); //$NON-NLS-1$
- else
- return UnexecutableCommand.INSTANCE;
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoCopyAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoCopyAction.java
deleted file mode 100644
index 13f23340dab..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoCopyAction.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.CopyAction;
-import org.eclipse.papyrus.properties.customization.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Copy" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoCopyAction extends CopyAction {
-
- /**
- * Constructor.
- */
- public MoDiscoCopyAction() {
- }
-
- /**
- * Constructor.
- *
- * @param domain
- * The Editing domain on which the action will be executed
- */
- public MoDiscoCopyAction(EditingDomain domain) {
- super(domain);
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoCutAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoCutAction.java
deleted file mode 100644
index b99cc020b10..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoCutAction.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.CutAction;
-import org.eclipse.papyrus.properties.customization.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Cut" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoCutAction extends CutAction {
-
- /**
- * Constructor.
- */
- public MoDiscoCutAction() {
- }
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * The Editing domain on which the command will be executed
- */
- public MoDiscoCutAction(EditingDomain domain) {
- super(domain);
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoDeleteAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoDeleteAction.java
deleted file mode 100644
index 1e3b95e6124..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoDeleteAction.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.DeleteAction;
-import org.eclipse.papyrus.properties.customization.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Delete" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoDeleteAction extends DeleteAction {
-
- /**
- * Constructor.
- *
- * @param domain
- * The editing domain on which the action will be called
- * @param removeAllReferences
- * If true, all references to the deleted object will be removed.
- * This causes the whole resourceSet to be loaded, which may
- * lead to performance issues.
- */
- public MoDiscoDeleteAction(EditingDomain domain, boolean removeAllReferences) {
- super(domain, removeAllReferences);
- }
-
- /**
- * Constructor. All references to the deleted object will be removed.
- *
- * @param domain
- * The editing domain on which the action will be called
- */
- public MoDiscoDeleteAction(EditingDomain domain) {
- super(domain);
- }
-
- /**
- *
- * Constructor.
- *
- * @param removeAllReferences
- * If true, all references to the deleted object will be removed.
- * This causes the whole resourceSet to be loaded, which may
- * lead to performance issues.
- */
- public MoDiscoDeleteAction(boolean removeAllReferences) {
- super(removeAllReferences);
- }
-
- /**
- * Constructor. All references to the deleted object will be removed.
- */
- public MoDiscoDeleteAction() {
- super();
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoPasteAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoPasteAction.java
deleted file mode 100644
index 54f9fc63cc5..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/MoDiscoPasteAction.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.ui.action.PasteAction;
-import org.eclipse.papyrus.properties.customization.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Paste" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class MoDiscoPasteAction extends PasteAction {
-
- /**
- * Constructor.
- */
- public MoDiscoPasteAction() {
- }
-
- /**
- *
- * Constructor.
- *
- * @param domain
- * The editing domain on which the command will be called
- */
- public MoDiscoPasteAction(EditingDomain domain) {
- super(domain);
- }
-
- @Override
- public Command createCommand(Collection<?> selection) {
- Collection<?> newSelection = ActionUtil.getAdaptedSelection(selection);
- return super.createCommand(newSelection);
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ToggleDataContextAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ToggleDataContextAction.java
deleted file mode 100644
index 00088f4ed67..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ToggleDataContextAction.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.commands.State;
-import org.eclipse.papyrus.properties.customization.editor.UIEditor;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * An action to toggle the display of the DataContextElements in the UIEditor
- *
- * @author Camille Letavernier
- *
- */
-public class ToggleDataContextAction extends AbstractHandler {
-
- /**
- * Indicates if the DataContextElements should be displayed
- */
- public static boolean showDataContext = false;
-
- public Object execute(ExecutionEvent event) throws ExecutionException {
- showDataContext = !showDataContext;
- IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
- if(editor instanceof UIEditor) {
- UIEditor uiEditor = (UIEditor)editor;
- uiEditor.getViewer().refresh();
- }
-
- State state = event.getCommand().getState("org.eclipse.papyrus.properties.customization.displayContextState"); //$NON-NLS-1$
- state.setValue(showDataContext);
- return null;
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ToggleDataContextState.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ToggleDataContextState.java
deleted file mode 100644
index 71e6f2df02c..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ToggleDataContextState.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import org.eclipse.core.commands.State;
-
-
-public class ToggleDataContextState extends State {
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/TogglePreviewAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/TogglePreviewAction.java
deleted file mode 100644
index 9682f70932e..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/TogglePreviewAction.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.papyrus.properties.customization.Activator;
-import org.eclipse.ui.IViewReference;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.part.ViewPart;
-
-/**
- * An action to toggle the UIEditor Preview
- *
- * @author Camille Letavernier
- */
-public class TogglePreviewAction extends AbstractHandler {
-
- public Object execute(ExecutionEvent event) throws ExecutionException {
-
- //System.out.println("Toggle");
-
- event.getCommand().getState("org.eclipse.papyrus.properties.customization.previewstate"); //$NON-NLS-1$
-
- IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
- if(activePage == null) {
- return null;
- }
-
- //System.out.println("ActivePage is " + activePage);
-
- IViewReference viewReference = null;
-
- for(IViewReference reference : activePage.getViewReferences()) {
- if(reference.getId().equals(Activator.PREVIEW_ID)) {
- viewReference = reference;
- }
- }
-
- try {
- if(viewReference == null) {
- //System.out.println("Opening view");
- activePage.showView(Activator.PREVIEW_ID);
- } else {
- //System.out.println("Closing view");
- activePage.hideView((ViewPart)viewReference.getPart(false));
- }
- } catch (PartInitException ex) {
- Activator.log.error(ex);
- }
-
- return null;
- }
-
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/TogglePreviewState.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/TogglePreviewState.java
deleted file mode 100644
index b05e707de7f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/TogglePreviewState.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import org.eclipse.core.commands.State;
-import org.eclipse.papyrus.properties.customization.editor.preview.Preview;
-import org.eclipse.ui.IPartListener;
-import org.eclipse.ui.IWindowListener;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.IWorkbenchWindow;
-
-/**
- * A State to determine if the Preview view is opened in the current perspective
- * The State should listen on the workbench an update itself when the perspective
- * changes, or when the preview is opened or closed
- *
- * @FIXME : the state is not correctly retrieved
- * @author Camille Letavernier
- */
-public class TogglePreviewState extends State implements IWindowListener, IPartListener {
-
- private boolean isPreviewOpen;
-
- public TogglePreviewState() {
- // System.out.println("Building ToggleState");
- //
- // IWorkbench workbench = PlatformUI.getWorkbench();
- //
- // workbench.addWindowListener(this);
- // for(IWorkbenchWindow window : workbench.getWorkbenchWindows()) {
- // System.out.println("Listening on " + window);
- // window.getPartService().addPartListener(this);
- // }
- // refreshState();
- }
-
- private void refreshState() {
- // isPreviewOpen = false;
- // System.out.println("Refresh state");
- //
- // IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- // if(window != null) {
- // IWorkbenchPage page = window.getActivePage();
- //
- // if(page != null) {
- // for(IViewReference reference : page.getViewReferences()) {
- // if(reference.getId().equals(Activator.PREVIEW_ID)) {
- // isPreviewOpen = true;
- // break;
- // }
- // }
- // }
- // }
- //
- // System.out.println("IsOpen : " + isPreviewOpen);
- //
- // setValue(isPreviewOpen);
- }
-
- @Override
- public Object getValue() {
- return isPreviewOpen;
- }
-
- //IWindowListener
-
- public void windowOpened(IWorkbenchWindow window) {
- //System.out.println("Listening on " + window);
- window.getPartService().addPartListener(this);
- refreshState();
- }
-
- public void windowClosed(IWorkbenchWindow window) {
- //window.removePageListener(this);
- window.getPartService().removePartListener(this);
- }
-
- //IPageListener
- //
- // public void pageOpened(IWorkbenchPage page) {
- // page.addPartListener(this);
- // }
- //
- // public void pageClosed(IWorkbenchPage page) {
- // page.removePartListener(this);
- // }
-
- //IPartListener
-
- public void partOpened(IWorkbenchPart part) {
- if(part instanceof Preview) {
- //System.out.println("Closing preview");
- refreshState();
- }
- }
-
- public void partClosed(IWorkbenchPart part) {
- if(part instanceof Preview) {
- //System.out.println("Closing preview");
- refreshState();
- }
- }
-
- //Ignored methods
-
- public void partActivated(IWorkbenchPart part) {
- // System.out.println("Part activated");
- // refreshState();
- }
-
- public void partBroughtToTop(IWorkbenchPart part) {
- //Nothing
- }
-
- public void partDeactivated(IWorkbenchPart part) {
- // System.out.println("Part activated");
- // refreshState();
- }
-
- public void windowActivated(IWorkbenchWindow window) {
- //Nothing
- }
-
- public void windowDeactivated(IWorkbenchWindow window) {
- //Nothing
- }
-
- public void pageActivated(IWorkbenchPage page) {
- //Nothing
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ValidationAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ValidationAction.java
deleted file mode 100644
index 35f6f34084e..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/actions/ValidationAction.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.actions;
-
-import org.eclipse.emf.edit.ui.action.ValidateAction;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.properties.customization.util.ActionUtil;
-
-/**
- * An adapter for the EMF "Validate" Action, compatible with the
- * MoDisco customizable content provider.
- *
- * @author Camille Letavernier
- */
-public class ValidationAction extends ValidateAction {
-
- @Override
- public boolean updateSelection(IStructuredSelection selection) {
- return super.updateSelection((IStructuredSelection)ActionUtil.getAdaptedSelection(selection));
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/preview/Preview.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/preview/Preview.java
deleted file mode 100644
index b1c0d8bb57a..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/editor/preview/Preview.java
+++ /dev/null
@@ -1,491 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.editor.preview;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.net.URL;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.facet.infra.browser.uicore.internal.model.ITreeElement;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.papyrus.properties.contexts.Section;
-import org.eclipse.papyrus.properties.contexts.Tab;
-import org.eclipse.papyrus.properties.contexts.View;
-import org.eclipse.papyrus.properties.customization.Activator;
-import org.eclipse.papyrus.properties.customization.editor.UIEditor;
-import org.eclipse.papyrus.properties.customization.messages.Messages;
-import org.eclipse.papyrus.properties.runtime.DefaultDisplayEngine;
-import org.eclipse.papyrus.properties.runtime.DisplayEngine;
-import org.eclipse.papyrus.properties.widgets.layout.PropertiesLayout;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.CTabFolder;
-import org.eclipse.swt.custom.CTabItem;
-import org.eclipse.swt.custom.ScrolledComposite;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IPartListener;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.part.ViewPart;
-
-/**
- * The Preview section of the Customization editor.
- * Displays the given view in a Tab Folder.
- * The preview uses the same Display Engine as the Property view, which should lead
- * to the same results, with a few exceptions :
- * - The Tab Folder has an Horizontal layout for its tabs, while the property view has
- * a vertical layout
- * - The preview is read-only : all actions are disabled. This means that it is
- * not possible to preview dialogs, for example
- * - The Enum and References fields are empty
- * - Some buttons may be marked as disabled, but will be available at runtime (Or vice-versa)
- * - The dynamic sections are always displayed
- *
- * The preview can be disabled for performance issues
- *
- * @author Camille Letavernier
- */
-public class Preview extends ViewPart implements ISelectionChangedListener, IPartListener {
-
- private Composite parent;
-
- private ScrolledComposite scrolledParent;
-
- private CTabFolder contents;
-
- private DisplayEngine displayEngine;
-
- private String selectedTab;
-
- private boolean enabled = true;
-
- private View currentView;
-
- private Label previewTitle;
-
- private Label previewDisabled;
-
- private Set<UIEditor> currentEditors = new HashSet<UIEditor>();
-
- private IWorkbenchPage activePage;
-
- /**
- * Constructor.
- * Constructs a new Preview in a View. The preview will change depending
- * on the current active UIEditor.
- */
- public Preview() {
- }
-
- /**
- * Constructor.
- * Constructs a new Preview in an editor (Embedded preview)
- *
- * @param editor
- */
- public Preview(UIEditor editor) {
- this.currentEditors.add(editor);
- }
-
- /**
- * Creates the preview control in the given composite.
- *
- * @param container
- * The SWT Composite in which the preview should be displayed
- */
- @Override
- public void createPartControl(Composite container) {
- scrolledParent = new ScrolledComposite(container, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
- scrolledParent.getVerticalBar().setIncrement(10);
- scrolledParent.setBackground(new Color(scrolledParent.getDisplay(), 255, 255, 255));
- scrolledParent.setBackgroundMode(SWT.INHERIT_DEFAULT);
- scrolledParent.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- parent = new Composite(scrolledParent, SWT.NONE);
- parent.setLayout(new GridLayout(1, false));
-
- scrolledParent.setContent(parent);
-
- Composite controls = new Composite(parent, SWT.NONE);
- controls.setLayout(new GridLayout(5, false));
- controls.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
-
- GridData data;
-
- // Label preview = new Label(controls, SWT.NONE);
- // preview.setImage(Activator.getDefault().getImage("/icons/preview.png")); //$NON-NLS-1$
- // data = new GridData(SWT.CENTER, SWT.BEGINNING, false, false);
- // preview.setLayoutData(data);
-
- // Label previewText = new Label(controls, SWT.NONE);
- // previewText.setText(Messages.Preview_preview);
- // data = new GridData(SWT.CENTER, SWT.BEGINNING, false, false);
- // previewText.setLayoutData(data);
-
- previewTitle = new Label(controls, SWT.NONE);
- data = new GridData(SWT.CENTER, SWT.BEGINNING, false, false);
- previewTitle.setLayoutData(data);
-
- // final Button togglePreview = new Button(controls, SWT.CHECK);
- // togglePreview.setText(Messages.Preview_disablePreview);
- // togglePreview.addSelectionListener(new SelectionListener() {
- //
- // public void widgetSelected(SelectionEvent e) {
- // enabled = !enabled;
- // displayView();
- // }
- //
- // public void widgetDefaultSelected(SelectionEvent e) {
- // //Nothing
- // }
- //
- // });
-
- previewDisabled = new Label(parent, SWT.NONE);
- previewDisabled.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
-
- contents = new CTabFolder(parent, SWT.VERTICAL);
-
- //If currentEditors is empty, the preview is displayed in a view and
- //should listen to the workbench to know about the activeEditor
- if(currentEditors.isEmpty()) {
-
- IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- if(window != null) {
- activePage = window.getActivePage();
- if(activePage != null) {
- IEditorPart editorPart = activePage.getActiveEditor();
- if(editorPart instanceof UIEditor) {
- setEditor((UIEditor)editorPart);
- }
-
- activePage.addPartListener(this);
- } else {
- Activator.log.warn("There is no active page"); //$NON-NLS-1$
- }
- } else {
- Activator.log.warn("There is no current window"); //$NON-NLS-1$
- }
- }
-
- displayView();
- }
-
- /**
- * Sets the current Editor
- *
- * @param editor
- */
- public void setEditor(UIEditor editor) {
- editor.addPreview(this);
- currentEditors.add(editor);
- }
-
- private void refreshDisplay() {
- Point size = parent.computeSize(SWT.DEFAULT, SWT.DEFAULT);
- if(scrolledParent.getSize().x > 0) {
- size.x = scrolledParent.getSize().x - 30;
- }
- parent.setSize(size);
- }
-
- /**
- * Saves the section's XWT Resource in a temporary file, which
- * can then be interpreted by XWT. Returns the URL to this file.
- *
- * @param section
- * The section for which we want to persist the XWT Resource
- * @return
- * The URL to the XWT Resource
- */
- private URL saveTmp(Section section) {
- if(section.getSectionFile() == null || section.getWidget() == null) {
- return null;
- }
-
- IPath path = Activator.getDefault().getPreferencesPath();
- path = path.append("/preview/"); //$NON-NLS-1$
- try {
- File previewDirectory = path.toFile();
- if(!previewDirectory.exists()) {
- previewDirectory.mkdirs();
- }
-
- File xwtFile = path.append(section.getSectionFile()).toFile();
-
- if(!xwtFile.exists()) {
- xwtFile.getParentFile().mkdirs();
- xwtFile.createNewFile();
- }
-
- OutputStream os = new FileOutputStream(xwtFile);
- section.getWidget().eResource().save(os, Collections.EMPTY_MAP);
- return xwtFile.toURI().toURL();
- } catch (IOException ex) {
- Activator.log.error(ex);
- }
- return null;
- }
-
- /**
- * Sets the view to display in the preview
- *
- * @param view
- * The view to display
- */
- public void setView(View view) {
- this.currentView = view;
- if(view != null) {
- if(view.getName() == null) {
- previewTitle.setText(Messages.Preview_Unnamed);
- } else {
- previewTitle.setText(view.getName());
- }
- } else {
- previewTitle.setText(""); //$NON-NLS-1$
- }
-
- previewTitle.getParent().layout();
- displayView();
- }
-
- private void setPreviewError(String message) {
- if(message != null) {
- previewDisabled.setText(message);
- previewDisabled.setVisible(true);
- } else {
- previewDisabled.setVisible(false);
- }
- refreshDisplay();
- }
-
- /**
- * Display the current view. When the view to display has changed,
- * you should call {@link #setView(View)} instead.
- */
- public void displayView() {
- contents.dispose();
-
- if(!enabled) {
- setPreviewError(Messages.Preview_previewIsDisabled);
- return;
- }
-
- if(currentView == null) {
- setPreviewError(Messages.Preview_noSelectedView);
- return;
- }
-
- setPreviewError(null);
-
- displayEngine = new DefaultDisplayEngine();
- Map<Tab, Composite> tabs = new HashMap<Tab, Composite>();
-
- contents = new CTabFolder(parent, SWT.NONE);
- contents.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- boolean activeTab = false;
-
- for(Tab tab : getTabs(currentView)) {
- CTabItem tabItem = new CTabItem(contents, SWT.NONE);
- tabItem.setText(tab.getLabel());
-
- if(tab.getLabel().equals(selectedTab) || !activeTab) {
- contents.setSelection(tabItem);
- activeTab = true;
- }
-
- Composite tabControl = new Composite(contents, SWT.NONE);
- tabControl.setLayout(new PropertiesLayout());
-
- tabItem.setControl(tabControl);
-
- tabs.put(tab, tabControl);
- tabControl.setEnabled(false);
-
- contents.addListener(SWT.Selection, new Listener() {
-
- public void handleEvent(Event event) {
- selectedTab = contents.getSelection().getText();
- }
-
- });
- }
-
- for(Section section : currentView.getSections()) {
- Composite tabControl = tabs.get(section.getTab());
- Composite pView = new Composite(tabControl, SWT.NONE);
- pView.setLayout(new GridLayout(1, false));
- URL sectionURL = saveTmp(section);
- if(sectionURL != null) {
- displayEngine.createSection(pView, section, sectionURL, null);
- }
- }
-
- refreshDisplay();
- }
-
- private Collection<Tab> getTabs(View view) {
-
- List<Tab> tabs = new LinkedList<Tab>();
-
- for(Section section : view.getSections()) {
- Tab tab = section.getTab();
- if(tab != null && !tabs.contains(tab)) {
- tabs.add(tab);
- }
- }
-
- Collections.sort(tabs, new Comparator<Tab>() {
-
- public int compare(Tab tab1, Tab tab2) {
- Tab afterTab1 = tab1.getAfterTab();
- Tab afterTab2 = tab2.getAfterTab();
-
- if(isAfter(tab1, afterTab2, new HashSet<Tab>())) {
- return -1;
- }
-
- if(isAfter(tab2, afterTab1, new HashSet<Tab>())) {
- return 1;
- }
-
- return 0;
- }
-
- });
-
- return tabs;
- }
-
- private boolean isAfter(Tab tab1, Tab tab2, Set<Tab> checkedTabs) {
- if(checkedTabs.contains(tab2)) {
- Activator.log.warn("Loop in the afterTabs"); //$NON-NLS-1$
- return false;
- }
-
- checkedTabs.add(tab2);
-
- if(tab2 == null) {
- return false;
- }
-
- if(tab1.equals(tab2)) {
- return true;
- }
-
- return isAfter(tab1, tab2.getAfterTab(), checkedTabs);
- }
-
- /**
- * The preview listens on
- *
- * @param event
- * The SelectionChangedEvent
- */
- public void selectionChanged(SelectionChangedEvent event) {
- IStructuredSelection selection = (IStructuredSelection)event.getSelection();
- if(selection.size() == 1) {
- ITreeElement child = null;
- ITreeElement element = (ITreeElement)selection.getFirstElement();
-
- do {
-
- if(element instanceof IAdaptable) {
- EObject adapter = (EObject)((IAdaptable)element).getAdapter(EObject.class);
- if(adapter instanceof View) {
- setView((View)adapter);
- return;
- }
- }
-
- child = element;
- element = element.getTreeParent();
- } while(child != element && element != null);
- }
- }
-
- /**
- * Activate or deactivate the preview
- *
- * @param enabled
- * If true, the preview will be activated. Otherwise, it will
- * be disabled
- */
- public void setEnabled(boolean enabled) {
- this.enabled = enabled;
- }
-
- @Override
- public void setFocus() {
- parent.setFocus();
- }
-
- public void partActivated(IWorkbenchPart part) {
- if(part instanceof UIEditor) {
- setEditor((UIEditor)part);
- }
- }
-
- public void partBroughtToTop(IWorkbenchPart part) {
- //Nothing
- }
-
- public void partClosed(IWorkbenchPart part) {
- //Nothing
- }
-
- public void partDeactivated(IWorkbenchPart part) {
- //Nothing
- }
-
- public void partOpened(IWorkbenchPart part) {
- //Nothing
- }
-
- @Override
- public void dispose() {
- for(UIEditor editor : currentEditors) {
- editor.removePreview(this);
- }
- if(activePage != null) {
- activePage.removePartListener(this);
- }
- super.dispose();
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/messages/Messages.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/messages/Messages.java
deleted file mode 100644
index a4ff17bcbbf..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/messages/Messages.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.messages;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
-
- private static final String BUNDLE_NAME = "org.eclipse.papyrus.properties.customization.messages.messages"; //$NON-NLS-1$
-
- public static String CopyContextAction_Copying;
-
- public static String CopyContextAction_InitializingTheCopyOf;
-
- public static String CopyContextAction_ThisMayTakeSomeTime;
-
- public static String CopyContextAction_To;
-
- public static String CustomizationDialog_cannotDeletePluginContext;
-
- public static String CustomizationDialog_configurationName;
-
- public static String CustomizationDialog_configurationNameNotEmpty;
-
- public static String CustomizationDialog_configurationWithSameNameExists;
-
- public static String CustomizationDialog_copy;
-
- public static String CustomizationDialog_copyOf;
-
- public static String CustomizationDialog_createNewCopyByCopy;
-
- public static String CustomizationDialog_customization;
-
- public static String CustomizationDialog_delete;
-
- public static String CustomizationDialog_deleteContext;
-
- public static String CustomizationDialog_deleteContextConfirmation1;
-
- public static String CustomizationDialog_deleteContextConfirmation2;
-
- public static String CustomizationDialog_edit;
-
- public static String CustomizationDialog_editSelectedContext;
-
- public static String CustomizationDialog_enterConfigurationName;
-
- public static String CustomizationDialog_plugin;
-
- public static String CustomizationDialog_removeSelectedContext;
-
- public static String CustomizationDialog_selectContextToEdit;
-
- public static String CustomizationPreferencePage_AskForConfirmation;
-
- public static String CustomizationPreferencePage_OpenCustomizationPerspective;
-
- public static String CustomizationPreferencePage_PropertyViewCustomizationPreferences;
-
- public static String InputDialog_enterConfigurationName;
-
- public static String Preview_disablePreview;
-
- public static String Preview_noSelectedView;
-
- public static String Preview_preview;
-
- public static String Preview_previewIsDisabled;
-
- public static String Preview_Unnamed;
-
- public static String UIEditor_ChangePerspective;
-
- public static String UIEditor_ChangePerspectiveMessage;
-
- public static String UIEditor_FilterViews;
-
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/messages/messages.properties b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/messages/messages.properties
deleted file mode 100644
index 1900ca64f6e..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/messages/messages.properties
+++ /dev/null
@@ -1,34 +0,0 @@
-CopyContextAction_Copying=Copying
-CopyContextAction_InitializingTheCopyOf=Initializing the copy of
-CopyContextAction_ThisMayTakeSomeTime=. This may take some time
-CopyContextAction_To=\ to
-CustomizationDialog_cannotDeletePluginContext=Read-only contexts cannot be deleted
-CustomizationDialog_configurationName=Configuration name
-CustomizationDialog_configurationNameNotEmpty=The name of the configuration shouldn't be empty
-CustomizationDialog_configurationWithSameNameExists=A configuration with the same name already exists
-CustomizationDialog_copy=Copy
-CustomizationDialog_copyOf=Copy of
-CustomizationDialog_createNewCopyByCopy=Creates a new Context by copying the selected Context
-CustomizationDialog_customization=Customization
-CustomizationDialog_delete=Delete
-CustomizationDialog_deleteContext=Delete context ?
-CustomizationDialog_deleteContextConfirmation1=Are you sure you want to delete the Property View context
-CustomizationDialog_deleteContextConfirmation2=\ ? This choice is irreversible. If you simply want to deactivate this context, you can do so in Preferences > Papyrus > Property views
-CustomizationDialog_edit=Edit
-CustomizationDialog_editSelectedContext=Edits the selected Context. This option is only available for writeable Contexts
-CustomizationDialog_enterConfigurationName=Enter the new configuration name
-CustomizationDialog_plugin=\ (Read-only)
-CustomizationDialog_removeSelectedContext=Removes the selected Context. This option is only available for writeable Contexts
-CustomizationDialog_selectContextToEdit=Select a context to edit. Read-only contexts should be copied before they can be edited.
-CustomizationPreferencePage_AskForConfirmation=Ask for confirmation
-CustomizationPreferencePage_OpenCustomizationPerspective=Open customization perspective
-CustomizationPreferencePage_PropertyViewCustomizationPreferences=Property view customization preferences
-InputDialog_enterConfigurationName=Enter the new configuration's name :
-Preview_disablePreview=Disable preview
-Preview_noSelectedView=There is no selected view to display
-Preview_preview=Preview
-Preview_previewIsDisabled=Preview is disabled
-Preview_Unnamed=<<Unnamed>>
-UIEditor_ChangePerspective=Change perspective ?
-UIEditor_ChangePerspectiveMessage=This editor is associated to the Customization perspective. Do you want to open this perspective now ?
-UIEditor_FilterViews=Filter views :
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/CustomizationModelElement.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/CustomizationModelElement.java
deleted file mode 100644
index ac43094dde0..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/CustomizationModelElement.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.modelelement;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.databinding.observable.IObservable;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EClassifier;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.papyrus.properties.contexts.ContextsPackage;
-import org.eclipse.papyrus.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.properties.contexts.Section;
-import org.eclipse.papyrus.properties.customization.providers.ConstraintDescriptorContentProvider;
-import org.eclipse.papyrus.properties.customization.providers.ContextLabelProvider;
-import org.eclipse.papyrus.properties.customization.providers.DataContextElementContentProvider;
-import org.eclipse.papyrus.properties.customization.providers.DependencyContentProvider;
-import org.eclipse.papyrus.properties.customization.providers.EnvironmentContentProvider;
-import org.eclipse.papyrus.properties.customization.providers.PropertyContentProvider;
-import org.eclipse.papyrus.properties.customization.providers.TabContentProvider;
-import org.eclipse.papyrus.properties.environment.EnvironmentPackage;
-import org.eclipse.papyrus.properties.modelelement.AbstractModelElement;
-import org.eclipse.papyrus.properties.modelelement.EMFModelElement;
-import org.eclipse.papyrus.properties.util.EMFHelper;
-import org.eclipse.papyrus.widgets.creation.ReferenceValueFactory;
-import org.eclipse.papyrus.widgets.providers.EmptyContentProvider;
-import org.eclipse.papyrus.widgets.providers.IStaticContentProvider;
-
-/**
- * A {@link ModelElement} for customization specific properties
- * For performance issues, the default EMF Content Providers cannot
- * be used, as they usually load the whole ResourceSet, which is
- * really expensive in a Context Model : most of the resources
- * are XWT Files which are expensive to load, and never contain
- * any referenceable object. Hence, this ModelElement replaces
- * most EMF Content Providers by custom ones, much lighter. When such
- * a content provider cannot be found, the default EMF one is used.
- *
- * @author Camille Letavernier
- */
-public class CustomizationModelElement extends AbstractModelElement {
-
- private EMFModelElement delegate;
-
- private static Map<EClassifier, IStaticContentProvider> providers;
-
- /**
- * Constructs a new ModelElement.
- *
- * @param delegate
- * If this model element cannot handle a given property, it will
- * delegate the call to a standard EMF ModelElement
- */
- public CustomizationModelElement(EMFModelElement delegate) {
- this.delegate = delegate;
- if(providers == null) {
- initializeProviders();
- }
- }
-
- private static void initializeProviders() {
- providers = new HashMap<EClassifier, IStaticContentProvider>();
- providers.put(EnvironmentPackage.eINSTANCE.getCompositeWidgetType(), new EnvironmentContentProvider(EnvironmentPackage.eINSTANCE.getEnvironment_CompositeWidgetTypes()));
- providers.put(EnvironmentPackage.eINSTANCE.getPropertyEditorType(), new EnvironmentContentProvider(EnvironmentPackage.eINSTANCE.getEnvironment_PropertyEditorTypes()));
- providers.put(EnvironmentPackage.eINSTANCE.getStandardWidgetType(), new EnvironmentContentProvider(EnvironmentPackage.eINSTANCE.getEnvironment_WidgetTypes()));
- providers.put(EnvironmentPackage.eINSTANCE.getConstraintType(), new EnvironmentContentProvider(EnvironmentPackage.eINSTANCE.getEnvironment_ConstraintTypes()));
- providers.put(EnvironmentPackage.eINSTANCE.getLayoutType(), new EnvironmentContentProvider(EnvironmentPackage.eINSTANCE.getEnvironment_LayoutTypes()));
- providers.put(EnvironmentPackage.eINSTANCE.getModelElementFactoryDescriptor(), new EnvironmentContentProvider(EnvironmentPackage.eINSTANCE.getEnvironment_ModelElementFactories()));
- providers.put(ContextsPackage.eINSTANCE.getContext(), new DependencyContentProvider());
- }
-
- public IObservable getObservable(String propertyPath) {
- EStructuralFeature feature = delegate.getFeature(propertyPath);
- if(ContextsPackage.eINSTANCE.getSection_Name() == feature) {
- return new SectionNameObservableValue(delegate.getSource(), feature, delegate.getDomain());
- }
- return delegate.getObservable(propertyPath);
- }
-
- @Override
- public IStaticContentProvider getContentProvider(String propertyPath) {
- EStructuralFeature feature = delegate.getFeature(propertyPath);
- if(feature == null) {
- return EmptyContentProvider.instance;
- }
-
- EClassifier classifier = feature.getEType();
- if(providers.containsKey(classifier)) {
- return providers.get(classifier);
- } else if(classifier == ContextsPackage.eINSTANCE.getProperty()) {
- return new PropertyContentProvider(delegate.getSource());
- } else if(classifier == ContextsPackage.eINSTANCE.getTab()) {
- //Sections can only be moved to tabs from non-plugin contexts
- boolean editableTabsOnly = delegate.getSource() instanceof Section;
- return new TabContentProvider(delegate.getSource(), editableTabsOnly);
- } else if(classifier instanceof EClass && EMFHelper.isSubclass((EClass)classifier, ContextsPackage.eINSTANCE.getConstraintDescriptor())) {
- return new ConstraintDescriptorContentProvider(delegate.getSource(), (EClass)classifier);
- } else if(isDataContextElement(classifier)) {
- return new DataContextElementContentProvider((DataContextElement)delegate.getSource());
- } else {
- return delegate.getContentProvider(propertyPath);
- }
- }
-
- private boolean isDataContextElement(EClassifier classifier) {
- if(classifier == ContextsPackage.eINSTANCE.getDataContextElement()) {
- return true;
- }
-
- if(classifier instanceof EClass) {
- EClass eClass = (EClass)classifier;
- return eClass.getEAllSuperTypes().contains(ContextsPackage.eINSTANCE.getDataContextElement());
- }
-
- return false;
- }
-
- @Override
- public ILabelProvider getLabelProvider(String propertyPath) {
- return new ContextLabelProvider();
- }
-
- @Override
- public boolean isOrdered(String propertyPath) {
- return delegate.isOrdered(propertyPath);
- }
-
- @Override
- public boolean isUnique(String propertyPath) {
- return delegate.isUnique(propertyPath);
- }
-
- @Override
- public boolean isMandatory(String propertyPath) {
- return delegate.isMandatory(propertyPath);
- }
-
- @Override
- public boolean isEditable(String propertyPath) {
- if(delegate.getFeature(propertyPath) == ContextsPackage.eINSTANCE.getSection_SectionFile()) {
- return false;
- }
- return delegate.isEditable(propertyPath);
- }
-
- @Override
- public ReferenceValueFactory getValueFactory(String propertyPath) {
- return delegate.getValueFactory(propertyPath);
- }
-
- @Override
- public boolean forceRefresh(String localPropertyPath) {
- return false;
- }
-
- @Override
- public Object getDefaultValue(String propertyPath) {
- return delegate.getDefaultValue(propertyPath);
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/CustomizationModelElementFactory.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/CustomizationModelElementFactory.java
deleted file mode 100644
index 948d45951fc..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/CustomizationModelElementFactory.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.modelelement;
-
-import org.eclipse.papyrus.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.properties.modelelement.EMFModelElement;
-import org.eclipse.papyrus.properties.modelelement.EMFModelElementFactory;
-import org.eclipse.papyrus.properties.modelelement.ModelElement;
-
-/**
- * A Factory for build {@link CustomizationModelElement}s
- *
- * @author Camille Letavernier
- */
-public class CustomizationModelElementFactory extends EMFModelElementFactory {
-
- @Override
- public ModelElement createFromSource(Object sourceElement, DataContextElement context) {
- return new CustomizationModelElement((EMFModelElement)super.createFromSource(sourceElement, context));
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeModelElement.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeModelElement.java
deleted file mode 100644
index 4b493dc4f6f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeModelElement.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.modelelement;
-
-import java.util.Collection;
-import java.util.Iterator;
-
-import org.eclipse.core.databinding.observable.value.IObservableValue;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.EcorePackage;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.facet.infra.query.ModelQuery;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.papyrus.properties.modelelement.AbstractModelElement;
-import org.eclipse.papyrus.properties.providers.EMFObjectLabelProvider;
-import org.eclipse.papyrus.widgets.providers.AbstractStaticContentProvider;
-import org.eclipse.papyrus.widgets.providers.IStaticContentProvider;
-
-/**
- * XWT relies a lot on reflectivity, as it is based on an XML syntax.
- * However, in some cases, we like to have real attributes, to use them as
- * specific properties in the Property view.
- *
- * This ModelElement is a bridge between reflective properties and predefined
- * properties.
- *
- * It has been designed to use pre-defined {@link ConfigProperty} and {@link WidgetAttribute}, but can also be used for other EMF classes based on
- * a key/value pair.
- *
- * For example, some layouts need a "numColumns" property, but not all of them.
- * In fact, this property is specific to the "GridLayout" and
- * "PropertiesLayout". This property is defined via a key/value pair
- * (i.e. a {@link WidgetAttribute} which name is "numColumns" and the value is the
- * number of columns). However, in the property view, we want to display a field "Number
- * of Columns" when we select a GridLayout or PropertiesLayout.
- *
- * The same goes for Constraints : EMFInstanceOf needs a "nsUri" and
- * "className" {@link ConfigProperty}, while "UmlInstanceOf" needs a
- * "umlClassName" {@link ConfigProperty}.
- *
- *
- * @see GenericPropertyModelElementFactory
- * @see GenericAttributeModelElementFactory
- *
- * @author Camille Letavernier
- */
-public class GenericAttributeModelElement extends AbstractModelElement {
-
- private EObject source;
-
- private EditingDomain domain;
-
- private EStructuralFeature createIn;
-
- private EFactory createFrom;
-
- private EClass createAsValue;
-
- private EClass createAsReference;
-
- /**
- *
- * Constructs a new ModelElement for handling generic, reflective properties
- *
- * @param source
- * The EObject being edited
- * @param domain
- * The Editing domain on which the commands will be executed
- * @param createIn
- * The Feature in which the new value will be created
- * @param createFrom
- * The EFactory used to instantiate the value
- * @param createAsValue
- * The EClass used to instantiate the value, if the value is an instance of datatype
- * @param createAsReference
- * The EClass used to instantiate the value, if the value is a reference to an instance of EClass
- */
- public GenericAttributeModelElement(EObject source, EditingDomain domain, EStructuralFeature createIn, EFactory createFrom, EClass createAsValue, EClass createAsReference) {
- this.source = source;
- this.domain = domain;
- this.createIn = createIn;
- this.createFrom = createFrom;
- this.createAsValue = createAsValue;
- this.createAsReference = createAsReference;
- }
-
- public IObservableValue getObservable(String propertyPath) {
- return new GenericAttributeObservable(source, domain, createIn, createFrom, createAsValue, createAsReference, propertyPath);
- }
-
- @Override
- public IStaticContentProvider getContentProvider(String propertyPath) {
- return new AbstractStaticContentProvider() {
-
- public Object[] getElements() {
- Collection<EObject> result = ItemPropertyDescriptor.getReachableObjectsOfType(source, EcorePackage.eINSTANCE.getEObject());
- Iterator<EObject> iterator = result.iterator();
- while(iterator.hasNext()) {
- EObject eObject = iterator.next();
- if(!(eObject instanceof ModelQuery)) {
- iterator.remove();
- }
- }
- return result.toArray();
- }
- };
- }
-
- @Override
- public ILabelProvider getLabelProvider(String propertyPath) {
- return new EMFObjectLabelProvider();
- }
-
- public Object getDefaultValue(String propertyPath) {
- return ""; //$NON-NLS-1$
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeModelElementFactory.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeModelElementFactory.java
deleted file mode 100644
index 11e7e6789cc..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeModelElementFactory.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.modelelement;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.properties.Activator;
-import org.eclipse.papyrus.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.properties.modelelement.ModelElement;
-import org.eclipse.papyrus.properties.modelelement.ModelElementFactory;
-import org.eclipse.papyrus.properties.ui.UiFactory;
-import org.eclipse.papyrus.properties.ui.UiPackage;
-import org.eclipse.papyrus.properties.ui.WidgetAttribute;
-import org.eclipse.papyrus.properties.util.EMFHelper;
-
-/**
- * A ModelElementFactory for handling {@link WidgetAttribute} properties
- *
- * @author Camille Letavernier
- */
-public class GenericAttributeModelElementFactory implements ModelElementFactory {
-
- //Source : Group
- //context : Custom:Attribute:Group
- public ModelElement createFromSource(Object sourceElement, DataContextElement context) {
- EObject source = EMFHelper.getEObject(sourceElement);
- if(source == null) {
- Activator.log.warn("Unable to resolve the source element to an EObject"); //$NON-NLS-1$
- return null;
- }
-
- EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(source);
-
- EClass valueAttribute = UiPackage.eINSTANCE.getValueAttribute();
- EClass referenceAttribute = UiPackage.eINSTANCE.getReferenceAttribute();
- EStructuralFeature attributes = UiPackage.eINSTANCE.getUIComponent_Attributes();
-
- return new GenericAttributeModelElement(source, domain, attributes, UiFactory.eINSTANCE, valueAttribute, referenceAttribute);
- }
-
- // public List<ModelElement> createFromDataSource(ModelElement currentElement, DataSource source, String propertyPath, DataContextElement context) {
- // throw new UnsupportedOperationException();
- // }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeObservable.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeObservable.java
deleted file mode 100644
index af42fb6e070..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericAttributeObservable.java
+++ /dev/null
@@ -1,183 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.modelelement;
-
-import org.eclipse.core.databinding.observable.value.AbstractObservableValue;
-import org.eclipse.core.databinding.observable.value.ValueDiff;
-import org.eclipse.emf.common.command.CompoundCommand;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.command.CreateChildCommand;
-import org.eclipse.emf.edit.command.RemoveCommand;
-import org.eclipse.emf.edit.command.SetCommand;
-import org.eclipse.emf.edit.domain.EditingDomain;
-
-/**
- * An observable value for manipulating reflective properties
- * (Based on a key/value pair). The modifications are based on EMF
- * commands.
- *
- * @see GenericAttributeModelElement
- *
- * @author Camille Letavernier
- */
-public class GenericAttributeObservable extends AbstractObservableValue {
-
- private EObject source;
-
- private EditingDomain domain;
-
- private EStructuralFeature createIn;
-
- private EFactory createFrom;
-
- private EClass createAsValue;
-
- private EClass createAsReference;
-
- private String propertyPath;
-
- /**
- *
- * Constructor.
- *
- * @param source
- * The EObject being edited
- * @param domain
- * The Editing domain on which the commands will be executed
- * @param createIn
- * The Feature in which the value will be set
- * @param createFrom
- * The Factory used to instantiate the new value
- * @param createAsValue
- * The EClass that will be instantiated for the new value, if it is an attribute
- * @param createAsReference
- * The EClass that will be instantiated for the new value, if it is a reference
- * @param propertyPath
- * The value of the "name" attribute (Which is the "key" of the property)
- */
- public GenericAttributeObservable(EObject source, EditingDomain domain, EStructuralFeature createIn, EFactory createFrom, EClass createAsValue, EClass createAsReference, String propertyPath) {
- this.source = source;
- this.domain = domain;
- this.createIn = createIn;
- this.createFrom = createFrom;
- this.createAsValue = createAsValue;
- this.createAsReference = createAsReference;
- this.propertyPath = propertyPath;
- }
-
- public Object getValueType() {
- return Object.class;
- }
-
- @Override
- protected Object doGetValue() {
- EObject attribute = findAttribute();
- if(attribute == null)
- return null;
- Object result = attribute.eGet(attribute.eClass().getEStructuralFeature("value")); //$NON-NLS-1$
- return result;
- }
-
- /**
- * Browse the existing attributes in the given feature, and returns the
- * one with the same name, if it exists, or null otherwise.
- *
- * @return The attribute being edited, if it already exists, or null otherwise
- */
- @SuppressWarnings("unchecked")
- protected EObject findAttribute() {
- EList<? extends EObject> allAttributes = (EList<? extends EObject>)source.eGet(createIn);
- for(EObject attribute : allAttributes) {
- if(createAsValue.isInstance(attribute) || createAsReference.isInstance(attribute)) {
- if(attribute.eGet(attribute.eClass().getEStructuralFeature("name")).equals(propertyPath)) { //$NON-NLS-1$
- return attribute;
- }
- }
- }
- return null;
- }
-
- @SuppressWarnings("unchecked")
- @Override
- public void doSetValue(final Object value) {
- if(value != null && value.equals(doGetValue())) {
- return;
- }
-
- final Object oldValue = doGetValue();
-
- EObject attribute = findAttribute();
- EList<? extends EObject> collection = (EList<? extends EObject>)source.eGet(createIn);
-
- CompoundCommand command = new CompoundCommand("Set " + propertyPath + " value"); //$NON-NLS-1$ //$NON-NLS-2$
-
- if(value == null || value.equals("")) { //$NON-NLS-1$
- if(attribute != null) {
- RemoveCommand rCommand = new RemoveCommand(domain, collection, attribute);
- command.append(rCommand);
- }
- } else {
- if(attribute == null) {
- if(value instanceof String)
- attribute = createFrom.create(createAsValue);
- else
- attribute = createFrom.create(createAsReference);
-
- CreateChildCommand crCommand = new CreateChildCommand(domain, source, createIn, attribute, null);
- command.append(crCommand);
-
- EStructuralFeature feature = attribute.eClass().getEStructuralFeature("name"); //$NON-NLS-1$
-
- SetCommand setCommand = new SetCommand(domain, attribute, feature, propertyPath);
-
- command.append(setCommand);
- }
-
- EStructuralFeature feature = attribute.eClass().getEStructuralFeature("value"); //$NON-NLS-1$
-
- SetCommand setCommand = new SetCommand(domain, attribute, feature, value);
- command.append(setCommand);
- }
-
- domain.getCommandStack().execute(command);
-
- ValueDiff diff = new ValueDiff() {
-
- @Override
- public Object getOldValue() {
- return oldValue;
- }
-
- @Override
- public Object getNewValue() {
- return value;
- }
- };
-
- fireValueChange(diff);
- }
-
- @Override
- protected void fireValueChange(ValueDiff diff) {
- super.fireValueChange(diff);
- }
-
- @Override
- protected void fireChange() {
- super.fireChange();
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericPropertyModelElementFactory.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericPropertyModelElementFactory.java
deleted file mode 100644
index 58e44b87c0d..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/GenericPropertyModelElementFactory.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.modelelement;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.properties.Activator;
-import org.eclipse.papyrus.properties.contexts.ConfigProperty;
-import org.eclipse.papyrus.properties.contexts.ContextsFactory;
-import org.eclipse.papyrus.properties.contexts.ContextsPackage;
-import org.eclipse.papyrus.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.properties.modelelement.ModelElement;
-import org.eclipse.papyrus.properties.modelelement.ModelElementFactory;
-import org.eclipse.papyrus.properties.util.EMFHelper;
-
-/**
- * A ModelElementFactory for handling {@link ConfigProperty} properties
- *
- * @author Camille Letavernier
- */
-public class GenericPropertyModelElementFactory implements ModelElementFactory {
-
- //Source : Group
- //context : Custom:Attribute:Group
- public ModelElement createFromSource(Object sourceElement, DataContextElement context) {
-
- EObject source = EMFHelper.getEObject(sourceElement);
- if(source == null) {
- Activator.log.warn("Unable to resolve the source element to an EObject"); //$NON-NLS-1$
- return null;
- }
-
- EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(source);
-
- EClass valueProperty = ContextsPackage.eINSTANCE.getValueProperty();
- EClass referenceProperty = ContextsPackage.eINSTANCE.getReferenceProperty();
- EStructuralFeature attributes = ContextsPackage.eINSTANCE.getSimpleConstraint_Properties();
-
- return new GenericAttributeModelElement(source, domain, attributes, ContextsFactory.eINSTANCE, valueProperty, referenceProperty);
- }
-
- // public List<ModelElement> createFromDataSource(ModelElement currentElement, DataSource source, String propertyPath, DataContextElement context) {
- // throw new UnsupportedOperationException();
- // }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/SectionNameObservableValue.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/SectionNameObservableValue.java
deleted file mode 100644
index 18ab7925678..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/modelelement/SectionNameObservableValue.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.modelelement;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.command.CompoundCommand;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.edit.command.SetCommand;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.properties.contexts.ContextsPackage;
-import org.eclipse.papyrus.properties.contexts.Section;
-import org.eclipse.papyrus.properties.databinding.EMFObservableValue;
-
-/**
- * An ObservableValue for handling changes in a section's name.
- * The section is linked to an external XWT Resource with the same
- * name. When the section's name changes, the XWT resource should
- * be moved as well, and the section's sectionFile property should
- * be updated.
- *
- * @author Camille Letavernier
- */
-public class SectionNameObservableValue extends EMFObservableValue {
-
- /**
- *
- * Constructor.
- *
- * @param eObject
- * The EObject (Section) being edited
- * @param eStructuralFeature
- * The feature ("name") being editing
- * @param domain
- * The editing domain on which the commands will be called
- */
- public SectionNameObservableValue(EObject eObject, EStructuralFeature eStructuralFeature, EditingDomain domain) {
- super(eObject, eStructuralFeature, domain);
- }
-
- @Override
- public void doSetValue(Object value) {
- CompoundCommand command = new CompoundCommand();
- String name = (String)value;
- command.append(getSetCommand(name));
- command.append(getMoveCommand(name));
- command.append(getSetSectionFileCommand(name));
- domain.getCommandStack().execute(command);
- }
-
- /**
- * Returns a command to change the section's sectionFile when the name changes
- *
- * @param name
- * The name of the section we are editing
- * @return
- * The command to change the section's sectionFile
- */
- protected Command getSetSectionFileCommand(String name) {
- return new SetCommand(domain, eObject, ContextsPackage.eINSTANCE.getSection_SectionFile(), "ui/" + name + ".xwt"); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * Returns the EMF command to move the section's XWT Resource
- *
- * @param name
- * The new name of the section
- * @return
- * The EMF command to move the section's XWT Resource
- */
- protected Command getMoveCommand(String name) {
- Section section = (Section)eObject;
-
- //TODO : Create a command for that
- if(section.getWidget() != null) {
- URI newURI = URI.createURI("ui/" + name + ".xwt"); //$NON-NLS-1$ //$NON-NLS-2$
- newURI = newURI.resolve(section.eResource().getURI());
- ResourceSet resourceSet = section.eResource().getResourceSet();
- Resource newResource = resourceSet.createResource(newURI);
- newResource.getContents().add(section.getWidget());
- }
-
- return null;
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/perspective/CustomizationPerspectiveFactory.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/perspective/CustomizationPerspectiveFactory.java
deleted file mode 100644
index dabd8d57080..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/perspective/CustomizationPerspectiveFactory.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.perspective;
-
-import org.eclipse.papyrus.properties.customization.Activator;
-import org.eclipse.ui.IPageLayout;
-import org.eclipse.ui.IPerspectiveFactory;
-
-/**
- * A Factory for instantiating the Customization perspective
- *
- * @author Camille Letavernier
- */
-public class CustomizationPerspectiveFactory implements IPerspectiveFactory {
-
- private final static String PROPERTIES = "org.eclipse.ui.views.PropertySheet"; //$NON-NLS-1$
-
- private final static String PROJECT_EXPLORER = "org.eclipse.ui.navigator.ProjectExplorer"; //$NON-NLS-1$
-
- public void createInitialLayout(IPageLayout layout) {
- layout.addView(PROJECT_EXPLORER, IPageLayout.LEFT, 0.20f, layout.getEditorArea());
- layout.addView(PROPERTIES, IPageLayout.BOTTOM, 0.7f, layout.getEditorArea());
- layout.addView(Activator.PREVIEW_ID, IPageLayout.BOTTOM, 0.6f, layout.getEditorArea());
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/preferences/CustomizationPreferencePage.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/preferences/CustomizationPreferencePage.java
deleted file mode 100644
index 8d0d0696126..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/preferences/CustomizationPreferencePage.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.preferences;
-
-import org.eclipse.jface.preference.BooleanFieldEditor;
-import org.eclipse.jface.preference.FieldEditorPreferencePage;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.papyrus.properties.customization.Activator;
-import org.eclipse.papyrus.properties.customization.messages.Messages;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPreferencePage;
-
-/**
- * This page handles preferences for dialog boxes
- *
- * @author Camille Letavernier
- */
-public class CustomizationPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
-
- /**
- *
- */
- public final static String OPEN_CUSTOMIZATION_PERSPECTIVE = "openCustomizationPerspective"; //$NON-NLS-1$
-
- /**
- *
- */
- public final static String ASK_FOR_CONFIRMATION = "askForConfirmation"; //$NON-NLS-1$
-
- /**
- *
- * Constructor.
- *
- */
- public CustomizationPreferencePage() {
- }
-
- /**
- *
- * Constructor.
- *
- * @param style
- */
- public CustomizationPreferencePage(int style) {
- super(style);
- }
-
- /**
- *
- * Constructor.
- *
- * @param title
- * @param style
- */
- public CustomizationPreferencePage(String title, int style) {
- super(title, style);
- }
-
- /**
- *
- * Constructor.
- *
- * @param title
- * @param image
- * @param style
- */
- public CustomizationPreferencePage(String title, ImageDescriptor image, int style) {
- super(title, image, style);
- }
-
- public void init(IWorkbench workbench) {
- setPreferenceStore(Activator.getDefault().getPreferenceStore());
- setDescription(Messages.CustomizationPreferencePage_PropertyViewCustomizationPreferences);
- }
-
- @Override
- protected void createFieldEditors() {
- addField(new BooleanFieldEditor(OPEN_CUSTOMIZATION_PERSPECTIVE, Messages.CustomizationPreferencePage_OpenCustomizationPerspective, getFieldEditorParent()));
- addField(new BooleanFieldEditor(ASK_FOR_CONFIRMATION, Messages.CustomizationPreferencePage_AskForConfirmation, getFieldEditorParent()));
- }
-
- /**
- * Indicates if the customization perspective should be opened
- *
- * @return true if the customization perspective should be opened
- */
- public static boolean openCustomizationPerspective() {
- return Activator.getDefault().getPreferenceStore().getBoolean(OPEN_CUSTOMIZATION_PERSPECTIVE);
- }
-
- /**
- * Indicates if a dialog should ask the user for a confirmation before opening
- * the customization perspective
- *
- * @return true if a user confirmation is needed
- */
- public static boolean askForConfirmation() {
- return Activator.getDefault().getPreferenceStore().getBoolean(ASK_FOR_CONFIRMATION);
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/preferences/CustomizationPreferencesInitializer.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/preferences/CustomizationPreferencesInitializer.java
deleted file mode 100644
index 26adcecd67e..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/preferences/CustomizationPreferencesInitializer.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.preferences;
-
-import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.papyrus.properties.customization.Activator;
-
-/**
- * The initializer for @see {@link CustomizationPreferencePage}
- *
- * @author Camille Letavernier
- */
-public class CustomizationPreferencesInitializer extends AbstractPreferenceInitializer {
-
- @Override
- public void initializeDefaultPreferences() {
- IPreferenceStore store = Activator.getDefault().getPreferenceStore();
- store.setDefault(CustomizationPreferencePage.OPEN_CUSTOMIZATION_PERSPECTIVE, true);
- store.setDefault(CustomizationPreferencePage.ASK_FOR_CONFIRMATION, true);
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/AbstractContextualContentProvider.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/AbstractContextualContentProvider.java
deleted file mode 100644
index 3e6bde21d8c..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/AbstractContextualContentProvider.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.providers;
-
-import java.util.Collection;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.util.Util;
-import org.eclipse.papyrus.widgets.providers.IStaticContentProvider;
-
-/**
- * An abstract implementation of {@link IStaticContentProvider} for
- * content providers which rely on the available {@link Context}s
- * to retrieve their elements.
- *
- * @author Camille Letavernier
- *
- */
-public abstract class AbstractContextualContentProvider implements IStaticContentProvider {
-
- /**
- * The list of available contexts in the current model
- */
- protected Collection<Context> contexts;
-
- /**
- * The EObject used to retrieve the available contexts
- */
- protected EObject source;
-
- /**
- *
- * Constructor.
- *
- * @param source
- * The EObject used to retrieve the available contexts
- */
- protected AbstractContextualContentProvider(EObject source) {
- contexts = findContexts(source);
- this.source = source;
- }
-
- private List<Context> findContexts(EObject source) {
- List<Context> contexts = new LinkedList<Context>();
-
- Context rootContext = null;
- if(source.eResource() != null) {
- for(Resource resource : source.eResource().getResourceSet().getResources()) {
- if(!resource.getContents().isEmpty() && resource.getContents().get(0) instanceof Context) {
- rootContext = (Context)resource.getContents().get(0);
- contexts.add(rootContext);
- break;
- }
- }
- }
-
- return Util.getDependencies(rootContext);
- }
-
- public void dispose() {
- //Nothing
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
- //Nothing
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ConstraintDescriptorContentProvider.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ConstraintDescriptorContentProvider.java
deleted file mode 100644
index e7db4381274..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ConstraintDescriptorContentProvider.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.providers;
-
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.properties.contexts.ConstraintDescriptor;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.contexts.DisplayUnit;
-import org.eclipse.papyrus.properties.contexts.Section;
-import org.eclipse.papyrus.properties.contexts.Tab;
-import org.eclipse.papyrus.properties.contexts.View;
-
-/**
- * A ContentProvider for retrieving the available ConstraintDescriptors
- *
- *
- * @author Camille Letavernier
- */
-public class ConstraintDescriptorContentProvider extends AbstractContextualContentProvider {
-
- private EClass type;
-
- /**
- *
- * Constructor.
- *
- * @param source
- * The source Object used to retrieve the available ConstraintDescriptors
- */
- public ConstraintDescriptorContentProvider(EObject source, EClass type) {
- super(source);
- this.type = type;
- }
-
- public Object[] getElements() {
- List<ConstraintDescriptor> result = new LinkedList<ConstraintDescriptor>();
- for(Context context : contexts) {
- for(View view : context.getViews()) {
- result.addAll(getFilteredConstraintsFromDisplayUnit(view));
- }
- for(Tab tab : context.getTabs()) {
- for(Section section : tab.getSections()) {
- result.addAll(getFilteredConstraintsFromDisplayUnit(section));
- }
- }
- }
- return result.toArray();
- }
-
- private List<ConstraintDescriptor> getFilteredConstraintsFromDisplayUnit(DisplayUnit unit) {
- List<ConstraintDescriptor> result = new LinkedList<ConstraintDescriptor>();
- for(ConstraintDescriptor constraint : unit.getConstraints()) {
- if(type.isInstance(constraint)) {
- result.add(constraint);
- }
- }
- return result;
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ContextContentProvider.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ContextContentProvider.java
deleted file mode 100644
index 1ccdda3a05e..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ContextContentProvider.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.providers;
-
-import java.util.LinkedHashSet;
-import java.util.Set;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.facet.infra.browser.uicore.CustomizableModelContentProvider;
-import org.eclipse.emf.facet.infra.browser.uicore.CustomizationManager;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.customization.Activator;
-import org.eclipse.papyrus.properties.util.Util;
-
-/**
- * The customization editor's content provider. Based on the EMF Facet
- * customizable content provider,
- *
- * @author Camille Letavernier
- */
-public class ContextContentProvider extends CustomizableModelContentProvider {
-
- private CustomizationManager customizationManager = Activator.getDefault().getCustomizationManager();
-
- /**
- * Constructor.
- */
- public ContextContentProvider() {
- super(Activator.getDefault().getCustomizationManager());
- }
-
- /**
- * @return the CustomizationManager used by this Content provider
- */
- public CustomizationManager getCustomizationManager() {
- return customizationManager;
- }
-
- /**
- * @param inputElement
- * : A ResourceSet
- * @return The root EObjects from the input ResourceSet
- */
- @Override
- public EObject[] getRootElements(Object inputElement) {
- if(inputElement instanceof ResourceSet) {
- ResourceSet resourceSet = (ResourceSet)inputElement;
-
- if(resourceSet.getResources().isEmpty()) {
- return null;
- }
-
- Set<EObject> elements = new LinkedHashSet<EObject>();
-
- elements.addAll(resourceSet.getResources().get(0).getContents());
- Set<Context> allContexts = new LinkedHashSet<Context>();
- for(EObject element : elements) {
- if(element instanceof Context) {
- allContexts.addAll(Util.getDependencies((Context)element));
- }
- }
- elements.addAll(allContexts);
- return elements.toArray(new EObject[elements.size()]);
- }
- return null;
- }
-
- @Override
- public boolean hasChildren(Object element) {
- return getChildren(element).length > 0;
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ContextLabelProvider.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ContextLabelProvider.java
deleted file mode 100644
index 6bdfd81fe00..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/ContextLabelProvider.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.providers;
-
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.facet.infra.browser.uicore.CustomizableModelLabelProvider;
-import org.eclipse.emf.facet.infra.browser.uicore.CustomizationManager;
-import org.eclipse.emf.facet.infra.browser.uicore.internal.AppearanceConfiguration;
-import org.eclipse.emf.facet.infra.browser.uicore.internal.model.ITreeElement;
-import org.eclipse.emf.facet.infra.browser.uicore.internal.model.ModelElementItem;
-import org.eclipse.papyrus.properties.customization.Activator;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * The customization editor's label provider. Based on the EMF Facet
- * customizable label provider,
- *
- * @author Camille Letavernier
- */
-public class ContextLabelProvider extends CustomizableModelLabelProvider {
-
- private CustomizationManager customizationManager;
-
- /**
- * Constructor.
- */
- public ContextLabelProvider() {
- super(Activator.getDefault().getCustomizationManager());
- }
-
- @Override
- public String getText(Object element) {
- if(!(element instanceof ITreeElement) && element instanceof EObject) {
- try {
- Method method = CustomizationManager.class.getDeclaredMethod("getAppearanceConfiguration");//$NON-NLS-1$
- method.setAccessible(true);
- AppearanceConfiguration result = (AppearanceConfiguration)method.invoke(Activator.getDefault().getCustomizationManager());
- ITreeElement treeElement = new ModelElementItem((EObject)element, null, result);
- String text = super.getText(treeElement);
- return text;
- } catch (SecurityException ex) {
- Activator.log.error(ex);
- } catch (NoSuchMethodException ex) {
- Activator.log.error(ex);
- } catch (IllegalArgumentException ex) {
- Activator.log.error(ex);
- } catch (IllegalAccessException ex) {
- Activator.log.error(ex);
- } catch (InvocationTargetException ex) {
- Activator.log.error(ex);
- }
- }
- return super.getText(element);
- }
-
- @Override
- public Image getImage(Object element) {
- if(!(element instanceof ITreeElement) && element instanceof EObject) {
- try {
- Method method = CustomizationManager.class.getDeclaredMethod("getAppearanceConfiguration");//$NON-NLS-1$
- method.setAccessible(true);
- AppearanceConfiguration result = (AppearanceConfiguration)method.invoke(Activator.getDefault().getCustomizationManager());
- ITreeElement treeElement = new ModelElementItem((EObject)element, null, result);
- Image image = super.getImage(treeElement);
- return image;
- } catch (SecurityException ex) {
- Activator.log.error(ex);
- } catch (NoSuchMethodException ex) {
- Activator.log.error(ex);
- } catch (IllegalArgumentException ex) {
- Activator.log.error(ex);
- } catch (IllegalAccessException ex) {
- Activator.log.error(ex);
- } catch (InvocationTargetException ex) {
- Activator.log.error(ex);
- }
- }
- return super.getImage(element);
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/DataContextElementContentProvider.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/DataContextElementContentProvider.java
deleted file mode 100644
index bf89bd3eaa1..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/DataContextElementContentProvider.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.providers;
-
-import java.text.Collator;
-import java.text.RuleBasedCollator;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.HashSet;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.properties.contexts.DataContextPackage;
-import org.eclipse.papyrus.properties.contexts.DataContextRoot;
-import org.eclipse.papyrus.widgets.providers.AbstractStaticContentProvider;
-
-/**
- * A ContentProvider for retrieving the available DataContextElements
- *
- * @author Camille Letavernier
- */
-public class DataContextElementContentProvider extends AbstractStaticContentProvider {
-
- private List<DataContextElement> elements;
-
- /**
- *
- * Constructor.
- *
- * @param element
- */
- public DataContextElementContentProvider(DataContextElement element) {
- Context context = findContext(element);
- Set<Context> allContexts = new HashSet<Context>();
- getAllContexts(context, allContexts);
-
- Set<DataContextElement> allElements = new HashSet<DataContextElement>();
- for(Context ctx : allContexts) {
- for(DataContextRoot root : ctx.getDataContexts()) {
- getAllElements(root, allElements);
- }
- }
-
- elements = new LinkedList<DataContextElement>(allElements);
- Collections.sort(elements, new Comparator<DataContextElement>() {
-
- private Collator collator = RuleBasedCollator.getInstance();
-
- public int compare(DataContextElement element1, DataContextElement element2) {
- String name1 = element1.getName();
- String name2 = element2.getName();
- if(name1 == null && name2 == null) {
- return 0;
- }
- if(name1 == null) {
- return -1;
- }
- if(name2 == null) {
- return 1;
- }
- return collator.compare(name1, name2);
- }
-
- });
- }
-
- private void getAllElements(DataContextElement fromElement, Collection<DataContextElement> result) {
- if(result.contains(fromElement)) {
- return;
- }
-
- result.add(fromElement);
- if(fromElement instanceof DataContextPackage) {
- DataContextPackage fromPackage = (DataContextPackage)fromElement;
- for(DataContextElement element : fromPackage.getElements()) {
- getAllElements(element, result);
- }
- }
- }
-
- private void getAllContexts(Context fromContext, Collection<Context> result) {
- if(result.contains(fromContext)) {
- return;
- }
-
- result.add(fromContext);
- for(Context context : fromContext.getDependencies()) {
- getAllContexts(context, result);
- }
- }
-
- private Context findContext(DataContextElement element) {
- if(element.getPackage() == null) {
- return (Context)element.eContainer();
- }
- return findContext(element.getPackage());
- }
-
- public Object[] getElements() {
- return elements.toArray(new DataContextElement[elements.size()]);
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/DependencyContentProvider.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/DependencyContentProvider.java
deleted file mode 100644
index f6d94e55aff..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/DependencyContentProvider.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.providers;
-
-import org.eclipse.papyrus.properties.runtime.ConfigurationManager;
-import org.eclipse.papyrus.widgets.providers.AbstractStaticContentProvider;
-
-/**
- * A Content provider returning the list of registered contexts
- *
- * @author Camille Letavernier
- */
-public class DependencyContentProvider extends AbstractStaticContentProvider {
-
- public Object[] getElements() {
- return ConfigurationManager.instance.getContexts().toArray();
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/EnvironmentContentProvider.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/EnvironmentContentProvider.java
deleted file mode 100644
index c1b54532892..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/EnvironmentContentProvider.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.providers;
-
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.papyrus.properties.environment.Environment;
-import org.eclipse.papyrus.properties.runtime.ConfigurationManager;
-import org.eclipse.papyrus.widgets.providers.AbstractStaticContentProvider;
-
-/**
- * A Content provider for returning objects for the registered environments
- *
- * @author Camille Letavernier
- */
-public class EnvironmentContentProvider extends AbstractStaticContentProvider {
-
- private Object[] contents;
-
- /**
- * Constructor.
- *
- * @param feature
- * The EStructuralFeature used to retrieve the elements from the
- * different environments.
- */
- public EnvironmentContentProvider(EStructuralFeature feature) {
- List<Object> allObjects = new LinkedList<Object>();
- for(Environment environment : ConfigurationManager.instance.getPropertiesRoot().getEnvironments()) {
- allObjects.addAll((List<?>)environment.eGet(feature));
- }
- contents = allObjects.toArray();
- }
-
- public Object[] getElements() {
- return contents;
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/PropertyContentProvider.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/PropertyContentProvider.java
deleted file mode 100644
index 958c596b473..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/PropertyContentProvider.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.providers;
-
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.contexts.DataContextElement;
-import org.eclipse.papyrus.properties.contexts.DataContextPackage;
-import org.eclipse.papyrus.properties.contexts.Property;
-import org.eclipse.papyrus.widgets.providers.IHierarchicContentProvider;
-
-/**
- * A Content provider to retrieve all available properties in the current
- * contexts
- *
- * @author Camille Letavernier
- */
-public class PropertyContentProvider extends AbstractContextualContentProvider implements IHierarchicContentProvider {
-
- /**
- * Constructor.
- *
- * @param source
- * The source from which the contexts will be retrieved
- */
- public PropertyContentProvider(EObject source) {
- super(source);
- }
-
- public Object[] getElements() {
- return contexts.toArray();
- }
-
- private Collection<Property> findProperties(DataContextElement element) {
- List<Property> result = new LinkedList<Property>();
- result.addAll(element.getProperties());
- if(element instanceof DataContextPackage) {
- for(DataContextElement subElement : ((DataContextPackage)element).getElements()) {
- result.addAll(findProperties(subElement));
- }
- }
- return result;
- }
-
- public Object[] getElements(Object inputElement) {
- return getElements();
- }
-
-
- @SuppressWarnings({ "rawtypes", "unchecked" })
- public Object[] getChildren(Object parentElement) {
- if(parentElement instanceof Context) {
- Context parent = (Context)parentElement;
- return parent.getDataContexts().toArray();
- } else if(parentElement instanceof DataContextElement) {
- List result = new LinkedList();
- if(parentElement instanceof DataContextPackage) {
- DataContextPackage contextPackage = (DataContextPackage)parentElement;
- result.addAll(contextPackage.getElements());
- }
- DataContextElement element = (DataContextElement)parentElement;
- result.addAll(element.getProperties());
- Iterator<?> it = result.iterator();
- while(it.hasNext()) {
- Object value = it.next();
- if(isEmpty(value)) {
- it.remove();
- }
- }
- return result.toArray();
- } else {
- return new Object[0];
- }
- }
-
- protected boolean isEmpty(Object element) {
- if(element instanceof DataContextPackage) {
- DataContextPackage dcPackage = (DataContextPackage)element;
- return dcPackage.getElements().isEmpty() && dcPackage.getProperties().isEmpty();
- } else if(element instanceof DataContextElement) {
- return ((DataContextElement)element).getProperties().isEmpty();
- } else if(element instanceof Context) {
- return ((Context)element).getDataContexts().isEmpty();
- }
-
- return false;
- }
-
- public Object getParent(Object element) {
- if(element instanceof Property) {
- return ((Property)element).getContextElement();
- } else if(element instanceof DataContextElement) {
- return ((DataContextElement)element).getPackage();
- } else {
- return null;
- }
- }
-
- public boolean hasChildren(Object element) {
- return getChildren(element).length > 0;
- }
-
- public boolean isValidValue(Object element) {
- return element instanceof Property;
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/TabContentProvider.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/TabContentProvider.java
deleted file mode 100644
index d13c7fbcf2f..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/providers/TabContentProvider.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.providers;
-
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.contexts.Tab;
-import org.eclipse.papyrus.properties.runtime.ConfigurationManager;
-
-/**
- * A Content provider used to retrieve all tabs from the available contexts
- *
- * @author Camille Letavernier
- *
- */
-public class TabContentProvider extends AbstractContextualContentProvider {
-
- private boolean editableTabsOnly;
-
- /**
- * Constructor.
- *
- * @param source
- * The EObject used to retrieve the current context
- * @param editableTabsOnly
- * If true, only the tabs from editable contexts will be returned,
- * i.e. the plug-in contexts will be ignored
- */
- public TabContentProvider(EObject source, boolean editableTabsOnly) {
- super(source);
- }
-
- public Object[] getElements() {
- List<Tab> tabs = new LinkedList<Tab>();
- for(Context context : contexts) {
- if(isValidContext(context))
- tabs.addAll(context.getTabs());
- }
- return tabs.toArray();
- }
-
- private boolean isValidContext(Context context) {
- if(editableTabsOnly) {
- return !ConfigurationManager.instance.isPlugin(context);
- }
- return true;
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/query/ShowContextQuery.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/query/ShowContextQuery.java
deleted file mode 100644
index 0bf924cddee..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/query/ShowContextQuery.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.query;
-
-import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException;
-import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery;
-import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.customization.editor.actions.ToggleDataContextAction;
-
-/**
- * A Query to test if the DataContextElements should be displayed in the UIEditor
- *
- * @author Camille Letavernier
- */
-public class ShowContextQuery implements IJavaModelQuery<Context, Boolean> {
-
- public Boolean evaluate(Context context, ParameterValueList parameters) throws ModelQueryExecutionException {
- Boolean result = ToggleDataContextAction.showDataContext;
- return result;
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/CopyContextAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/CopyContextAction.java
deleted file mode 100644
index 9ed0f1091f2..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/CopyContextAction.java
+++ /dev/null
@@ -1,212 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.ui;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.InputStream;
-import java.lang.reflect.InvocationTargetException;
-import java.net.URL;
-import java.util.Collections;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jface.dialogs.ProgressMonitorDialog;
-import org.eclipse.jface.operation.IRunnableWithProgress;
-import org.eclipse.papyrus.properties.Activator;
-import org.eclipse.papyrus.properties.catalog.PropertiesURIHandler;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.customization.messages.Messages;
-import org.eclipse.papyrus.properties.runtime.ConfigurationManager;
-import org.eclipse.papyrus.properties.util.EMFHelper;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * An action to build a new Property view context from an existing one.
- *
- * @author Camille Letavernier
- */
-public class CopyContextAction {
-
- private IStatus result;
-
- /**
- * Copy an existing context to a new one with the given name.
- * The new context is registered to the {@link ConfigurationManager}.
- * To enable the edition of the context, an invisible project is created
- * in the workspace. The files are stored in the runtime plugin's preference
- * folder.
- *
- * @param source
- * The source Context to copy
- * @param targetName
- * The name of the new context
- * @param activate
- * If true, the new context will be activated and available immediately,
- * while the previous one will be disabled to avoid conflicts
- * @return
- * The new Context
- *
- * @throws IOException
- * If an error occured : the previous context cannot be read, or
- * the new context cannot be created
- */
- public Context copy(Context source, String targetName, boolean activate) throws IOException {
- IPath targetDirectoryPath = Activator.getDefault().getPreferencesPath().append("/" + targetName); //$NON-NLS-1$
- final File targetDirectory = targetDirectoryPath.toFile();
- if(targetDirectory.exists()) {
- throw new IOException("A context with this name already exists"); //$NON-NLS-1$
- }
- URI targetModelUri = URI.createFileURI(targetDirectory.toString() + "/" + targetName + ".ctx"); //$NON-NLS-1$ //$NON-NLS-2$
-
- ResourceSet resourceSet = new ResourceSetImpl();
- Context sourceContext = (Context)EMFHelper.loadEMFModel(resourceSet, source.eResource().getURI());
-
- copyAll(sourceContext, new File(targetDirectory, targetName + ".ctx")); //$NON-NLS-1$
-
- if(result.getCode() == IStatus.OK) {
- Context targetContext = ConfigurationManager.instance.getContext(targetModelUri);
-
- targetContext.setName(targetName);
- targetContext.eResource().save(Collections.EMPTY_MAP);
- ConfigurationManager.instance.addContext(targetContext, activate);
- if(activate) {
- ConfigurationManager.instance.disableContext(source, true);
- }
- return targetContext;
- } else {
- return null;
- }
- }
-
- private void copyAll(final Context source, final File target) {
- final File targetDirectory = target.getParentFile();
- final String targetName = target.getName();
-
- ProgressMonitorDialog dialog = new ProgressMonitorDialog(Display.getCurrent().getActiveShell());
- try {
- dialog.run(true, false, new IRunnableWithProgress() {
-
- public void run(IProgressMonitor monitor) {
- monitor.beginTask(Messages.CopyContextAction_InitializingTheCopyOf + source.getName() + Messages.CopyContextAction_ThisMayTakeSomeTime, IProgressMonitor.UNKNOWN);
- EcoreUtil.resolveAll(source);
- monitor.done();
- result = Status.OK_STATUS;
- }
- });
-
- dialog = new ProgressMonitorDialog(Display.getCurrent().getActiveShell());
-
- if(result.getCode() == IStatus.OK) {
-
- dialog.run(true, true, new IRunnableWithProgress() {
-
- public void run(IProgressMonitor monitor) {
- try {
- targetDirectory.mkdirs();
-
- monitor.beginTask(Messages.CopyContextAction_Copying + source.getName() + Messages.CopyContextAction_To + targetName, source.eResource().getResourceSet().getResources().size());
-
- //Copy of the context
- copy(source.eResource(), target);
- monitor.worked(1);
-
- //Copy of the dependent resources which are located in the same folder
- //(or subfolders)
- for(Resource resource : source.eResource().getResourceSet().getResources()) {
- if(monitor.isCanceled()) {
- return;
- }
- if(source.eResource() != resource && isRelative(source, resource)) {
- copy(resource, targetDirectory, source, targetName);
- }
- monitor.worked(1);
- }
-
- monitor.done();
- } catch (IOException ex) {
- Activator.log.error(ex);
- result = new Status(IStatus.ERROR, Activator.PLUGIN_ID, "An error occured during the copy of " + source.getName(), ex); //$NON-NLS-1$
- return;
- }
- result = Status.OK_STATUS;
- }
- });
- }
- } catch (InvocationTargetException ex) {
- Activator.log.error(ex);
- } catch (InterruptedException ex) {
- Activator.log.error(ex);
- }
- }
-
- protected void copy(Resource resource, File target) throws IOException {
- PropertiesURIHandler uriHandler = new PropertiesURIHandler();
- URI uri = resource.getURI();
- if(uriHandler.canHandle(uri)) {
- uri = uriHandler.getConvertedURI(uri);
- }
- copy(new URL(uri.toString()).openStream(), target);
- }
-
- private void copy(Resource resource, File directory, EObject source, String targetName) throws IOException {
- URI relativeURI = resource.getURI().deresolve(source.eResource().getURI());
- if(relativeURI.toString().equals("")) { //$NON-NLS-1$
- relativeURI = URI.createURI(targetName + ".ctx"); //$NON-NLS-1$
- }
- File target = new File(directory, relativeURI.toString());
- copy(resource, target);
- }
-
- private boolean isRelative(EObject source, Resource resource) {
- URI baseURI = source.eResource().getURI();
- URI resourceURI = resource.getURI();
- URI uri = resourceURI.deresolve(baseURI);
- if(uri.isRelative()) {
- if(!(uri.toString().startsWith("..") || uri.toString().startsWith("/"))) { //$NON-NLS-1$ //$NON-NLS-2$
- return true;
- }
- }
- return false;
- }
-
- //Strict copy : we read directly the file, instead of interpreting it as a Model
- private void copy(InputStream source, File target) throws IOException {
- if(!target.getParentFile().exists()) {
- target.getParentFile().mkdirs();
- }
-
- FileWriter out = new FileWriter(target);
- try {
- int c;
-
- while((c = source.read()) != -1) {
- out.write(c);
- }
-
- } catch (IOException ex) {
- throw ex;
- } finally {
- source.close();
- out.close();
- }
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/CustomizationDialog.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/CustomizationDialog.java
deleted file mode 100644
index 5bf8ac951d1..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/CustomizationDialog.java
+++ /dev/null
@@ -1,275 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.ui;
-
-import java.io.IOException;
-import java.util.Collection;
-
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.IInputValidator;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.dialogs.TrayDialog;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.ListViewer;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.customization.Activator;
-import org.eclipse.papyrus.properties.customization.messages.Messages;
-import org.eclipse.papyrus.properties.runtime.ConfigurationManager;
-import org.eclipse.papyrus.widgets.editors.InputDialog;
-import org.eclipse.papyrus.widgets.providers.CollectionContentProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.List;
-import org.eclipse.swt.widgets.Shell;
-
-/**
- * A Dialog to display the operations available to customize
- * the property view, such as "Copy", "Edit" or "Delete" an
- * existing configuration.
- *
- * @author Camille Letavernier
- */
-public class CustomizationDialog extends TrayDialog implements SelectionListener {
-
- private List availableContexts;
-
- private ListViewer availableContextsViewer;
-
- private Button copyContext;
-
- private Button editContext;
-
- private Button removeContext;
-
- /**
- *
- * Constructor.
- *
- * @param shell
- * The shell in which the dialog will be opened
- */
- public CustomizationDialog(final Shell shell) {
- super(shell);
- }
-
- @Override
- public void create() {
- super.create();
- super.getShell().setText(Messages.CustomizationDialog_customization);
- super.getShell().setImage(Activator.getDefault().getImage("/icons/papyrus.png")); //$NON-NLS-1$
-
- Composite contents = new Composite(getDialogArea(), SWT.NONE);
- contents.setLayout(new GridLayout(2, false));
- contents.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- Label label = new Label(contents, SWT.NONE);
- label.setText(Messages.CustomizationDialog_selectContextToEdit);
- label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
-
- Collection<Context> contexts = ConfigurationManager.instance.getContexts();
-
- availableContexts = new List(contents, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
- availableContexts.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- availableContextsViewer = new ListViewer(availableContexts);
- availableContextsViewer.setContentProvider(CollectionContentProvider.instance);
- availableContextsViewer.setLabelProvider(new LabelProvider() {
-
- @Override
- public String getText(final Object element) {
- if(element != null && element instanceof Context) {
- Context context = (Context)element;
- return context.getName() + (ConfigurationManager.instance.isPlugin(context) ? Messages.CustomizationDialog_plugin : ""); //$NON-NLS-1$
- }
- return super.getText(element);
- }
- });
- availableContextsViewer.setInput(contexts);
- availableContexts.addSelectionListener(this);
-
- Composite controls = new Composite(contents, SWT.NONE);
- controls.setLayout(new FillLayout(SWT.VERTICAL));
-
- copyContext = new Button(controls, SWT.PUSH);
- copyContext.setText(Messages.CustomizationDialog_copy);
- copyContext.setToolTipText(Messages.CustomizationDialog_createNewCopyByCopy);
- copyContext.setEnabled(false);
- copyContext.addSelectionListener(this);
-
- editContext = new Button(controls, SWT.PUSH);
- editContext.setText(Messages.CustomizationDialog_edit);
- editContext.setToolTipText(Messages.CustomizationDialog_editSelectedContext);
- editContext.setEnabled(false);
- editContext.addSelectionListener(this);
-
- removeContext = new Button(controls, SWT.PUSH);
- removeContext.setText(Messages.CustomizationDialog_delete);
- removeContext.setToolTipText(Messages.CustomizationDialog_removeSelectedContext);
- removeContext.setEnabled(false);
- removeContext.addSelectionListener(this);
-
- availableContextsViewer.addSelectionChangedListener(new ISelectionChangedListener() {
-
- public void selectionChanged(final SelectionChangedEvent event) {
- IStructuredSelection selection = (IStructuredSelection)event.getSelection();
- boolean activate = false;
-
-
- if(!selection.isEmpty()) {
- Context context = (Context)selection.getFirstElement();
- activate = !ConfigurationManager.instance.isPlugin(context);
- }
-
- editContext.setEnabled(activate);
- copyContext.setEnabled(!selection.isEmpty());
- removeContext.setEnabled(activate);
- }
-
- });
-
- // generateContext = new Button(controls, SWT.PUSH);
- // generateContext.setText("Generate");
- // generateContext.setToolTipText("Generates a new Context from a Metamodel");
- // generateContext.setEnabled(false);
-
- getShell().pack();
- }
-
- protected void editAction() {
- EditContextAction action = new EditContextAction();
- IStructuredSelection selection = (IStructuredSelection)availableContextsViewer.getSelection();
- if(selection.isEmpty()) {
- return;
- }
-
- Object element = selection.getFirstElement();
- if(element instanceof Context) {
- Context sourceContext = (Context)element;
- try {
- action.openEditor(sourceContext);
- close();
- } catch (Exception ex) {
- Activator.log.error("An error occured while initializing the customization editor", ex); //$NON-NLS-1$
- return;
- }
- }
- }
-
- protected void copyAction() {
- CopyContextAction action = new CopyContextAction();
- IStructuredSelection selection = (IStructuredSelection)availableContextsViewer.getSelection();
- if(selection.isEmpty()) {
- return;
- }
-
- Object element = selection.getFirstElement();
- if(element instanceof Context) {
- Context sourceContext = (Context)element;
- try {
-
- InputDialog dialog = new InputDialog(getShell(), Messages.CustomizationDialog_enterConfigurationName, Messages.CustomizationDialog_enterConfigurationName, Messages.CustomizationDialog_copyOf + sourceContext.getName(), new IInputValidator() {
-
- public String isValid(final String newText) {
- if(newText.trim().equals("")) { //$NON-NLS-1$
- return Messages.CustomizationDialog_configurationNameNotEmpty;
- }
- if(ConfigurationManager.instance.getContext(newText) != null) {
- return Messages.CustomizationDialog_configurationWithSameNameExists;
- }
- return null;
- }
-
- });
- dialog.setTitle(Messages.CustomizationDialog_configurationName);
- int result = dialog.open();
- if(result == Window.OK) {
- String targetName = dialog.getText();
- action.copy(sourceContext, targetName, false);
- availableContextsViewer.setInput(ConfigurationManager.instance.getContexts());
- }
- } catch (IOException ex) {
- Activator.log.error(ex);
- }
- }
- }
-
- protected void deleteAction() {
- RemoveContextAction action = new RemoveContextAction();
- IStructuredSelection selection = (IStructuredSelection)availableContextsViewer.getSelection();
- if(selection.isEmpty()) {
- return;
- }
-
- Object element = selection.getFirstElement();
- if(element instanceof Context) {
- Context sourceContext = (Context)element;
- if(ConfigurationManager.instance.isPlugin(sourceContext)) {
- Activator.log.warn(Messages.CustomizationDialog_cannotDeletePluginContext);
- //Plugin context cannot be deleted
- return;
- }
-
- MessageDialog dialog = new MessageDialog(getShell(), Messages.CustomizationDialog_deleteContext, null, Messages.CustomizationDialog_deleteContextConfirmation1 + sourceContext.getName() + Messages.CustomizationDialog_deleteContextConfirmation2, MessageDialog.CONFIRM, new String[]{ IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }, 2);
- int result = dialog.open();
- if(result == 0) { //0 is "Yes" (It is *not* the same 0 as Window.OK)
- action.removeContext(sourceContext);
- availableContextsViewer.setInput(ConfigurationManager.instance.getContexts());
- }
- }
- }
-
- @Override
- protected int getShellStyle() {
- return super.getShellStyle() | SWT.RESIZE;
- }
-
- @Override
- protected Composite getDialogArea() {
- return (Composite)super.getDialogArea();
- }
-
-
- public void widgetSelected(final SelectionEvent e) {
- if(e.widget == editContext) {
- editAction();
- } else if(e.widget == removeContext) {
- deleteAction();
- } else if(e.widget == copyContext) {
- copyAction();
- }
- }
-
- public void widgetDefaultSelected(final SelectionEvent e) {
- if(e.widget == availableContexts) {
- IStructuredSelection selection = (IStructuredSelection)availableContextsViewer.getSelection();
- if(!selection.isEmpty()) {
- Context context = (Context)selection.getFirstElement();
- if(ConfigurationManager.instance.isPlugin(context)) {
- copyAction();
- } else {
- editAction();
- }
- }
- }
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/EditContextAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/EditContextAction.java
deleted file mode 100644
index 4bb7a9076d0..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/EditContextAction.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.ui;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.customization.util.ProjectUtil;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.part.FileEditorInput;
-
-/**
- * An action to edit an existing context.
- * The context must not be read-only, which means it should not have been
- * registered via a plug-in extension
- *
- * @author Camille Letavernier
- */
-public class EditContextAction {
-
- /**
- * Opens an Eclipse Editor to edit the given context.
- *
- * @param context
- * The context to edit
- * @throws Exception
- * If the context cannot be edited
- */
- public void openEditor(Context context) throws Exception {
- IFile contextFile = ProjectUtil.getContextFile(context);
-
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(new FileEditorInput(contextFile), "org.eclipse.papyrus.property.customization.UIEditor", true); //$NON-NLS-1$
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/OpenCustomization.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/OpenCustomization.java
deleted file mode 100644
index dd1b3f86d25..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/OpenCustomization.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.ui;
-
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.handlers.HandlerUtil;
-
-/**
- * A Handler for the "OpenCustomization" Action.
- * Opens the {@link CustomizationDialog}
- *
- * @author Camille Letavernier
- */
-public class OpenCustomization extends AbstractHandler {
-
- public Object execute(ExecutionEvent event) throws ExecutionException {
- IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
- Dialog dialog = new CustomizationDialog(window.getShell());
- dialog.open();
- return null;
- }
-
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/RemoveContextAction.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/RemoveContextAction.java
deleted file mode 100644
index 598df478816..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/ui/RemoveContextAction.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.ui;
-
-import java.io.File;
-
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.runtime.ConfigurationManager;
-
-/**
- * An action to delete an existing context. This action cannot be undone.
- * If you simply want to disable an existing context, see {@link ConfigurationManager#disableContext(Context)}
- *
- * @author Camille Letavernier
- */
-public class RemoveContextAction {
-
- /**
- * Deletes the given context.
- *
- * @param sourceContext
- * The context to delete
- */
- public void removeContext(Context sourceContext) {
- //TODO : Close editors for the context being deleted
- File directory = new File(sourceContext.eResource().getURI().toFileString()).getParentFile();
- ConfigurationManager.instance.deleteContext(sourceContext);
- delete(directory);
- }
-
- /**
- * Recursively deletes a file or directory
- *
- * @param file
- * The file or directory to delete recusively
- */
- private void delete(File file) {
- if(file.isDirectory()) {
- for(File subFile : file.listFiles()) {
- delete(subFile);
- }
- }
- file.delete();
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/util/ActionUtil.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/util/ActionUtil.java
deleted file mode 100644
index bdbbe57c58c..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/util/ActionUtil.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.util;
-
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-
-/**
- * Utility class for Actions
- *
- * @author Camille Letavernier
- *
- */
-public class ActionUtil {
-
- /**
- * EMF can only handle collections of EObjects. However, as the
- * customization plugin relies a lot on EMF Facet, we often have to handle
- * objects that can be adapted to EObjects, but are not EObjects
- * themselves. This method adapts a collections of such objects to their
- * underlying EObjects, so that EMF can handle them.
- * Objects that cannot be adapted remain as-is in the collection.
- *
- * @param selection
- * The collection to adapt
- * @return
- * The adapted selection
- */
- public static Collection<Object> getAdaptedSelection(Collection<? extends Object> selection) {
- Collection<Object> newSelection = new LinkedList<Object>();
- for(Object o : selection) {
- if(o instanceof IAdaptable) {
- EObject eObject = (EObject)((IAdaptable)o).getAdapter(EObject.class);
- newSelection.add(eObject);
- } else {
- newSelection.add(o);
- }
- }
- return newSelection;
- }
-
- /**
- * EMF can only handle ISelection containing EObjects. However, as the
- * customization plugin relies a lot on EMF Facet, we often have to handle
- * objects that can be adapted to EObjects, but are not EObjects
- * themselves. This method adapts a ISelection of such objects to their
- * underlying EObjects, so that EMF can handle them.
- * Objects that cannot be adapted remain as-is in the selection.
- *
- * @param sourceSelection
- * The selection to adapt
- * @return
- * The adapted selection
- */
- public static ISelection getAdaptedSelection(ISelection sourceSelection) {
- if(sourceSelection instanceof StructuredSelection) {
- StructuredSelection currentSelection = (StructuredSelection)sourceSelection;
- List<Object> newSelection = new LinkedList<Object>();
-
- Iterator<?> it = currentSelection.iterator();
- while(it.hasNext()) {
- Object object = it.next();
- if(object instanceof IAdaptable) {
- EObject eObject = (EObject)((IAdaptable)object).getAdapter(EObject.class);
- if(eObject != null)
- newSelection.add(eObject);
- else
- newSelection.add(object);
- }
- }
-
- StructuredSelection selection = new StructuredSelection(newSelection);
- return selection;
- } else {
- return sourceSelection;
- }
- }
-}
diff --git a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/util/ProjectUtil.java b/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/util/ProjectUtil.java
deleted file mode 100644
index 6e5cb31df16..00000000000
--- a/incoming/org.eclipse.papyrus.properties.customization/src/org/eclipse/papyrus/properties/customization/util/ProjectUtil.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.customization.util;
-
-import java.io.File;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.papyrus.properties.contexts.Context;
-import org.eclipse.papyrus.properties.contexts.Section;
-import org.eclipse.papyrus.properties.customization.Activator;
-
-/**
- * The Eclipse Editors can only handle files from the workspace. However, when
- * customizing a Property view, we don't want to pollute the user's workspace.
- * The Customization Editor uses a hidden Project. The files are physically
- * stored in the plugin's preferences folder, in the workspace metadata.
- * These methods cannot be applied on contexts registered via plugin extensions,
- * as they are read-only. For such contexts, you need to first copy them,
- * and edit the copy.
- *
- * @see CopyContextAction
- *
- * @author Camille Letavernier
- */
-public class ProjectUtil {
-
- /**
- * The name of the customization's hidden project
- */
- public static final String CUSTOM_PROJECT_NAME = "org.eclipse.papyrus.properties.customization.internal"; //$NON-NLS-1$
-
- /**
- *
- * @param context
- * The context we want to edit
- * @return
- * The IFile containing the given context. This IFile can be passed
- * to an Eclipse editor
- * @throws CoreException
- * If an error occured
- */
- public static IFile getContextFile(Context context) throws CoreException {
- IFolder projectFolder = getContextFolder(context);
-
- IFile contextFile = projectFolder.getFile(context.getName() + ".ctx"); //$NON-NLS-1$
-
- return contextFile;
- }
-
- /**
- * @return the hidden IProject used by the customization plugin
- * @throws CoreException
- * If an error occured
- */
- public static IProject getContextProject() throws CoreException {
- IWorkspace workspace = ResourcesPlugin.getWorkspace();
- IProject custom = workspace.getRoot().getProject(CUSTOM_PROJECT_NAME);
- if(!custom.exists()) {
- IProjectDescription description = workspace.newProjectDescription(CUSTOM_PROJECT_NAME);
- IPath customProjectPath = Activator.getDefault().getPreferencesPath().append("/" + CUSTOM_PROJECT_NAME); //$NON-NLS-1$
- description.setLocation(customProjectPath);
- custom.create(description, null);
- custom.open(null);
- }
-
- if(!custom.isOpen()) {
- custom.open(null);
- }
-
- custom.setHidden(true);
- workspace.getRoot().refreshLocal(IResource.DEPTH_INFINITE, null);
-
- return custom;
- }
-
- /**
- * Return the IFolder containing the given context
- *
- * @param context
- * The context for which we want to get its IFolder
- * @return
- * The IFolder containing the given context
- * @throws CoreException
- * If an error occured
- */
- public static IFolder getContextFolder(Context context) throws CoreException {
- IProject project = getContextProject();
-
- IFolder projectFolder = project.getFolder(context.getName());
-
- if(!projectFolder.exists()) {
- String referencedFolderPath = new File(context.eResource().getURI().toFileString()).getParent();
- projectFolder.createLink(new Path(referencedFolderPath), IResource.REPLACE, null);
- }
-
- return projectFolder;
- }
-
- /**
- * Return the IFile containing the section's XWT Resource
- *
- * @param section
- * The section we want to edit
- * @return
- * The IFile containing the section's XWT Resource
- * @throws CoreException
- * If an error occured
- */
- public static IFile getSectionFile(Section section) throws CoreException {
- IFolder projectFolder = getContextFolder((Context)(section.eContainer()).eContainer());
- IFile sectionFile = projectFolder.getFile(section.getSectionFile());
- return sectionFile;
- }
-}

Back to the top