diff options
author | Christian W. Damus | 2014-03-14 16:22:19 +0000 |
---|---|---|
committer | Christian W. Damus | 2014-03-14 16:22:39 +0000 |
commit | e72594f8b53baae96aba6ecc452ab582314c5d01 (patch) | |
tree | 7c853f49e5a865180427661dba67fa42833fca72 /plugins/views/properties | |
parent | 4cb5422588c5e06ebb8cc66645cdce15ef970f29 (diff) | |
download | org.eclipse.papyrus-e72594f8b53baae96aba6ecc452ab582314c5d01.tar.gz org.eclipse.papyrus-e72594f8b53baae96aba6ecc452ab582314c5d01.tar.xz org.eclipse.papyrus-e72594f8b53baae96aba6ecc452ab582314c5d01.zip |
430400: [Properties View / Transactions] Cannot add a Stylesheet for a Diagram
https://bugs.eclipse.org/bugs/show_bug.cgi?id=430400
Don't attempt to create a creation-context adapter when there is no context EObject.
Diffstat (limited to 'plugins/views/properties')
-rw-r--r-- | plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/creation/EcorePropertyEditorFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/creation/EcorePropertyEditorFactory.java b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/creation/EcorePropertyEditorFactory.java index 011342d84c7..b1c2cbc26c8 100644 --- a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/creation/EcorePropertyEditorFactory.java +++ b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/creation/EcorePropertyEditorFactory.java @@ -471,7 +471,7 @@ public class EcorePropertyEditorFactory extends PropertyEditorFactory { @Override
protected CreationContext getCreationContext(Object element) {
- return getCreationContext((EObject)element, true);
+ return (element instanceof EObject) ? getCreationContext((EObject)element, true) : super.getCreationContext(element);
}
/**
|