Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2014-03-14 16:22:19 +0000
committerChristian W. Damus2014-03-14 16:22:39 +0000
commite72594f8b53baae96aba6ecc452ab582314c5d01 (patch)
tree7c853f49e5a865180427661dba67fa42833fca72 /plugins/views/properties
parent4cb5422588c5e06ebb8cc66645cdce15ef970f29 (diff)
downloadorg.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.java2
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);
}
/**

Back to the top