summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-10-12 04:06:29 (EDT)
committer Manik Kishore2012-10-12 04:06:29 (EDT)
commit2702a8b2228ba028cf4a79074bc77a328a028aa8 (patch)
treebce6332d150510b1eacf5e498f8827929961a536
parentba36d295b8c789c5262e46c2bee23a3befcd198e (diff)
downloadorg.eclipse.stardust.ide-2702a8b2228ba028cf4a79074bc77a328a028aa8.zip
org.eclipse.stardust.ide-2702a8b2228ba028cf4a79074bc77a328a028aa8.tar.gz
org.eclipse.stardust.ide-2702a8b2228ba028cf4a79074bc77a328a028aa8.tar.bz2
Jira-ID: CRNT-26569
'Unhandled event loop exception' on clicking 'Restore Defaults' on JMS Application properties page git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@59974 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/jms/JmsPropertyPage.java31
1 files changed, 18 insertions, 13 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/jms/JmsPropertyPage.java b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/jms/JmsPropertyPage.java
index bd2fb7b..1aa53f5 100644
--- a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/jms/JmsPropertyPage.java
+++ b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/spi/applicationTypes/jms/JmsPropertyPage.java
@@ -18,6 +18,18 @@ import org.eclipse.gef.EditPart;
import org.eclipse.jface.viewers.IFilter;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.MouseAdapter;
+import org.eclipse.swt.events.MouseEvent;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Tree;
+
import org.eclipse.stardust.engine.extensions.jms.app.JMSDirection;
import org.eclipse.stardust.model.xpdl.carnot.AccessPointType;
import org.eclipse.stardust.model.xpdl.carnot.ApplicationType;
@@ -43,17 +55,6 @@ import org.eclipse.stardust.modeling.core.properties.IButtonManager;
import org.eclipse.stardust.modeling.core.properties.ModelElementAdaptable;
import org.eclipse.stardust.modeling.core.properties.ModelElementsOutlineSynchronizer;
import org.eclipse.stardust.modeling.core.spi.ConfigurationElement;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.MouseAdapter;
-import org.eclipse.swt.events.MouseEvent;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Tree;
public class JmsPropertyPage extends AbstractModelElementPropertyPage
implements IButtonManager
@@ -296,8 +297,12 @@ public class JmsPropertyPage extends AbstractModelElementPropertyPage
{
public boolean select(Object toTest)
{
- return AccessPointUtil.isDirectionCompatible(
- (AccessPointType) toTest, false);
+ if (toTest instanceof AccessPointType)
+ {
+ return AccessPointUtil.isDirectionCompatible(
+ (AccessPointType) toTest, false);
+ }
+ return false;
}
})
{