| commit | 6102163e61fab7694e3748917985bef62d67968d | [log] [tgz] |
|---|---|---|
| author | tarendt <tarendt> | Mon Sep 23 23:53:51 2013 +0200 |
| committer | tarendt <tarendt> | Mon Sep 23 23:53:51 2013 +0200 |
| tree | bf0ce139533cb7b91c2db4ae553a6bb09b57e584 | |
| parent | 86888261e5179edc773888e6bea280b799a7f7a2 [diff] |
papyrus invocation added
diff --git a/org.eclipse.emf.refactor.refactorings.uml24.compositional/bin/org/eclipse/emf/refactor/refactorings/uml24/removesuperclass/RefactoringGuiHandler.class b/org.eclipse.emf.refactor.refactorings.uml24.compositional/bin/org/eclipse/emf/refactor/refactorings/uml24/removesuperclass/RefactoringGuiHandler.class index 1592786..3f50cc3 100644 --- a/org.eclipse.emf.refactor.refactorings.uml24.compositional/bin/org/eclipse/emf/refactor/refactorings/uml24/removesuperclass/RefactoringGuiHandler.class +++ b/org.eclipse.emf.refactor.refactorings.uml24.compositional/bin/org/eclipse/emf/refactor/refactorings/uml24/removesuperclass/RefactoringGuiHandler.class Binary files differ
diff --git a/org.eclipse.emf.refactor.refactorings.uml24.compositional/src/org/eclipse/emf/refactor/refactorings/uml24/removesuperclass/RefactoringGuiHandler.java b/org.eclipse.emf.refactor.refactorings.uml24.compositional/src/org/eclipse/emf/refactor/refactorings/uml24/removesuperclass/RefactoringGuiHandler.java index dec04fa..ff8f82b 100644 --- a/org.eclipse.emf.refactor.refactorings.uml24.compositional/src/org/eclipse/emf/refactor/refactorings/uml24/removesuperclass/RefactoringGuiHandler.java +++ b/org.eclipse.emf.refactor.refactorings.uml24.compositional/src/org/eclipse/emf/refactor/refactorings/uml24/removesuperclass/RefactoringGuiHandler.java
@@ -61,14 +61,18 @@ */ @Override public boolean showInMenu(List<EObject> selection) { - if (selection.size() != 1) return false; - for (EObject o : selection) { - if (null != o) { - if (o instanceof org.eclipse.uml2.uml.Class) { + if (selection.size() > 2) return false; + EObject o = selection.get(0); + if(null != o){ + if (o instanceof org.eclipse.uml2.uml.Class) { + if (selection.size() == 2) { + EObject eo = selection.get(1); + if (eo.eClass().getName().equals("Diagram")) return true; + } else { return true; } - } - } + } + } return false; }