[
https://issues.jboss.org/browse/JBIDE-11578?page=com.atlassian.jira.plugi...
]
Denis Maliarevich commented on JBIDE-11578:
-------------------------------------------
In the current implementation code specified above does the following call to:
{code:java}
org.eclipse.ui.internal.EditorPane.doHide() {
getPage().closeEditor(getEditorReference(), true);
}
{code}
So simply closes the editor.
Thus it could be rewrited as follows:
{code:java}
final EditorPane partPane = (EditorPane)((WorkbenchPartReference)((PartSite)
getMultiPageEditor().getSite()).getPartReference()).getPane();
final Control control = partPane.getControl();
if (control != null && !control.isDisposed()) {
partPane.getPage().closeEditor(partPane.getEditorReference(), true);
}
{code}
But Juno has no EditorPane class.
So now I'm checking if this code is really required. And very likely it could be
removed without any pain.
compile failed in jst.jsp when run against Juno TP
--------------------------------------------------
Key: JBIDE-11578
URL:
https://issues.jboss.org/browse/JBIDE-11578
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: Visual Page Editor core
Affects Versions: 3.3.0.Beta3
Reporter: Alexey Kazakov
Assignee: Denis Maliarevich
Priority: Blocker
Fix For: 3.3.0.Beta3
org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditorSite.java
(line 84)
The method getPane() is undefined for the type PartSite
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira