use of org.eclipse.gef.palette.PaletteRoot in project tdi-studio-se by Talend.
the class TalendEditorPaletteFactory method createPalette.
/**
* Creates the PaletteRoot and adds all palette elements. Use this factory method to create a new palette for your
* graphical editor.
*
* @return a new PaletteRoot
*/
public static PaletteRoot createPalette(final IComponentsFactory compFac) {
PaletteRoot pr = new PaletteRoot();
pr.add(createToolsGroup());
return createPalette(compFac, pr);
}
use of org.eclipse.gef.palette.PaletteRoot in project dbeaver by dbeaver.
the class ERDGraphicalViewer method acquireContainer.
private void acquireContainer(DBPDataSourceContainer container) {
container.acquire(editor);
container.getRegistry().addDataSourceListener(this);
PaletteRoot paletteRoot = editor.getPaletteRoot();
PaletteDrawer dsDrawer = new PaletteDrawer(container.getName(), DBeaverIcons.getImageDescriptor(container.getDriver().getIcon()));
dsDrawer.setDescription(container.getDescription());
dsDrawer.setId(container.getId());
paletteRoot.add(dsDrawer);
}
use of org.eclipse.gef.palette.PaletteRoot in project dbeaver by serge-rider.
the class ERDEditorPart method createPaletteRoot.
public PaletteRoot createPaletteRoot() {
// create root
PaletteRoot paletteRoot = new PaletteRoot();
paletteRoot.setLabel("Entity Diagram");
getDecorator().fillPalette(paletteRoot, isReadOnly());
return paletteRoot;
}
Aggregations