Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/TableEFacet/org.eclipse.papyrus.table.efacet.uml.generic/src/org/eclipse/papyrus/uml/table/efacet/generic/handlers/CreateGenericTableEditorHandler.java')
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.table.efacet.uml.generic/src/org/eclipse/papyrus/uml/table/efacet/generic/handlers/CreateGenericTableEditorHandler.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.table.efacet.uml.generic/src/org/eclipse/papyrus/uml/table/efacet/generic/handlers/CreateGenericTableEditorHandler.java b/deprecated/TableEFacet/org.eclipse.papyrus.table.efacet.uml.generic/src/org/eclipse/papyrus/uml/table/efacet/generic/handlers/CreateGenericTableEditorHandler.java
new file mode 100644
index 00000000000..2f44b87ee42
--- /dev/null
+++ b/deprecated/TableEFacet/org.eclipse.papyrus.table.efacet.uml.generic/src/org/eclipse/papyrus/uml/table/efacet/generic/handlers/CreateGenericTableEditorHandler.java
@@ -0,0 +1,44 @@
+/*****************************************************************************
+ * 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.uml.table.efacet.generic.handlers;
+
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.papyrus.infra.table.efacet.common.handlers.AbstractCreateTableEditorHandler;
+import org.eclipse.papyrus.uml.table.efacet.generic.Activator;
+import org.eclipse.papyrus.uml.table.efacet.generic.editor.GenericTableEditor;
+
+
+public class CreateGenericTableEditorHandler extends AbstractCreateTableEditorHandler {
+
+ /**
+ *
+ * Constructor.
+ *
+ */
+ public CreateGenericTableEditorHandler() {
+ super(GenericTableEditor.EDITOR_TYPE, GenericTableEditor.DEFAULT_NAME);
+ }
+
+
+ /**
+ *
+ * @return
+ * the uri of the papyrus table configuration to use for the Papyrus Table
+ */
+ protected URI getPapyrusTableConfigurationURI() {
+ final String symbolicName = Activator.getDefault().getBundle().getSymbolicName();
+ final URI uri = URI.createPlatformPluginURI(symbolicName + "/resources/uml_generic_table.papyrustableconfiguration", true); //$NON-NLS-1$
+ return uri;
+ }
+}

Back to the top