Search in sources :

Example 1 with DOMReverseEngineeringDefinition

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);
        }
    }
}
Also used : DOMReverseEngineeringDefinition(org.hibernate.eclipse.mapper.model.DOMReverseEngineeringDefinition) IDOMDocument(org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument) StructuredTextEditor(org.eclipse.wst.sse.ui.StructuredTextEditor)

Aggregations

StructuredTextEditor (org.eclipse.wst.sse.ui.StructuredTextEditor)1 IDOMDocument (org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument)1 DOMReverseEngineeringDefinition (org.hibernate.eclipse.mapper.model.DOMReverseEngineeringDefinition)1