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

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

Introduction

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

Prototype

String SHOW_DETAILS_LABEL

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

Click Source Link

Document

The label for show details buttons.

Usage

From source file:org.eclipse.wst.command.internal.env.ui.dialog.InfoDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    // create OK and Details buttons
    createButton(parent, StatusDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    if (status.isMultiStatus()) {
        detailsButton = createButton(parent, StatusDialogConstants.DETAILS_ID,
                IDialogConstants.SHOW_DETAILS_LABEL, false);
    }//  w ww  . j a v a  2s .c  om
}

From source file:org.eclipse.wst.command.internal.env.ui.dialog.MessageDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    // create OK and Details buttons
    createButton(parent, StatusDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    if (status.isMultiStatus() || status.getException() != null) {
        detailsButton = createButton(parent, StatusDialogConstants.DETAILS_ID,
                IDialogConstants.SHOW_DETAILS_LABEL, false);
    }//from ww w  .  j av  a2 s.co  m

    parent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
}

From source file:org.eclipse.wst.command.internal.env.ui.dialog.MessageDialog.java

License:Open Source License

/**
 * Toggles the unfolding of the details area. This is triggered by the user
 * pressing the details button./*from   w w w. ja v a  2s .c o  m*/
 */
private void toggleDetailsArea() {
    Point windowSize = getShell().getSize();
    int newHeight = -1;

    if (detailsCreated) {
        details.dispose();
        detailsCreated = false;
        detailsButton.setText(IDialogConstants.SHOW_DETAILS_LABEL);

        // Without the following computeSize call the setSize call below throws an array out of bounds exception.
        // Very weird.
        getContents().computeSize(SWT.DEFAULT, SWT.DEFAULT);

        newHeight = savedSize.y;
    } else {
        if (savedSize == null)
            savedSize = windowSize;

        details = createDropDownDetails((Composite) getContents());
        detailsButton.setText(IDialogConstants.HIDE_DETAILS_LABEL);
        newHeight = getContents().computeSize(SWT.DEFAULT, SWT.DEFAULT).y;
        newHeight = newHeight < 250 ? 250 : newHeight;
    }

    newHeight = newHeight > 400 ? 400 : newHeight;

    getShell().setSize(new Point(windowSize.x, newHeight));
    parent.layout();
}

From source file:org.eclipse.wst.command.internal.env.ui.dialog.OptionsDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    // create a button for each options
    for (int i = 0; i < choices.length; i++) {
        createButton(parent, choices[i].getShortcut(), choices[i].getLabel(), true);
    }/*from  w w w  .  j a  v a2  s  .c o m*/
    if (status.isMultiStatus()) {
        detailsButton = createButton(parent, StatusDialogConstants.DETAILS_ID,
                IDialogConstants.SHOW_DETAILS_LABEL, false);
    }
}

From source file:org.eclipse.wst.command.internal.env.ui.dialog.WarningDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    // create OK, Cancel and Details buttons
    createButton(parent, StatusDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    createButton(parent, StatusDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
    if (status.isMultiStatus()) {
        detailsButton = createButton(parent, StatusDialogConstants.DETAILS_ID,
                IDialogConstants.SHOW_DETAILS_LABEL, false);
    }/*from w ww. j  a v a  2 s .  c o m*/
}

From source file:org.eclipse.wst.common.frameworks.internal.dialog.ui.ErrorDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    // create OK and Details buttons
    createButton(parent, StatusDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    if (status.isMultiStatus() || status.getException() != null) {
        detailsButton = createButton(parent, StatusDialogConstants.DETAILS_ID,
                IDialogConstants.SHOW_DETAILS_LABEL, false);
    }/*  ww w .j  a va2s .  c o  m*/
}

From source file:org.eclipse.wst.common.frameworks.internal.dialog.ui.InfoDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    // create OK and Details buttons
    createButton(parent, StatusDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    if (status.isMultiStatus()) {
        detailsButton = createButton(parent, StatusDialogConstants.DETAILS_ID,
                IDialogConstants.SHOW_DETAILS_LABEL, false);
    }//from   w w w  .  j  a v a 2  s  . co  m
}

From source file:org.eclipse.wst.common.frameworks.internal.dialog.ui.MessageDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    // create OK and Details buttons
    createButton(parent, StatusDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    if (status.isMultiStatus() || status.getException() != null) {
        detailsButton = createButton(parent, StatusDialogConstants.DETAILS_ID,
                IDialogConstants.SHOW_DETAILS_LABEL, false);
    }/*from  w  ww. j av a2 s . c  om*/

    parent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
}

From source file:org.eclipse.wst.common.frameworks.internal.dialog.ui.MessageDialog.java

License:Open Source License

/**
 * Toggles the unfolding of the details area. This is triggered by the user
 * pressing the details button.// w  ww  .j  av a 2s  . c om
 */
private void toggleDetailsArea() {
    Point windowSize = getShell().getSize();
    int newHeight = -1;

    if (detailsCreated) {
        details.dispose();
        detailsCreated = false;
        detailsButton.setText(IDialogConstants.SHOW_DETAILS_LABEL);

        // Without the following computeSize call the setSize call below throws an array out of bounds exception.
        // Very weird.
        getContents().computeSize(SWT.DEFAULT, SWT.DEFAULT);

        newHeight = savedSize.y;
    } else {
        if (savedSize == null)
            savedSize = windowSize;

        details = createDropDownDetails((Composite) getContents());
        detailsButton.setText(IDialogConstants.HIDE_DETAILS_LABEL);
        newHeight = getContents().computeSize(SWT.DEFAULT, SWT.DEFAULT).y;
    }

    newHeight = newHeight > 400 ? 400 : newHeight;

    getShell().setSize(new Point(windowSize.x, newHeight));
}

From source file:org.eclipse.wst.common.frameworks.internal.dialog.ui.OptionsDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    // create a button for each options
    for (int i = 0; i < choices.length; i++) {
        createButton(parent, choices[i].getShortcut(), choices[i].getLabel(), true);
    }/*from w ww  .  j av  a  2  s.c o m*/
    if (status.isMultiStatus()) {
        detailsButton = createButton(parent, StatusDialogConstants.DETAILS_ID,
                IDialogConstants.SHOW_DETAILS_LABEL, false);
    }
}