use of com.cubrid.tool.editor.property.PropEditor in project cubrid-manager by CUBRID.
the class BrokerConfigEditComposite method createCubridBrokerConfPropEditor.
/**
* Create property editor
*
* @param cubridBrokerConfTabFolder
*/
public void createCubridBrokerConfPropEditor(CTabFolder cubridBrokerConfTabFolder) {
final Composite comp = new Composite(cubridBrokerConfTabFolder, SWT.NONE);
comp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
comp.setLayout(new GridLayout(1, false));
sourceCTabItem = new CTabItem(cubridBrokerConfTabFolder, SWT.NONE);
sourceCTabItem.setText(Messages.cubridBrokerConfEditorCTabItemSource);
final Composite editorComp = new Composite(comp, SWT.BORDER);
editorComp.setLayoutData(new GridData(GridData.FILL_BOTH));
final GridLayout gridLayout = createGridLayout(1, 0, 0);
gridLayout.horizontalSpacing = 0;
editorComp.setLayout(gridLayout);
propEditor = new PropEditor();
try {
propEditor.init(editorPart.getEditorSite(), editorPart.getEditorInput());
} catch (PartInitException e) {
LOGGER.error(e.getMessage(), e);
}
propEditor.createPartControl(editorComp);
propEditor.getDocument().addDocumentListener(new DocumentAdpater());
sourceCTabItem.setControl(comp);
}
use of com.cubrid.tool.editor.property.PropEditor in project cubrid-manager by CUBRID.
the class EditConfigEditor method createPropEditor.
/**
*
* Create the property editor
*
* @param parent the Composite
*/
private void createPropEditor(Composite parent) {
final Composite editorComp = new Composite(parent, SWT.NONE);
{
editorComp.setLayoutData(new GridData(GridData.FILL_BOTH));
GridLayout gridLayout = new GridLayout();
gridLayout.marginHeight = 0;
gridLayout.horizontalSpacing = 0;
gridLayout.marginWidth = 0;
editorComp.setLayout(gridLayout);
}
propEditor = new PropEditor();
try {
propEditor.init(this.getEditorSite(), this.getEditorInput());
} catch (PartInitException ex) {
LOGGER.error(ex.getMessage());
}
propEditor.createPartControl(editorComp);
}
Aggregations