Search in sources :

Example 1 with SQLEditorToolBar

use of net.sourceforge.sqlexplorer.sqleditor.actions.SQLEditorToolBar in project tdq-studio-se by Talend.

the class SQLEditor method createToolbar.

/**
 * Creates the toolbar
 *
 * @param parent
 */
private void createToolbar(final Composite parent) {
    toolBar = new SQLEditorToolBar(parent, this);
    toolBar.addResizeListener(new ControlListener() {

        @Override
        public void controlMoved(ControlEvent e) {
        }

        @Override
        public void controlResized(ControlEvent e) {
            parent.getParent().layout(true);
            parent.layout(true);
        }
    });
}
Also used : ControlListener(org.eclipse.swt.events.ControlListener) ControlEvent(org.eclipse.swt.events.ControlEvent) SQLEditorToolBar(net.sourceforge.sqlexplorer.sqleditor.actions.SQLEditorToolBar)

Aggregations

SQLEditorToolBar (net.sourceforge.sqlexplorer.sqleditor.actions.SQLEditorToolBar)1 ControlEvent (org.eclipse.swt.events.ControlEvent)1 ControlListener (org.eclipse.swt.events.ControlListener)1