Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Mueller2015-04-10 07:59:37 +0000
committerMarvin Mueller2015-04-10 08:00:06 +0000
commitedfd7b9247a65f4d7b6efcc3d70b6ec4bc67ed5e (patch)
tree9abe669df0447aad67d49de8e9da07f70e08962b /org.eclipse.jubula.client.ui.rcp
parentc372aae647bd9de1811c640023d9e95e0c86eaed (diff)
downloadorg.eclipse.jubula.core-edfd7b9247a65f4d7b6efcc3d70b6ec4bc67ed5e.tar.gz
org.eclipse.jubula.core-edfd7b9247a65f4d7b6efcc3d70b6ec4bc67ed5e.tar.xz
org.eclipse.jubula.core-edfd7b9247a65f4d7b6efcc3d70b6ec4bc67ed5e.zip
Non-sprint task - fix for http://bugs.eclipse.org/463576
Diffstat (limited to 'org.eclipse.jubula.client.ui.rcp')
-rw-r--r--org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/search/result/BasicSearchResult.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/search/result/BasicSearchResult.java b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/search/result/BasicSearchResult.java
index 65488caa3..e8eae4a66 100644
--- a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/search/result/BasicSearchResult.java
+++ b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/search/result/BasicSearchResult.java
@@ -20,6 +20,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jubula.client.core.businessprocess.TestDataCubeBP;
+import org.eclipse.jubula.client.core.businessprocess.db.NodeBP;
import org.eclipse.jubula.client.core.model.IAUTMainPO;
import org.eclipse.jubula.client.core.model.ICapPO;
import org.eclipse.jubula.client.core.model.IEventExecTestCasePO;
@@ -451,12 +452,15 @@ public class BasicSearchResult implements ISearchResult {
specNode = node;
}
- IEditorPart openEditor = AbstractOpenHandler.openEditor(specNode);
- if (openEditor instanceof AbstractJBEditor) {
- AbstractJBEditor jbEditor =
- (AbstractJBEditor) openEditor;
- jbEditor.setSelection(
- new StructuredSelection(node));
+ if (NodeBP.isEditable(specNode)) {
+ IEditorPart openEditor = AbstractOpenHandler
+ .openEditor(specNode);
+ if (openEditor instanceof AbstractJBEditor) {
+ AbstractJBEditor jbEditor =
+ (AbstractJBEditor) openEditor;
+ jbEditor.setSelection(
+ new StructuredSelection(node));
+ }
}
}
}

Back to the top