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

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

Introduction

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

Prototype

int DETAILS_ID

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

Click Source Link

Document

Button id for a "Details" button (value 13).

Usage

From source file:aurora.ide.helpers.StatusDialog.java

License:Open Source License

protected void buttonPressed(int id) {
    if (id == IDialogConstants.DETAILS_ID) {
        // was the details button pressed?
        toggleDetailsArea();/*from  w w w.ja  va 2s  . co  m*/
    } else {
        super.buttonPressed(id);
    }
}

From source file:aurora.ide.helpers.StatusDialog.java

License:Open Source License

/**
 * Create the details button if it should be included.
 * //from  ww w  .  j av a 2s  .  c  o  m
 * @param parent
 *            the parent composite
 * @since 3.2
 */
protected void createDetailsButton(Composite parent) {
    if (shouldShowDetailsButton()) {
        detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL,
                false);
    }
}

From source file:com.aptana.ide.syncing.ui.old.views.SmartSyncDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    // create OK and Cancel buttons by default
    startSync = createButton(parent, IDialogConstants.PROCEED_ID, Messages.SmartSyncDialog_StartSync, true);
    GridData gridData = new GridData(SWT.FILL, SWT.END, false, false);
    GC gc = new GC(startSync);
    // calculates the ideal width
    gridData.widthHint = Math.max(gc.stringExtent(Messages.SmartSyncDialog_StartSync).x,
            gc.stringExtent(Messages.SmartSyncDialog_RunInBackground).x) + 50;
    gc.dispose();//from   w  ww. jav a 2s .  c  o  m
    startSync.setLayoutData(gridData);
    startSync.addSelectionListener(this);

    saveLog = createButton(parent, IDialogConstants.DETAILS_ID, "Save Log...", false); //$NON-NLS-1$
    saveLog.addSelectionListener(this);
    saveLog.setEnabled(false);

    cancel = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
    cancel.addSelectionListener(this);
}

From source file:com.byterefinery.rmbench.dialogs.AbstractDependencyDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, true);
    detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL,
            false);// ww  w  .  j a  v  a  2 s.c o m

}

From source file:com.elphel.vdt.ui.dialogs.VDTErrorDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);

    if (shouldShowDetailsButton())
        detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL,
                false);//  w  w w  .  jav  a 2 s  . c o  m
}

From source file:com.github.fengtan.sophie.dialogs.ExceptionDialog.java

License:Open Source License

@Override
protected void buttonPressed(int id) {
    if (id == IDialogConstants.DETAILS_ID) {
        // User clicked on the 'Details' button: show/hide stack trace.
        toggleDetails();/*from   w  w  w. j ava2 s .  com*/
    } else {
        super.buttonPressed(id);
    }
}

From source file:com.github.fengtan.sophie.dialogs.ExceptionDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL,
            false);/*www.  j av a 2 s  .  c  om*/
}

From source file:com.hangum.tadpole.commons.exception.dialog.ExceptionDetailsErrorDialog.java

License:Open Source License

/**
 * Create the details button if it should be included.
 * @param parent the parent composite//from   www  . j a v  a  2s .c  o m
 * @since 3.2
 */
protected void createDetailsButton(Composite parent) {
    if (shouldShowDetailsButton()) {
        detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, "SHOW DETAILS", false);
    }
}

From source file:com.jaspersoft.studio.jface.dialogs.DataAdapterErrorDialog.java

License:Open Source License

@Override
protected void buttonPressed(int id) {
    if (id == IDialogConstants.DETAILS_ID) {
        // was the details button pressed?
        toggleDetailsArea();/* w  w w  . ja va  2 s  . com*/
    } else {
        super.buttonPressed(id);
    }
}

From source file:com.mercatis.lighthouse3.base.ui.widgets.LighthouseErrorDialog.java

License:Apache License

protected void buttonPressed(int id) {
    if (id == IDialogConstants.DETAILS_ID) {
        toggleDetailsArea();/*from   ww  w . j  a  va  2  s. c  o m*/
    } else {
        super.buttonPressed(id);
    }
}