Author: dgolovin
Date: 2012-03-14 20:23:00 -0400 (Wed, 14 Mar 2012)
New Revision: 39523
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java
Log:
fix for getSourceEditor method to return sourceEditor even it is not activated
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java 2012-03-15
00:13:16 UTC (rev 39522)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java 2012-03-15
00:23:00 UTC (rev 39523)
@@ -660,11 +660,11 @@
}
public StructuredTextEditor getSourceEditor() {
- IEditorPart activePageEditor = getActiveEditor();
- if (activePageEditor instanceof StructuredTextEditor) {
- return (StructuredTextEditor)activePageEditor;
+ if(textEditor instanceof StructuredTextEditor) {
+ return (StructuredTextEditor)textEditor;
}
return null;
+
}
TextSelectionProvider textSelectionProvider = new TextSelectionProvider();
Show replies by date