diff options
Diffstat (limited to 'extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui')
11 files changed, 307 insertions, 0 deletions
diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/.classpath b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/.classpath new file mode 100644 index 00000000000..6e16b23d695 --- /dev/null +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/.project b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/.project new file mode 100644 index 00000000000..92877c0b4c6 --- /dev/null +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.soaml.diagram.ui</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>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/.settings/org.eclipse.jdt.core.prefs b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..11f6e462df7 --- /dev/null +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/META-INF/MANIFEST.MF b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..e61ec83e6b8 --- /dev/null +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/META-INF/MANIFEST.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name +Bundle-SymbolicName: org.eclipse.papyrus.soaml.diagram.ui;singleton:=true +Bundle-Version: 1.1.0.qualifier +Bundle-Activator: org.eclipse.papyrus.soaml.diagram.ui.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.ui.ide;bundle-version="3.10.1", + org.eclipse.papyrus.soaml.diagram.common, + org.eclipse.papyrus.uml.diagram.wizards +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-ActivationPolicy: lazy +Export-Package: org.eclipse.papyrus.soaml.diagram.ui +Bundle-Vendor: %Bundle-Provider +Bundle-Localization: plugin diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/build.properties b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/build.properties new file mode 100644 index 00000000000..f4ae9701586 --- /dev/null +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/build.properties @@ -0,0 +1,5 @@ +source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.properties
diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/icons/SoaML_new_Project32x32.gif b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/icons/SoaML_new_Project32x32.gif Binary files differnew file mode 100644 index 00000000000..4f10139cad6 --- /dev/null +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/icons/SoaML_new_Project32x32.gif diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/plugin.properties b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/plugin.properties new file mode 100644 index 00000000000..d35f48fa2c0 --- /dev/null +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/plugin.properties @@ -0,0 +1,3 @@ +#Properties file for org.eclipse.papyrus.soaml.diagram.ui
+Bundle-Provider = Eclipse Modeling Project
+Bundle-Name = SoaML wizard
\ No newline at end of file diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/plugin.xml b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/plugin.xml new file mode 100644 index 00000000000..5e0fd720d99 --- /dev/null +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/plugin.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.4"?> +<plugin> + <extension + point="org.eclipse.ui.newWizards"> + <wizard + canFinishEarly="false" + category="org.eclipse.papyrus.wizards.category" + class="org.eclipse.papyrus.soaml.diagram.ui.NewSoamlModelWizard" + finalPerspective="org.eclipse.papyrus.infra.core.perspective" + icon="icons/SoaML_new_Project32x32.gif" + id="org.eclipse.papyrus.wizards.createsoamlmodel" + name="SoaML Model"> + <description> + New SoaML Project + </description> + </wizard> + <wizard + category="org.eclipse.papyrus.wizards.category" + class="org.eclipse.papyrus.soaml.diagram.ui.NewSoamlProjectWizard" + finalPerspective="org.eclipse.papyrus.infra.core.perspective" + icon="icons/SoaML_new_Project.gif" + id="org.eclipse.papyrus.soaml.diagram.ui.createsoamlwizard" + name="SoaML Project" + project="true"> + <description> + New SoaML Project + </description> + </wizard> + </extension> + +</plugin> diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/Activator.java b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/Activator.java new file mode 100644 index 00000000000..cd024e4db74 --- /dev/null +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/Activator.java @@ -0,0 +1,61 @@ +/*****************************************************************************
+ * Copyright (c) 2015 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:
+ * Fadwa TMAR (CEA LIST) fadwa.tmar@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.soaml.diagram.ui;
+
+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.soaml.diagram.ui"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlModelWizard.java b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlModelWizard.java new file mode 100644 index 00000000000..5db94f3d54d --- /dev/null +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlModelWizard.java @@ -0,0 +1,76 @@ +/*****************************************************************************
+ * Copyright (c) 2015 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:
+ * Fadwa TMAR (CEA LIST) fadwa.tmar@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.soaml.diagram.ui;
+
+
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.soaml.diagram.common.commands.CreateSoamlModelCommand;
+import org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard;
+
+import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramCategoryPage;
+import org.eclipse.ui.IWorkbench;
+
+public class NewSoamlModelWizard extends CreateModelWizard {
+
+ /**
+ * @see org.eclipse.papyrus.wizards.CreateModelWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
+ *
+ * @param workbench
+ * @param selection
+ */
+
+ @Override
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ super.init(workbench, selection);
+ setWindowTitle("New SoaML Model");
+ }
+
+ /**
+ * Instantiates a new new Proteus model wizard.
+ */
+ public NewSoamlModelWizard() {
+ super();
+
+ }
+
+
+
+ @Override
+ public String getModelKindName() {
+ // TODO Auto-generated method stub
+
+ return "SoaML Model";
+ }
+
+ @Override
+ protected String[] getDiagramCategoryIds() {
+ return new String[]{ CreateSoamlModelCommand.COMMAND_ID };
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected SelectDiagramCategoryPage createSelectDiagramCategoryPage() {
+ // here SoaML is the only available category
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected void saveDiagramCategorySettings() {
+ // here SoaML is the only available category
+ }
+
+}
diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlProjectWizard.java b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlProjectWizard.java new file mode 100644 index 00000000000..5f983ff6111 --- /dev/null +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlProjectWizard.java @@ -0,0 +1,73 @@ +/*****************************************************************************
+ * Copyright (c) 2015 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:
+ * Fadwa TMAR (CEA LIST) fadwa.tmar@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.soaml.diagram.ui;
+
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.soaml.diagram.common.commands.CreateSoamlModelCommand;
+import org.eclipse.papyrus.uml.diagram.wizards.NewPapyrusProjectWizard;
+import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramCategoryPage;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
+
+public class NewSoamlProjectWizard extends NewPapyrusProjectWizard {
+
+ /**
+ * @see org.eclipse.papyrus.wizards.NewPapyrusProjectWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
+ *
+ * @param workbench
+ * @param selection
+ */
+ @Override
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ super.init(workbench, selection);
+ setWindowTitle("New SoaML Project");
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected WizardNewProjectCreationPage createNewProjectCreationPage() {
+ WizardNewProjectCreationPage newProjectPage = super.createNewProjectCreationPage();
+ newProjectPage.setTitle("Papyrus SoaML Project");
+ newProjectPage.setDescription("Create a New Papyrus SoaML Project");
+ return newProjectPage;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected SelectDiagramCategoryPage createSelectDiagramCategoryPage() {
+ //here SysML is the only available category
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected void saveDiagramCategorySettings() {
+ //do nothing
+ //here SysML is the only available category
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected String[] getDiagramCategoryIds() {
+ return new String[]{ CreateSoamlModelCommand.COMMAND_ID };
+ }
+
+
+}
|