use of org.eclipse.wst.sse.ui.StructuredTextEditor in project jbosstools-hibernate by jbosstools.
the class MultiPageEditorContributor method setActivePage.
public void setActivePage(IEditorPart activeEditor) {
// check is added.
if (multiPageEditor != null) {
if (activeEditor != null && activeEditor instanceof StructuredTextEditor)
activateSourcePage(activeEditor);
else
activateDesignPage(activeEditor);
}
updateToolbarActions();
IActionBars actionBars = getActionBars();
if (actionBars != null) {
// update menu bar and tool bar
actionBars.updateActionBars();
}
}
use of org.eclipse.wst.sse.ui.StructuredTextEditor in project jbosstools-hibernate by jbosstools.
the class ReverseEngineeringEditor method initSourcePage.
/*public void setActivePage(String string) {
Integer number = (Integer) pageNameToIndex.get(string);
if(number!=null) {
setActivePage(number.intValue());
}
}*/
private void initSourcePage() {
int pageCount = getPageCount();
for (int i = 0; i < pageCount; i++) {
if (getEditor(i) instanceof StructuredTextEditor) {
sourcePage = (StructuredTextEditor) getEditor(i);
IDOMDocument document = getDocument(sourcePage);
definition = new DOMReverseEngineeringDefinition(document);
}
}
}
Aggregations