summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-02-22 07:22:44 (EST)
committerStephan Born2012-04-24 10:13:04 (EDT)
commitda3fe15b8a61ee571fcf6b8f5c9a8ac5594cd0de (patch)
tree980e6cd1ee98e2af323ebdb9b3ba834915c510b4
parent9c64ed04bb2f1c6c50f0d3d2d98274d49d8dc56c (diff)
downloadorg.eclipse.stardust.ide-da3fe15b8a61ee571fcf6b8f5c9a8ac5594cd0de.zip
org.eclipse.stardust.ide-da3fe15b8a61ee571fcf6b8f5c9a8ac5594cd0de.tar.gz
org.eclipse.stardust.ide-da3fe15b8a61ee571fcf6b8f5c9a8ac5594cd0de.tar.bz2
Jira-ID: CRNT-23250 Could not create debug configuration for Infinity Process Model
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@53985 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/ui/EObjectLabelProvider.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/ui/EObjectLabelProvider.java b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/ui/EObjectLabelProvider.java
index 4108941..618a601 100644
--- a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/ui/EObjectLabelProvider.java
+++ b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/ui/EObjectLabelProvider.java
@@ -16,6 +16,7 @@ import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.stardust.model.xpdl.carnot.ITypedElement;
import org.eclipse.stardust.modeling.core.DiagramPlugin;
import org.eclipse.stardust.modeling.core.editors.WorkflowModelEditor;
+import org.eclipse.stardust.modeling.core.editors.parts.IconFactory;
import org.eclipse.swt.graphics.Image;
@@ -92,7 +93,16 @@ public class EObjectLabelProvider
public Image getImage(Object element)
{
- String icon = editor.getIconFactory().getIconFor((EObject) element);
+ IconFactory iconFactory;
+ if (editor != null)
+ {
+ iconFactory = editor.getIconFactory();
+ }
+ else
+ {
+ iconFactory = new IconFactory(null);
+ }
+ String icon = iconFactory.getIconFor((EObject) element);
return icon == null ? null : DiagramPlugin.getImage(icon);
}
} \ No newline at end of file