org.eclipse.jface.dialogs.DialogTray Java Examples

The following examples show how to use org.eclipse.jface.dialogs.DialogTray. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LoginDialog.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
protected void toggleAdvanced ( final boolean selection )
{
    if ( selection )
    {
        openTray ( new DialogTray () {

            @Override
            protected Control createContents ( final Composite parent )
            {
                return createAdvancedContent ( parent );
            }
        } );
    }
    else
    {
        closeTray ();
    }
}
 
Example #2
Source File: ScriptExpressionEditor.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public DialogTray createDialogTray() {
    return editor.createDialogTray();
}
 
Example #3
Source File: SelectionAwareExpressionEditor.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public DialogTray createDialogTray() {
    return null;
}
 
Example #4
Source File: EditExpressionDialog.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void openTray(final DialogTray tray) throws IllegalStateException, UnsupportedOperationException {
    super.openTray(tray);
    getShell().removeListener(SWT.Move, getShell().getListeners(SWT.Move)[0]);
    getShell().removeListener(SWT.Resize, getShell().getListeners(SWT.Resize)[0]);
}
 
Example #5
Source File: GroovyScriptExpressionEditor.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public DialogTray createDialogTray() {
    return new GroovyEditorDocumentationDialogTray(groovyViewer);
}
 
Example #6
Source File: IExpressionEditor.java    From bonita-studio with GNU General Public License v2.0 votes vote down vote up
DialogTray createDialogTray();