Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2012-08-20 14:12:31 +0000
committervlorenzo2012-08-20 14:12:31 +0000
commita80fdab9b71a2e666cb04519ccdc9694afd05b33 (patch)
tree5439237a3383dc4836c6b37f1648dc1132223f91
parent437f1c30a9aed3be4f19d4270c296807be829f46 (diff)
downloadorg.eclipse.papyrus-a80fdab9b71a2e666cb04519ccdc9694afd05b33.tar.gz
org.eclipse.papyrus-a80fdab9b71a2e666cb04519ccdc9694afd05b33.tar.xz
org.eclipse.papyrus-a80fdab9b71a2e666cb04519ccdc9694afd05b33.zip
This plugin has been copied into trunk/incoming/TableEFacet. I delete it.
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/.classpath7
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/.project28
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/META-INF/MANIFEST.MF19
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/about.html28
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/build.properties6
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/icons/generic_UML_table.gifbin891 -> 0 bytes
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/icons/generic_UML_table.pngbin1245 -> 0 bytes
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/plugin.pdoc4
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/plugin.properties3
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/plugin.xml103
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/resources/uml_generic_table.papyrustableconfiguration10
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/Activator.java63
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/editor/GenericTableEditor.java39
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/factory/GenericTableEditorFactory.java40
-rw-r--r--incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/handlers/CreateGenericTableEditorHandler.java60
16 files changed, 0 insertions, 417 deletions
diff --git a/incoming/org.eclipse.papyrus.table.uml.generic/.classpath b/incoming/org.eclipse.papyrus.table.uml.generic/.classpath
deleted file mode 100644
index 2d1a4302f04..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?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/incoming/org.eclipse.papyrus.table.uml.generic/.project b/incoming/org.eclipse.papyrus.table.uml.generic/.project
deleted file mode 100644
index 93fc92d3415..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.table.uml.generic</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/incoming/org.eclipse.papyrus.table.uml.generic/.settings/org.eclipse.jdt.core.prefs b/incoming/org.eclipse.papyrus.table.uml.generic/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 44217f8c068..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-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/incoming/org.eclipse.papyrus.table.uml.generic/META-INF/MANIFEST.MF b/incoming/org.eclipse.papyrus.table.uml.generic/META-INF/MANIFEST.MF
deleted file mode 100644
index f4541f812ba..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,19 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.papyrus.table.uml.generic;singleton:=true
-Bundle-Version: 0.9.0.qualifier
-Bundle-Activator: org.eclipse.papyrus.table.uml.generic.Activator
-Bundle-Vendor: %providerName
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.papyrus.infra.core,
- org.eclipse.papyrus.infra.table.metamodel,
- org.eclipse.papyrus.infra.table.common;bundle-version="0.9.0",
- org.eclipse.emf.facet.widgets.table.metamodel.edit;bundle-version="0.2.0",
- org.eclipse.emf.facet.widgets.table.ui;bundle-version="0.2.0",
- org.eclipse.papyrus.infra.table.papyrustableconfiguration.metamodel,
- org.eclipse.papyrus.infra.emf.efacet;bundle-version="0.9.0"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Bundle-Localization: plugin
diff --git a/incoming/org.eclipse.papyrus.table.uml.generic/about.html b/incoming/org.eclipse.papyrus.table.uml.generic/about.html
deleted file mode 100644
index 82d49bf5f81..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/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.table.uml.generic/build.properties b/incoming/org.eclipse.papyrus.table.uml.generic/build.properties
deleted file mode 100644
index 8665ac2ffec..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/build.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- plugin.properties
diff --git a/incoming/org.eclipse.papyrus.table.uml.generic/icons/generic_UML_table.gif b/incoming/org.eclipse.papyrus.table.uml.generic/icons/generic_UML_table.gif
deleted file mode 100644
index 7dba0a044de..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/icons/generic_UML_table.gif
+++ /dev/null
Binary files differ
diff --git a/incoming/org.eclipse.papyrus.table.uml.generic/icons/generic_UML_table.png b/incoming/org.eclipse.papyrus.table.uml.generic/icons/generic_UML_table.png
deleted file mode 100644
index 4bec73c4147..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/icons/generic_UML_table.png
+++ /dev/null
Binary files differ
diff --git a/incoming/org.eclipse.papyrus.table.uml.generic/plugin.pdoc b/incoming/org.eclipse.papyrus.table.uml.generic/plugin.pdoc
deleted file mode 100644
index 9661e051ca1..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/plugin.pdoc
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<doc:Documentation xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:doc="http://www.eclipse.org/papyrus/documentation/plugin/documentation" description="This plugin provides the new table for UML.">
- <referent firstName="vincent" lastName="lorenzo" eMail="vincent.lorenzo@cea.fr" currentCompany="CEA-LIST"/>
-</doc:Documentation>
diff --git a/incoming/org.eclipse.papyrus.table.uml.generic/plugin.properties b/incoming/org.eclipse.papyrus.table.uml.generic/plugin.properties
deleted file mode 100644
index 481c44e9cec..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.papyrus.table.uml.generic
-providerName = Eclispe Modeling Project
-pluginName = Generic Table for UML (Incubation) \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.table.uml.generic/plugin.xml b/incoming/org.eclipse.papyrus.table.uml.generic/plugin.xml
deleted file mode 100644
index f37daf120f0..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/plugin.xml
+++ /dev/null
@@ -1,103 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.papyrus.infra.core.papyrusDiagram">
- <editorDiagram
- factoryClass="org.eclipse.papyrus.table.uml.generic.factory.GenericTableEditorFactory"
- icon="icons/generic_UML_table.png">
- </editorDiagram>
- </extension>
- <extension
- point="org.eclipse.ui.commands">
- <command
- categoryId="org.eclipse.papyrus.editor.category"
- description="Create a new UML Table Editor (Generic)"
- id="org.eclipse.papyrus.uml.generic.table.command"
- name="Create a UML Table Editor (Generic)">
- </command>
- </extension>
- <extension
- point="org.eclipse.ui.handlers">
- <handler
- class="org.eclipse.papyrus.table.uml.generic.handlers.CreateGenericTableEditorHandler"
- commandId="org.eclipse.papyrus.uml.generic.table.command">
- <activeWhen>
- <or>
- <with
- variable="activeEditorId">
- <equals
- value="org.eclipse.papyrus.infra.core.papyrusEditor">
- </equals>
- </with>
- </or>
- </activeWhen>
- </handler>
- </extension>
- <extension
- id="create.table.menus"
- name="Create Table Menus"
- point="org.eclipse.ui.menus">
- <menuContribution
- allPopups="false"
- locationURI="popup:org.eclipse.papyrus.views.modelexplorer.popupmenu.createtable">
- <command
- commandId="org.eclipse.papyrus.uml.generic.table.command"
- icon="icons/generic_UML_table.png"
- label="UML Generic Table"
- mnemonic="&amp;G"
- style="push"
- tooltip="Create a new UML Generic Table">
- <visibleWhen>
- <with
- variable="activeEditorId">
- <equals
- value="org.eclipse.papyrus.infra.core.papyrusEditor">
- </equals>
- </with>
- </visibleWhen>
- </command>
- </menuContribution>
- <menuContribution
- allPopups="false"
- locationURI="menu:org.eclipse.papyrus.table.ui.menu.tables">
- <command
- commandId="org.eclipse.papyrus.uml.generic.table.command"
- icon="icons/generic_UML_table.png"
- label="UML Generic Table"
- mnemonic="&amp;G"
- style="push"
- tooltip="Create a new UML Generic Table">
- <visibleWhen>
- <with
- variable="activeEditorId">
- <equals
- value="org.eclipse.papyrus.infra.core.papyrusEditor">
- </equals>
- </with>
- </visibleWhen>
- </command>
- </menuContribution>
- <menuContribution
- allPopups="false"
- locationURI="toolbar:org.eclipse.papyrus.table.ui.toolbar">
- <command
- commandId="org.eclipse.papyrus.uml.generic.table.command"
- icon="icons/generic_UML_table.png"
- label="UML Generic Table"
- mnemonic="&amp;G"
- style="push"
- tooltip="Create a new UML Generic Table">
- <visibleWhen>
- <with
- variable="activeEditorId">
- <equals
- value="org.eclipse.papyrus.infra.core.papyrusEditor">
- </equals>
- </with>
- </visibleWhen>
- </command>
- </menuContribution>
- </extension>
-
-</plugin>
diff --git a/incoming/org.eclipse.papyrus.table.uml.generic/resources/uml_generic_table.papyrustableconfiguration b/incoming/org.eclipse.papyrus.table.uml.generic/resources/uml_generic_table.papyrustableconfiguration
deleted file mode 100644
index 0828c3fc2fb..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/resources/uml_generic_table.papyrustableconfiguration
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<org.eclipse.papyrus.infra.table.papyrustableconfiguration:PapyrusTableConfiguration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:efacet="http://www.eclipse.org/emf/facet/efacet/0.2.incubation/efacet" xmlns:org.eclipse.papyrus.infra.table.papyrustableconfiguration="http://www.eclipse.org/Papyrus/PapyrusTableConfiguration/0.9.0/papyrustableconfiguration">
- <tableConfiguration>
- <canBePresentedInTheTable xsi:type="efacet:FacetOperation" href="platform:/plugin/org.eclipse.papyrus.uml.efacet/resources/uml.efacet#//uml_element/isUMLElementQuery"/>
- <defaultFacets href="platform:/plugin/org.eclipse.papyrus.infra.emf.efacet/resources/papyrus_emf_facets.efacet#//papyrus_emf_facets"/>
- <defaultCustomizations href="platform:/plugin/org.eclipse.papyrus.infra.emf.efacet/resources/emf_hidden_features.custom#/"/>
- <defaultCustomizations href="platform:/plugin/org.eclipse.papyrus.uml.efacet/resources/uml_label.custom#/"/>
- <defaultColumns xsi:type="efacet:FacetReference" href="platform:/plugin/org.eclipse.papyrus.infra.emf.efacet/resources/papyrus_emf_facets.efacet#//papyrus_emf_facets/self"/>
- </tableConfiguration>
-</org.eclipse.papyrus.infra.table.papyrustableconfiguration:PapyrusTableConfiguration> \ No newline at end of file
diff --git a/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/Activator.java b/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/Activator.java
deleted file mode 100644
index d59d22d522b..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/Activator.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 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:
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.table.uml.generic;
-
-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.table.uml.generic"; //$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/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/editor/GenericTableEditor.java b/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/editor/GenericTableEditor.java
deleted file mode 100644
index 7af54ad0c76..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/editor/GenericTableEditor.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 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:
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.table.uml.generic.editor;
-
-import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
-import org.eclipse.papyrus.infra.table.common.editor.AbstractTableEditor;
-import org.eclipse.papyrus.infra.table.metamodel.papyrustable.PapyrusTable;
-
-
-public class GenericTableEditor extends AbstractTableEditor{
-
- /** the type of the editor */
- public static final String EDITOR_TYPE = "PapyrusGenericTable"; //$NON-NLS-1$
-
- /** the default name for this table */
- public static final String DEFAULT_NAME = "GenericTable"; //$NON-NLS-1$
-
- /**
- * @param servicesRegistry
- * @param rawModel
- *
- */
- public GenericTableEditor(final ServicesRegistry servicesRegistry, final PapyrusTable rawModel) {
- super(servicesRegistry, rawModel);
- }
-
-
-}
diff --git a/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/factory/GenericTableEditorFactory.java b/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/factory/GenericTableEditorFactory.java
deleted file mode 100644
index d6743091e0c..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/factory/GenericTableEditorFactory.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 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:
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-
-
-package org.eclipse.papyrus.table.uml.generic.factory;
-
-import org.eclipse.papyrus.infra.table.common.factory.AbstractTableEditorFactory;
-import org.eclipse.papyrus.table.uml.generic.editor.GenericTableEditor;
-
-
-/**
- * @author dumoulin
- *
- */
-public class GenericTableEditorFactory extends AbstractTableEditorFactory {
-
-
- /**
- * Constructor.
- *
- * @param diagramClass
- * @param expectedType
- */
- public GenericTableEditorFactory() {
- super(GenericTableEditor.class, GenericTableEditor.EDITOR_TYPE);
- }
-
-
-}
diff --git a/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/handlers/CreateGenericTableEditorHandler.java b/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/handlers/CreateGenericTableEditorHandler.java
deleted file mode 100644
index 02a58c07501..00000000000
--- a/incoming/org.eclipse.papyrus.table.uml.generic/src/org/eclipse/papyrus/table/uml/generic/handlers/CreateGenericTableEditorHandler.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 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:
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.table.uml.generic.handlers;
-
-import org.eclipse.emf.common.util.URI;
-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.papyrus.infra.table.common.handlers.AbstractCreateTableEditorHandler;
-import org.eclipse.papyrus.infra.table.papyrustableconfiguration.metamodel.papyrustableconfiguration.PapyrusTableConfiguration;
-
-import org.eclipse.papyrus.table.uml.generic.Activator;
-import org.eclipse.papyrus.table.uml.generic.editor.GenericTableEditor;
-
-
-public class CreateGenericTableEditorHandler extends AbstractCreateTableEditorHandler {
-
- /**
- *
- * Constructor.
- *
- */
- public CreateGenericTableEditorHandler() {
- super(GenericTableEditor.EDITOR_TYPE, GenericTableEditor.DEFAULT_NAME);
- }
-
- /**
- *
- * @see org.eclipse.papyrus.infra.table.common.handlers.AbstractCreateTableEditorHandler#getPapyrusTableConfiguration()
- *
- * @return
- */
- @Override
- protected PapyrusTableConfiguration getPapyrusTableConfiguration() {
- final ResourceSet resourceSet = getTableContext().eResource().getResourceSet();
-
- final String symbolicName = Activator.getDefault().getBundle().getSymbolicName();
- final URI uri = URI.createPlatformPluginURI(symbolicName + "/resources/uml_generic_table.papyrustableconfiguration", true); //$NON-NLS-1$
- final Resource resource = resourceSet.getResource(uri, true);
-
- PapyrusTableConfiguration configuration = null;
-
- if(resource.getContents().get(0) instanceof PapyrusTableConfiguration) {
- configuration = (PapyrusTableConfiguration)resource.getContents().get(0);
- }
- return configuration;
- }
-
-}

Back to the top