diff options
author | khussey | 2006-04-06 04:21:50 +0000 |
---|---|---|
committer | khussey | 2006-04-06 04:21:50 +0000 |
commit | 67039333cd034b05c09685902a14103c07438249 (patch) | |
tree | ea8a1af257f5bb78947d99c3e4a57b6f9f2dd45a /examples | |
parent | 32dbc5669b537a82c8573253a902a225ec811ac0 (diff) | |
download | org.eclipse.uml2.test-67039333cd034b05c09685902a14103c07438249.tar.gz org.eclipse.uml2.test-67039333cd034b05c09685902a14103c07438249.tar.xz org.eclipse.uml2.test-67039333cd034b05c09685902a14103c07438249.zip |
[122863] Adding UML exporter for EMF, removing obsolete examples.
Diffstat (limited to 'examples')
7 files changed, 3 insertions, 583 deletions
diff --git a/examples/org.eclipse.uml2.examples.uml.ui/META-INF/MANIFEST.MF b/examples/org.eclipse.uml2.examples.uml.ui/META-INF/MANIFEST.MF index d6005138..035dfd7a 100644 --- a/examples/org.eclipse.uml2.examples.uml.ui/META-INF/MANIFEST.MF +++ b/examples/org.eclipse.uml2.examples.uml.ui/META-INF/MANIFEST.MF @@ -8,11 +8,9 @@ Bundle-Activator: org.eclipse.uml2.examples.uml.ui.UMLExamplesUIPlugin$Implement Bundle-Vendor: %providerName Bundle-Localization: plugin Export-Package: org.eclipse.uml2.examples.uml.ui, - org.eclipse.uml2.examples.uml.ui.actions, - org.eclipse.uml2.examples.uml.ui.dialogs + org.eclipse.uml2.examples.uml.ui.actions Require-Bundle: org.eclipse.uml2.uml.editor;bundle-version="[2.0.0,3.0.0)";visibility:=reexport, org.eclipse.ui.ide;bundle-version="[3.1.0,4.0.0)", - org.eclipse.emf.ecore.editor;bundle-version="[2.2.0,3.0.0)", org.eclipse.core.runtime;bundle-version="[3.1.0,4.0.0)", org.eclipse.core.resources;bundle-version="[3.1.0,4.0.0)" Eclipse-LazyStart: true diff --git a/examples/org.eclipse.uml2.examples.uml.ui/plugin.properties b/examples/org.eclipse.uml2.examples.uml.ui/plugin.properties index 2cdff621..92b38046 100644 --- a/examples/org.eclipse.uml2.examples.uml.ui/plugin.properties +++ b/examples/org.eclipse.uml2.examples.uml.ui/plugin.properties @@ -7,7 +7,7 @@ # Contributors: # IBM - initial API and implementation # -# $Id: plugin.properties,v 1.1 2006/03/28 21:07:32 khussey Exp $ +# $Id: plugin.properties,v 1.2 2006/04/06 04:21:50 khussey Exp $ # NLS_MESSAGEFORMAT_VAR @@ -33,16 +33,8 @@ _UI_DiagnosticProblems_message = Problems were ecountered. _UI_OptionsDialog_message = Please choose options. -_UI_ConvertToUMLAction_label = &Convert to UML Model... -_UI_ConvertToUMLActionCommand_label = Convert package ''{0}'' to UML model -_UI_ConvertingToUML_message = Converting package ''{0}'' to UML model... - _UI_ConvertToMenu_label = &Convert To -_UI_EcoreModelAction_label = &Ecore Model... -_UI_ConvertToEcoreActionCommand_label = Convert package ''{0}'' to Ecore package -_UI_ConvertingToEcore_message = Converting package ''{0}'' to Ecore package... - _UI_MetamodelAction_label = &Metamodel _UI_ConvertToMetamodelActionCommand_label = Convert model {0} to a metamodel diff --git a/examples/org.eclipse.uml2.examples.uml.ui/plugin.xml b/examples/org.eclipse.uml2.examples.uml.ui/plugin.xml index a2b54b5f..dc0f4ff7 100644 --- a/examples/org.eclipse.uml2.examples.uml.ui/plugin.xml +++ b/examples/org.eclipse.uml2.examples.uml.ui/plugin.xml @@ -11,7 +11,7 @@ Contributors: IBM - initial API and implementation - $Id: plugin.xml,v 1.1 2006/03/28 21:07:32 khussey Exp $ + $Id: plugin.xml,v 1.2 2006/04/06 04:21:50 khussey Exp $ --> <plugin> @@ -19,22 +19,6 @@ <extension point="org.eclipse.ui.editorActions"> <editorContribution - targetID="org.eclipse.emf.ecore.presentation.EcoreEditorID" - id="org.eclipse.uml2.examples.uml.ui.EcoreEditorContribution"> - <action - label="%_UI_ConvertToUMLAction_label" - class="org.eclipse.uml2.examples.uml.ui.actions.ConvertToUMLAction" - menubarPath="org.eclipse.emf.ecoreMenuID/additions-end" - enablesFor="1" - id="org.eclipse.uml2.examples.uml.ui.ConvertToUMLActionID"> - <enablement> - <objectClass - name="org.eclipse.emf.ecore.EPackage"> - </objectClass> - </enablement> - </action> - </editorContribution> - <editorContribution targetID="org.eclipse.uml2.uml.editor.presentation.UMLEditorID" id="org.eclipse.uml2.examples.uml.ui.UMLEditorContributionID"> <menu @@ -175,18 +159,6 @@ </objectClass> </enablement> </action> - <action - label="%_UI_EcoreModelAction_label" - class="org.eclipse.uml2.examples.uml.ui.actions.ConvertToEcoreAction" - menubarPath="org.eclipse.uml2.umlMenuID/org.eclipse.uml2.examples.uml.ui.ConvertToMenuID/additions" - enablesFor="1" - id="org.eclipse.uml2.examples.uml.ui.ConvertToEcoreActionID"> - <enablement> - <objectClass - name="org.eclipse.uml2.uml.Package"> - </objectClass> - </enablement> - </action> </editorContribution> </extension> diff --git a/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/actions/ConvertToEcoreAction.java b/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/actions/ConvertToEcoreAction.java deleted file mode 100644 index 84e0e56a..00000000 --- a/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/actions/ConvertToEcoreAction.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright (c) 2005, 2006 IBM Corporation and others. - * 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: - * IBM - initial API and implementation - * - * $Id: ConvertToEcoreAction.java,v 1.1 2006/03/28 21:07:32 khussey Exp $ - */ -package org.eclipse.uml2.examples.uml.ui.actions; - -import java.lang.reflect.InvocationTargetException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.common.command.Command; -import org.eclipse.emf.common.command.IdentityCommand; -import org.eclipse.emf.common.command.UnexecutableCommand; -import org.eclipse.emf.common.util.BasicDiagnostic; -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.dialogs.ProgressMonitorDialog; -import org.eclipse.jface.operation.IRunnableWithProgress; -import org.eclipse.jface.window.Window; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.PlatformUI; -import org.eclipse.uml2.common.util.UML2Util; -import org.eclipse.uml2.examples.uml.ui.UMLExamplesUIPlugin; -import org.eclipse.uml2.examples.uml.ui.dialogs.UML2EcoreConverterOptionsDialog; -import org.eclipse.uml2.uml.editor.actions.DiagnosticAction; -import org.eclipse.uml2.uml.editor.dialogs.OptionsDialog; -import org.eclipse.uml2.uml.util.UMLUtil; -import org.eclipse.uml2.uml.util.UMLValidator; - -public class ConvertToEcoreAction - extends DiagnosticAction { - - protected static final String ECORE_FILE_EXTENSION = "ecore"; //$NON-NLS-1$ - - public ConvertToEcoreAction() { - super(); - } - - protected Command createActionCommand(EditingDomain editingDomain, - Collection collection) { - - if (collection.size() == 1 - && collection.toArray()[0] instanceof org.eclipse.uml2.uml.Package) { - - return IdentityCommand.INSTANCE; - } - - return UnexecutableCommand.INSTANCE; - } - - public void run(IAction action) { - - if (command != UnexecutableCommand.INSTANCE) { - final org.eclipse.uml2.uml.Package package_ = (org.eclipse.uml2.uml.Package) collection - .toArray()[0]; - - final Shell shell = PlatformUI.getWorkbench() - .getActiveWorkbenchWindow().getShell(); - - final Map options = new HashMap(); - - final String label = UMLExamplesUIPlugin.INSTANCE.getString( - "_UI_ConvertToEcoreActionCommand_label", //$NON-NLS-1$ - new Object[]{getLabelProvider().getText(package_)}); - - OptionsDialog optionsDialog = new UML2EcoreConverterOptionsDialog( - shell, label, UMLExamplesUIPlugin.INSTANCE - .getString("_UI_OptionsDialog_message"), options); //$NON-NLS-1$ - - if (optionsDialog.open() == Window.OK) { - IRunnableWithProgress runnableWithProgress = new IRunnableWithProgress() { - - public void run(final IProgressMonitor progressMonitor) - throws InvocationTargetException, - InterruptedException { - - try { - final BasicDiagnostic diagnostics = new BasicDiagnostic( - UMLValidator.DIAGNOSTIC_SOURCE, 0, - EcorePlugin.INSTANCE.getString( - "_UI_DiagnosticRoot_diagnostic", //$NON-NLS-1$ - new Object[]{substitutionLabelProvider - .getObjectLabel(package_)}), - new Object[]{package_}); - - Map context = new HashMap(); - context.put(UML2Util.QualifiedTextProvider.class, - qualifiedTextProvider); - - progressMonitor.beginTask( - UMLExamplesUIPlugin.INSTANCE.getString( - "_UI_ConvertingToEcore_message", //$NON-NLS-1$ - new Object[]{substitutionLabelProvider - .getObjectLabel(package_)}), - IProgressMonitor.UNKNOWN); - - Resource resource = package_.eResource(); - ResourceSet resourceSet = resource.getResourceSet(); - URI uri = resourceSet.getURIConverter().normalize( - resource.getURI()).trimFileExtension() - .trimSegments(1); - - List resources = new ArrayList(); - - for (Iterator ePackages = UMLUtil.convertToEcore( - package_, options, diagnostics, context) - .iterator(); ePackages.hasNext();) { - - EPackage ePackage = (EPackage) ePackages.next(); - - resources.add(resource = resourceSet - .createResource(uri.appendSegment( - ePackage.getName()) - .appendFileExtension( - ECORE_FILE_EXTENSION))); - - resource.getContents().add(ePackage); - } - - for (Iterator i = resources.iterator(); i.hasNext();) { - - try { - ((Resource) i.next()).save(null); - } catch (Exception e) { - UMLExamplesUIPlugin.INSTANCE.log(e); - } - } - - handleDiagnostic(progressMonitor.isCanceled() - ? Diagnostic.CANCEL_INSTANCE - : diagnostics, label); - - } finally { - progressMonitor.done(); - } - } - }; - - if (eclipseResourcesUtil != null) { - runnableWithProgress = eclipseResourcesUtil - .getWorkspaceModifyOperation(runnableWithProgress); - } - - try { - new ProgressMonitorDialog(shell).run(false, true, - runnableWithProgress); - } catch (Exception e) { - UMLExamplesUIPlugin.INSTANCE.log(e); - } - } - } - } - -} diff --git a/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/actions/ConvertToUMLAction.java b/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/actions/ConvertToUMLAction.java deleted file mode 100644 index 83e6b68f..00000000 --- a/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/actions/ConvertToUMLAction.java +++ /dev/null @@ -1,196 +0,0 @@ -/* - * Copyright (c) 2005, 2006 IBM Corporation and others. - * 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: - * IBM - initial API and implementation - * - * $Id: ConvertToUMLAction.java,v 1.1 2006/03/28 21:07:32 khussey Exp $ - */ -package org.eclipse.uml2.examples.uml.ui.actions; - -import java.lang.reflect.InvocationTargetException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.emf.common.command.Command; -import org.eclipse.emf.common.command.IdentityCommand; -import org.eclipse.emf.common.command.UnexecutableCommand; -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.util.BasicDiagnostic; -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.plugin.EcorePlugin; -import org.eclipse.emf.ecore.presentation.EcoreEditor; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.jface.action.IAction; -import org.eclipse.jface.dialogs.ProgressMonitorDialog; -import org.eclipse.jface.operation.IRunnableWithProgress; -import org.eclipse.jface.window.Window; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.PlatformUI; -import org.eclipse.uml2.common.util.UML2Util; -import org.eclipse.uml2.examples.uml.ui.UMLExamplesUIPlugin; -import org.eclipse.uml2.examples.uml.ui.dialogs.Ecore2UMLConverterOptionsDialog; -import org.eclipse.uml2.uml.Element; -import org.eclipse.uml2.uml.editor.actions.DiagnosticAction; -import org.eclipse.uml2.uml.editor.dialogs.OptionsDialog; -import org.eclipse.uml2.uml.resource.UMLResource; -import org.eclipse.uml2.uml.util.UMLUtil; -import org.eclipse.uml2.uml.util.UMLValidator; - -public class ConvertToUMLAction - extends DiagnosticAction { - - public ConvertToUMLAction() { - super(); - } - - protected AdapterFactory getAdapterFactory() { - return workbenchPart instanceof EcoreEditor - ? ((EcoreEditor) workbenchPart).getAdapterFactory() - : null; - } - - protected Command createActionCommand(EditingDomain editingDomain, - Collection collection) { - - if (collection.size() == 1 - && collection.toArray()[0] instanceof EPackage) { - - return IdentityCommand.INSTANCE; - } - - return UnexecutableCommand.INSTANCE; - } - - public void run(IAction action) { - - if (command != UnexecutableCommand.INSTANCE) { - final EPackage ePackage = (EPackage) collection.toArray()[0]; - - final Shell shell = PlatformUI.getWorkbench() - .getActiveWorkbenchWindow().getShell(); - - final Map options = new HashMap(); - - final String label = UMLExamplesUIPlugin.INSTANCE.getString( - "_UI_ConvertToUMLActionCommand_label", //$NON-NLS-1$ - new Object[]{getLabelProvider().getText(ePackage)}); - - OptionsDialog optionsDialog = new Ecore2UMLConverterOptionsDialog( - shell, label, UMLExamplesUIPlugin.INSTANCE - .getString("_UI_OptionsDialog_message"), options); //$NON-NLS-1$ - - if (optionsDialog.open() == Window.OK) { - IRunnableWithProgress runnableWithProgress = new IRunnableWithProgress() { - - public void run(final IProgressMonitor progressMonitor) - throws InvocationTargetException, - InterruptedException { - - try { - final BasicDiagnostic diagnostics = new BasicDiagnostic( - UMLValidator.DIAGNOSTIC_SOURCE, 0, - EcorePlugin.INSTANCE.getString( - "_UI_DiagnosticRoot_diagnostic", //$NON-NLS-1$ - new Object[]{substitutionLabelProvider - .getObjectLabel(ePackage)}), - new Object[]{ePackage}); - - Map context = new HashMap(); - context.put(UML2Util.QualifiedTextProvider.class, - qualifiedTextProvider); - - progressMonitor.beginTask( - UMLExamplesUIPlugin.INSTANCE.getString( - "_UI_ConvertingToUML_message", //$NON-NLS-1$ - new Object[]{substitutionLabelProvider - .getObjectLabel(ePackage)}), - IProgressMonitor.UNKNOWN); - - Resource resource = ePackage.eResource(); - ResourceSet resourceSet = resource.getResourceSet(); - URI uri = resourceSet.getURIConverter().normalize( - resource.getURI()).trimFileExtension() - .trimSegments(1); - - List resources = new ArrayList(); - - for (Iterator packages = UMLUtil.convertFromEcore( - ePackage, options, diagnostics, context) - .iterator(); packages.hasNext();) { - - org.eclipse.uml2.uml.Package package_ = (org.eclipse.uml2.uml.Package) packages - .next(); - - resources.add(resource = resourceSet - .createResource(uri.appendSegment( - package_.getName()) - .appendFileExtension( - UMLResource.FILE_EXTENSION))); - - EList contents = resource.getContents(); - - contents.add(package_); - - for (Iterator allContents = UMLUtil - .getAllContents(package_, true, false); allContents - .hasNext();) { - - EObject eObject = (EObject) allContents - .next(); - - if (eObject instanceof Element) { - contents.addAll(((Element) eObject) - .getStereotypeApplications()); - } - } - } - - for (Iterator i = resources.iterator(); i.hasNext();) { - - try { - ((Resource) i.next()).save(null); - } catch (Exception e) { - UMLExamplesUIPlugin.INSTANCE.log(e); - } - } - - handleDiagnostic(progressMonitor.isCanceled() - ? Diagnostic.CANCEL_INSTANCE - : diagnostics, label); - } finally { - progressMonitor.done(); - } - } - }; - - if (eclipseResourcesUtil != null) { - runnableWithProgress = eclipseResourcesUtil - .getWorkspaceModifyOperation(runnableWithProgress); - } - - try { - new ProgressMonitorDialog(shell).run(false, true, - runnableWithProgress); - } catch (Exception e) { - UMLExamplesUIPlugin.INSTANCE.log(e); - } - } - } - } -} diff --git a/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/dialogs/Ecore2UMLConverterOptionsDialog.java b/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/dialogs/Ecore2UMLConverterOptionsDialog.java deleted file mode 100644 index c82e4514..00000000 --- a/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/dialogs/Ecore2UMLConverterOptionsDialog.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2005 IBM Corporation and others. - * 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: - * IBM - initial API and implementation - * - * $Id: Ecore2UMLConverterOptionsDialog.java,v 1.1 2006/03/28 21:07:32 khussey Exp $ - */ -package org.eclipse.uml2.examples.uml.ui.dialogs; - -import java.util.Map; - -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.uml2.uml.editor.dialogs.OptionsDialog; -import org.eclipse.uml2.uml.util.UMLUtil; - -public class Ecore2UMLConverterOptionsDialog - extends OptionsDialog { - - public Ecore2UMLConverterOptionsDialog(Shell parent, String title, - String message, Map options) { - super(parent, title, message, options); - } - - protected void createOptionAreas(Composite parent) { - super.createOptionAreas(parent); - - createOptionArea(parent, - UMLUtil.Ecore2UMLConverter.OPTION__ECORE_TAGGED_VALUES, - UMLUtil.Ecore2UMLConverter.OPTION__ECORE_TAGGED_VALUES, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, processChoiceLabel); - - createOptionArea(parent, - UMLUtil.Ecore2UMLConverter.OPTION__REDEFINES_ANNOTATIONS, - UMLUtil.Ecore2UMLConverter.OPTION__REDEFINES_ANNOTATIONS, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, processChoiceLabel); - - createOptionArea(parent, - UMLUtil.Ecore2UMLConverter.OPTION__SUBSETS_ANNOTATIONS, - UMLUtil.Ecore2UMLConverter.OPTION__SUBSETS_ANNOTATIONS, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, processChoiceLabel); - - createOptionArea(parent, - UMLUtil.Ecore2UMLConverter.OPTION__UNION_ANNOTATIONS, - UMLUtil.Ecore2UMLConverter.OPTION__UNION_ANNOTATIONS, new String[]{ - ignoreChoiceLabel, reportChoiceLabel, processChoiceLabel}, - processChoiceLabel); - - createOptionArea(parent, - UMLUtil.Ecore2UMLConverter.OPTION__ANNOTATION_DETAILS, - UMLUtil.Ecore2UMLConverter.OPTION__ANNOTATION_DETAILS, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, ignoreChoiceLabel); - } -} diff --git a/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/dialogs/UML2EcoreConverterOptionsDialog.java b/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/dialogs/UML2EcoreConverterOptionsDialog.java deleted file mode 100644 index 4f2ab17d..00000000 --- a/examples/org.eclipse.uml2.examples.uml.ui/src/org/eclipse/uml2/examples/uml/ui/dialogs/UML2EcoreConverterOptionsDialog.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) 2005 IBM Corporation and others. - * 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: - * IBM - initial API and implementation - * - * $Id: UML2EcoreConverterOptionsDialog.java,v 1.1 2006/03/28 21:07:32 khussey Exp $ - */ -package org.eclipse.uml2.examples.uml.ui.dialogs; - -import java.util.Map; - -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.uml2.uml.editor.dialogs.OptionsDialog; -import org.eclipse.uml2.uml.util.UMLUtil; - -public class UML2EcoreConverterOptionsDialog - extends OptionsDialog { - - public UML2EcoreConverterOptionsDialog(Shell parent, String title, - String message, Map options) { - super(parent, title, message, options); - } - - protected void createOptionAreas(Composite parent) { - super.createOptionAreas(parent); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__ECORE_TAGGED_VALUES, - UMLUtil.UML2EcoreConverter.OPTION__ECORE_TAGGED_VALUES, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, processChoiceLabel); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__DERIVED_FEATURES, - UMLUtil.UML2EcoreConverter.OPTION__DERIVED_FEATURES, new String[]{ - ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, processChoiceLabel); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_FEATURE_INHERITANCE, - UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_FEATURE_INHERITANCE, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - discardChoiceLabel, processChoiceLabel}, - processChoiceLabel); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_FEATURES, - UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_FEATURES, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - discardChoiceLabel, processChoiceLabel}, - processChoiceLabel); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_OPERATION_INHERITANCE, - UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_OPERATION_INHERITANCE, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - discardChoiceLabel, processChoiceLabel}, - processChoiceLabel); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_OPERATIONS, - UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_OPERATIONS, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - discardChoiceLabel, processChoiceLabel}, - processChoiceLabel); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__REDEFINING_OPERATIONS, - UMLUtil.UML2EcoreConverter.OPTION__REDEFINING_OPERATIONS, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, processChoiceLabel); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__REDEFINING_PROPERTIES, - UMLUtil.UML2EcoreConverter.OPTION__REDEFINING_PROPERTIES, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, processChoiceLabel); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__SUBSETTING_PROPERTIES, - UMLUtil.UML2EcoreConverter.OPTION__SUBSETTING_PROPERTIES, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, processChoiceLabel); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__UNION_PROPERTIES, - UMLUtil.UML2EcoreConverter.OPTION__UNION_PROPERTIES, new String[]{ - ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, processChoiceLabel); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__SUPER_CLASS_ORDER, - UMLUtil.UML2EcoreConverter.OPTION__SUPER_CLASS_ORDER, new String[]{ - ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, processChoiceLabel); - - createOptionArea(parent, - UMLUtil.UML2EcoreConverter.OPTION__ANNOTATION_DETAILS, - UMLUtil.UML2EcoreConverter.OPTION__ANNOTATION_DETAILS, - new String[]{ignoreChoiceLabel, reportChoiceLabel, - processChoiceLabel}, processChoiceLabel); - } - -} |