Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2013-02-18 15:50:30 +0000
committercletavernie2013-02-18 15:50:30 +0000
commitf6beec7ac32f7979034f4a7ed96562d6ebb6cb5a (patch)
tree80076e899d16f9df808edcc9c251db6f379317c8 /extraplugins/uml/org.eclipse.papyrus.uml.export
parent6773747c768861b2c89f2a232f6f600c482fcc66 (diff)
downloadorg.eclipse.papyrus-f6beec7ac32f7979034f4a7ed96562d6ebb6cb5a.tar.gz
org.eclipse.papyrus-f6beec7ac32f7979034f4a7ed96562d6ebb6cb5a.tar.xz
org.eclipse.papyrus-f6beec7ac32f7979034f4a7ed96562d6ebb6cb5a.zip
398712: [Core] Multiple issues with the PageManager
https://bugs.eclipse.org/bugs/show_bug.cgi?id=398712 360243: [ModelExplorer] Undo/Redo on delete for Diagrams and Tables https://bugs.eclipse.org/bugs/show_bug.cgi?id=360243
Diffstat (limited to 'extraplugins/uml/org.eclipse.papyrus.uml.export')
-rw-r--r--extraplugins/uml/org.eclipse.papyrus.uml.export/src/org/eclipse/papyrus/uml/export/handlers/ExportProfilesCommand.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/extraplugins/uml/org.eclipse.papyrus.uml.export/src/org/eclipse/papyrus/uml/export/handlers/ExportProfilesCommand.java b/extraplugins/uml/org.eclipse.papyrus.uml.export/src/org/eclipse/papyrus/uml/export/handlers/ExportProfilesCommand.java
index b3bdf017afb..2a031ac6622 100644
--- a/extraplugins/uml/org.eclipse.papyrus.uml.export/src/org/eclipse/papyrus/uml/export/handlers/ExportProfilesCommand.java
+++ b/extraplugins/uml/org.eclipse.papyrus.uml.export/src/org/eclipse/papyrus/uml/export/handlers/ExportProfilesCommand.java
@@ -45,7 +45,6 @@ import org.eclipse.papyrus.eclipse.project.editors.file.ManifestEditor;
import org.eclipse.papyrus.infra.core.resource.ModelSet;
import org.eclipse.papyrus.infra.core.resource.NotFoundException;
import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.core.utils.ServiceUtilsForActionHandlers;
import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForResource;
import org.eclipse.papyrus.infra.widgets.util.FileUtil;
import org.eclipse.papyrus.uml.export.dialog.ExportProfilesParametersDialog;
@@ -141,13 +140,10 @@ public class ExportProfilesCommand extends AbstractTransactionalCommand {
@Override
protected CommandResult doExecuteWithResult(IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException {
-
-
- ServiceUtilsForActionHandlers serviceUtils = ServiceUtilsForActionHandlers.getInstance();
UmlModel openedModel;
try {
- openedModel = (UmlModel)serviceUtils.getModelSet().getModel(UmlModel.MODEL_ID);
+ openedModel = (UmlModel)((ModelSet)getEditingDomain().getResourceSet()).getModel(UmlModel.MODEL_ID);
if(openedModel != null) {
EObject root = openedModel.lookupRoot();
@@ -192,9 +188,6 @@ public class ExportProfilesCommand extends AbstractTransactionalCommand {
} else {
return CommandResult.newErrorCommandResult(Messages.ExportProfilesCommand_7);
}
- } catch (ServiceException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
} catch (NotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();

Back to the top