Example usage for org.eclipse.jface.dialogs IDialogConstants CLOSE_LABEL

List of usage examples for org.eclipse.jface.dialogs IDialogConstants CLOSE_LABEL

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs IDialogConstants CLOSE_LABEL.

Prototype

String CLOSE_LABEL

To view the source code for org.eclipse.jface.dialogs IDialogConstants CLOSE_LABEL.

Click Source Link

Document

The label for close buttons.

Usage

From source file:org.talend.repository.items.importexport.ui.dialog.ShowErrorsDuringImportItemsDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID,
            Messages.getString("ShowErrorsDuringImportItemsDialog_exportLogButton_title"), true);
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, false);
}

From source file:org.tencompetence.ldauthor.opendock.ui.UoLDetailsDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.CLOSE_LABEL, true);
    Button downloadButton = createButton(parent, IDialogConstants.CLIENT_ID, Messages.UoLDetailsDialog_15,
            false);/*from   w ww .j a  va  2s . co m*/
    downloadButton.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            doDownloadItem();
        }
    });
}

From source file:org.testeditor.ui.reporting.TestExecutionProgressDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {

    // adding new button for closing the dialog on demand
    closeButton = createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true);
    closeButton.setEnabled(false);//from   w  w  w.ja v a 2s .  c  om

    closeButton.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent e) {
            close();
            dispose();
        }
    });

    // adding new button for closing the dialog on demand
    detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL,
            true);

    detailsButton.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent e) {

            if (logViewerComposite.getVisible()) {
                logViewerComposite.setVisible(false);
                detailsButton.setText(IDialogConstants.SHOW_DETAILS_LABEL);
                TestExecutionProgressDialog.this.parent.getShell().setSize(DEFAULT_DIALOG_SIZE);
            } else {
                logViewerComposite.setVisible(true);
                detailsButton.setText(IDialogConstants.HIDE_DETAILS_LABEL);
                TestExecutionProgressDialog.this.parent.getShell().setSize(ENLARGED_DIALOG_SIZE);
            }

            TestExecutionProgressDialog.this.parent.getShell().layout();
        }
    });

    super.createButtonsForButtonBar(parent);
}

From source file:org.xmind.ui.internal.dialogs.ProgressDialogPart.java

License:LGPL

private void createButtonBar(Composite parent) {
    Composite buttonBar = new Composite(parent, SWT.NONE);
    buttonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false));
    buttonBar.setBackground(parent.getBackground());

    GridLayout layout = new GridLayout();
    layout.numColumns = 0;//from   w  w  w . j ava 2s .  co  m
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    layout.verticalSpacing = 0;
    layout.horizontalSpacing = 6;
    buttonBar.setLayout(layout);

    createButton(buttonBar, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, false);
}

From source file:org.xmind.ui.internal.editor.ErrorDialogPane.java

License:Open Source License

protected void createButtonsForButtonBar(Composite buttonBar) {
    createButton(buttonBar, IDialogConstants.OK_ID, MindMapMessages.EncryptDialogPane_detailsButton_label,
            false);/*from w  ww. java2 s. c o m*/
    createButton(buttonBar, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, false);
    getButton(IDialogConstants.OK_ID).setEnabled(error != null);
}

From source file:org.xwiki.eclipse.dialogs.ManageWorkingSetsDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    Button button = createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true);
    button.addSelectionListener(new SelectionListener() {

        public void widgetDefaultSelected(SelectionEvent e) {
            // TODO Auto-generated method stub

        }// ww  w .j a  v  a 2  s . c o m

        public void widgetSelected(SelectionEvent e) {
            close();
        }

    });

}

From source file:thahn.java.agui.ide.eclipse.wizard.AguiPlugin.java

private void checkSdkLocation() {
    final Display disp = getDisplay();
    disp.asyncExec(new Runnable() {
        @Override/* ww  w . j a v a  2  s.co m*/
        public void run() {
            Shell shell = disp.getActiveShell();
            if (shell == null) {
                return;
            }

            String customLabel = null;
            customLabel = "Open Preferences";

            String btnLabels[] = new String[customLabel == null ? 1 : 2];
            btnLabels[0] = customLabel;
            btnLabels[btnLabels.length - 1] = IDialogConstants.CLOSE_LABEL;

            MessageDialog dialog = new MessageDialog(shell, // parent
                    "Agui Sdk", null, // dialogTitleImage
                    "Set Agui SDK Path", MessageDialog.WARNING, btnLabels, btnLabels.length - 1);
            int index = dialog.open();

            if (customLabel != null && index == 0) {
                //                    switch(solution) {
                //                    case OPEN_ANDROID_PREFS:
                openAguiPrefs();
                //                        break;
                //                    case OPEN_P2_UPDATE:
                //                        openP2Update();
                //                        break;
                //
                //                   case OPEN_SDK_MANAGER:
                //                        openSdkManager();
                //                        break;
                //                    }
                //                }
            }
        }
    });
}

From source file:zigen.plugin.db.ui.editors.LobViewDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true);

}