Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkhussey2007-04-24 21:47:23 +0000
committerkhussey2007-04-24 21:47:23 +0000
commite2f37f4a180292e8bb9728c32db0901e26480548 (patch)
tree2d2a83959a1b4e1b9cff65f19eea3756f4a547a6 /plugins/org.eclipse.uml2.uml.editor
parenteeb73cb59b88159cd1513e1620060475676ac544 (diff)
downloadorg.eclipse.uml2-e2f37f4a180292e8bb9728c32db0901e26480548.tar.gz
org.eclipse.uml2-e2f37f4a180292e8bb9728c32db0901e26480548.tar.xz
org.eclipse.uml2-e2f37f4a180292e8bb9728c32db0901e26480548.zip
[160679] Regenerating based on changes in EMF.
Diffstat (limited to 'plugins/org.eclipse.uml2.uml.editor')
-rw-r--r--plugins/org.eclipse.uml2.uml.editor/src/org/eclipse/uml2/uml/editor/presentation/UMLEditor.java20
1 files changed, 16 insertions, 4 deletions
diff --git a/plugins/org.eclipse.uml2.uml.editor/src/org/eclipse/uml2/uml/editor/presentation/UMLEditor.java b/plugins/org.eclipse.uml2.uml.editor/src/org/eclipse/uml2/uml/editor/presentation/UMLEditor.java
index b7f940845..ca3acd185 100644
--- a/plugins/org.eclipse.uml2.uml.editor/src/org/eclipse/uml2/uml/editor/presentation/UMLEditor.java
+++ b/plugins/org.eclipse.uml2.uml.editor/src/org/eclipse/uml2/uml/editor/presentation/UMLEditor.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: UMLEditor.java,v 1.31 2007/03/30 15:26:07 khussey Exp $
+ * $Id: UMLEditor.java,v 1.32 2007/04/24 21:47:23 khussey Exp $
*/
package org.eclipse.uml2.uml.editor.presentation;
@@ -55,6 +55,7 @@ import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter;
import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider;
import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
+import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider;
import org.eclipse.emf.edit.ui.provider.PropertyDescriptor;
import org.eclipse.emf.edit.ui.provider.PropertySource;
@@ -643,11 +644,20 @@ public class UMLEditor
* This creates a model editor.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated NOT
+ * @generated
*/
public UMLEditor() {
super();
+ initializeEditingDomain();
+ }
+ /**
+ * This sets up the editing domain for the model editor.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated NOT
+ */
+ protected void initializeEditingDomain() {
// Create an adapter factory that yields item providers.
//
List<AdapterFactory> factories = new ArrayList<AdapterFactory>();
@@ -696,7 +706,8 @@ public class UMLEditor
setSelectionToViewer(mostRecentCommand
.getAffectedObjects());
}
- if (propertySheetPage != null) {
+ if (propertySheetPage != null
+ && !propertySheetPage.getControl().isDisposed()) {
propertySheetPage.refresh();
}
}
@@ -878,7 +889,8 @@ public class UMLEditor
contextMenu.addMenuListener(this);
Menu menu = contextMenu.createContextMenu(viewer.getControl());
viewer.getControl().setMenu(menu);
- getSite().registerContextMenu(contextMenu, viewer);
+ getSite().registerContextMenu(contextMenu,
+ new UnwrappingSelectionProvider(viewer));
int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;
Transfer[] transfers = new Transfer[]{LocalTransfer.getInstance()};

Back to the top