diff options
author | cletavernie | 2011-10-25 13:20:37 +0000 |
---|---|---|
committer | cletavernie | 2011-10-25 13:20:37 +0000 |
commit | dd3f33860c75f6feca6a2fc300bc34fd3b74f66c (patch) | |
tree | a06db4f125f354001623485b200c8bac86301feb /plugins/sysml/diagram | |
parent | 2764cf968683c9d2310482ee62a2df3787109c03 (diff) | |
download | org.eclipse.papyrus-dd3f33860c75f6feca6a2fc300bc34fd3b74f66c.tar.gz org.eclipse.papyrus-dd3f33860c75f6feca6a2fc300bc34fd3b74f66c.tar.xz org.eclipse.papyrus-dd3f33860c75f6feca6a2fc300bc34fd3b74f66c.zip |
359057: [Architecture - SVN - Build] The Papyrus architecture should be refactored
https://bugs.eclipse.org/bugs/show_bug.cgi?id=359057
Diffstat (limited to 'plugins/sysml/diagram')
13 files changed, 357 insertions, 0 deletions
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/.classpath b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/.classpath new file mode 100644 index 00000000000..2d1a4302f04 --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <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="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/.project b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/.project new file mode 100644 index 00000000000..e51b94394b9 --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.sysml.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/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..6bd8769c5ba --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +#Tue Jun 15 15:06:20 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/META-INF/MANIFEST.MF b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..f30417ad6c1 --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/META-INF/MANIFEST.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-Localization: plugin +Bundle-SymbolicName: org.eclipse.papyrus.sysml.diagram.ui;singleton:=true +Bundle-Version: 0.9.0.qualifier +Bundle-Activator: org.eclipse.papyrus.sysml.diagram.ui.Activator +Bundle-Vendor: %providerName +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.papyrus.wizards;bundle-version="0.8.0", + org.eclipse.papyrus.core;bundle-version="0.8.0", + org.eclipse.papyrus.sysml.diagram.common;bundle-version="0.8.0" +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-ActivationPolicy: lazy +Export-Package: org.eclipse.papyrus.sysml.diagram.ui diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/about.html b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/about.html @@ -0,0 +1,28 @@ +<!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 ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/build.properties b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/build.properties new file mode 100644 index 00000000000..3ec0f45e8aa --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/build.properties @@ -0,0 +1,7 @@ +#
+#Mon Sep 12 09:30:15 CEST 2011
+bin.includes=META-INF/,.,about.html,icons/,plugin.xml,plugin.properties
+output..=bin/
+src.includes=META-INF/,.,about.html,icons/,plugin.xml,plugin.properties
+source..=src/
+bin..=bin/
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/icons/papyrus/new_sysml_model.gif b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/icons/papyrus/new_sysml_model.gif Binary files differnew file mode 100644 index 00000000000..ecc0b715e2d --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/icons/papyrus/new_sysml_model.gif diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/icons/papyrus/new_sysml_project.gif b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/icons/papyrus/new_sysml_project.gif Binary files differnew file mode 100644 index 00000000000..3637e8aefe0 --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/icons/papyrus/new_sysml_project.gif diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/plugin.properties b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/plugin.properties new file mode 100644 index 00000000000..b441673af6e --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/plugin.properties @@ -0,0 +1,12 @@ +################################################################################# +# 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: +# Tatiana Fesenko (CEA LIST) tatiana.fesenko@cea.fr - initial API and implementation +################################################################################## +pluginName=UI Plugin for papyrus SysML diagrams (Incubation) +providerName=Eclipse Modeling Project diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/plugin.xml b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/plugin.xml new file mode 100644 index 00000000000..06557d86ce9 --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/plugin.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<plugin>
+<extension point="org.eclipse.ui.newWizards">
+ <wizard
+ category="org.eclipse.papyrus.wizards.category"
+ class="org.eclipse.papyrus.sysml.diagram.ui.NewSysMLProjectWizard"
+ finalPerspective="org.eclipse.papyrus.core.perspective"
+ icon="icons/papyrus/new_sysml_project.gif"
+ id="org.eclipse.papyrus.wizards.createsysmlproject"
+ name="SysML Project"
+ project="true">
+ <description>
+ New SysML Project
+ </description>
+ </wizard>
+ <wizard
+ category="org.eclipse.papyrus.wizards.category"
+ class="org.eclipse.papyrus.sysml.diagram.ui.NewSysMLModelWizard"
+ finalPerspective="org.eclipse.papyrus.core.perspective"
+ icon="icons/papyrus/new_sysml_model.gif"
+ id="org.eclipse.papyrus.wizards.createsysmlmodel"
+ name="SysML Model">
+ <selection
+ class="org.eclipse.core.resources.IResource">
+ </selection>
+ </wizard>
+</extension>
+
+<!--<extension-point id="templates" name="UML2 Model Templates" schema="schema/templates.exsd"/>-->
+
+</plugin>
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/Activator.java b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/Activator.java new file mode 100644 index 00000000000..cd1164a430f --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/Activator.java @@ -0,0 +1,63 @@ +/*****************************************************************************
+ * 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:
+ * Tatiana Fesenko (CEA LIST) - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.diagram.ui;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.sysml.diagram.ui"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ 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/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLModelWizard.java b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLModelWizard.java new file mode 100644 index 00000000000..4b5db4c8ab3 --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLModelWizard.java @@ -0,0 +1,83 @@ +/*****************************************************************************
+on * 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:
+ * Tatiana Fesenko (CEA LIST) - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.diagram.ui;
+
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.sysml.diagram.common.commands.CreateSysMLModelCommand;
+import org.eclipse.papyrus.wizards.CreateModelWizard;
+import org.eclipse.papyrus.wizards.pages.NewModelFilePage;
+import org.eclipse.papyrus.wizards.pages.SelectDiagramCategoryPage;
+import org.eclipse.ui.IWorkbench;
+
+
+/**
+ * The Class NewSysMLModelWizard.
+ */
+public class NewSysMLModelWizard extends CreateModelWizard {
+
+ /**
+ * Instantiates a new new sys ml model wizard.
+ */
+ public NewSysMLModelWizard() {
+ super();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ super.init(workbench, selection);
+ setWindowTitle("New SysML Model");
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected NewModelFilePage createNewModelFilePage(IStructuredSelection selection) {
+ NewModelFilePage page = super.createNewModelFilePage(selection);
+ if (page != null) {
+ page.setTitle("Papyrus SysML Model");
+ page.setDescription("Create a New Papyrus SysML Model");
+ }
+ return page;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected String[] getDiagramCategoryIds() {
+ return new String[]{CreateSysMLModelCommand.COMMAND_ID};
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected SelectDiagramCategoryPage createSelectDiagramCategoryPage() {
+ //here SysML is the only available category
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected void saveDiagramCategorySettings() {
+ //here SysML is the only available category
+ }
+
+}
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLProjectWizard.java b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLProjectWizard.java new file mode 100644 index 00000000000..a463c7d6d18 --- /dev/null +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLProjectWizard.java @@ -0,0 +1,75 @@ +/*****************************************************************************
+ * 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:
+ * Tatiana Fesenko (CEA LIST) - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.diagram.ui;
+
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.sysml.diagram.common.commands.CreateSysMLModelCommand;
+import org.eclipse.papyrus.wizards.NewPapyrusProjectWizard;
+import org.eclipse.papyrus.wizards.pages.SelectDiagramCategoryPage;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
+
+
+/**
+ * The Class NewSysMLProjectWizard.
+ */
+public class NewSysMLProjectWizard extends NewPapyrusProjectWizard {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ super.init(workbench, selection);
+ setWindowTitle("New SysML Project");
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected WizardNewProjectCreationPage createNewProjectCreationPage() {
+ WizardNewProjectCreationPage newProjectPage = super.createNewProjectCreationPage();
+ newProjectPage.setTitle("Papyrus SysML Project");
+ newProjectPage.setDescription("Create a New Papyrus SysML 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[]{CreateSysMLModelCommand.COMMAND_ID};
+ }
+
+}
|