use of org.talend.designer.fileoutputxml.ui.footer.FooterComposite in project tdi-studio-se by Talend.
the class FOXUI method createContent.
/**
* Comment method "createContent".
*
* @param child
*/
private void createContent(Composite mainComposite) {
header = new HeaderComposite(mainComposite, SWT.NONE);
if (this.foxManager.isNoLoopInComponent()) {
//$NON-NLS-1$
header.updateStatus(Messages.getString("FOXUI.NoLoop"));
}
// Splitter
xmlToSchemaSash = new SashForm(mainComposite, SWT.HORIZONTAL | SWT.SMOOTH);
xmlToSchemaSash.setLayoutData(new GridData(GridData.FILL_BOTH));
xmlToSchemaSash.setBackgroundMode(SWT.INHERIT_FORCE);
canModify = externalNode.getProcess().isReadOnly();
if (externalNode.getOriginalNode().getJobletNode() != null) {
canModify = externalNode.getOriginalNode().isReadOnly();
}
IElementParameter elem = externalNode.getElementParameter("PROPERTY_TYPE");
if (elem != null) {
String value = (String) elem.getValue();
if (value != null && value.equals("REPOSITORY")) {
isRepository = true;
}
}
addSchemaViewer(xmlToSchemaSash, 300, 110);
addXMLViewer(xmlToSchemaSash, 400, 110);
xmlToSchemaSash.setWeights(new int[] { 40, 60 });
linker = new Schema2XMLLinker(this.xmlToSchemaSash);
linker.init(schemaViewer.getTable(), xmlViewer);
linker.setManager(foxManager);
initSchemaTable();
footerComp = new FooterComposite(mainComposite, SWT.NONE, foxManager);
xmlViewer.expandToLevel(3);
linker.createLinks();
}
Aggregations