diff options
author | vlorenzo | 2013-03-25 16:45:48 +0000 |
---|---|---|
committer | vlorenzo | 2013-03-25 16:45:48 +0000 |
commit | 9d5051c763124c869453301db787946835a65e10 (patch) | |
tree | 010e189908da3ba8361f02622c3dc8422321e973 /sandbox | |
parent | 186d20d81de27628d5d022486bb3f19e8de0808a (diff) | |
download | org.eclipse.papyrus-9d5051c763124c869453301db787946835a65e10.tar.gz org.eclipse.papyrus-9d5051c763124c869453301db787946835a65e10.tar.xz org.eclipse.papyrus-9d5051c763124c869453301db787946835a65e10.zip |
401764: [Table 2] The classes managing the table model and Nattable must be refactored
https://bugs.eclipse.org/bugs/show_bug.cgi?id=401764
remove a usage on a class @Deprecated
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/TableV3/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/AbstractCreateNattableEditorHandler.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sandbox/TableV3/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/AbstractCreateNattableEditorHandler.java b/sandbox/TableV3/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/AbstractCreateNattableEditorHandler.java index 397b977d64c..6b3ce199706 100644 --- a/sandbox/TableV3/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/AbstractCreateNattableEditorHandler.java +++ b/sandbox/TableV3/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/AbstractCreateNattableEditorHandler.java @@ -36,7 +36,7 @@ import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.papyrus.infra.core.editor.BackboneException;
import org.eclipse.papyrus.infra.core.editor.IMultiDiagramEditor;
import org.eclipse.papyrus.infra.core.resource.NotFoundException;
-import org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageMngr;
+import org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageManager;
import org.eclipse.papyrus.infra.core.services.ServiceException;
import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
import org.eclipse.papyrus.infra.core.utils.EditorUtils;
@@ -114,7 +114,6 @@ public abstract class AbstractCreateNattableEditorHandler extends AbstractHandle public void runAsTransaction(final ExecutionEvent event) throws ServiceException {
// default Value
final String name;
- final String description;
final InputDialog dialog = new InputDialog(Display.getDefault().getActiveShell(), Messages.AbstractCreateNattableEditorHandler_PapyrusTableCreation, Messages.AbstractCreateNattableEditorHandler_EnterTheNameForTheNewTable, this.defaultName, null);
if(dialog.open() == Dialog.OK) {
name = dialog.getValue();
@@ -125,7 +124,7 @@ public abstract class AbstractCreateNattableEditorHandler extends AbstractHandle @Override
protected void doExecute() {
try {
- AbstractCreateNattableEditorHandler.this.doExecute(serviceRegistry, name, description);
+ AbstractCreateNattableEditorHandler.this.doExecute(serviceRegistry, name, this.description);
} catch (final NotFoundException e) {
Activator.log.error(e);
} catch (final ServiceException e) {
@@ -149,7 +148,7 @@ public abstract class AbstractCreateNattableEditorHandler extends AbstractHandle final Object editorModel = createEditorModel(serviceRegistry, name, description);
// Get the mngr allowing to add/open new editor.
- final IPageMngr pageMngr = ServiceUtils.getInstance().getIPageMngr(serviceRegistry);
+ final IPageManager pageMngr = ServiceUtils.getInstance().getIPageManager(serviceRegistry);
// add the new editor model to the sash.
pageMngr.openPage(editorModel);
|