Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.classpath7
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.project28
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/META-INF/MANIFEST.MF21
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/build.properties5
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/plugin.xml12
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/Activator.java50
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/AbstractTableEFacetHandler.java58
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/DeleteTableEFacetHandler.java79
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/DuplicateTableEFacetHandler.java80
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/RenameTableEFacetHandler.java84
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/messages/Messages.java21
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/messages/messages.properties3
13 files changed, 0 insertions, 455 deletions
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.classpath b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.classpath
deleted file mode 100644
index 2d1a4302f04..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.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/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.project b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.project
deleted file mode 100644
index 80a28e8b68d..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.infra.table.efacet.modelexplorer</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/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.settings/org.eclipse.jdt.core.prefs b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 44217f8c068..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/.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/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/META-INF/MANIFEST.MF b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/META-INF/MANIFEST.MF
deleted file mode 100644
index 15b77fb2876..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,21 +0,0 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.emf.ecore,
- org.eclipse.papyrus.views.modelexplorer;bundle-version="0.10.1",
- org.eclipse.papyrus.infra.table.efacet.metamodel;bundle-version="0.10.1",
- org.eclipse.emf.transaction,
- org.eclipse.gmf.runtime.emf.type.core,
- org.eclipse.papyrus.infra.core.sasheditor;bundle-version="0.10.1",
- org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="0.10.1"
-Bundle-Vendor: Eclipse Modeling Project
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 0.10.1.qualifier
-Bundle-Name: EFacetTable Modelexplorer (Incubation)
-Bundle-ManifestVersion: 2
-Bundle-Activator: org.eclipse.papyrus.infra.table.efacet.modelexplorer
- .Activator
-Bundle-SymbolicName: org.eclipse.papyrus.infra.table.efacet.modelexplo
- rer;singleton:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/build.properties b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/build.properties
deleted file mode 100644
index 6f20375d6c7..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/build.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/plugin.xml b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/plugin.xml
deleted file mode 100644
index 73413a251b4..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/plugin.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
-<extension point="org.eclipse.ui.handlers">
- <handler class="org.eclipse.papyrus.infra.table.efacet.modelexplorer.handlers.DeleteTableEFacetHandler" commandId="org.eclipse.ui.edit.delete">
- </handler>
- <handler class="org.eclipse.papyrus.infra.table.efacet.modelexplorer.handlers.DuplicateTableEFacetHandler" commandId="org.eclipse.papyrus.views.modelexplorer.duplicate.command">
- </handler>
- <handler class="org.eclipse.papyrus.infra.table.efacet.modelexplorer.handlers.RenameTableEFacetHandler" commandId="org.eclipse.ui.edit.rename">
- </handler>
- </extension>
-</plugin>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/Activator.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/Activator.java
deleted file mode 100644
index 8ba19528072..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/Activator.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package org.eclipse.papyrus.infra.table.efacet.modelexplorer;
-
-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.infra.table.efacet.modelexplorer"; //$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/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/AbstractTableEFacetHandler.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/AbstractTableEFacetHandler.java
deleted file mode 100644
index 9814e0cb650..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/AbstractTableEFacetHandler.java
+++ /dev/null
@@ -1,58 +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.infra.table.efacet.modelexplorer.handlers;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrusTable;
-import org.eclipse.papyrus.views.modelexplorer.handler.AbstractCommandHandler;
-import org.eclipse.ui.PlatformUI;
-
-
-public abstract class AbstractTableEFacetHandler extends AbstractCommandHandler {
-
- /**
- * Returns the list of selected tables
- *
- * @return
- * the list of selected tables
- */
- protected List<PapyrusTable> getSelectedTables() {
- final List<PapyrusTable> tables = new ArrayList<PapyrusTable>();
- final ISelection selection = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService().getSelection();
-
- // Get first element if the selection is an IStructuredSelection
- if(selection instanceof IStructuredSelection) {
- final IStructuredSelection structuredSelection = (IStructuredSelection)selection;
- final Iterator<?> iter = structuredSelection.iterator();
- while(iter.hasNext()) {
- final Object current = iter.next();
- if(current instanceof IAdaptable) {
- final EObject table = (EObject)((IAdaptable)current).getAdapter(EObject.class);
- if(table instanceof PapyrusTable) {
- tables.add((PapyrusTable)table);
- }
- }
- }
- }
- return tables;
- }
-
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/DeleteTableEFacetHandler.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/DeleteTableEFacetHandler.java
deleted file mode 100644
index 1d41b87c524..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/DeleteTableEFacetHandler.java
+++ /dev/null
@@ -1,79 +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.infra.table.efacet.modelexplorer.handlers;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.command.CompoundCommand;
-import org.eclipse.emf.common.command.UnexecutableCommand;
-import org.eclipse.emf.ecore.EStructuralFeature.Setting;
-import org.eclipse.emf.ecore.util.ECrossReferenceAdapter;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.papyrus.commands.DestroyElementPapyrusCommand;
-import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper;
-import org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageMngr;
-import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrusTable;
-
-/**
- * Handler for the delete Table action
- *
- *
- *
- */
-public class DeleteTableEFacetHandler extends AbstractTableEFacetHandler {
-
-
- /**
- *
- * @see org.eclipse.papyrus.views.modelexplorer.handler.AbstractCommandHandler#getCommand()
- *
- * @return
- */
- @Override
- protected Command getCommand() {
- final TransactionalEditingDomain editingDomain = getEditingDomain();
- final IPageMngr pageMngr = getPageManager();
- final List<PapyrusTable> tables = getSelectedTables();
-
- if(editingDomain != null && pageMngr != null && !tables.isEmpty()) {
- final CompoundCommand command = new CompoundCommand();
-
- for(final PapyrusTable table : tables) {
- final ECrossReferenceAdapter cross = ECrossReferenceAdapter.getCrossReferenceAdapter(table);
- final Collection<Setting> ref = cross.getInverseReferences(table);
- final Command sashRemoveComd = new RecordingCommand(editingDomain) {
-
- @Override
- protected void doExecute() {
- if(pageMngr.allPages().contains(table)) {
- if(pageMngr.isOpen(table)) {
- pageMngr.closePage(table);
- }
- pageMngr.removePage(table);
- }
- }
- };
- // the destroy element command is a good way to destroy the cross reference
- command.append(sashRemoveComd);
- command.append(new GMFtoEMFCommandWrapper(new DestroyElementPapyrusCommand(new DestroyElementRequest(table, false))));
- }
- return command.isEmpty() ? UnexecutableCommand.INSTANCE : command;
- }
- return UnexecutableCommand.INSTANCE;
- }
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/DuplicateTableEFacetHandler.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/DuplicateTableEFacetHandler.java
deleted file mode 100644
index 20ef92a07a9..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/DuplicateTableEFacetHandler.java
+++ /dev/null
@@ -1,80 +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.infra.table.efacet.modelexplorer.handlers;
-
-import java.util.List;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.command.CompoundCommand;
-import org.eclipse.emf.common.command.UnexecutableCommand;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.edit.command.AddCommand;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageMngr;
-import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrusTable;
-import org.eclipse.papyrus.infra.table.efacet.modelexplorer.messages.Messages;
-
-/**
- * This handler provides the duplicate action for the tables
- *
- *
- *
- */
-public class DuplicateTableEFacetHandler extends AbstractTableEFacetHandler {
-
- /**
- *
- * @see org.eclipse.papyrus.views.modelexplorer.handler.AbstractCommandHandler#getCommand()
- *
- * @return
- */
- @Override
- protected Command getCommand() {
- final TransactionalEditingDomain editingDomain = getEditingDomain();
- final IPageMngr pageManager = getPageManager();
- final List<PapyrusTable> tables = getSelectedTables();
-
- if(editingDomain != null && pageManager != null && !tables.isEmpty()) {
- final CompoundCommand command = new CompoundCommand();
- for(final PapyrusTable table : tables) {
-
- // Clone the current diagram
- final PapyrusTable newTable = EcoreUtil.copy(table);
- // Give a new name
- newTable.setName(NLS.bind(Messages.DuplicateTableEFacetHandler_CopyOf, table.getName()));
- final Command addGmfDiagramCmd = new AddCommand(editingDomain, table.eResource().getContents(), newTable);
- // EMFCommandOperation operation = new
- // EMFCommandOperation(editingDomain,
- // addGmfDiagramCmd);
-
- final Command sashOpenComd = new RecordingCommand(editingDomain) {
-
- @Override
- protected void doExecute() {
- pageManager.openPage(newTable);
- }
- };
-
- // TODO : synchronize with Cedric
- // command.append(operation.getCommand());
- command.append(addGmfDiagramCmd);
- command.append(sashOpenComd);
- }
- return command.isEmpty() ? UnexecutableCommand.INSTANCE : command;
- }
- return UnexecutableCommand.INSTANCE;
- }
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/RenameTableEFacetHandler.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/RenameTableEFacetHandler.java
deleted file mode 100644
index c3b09ef2540..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/handlers/RenameTableEFacetHandler.java
+++ /dev/null
@@ -1,84 +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.infra.table.efacet.modelexplorer.handlers;
-
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.command.UnexecutableCommand;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
-import org.eclipse.jface.dialogs.InputDialog;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper;
-import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrusTable;
-import org.eclipse.papyrus.infra.table.efacet.modelexplorer.messages.Messages;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * This handler provides the method to rename a Table
- *
- *
- *
- */
-public class RenameTableEFacetHandler extends AbstractTableEFacetHandler {
-
-
- /**
- *
- * @see org.eclipse.papyrus.views.modelexplorer.handler.AbstractCommandHandler#getCommand()
- *
- * @return
- */
- @Override
- protected Command getCommand() {
- final TransactionalEditingDomain editingDomain = getEditingDomain();
- final List<PapyrusTable> tables = getSelectedTables();
- if(editingDomain != null && tables.size() == 1) {
-
- final PapyrusTable table = tables.get(0);
- final String currentName = table.getName();
-
- if(currentName != null) {
-
- final AbstractTransactionalCommand cmd = new AbstractTransactionalCommand(editingDomain, "Rename EFacetTable", null) { //$NON-NLS-1$
-
- @Override
- protected CommandResult doExecuteWithResult(final IProgressMonitor monitor, final IAdaptable info) {
- final InputDialog dialog = new InputDialog(Display.getCurrent().getActiveShell(), Messages.RenameTableEFacetHandler_RenameAnExistingTable, Messages.RenameTableEFacetHandler_NewName, currentName, null);
- if(dialog.open() == Window.OK) {
- final String name = dialog.getValue();
- if(name != null && name.length() > 0) {
- table.setName(name);
- }
- return CommandResult.newOKCommandResult();
- } else {
- return CommandResult.newCancelledCommandResult();
- }
- }
- };
- return new GMFtoEMFCommandWrapper(cmd);
- }
-
- }
- return UnexecutableCommand.INSTANCE;
- }
-
-
-
-
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/messages/Messages.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/messages/Messages.java
deleted file mode 100644
index f572ea6465a..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/messages/Messages.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package org.eclipse.papyrus.infra.table.efacet.modelexplorer.messages;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
-
- private static final String BUNDLE_NAME = "org.eclipse.papyrus.infra.table.efacet.modelexplorer.messages.messages"; //$NON-NLS-1$
-
- public static String DuplicateTableEFacetHandler_CopyOf;
-
- public static String RenameTableEFacetHandler_NewName;
-
- public static String RenameTableEFacetHandler_RenameAnExistingTable;
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/messages/messages.properties b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/messages/messages.properties
deleted file mode 100644
index cb67e73a298..00000000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet.modelexplorer/src/org/eclipse/papyrus/infra/table/efacet/modelexplorer/messages/messages.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-DuplicateTableEFacetHandler_CopyOf=Copy_Of
-RenameTableEFacetHandler_NewName=New name
-RenameTableEFacetHandler_RenameAnExistingTable=Rename an existing table

Back to the top