Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Kommentar: Migrated to Confluence 4.0


The JAXFront eclipse integration works through the IBM's SWT-Swing bridge component. This component does only work properly under Windows with eclipse 3+ and JRE 1.4. If you intend to use the JAXFront eclipse plugin on any other OS than Windows, you need to use JRE 1.5. The SWT-Swing bridge should be fully supported in JRE 1.5
To create your own JAXFront SWT composite components, you need to use the JAXFrontPanelFactory. Just pass a SWT composite (parent) and a JAXFront DOM to the factory and you will get your own SWT composite including the JAXFront editor.
Composite composite = new Composite(getContainer(), SWT.EMBEDDED);
URL xsdURL = URLHelper.getUserURL("c:\\jaxfront_swing\\examples\\po
po.xsd");
URL xmlURL = URLHelper.getUserURL("c:\\jaxfront_swing\\examples\\po
po.xml");
URL xuiURL = URLHelper.getUserURL("c:\\jaxfront_swing\\examples\\po
po.xui");
try {
_dom = DOMBuilder.getInstance().build(xsdURL, xmlURL, xuiURL, null);
JAXFrontPanelFactory.createComposite(composite, _dom);
FillLayout layout = new FillLayout();
composite.setLayout(layout);
int index = addPage(composite);
setPageText(index, "JAXFront");
}
catch (DocumentCreationException ex) {
ex.printStackTrace();
}
See chapter 8 for the whole example code.
At runtime your plugin needs the following libraries: