use of org.hibernate.eclipse.mapper.model.DOMReverseEngineeringDefinition 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