List of usage examples for org.eclipse.jface.dialogs IDialogConstants SHOW_DETAILS_LABEL
String SHOW_DETAILS_LABEL
To view the source code for org.eclipse.jface.dialogs IDialogConstants SHOW_DETAILS_LABEL.
Click Source Link
From source file:org.eclipse.wst.common.frameworks.internal.dialog.ui.WarningDialog.java
License:Open Source License
@Override 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); }/*w ww .ja va 2s . co m*/ }
From source file:org.eclipse.zest.custom.sequence.widgets.internal.ErrorComposite.java
License:Open Source License
/** * // ww w .j av a 2 s .c om */ private void updateDetails() { if (!showingDetails) { detailsButton.setText(IDialogConstants.SHOW_DETAILS_LABEL); if (details != null && !details.isDisposed()) { details.dispose(); details = null; } } else { detailsButton.setText(IDialogConstants.HIDE_DETAILS_LABEL); if (details == null || details.isDisposed()) { details = new Text(detailsPage, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); details.setEditable(false); } details.setText(getDetailsText()); detailsPage.layout(); } layout(true, true); }
From source file:org.jboss.tools.common.model.ui.dialog.ErrorDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, "Submit", false); if (exception != null) { detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false);/*from ww w .jav a2 s . co m*/ createButton(parent, IDialogConstants.CANCEL_ID, "Cancel", false); } }
From source file:org.jboss.tools.common.model.ui.dialog.ErrorDialog.java
License:Open Source License
private void toggleDetailsArea() { Point windowSize = getShell().getSize(); Point oldSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); if (dropDownCreated) { dropDown.dispose();/* ww w.ja va 2 s. c o m*/ dropDownCreated = false; detailsButton.setText(IDialogConstants.SHOW_DETAILS_LABEL); } else { dropDown = createDropDownControl((Composite) getContents()); detailsButton.setText(IDialogConstants.HIDE_DETAILS_LABEL); } Point newSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); getShell().setSize(new Point(windowSize.x, windowSize.y + (newSize.y - oldSize.y))); }
From source file:org.jkiss.dbeaver.ui.editors.entity.ErrorEditorPartEx.java
License:Open Source License
private void updateDetailsText() { if (details != null) { details.dispose();//from ww w. ja v a 2 s . c o m details = null; } if (showingDetails) { detailsButton.setText(IDialogConstants.HIDE_DETAILS_LABEL); Text detailsText = new Text(detailsArea, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.READ_ONLY | SWT.LEFT_TO_RIGHT); detailsText.setText(getDetails()); detailsText.setBackground(detailsText.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND)); details = detailsText; detailsArea.layout(true); } else { detailsButton.setText(IDialogConstants.SHOW_DETAILS_LABEL); } }
From source file:org.org.eclipse.core.utils.platform.dialogs.message.AbstractInformationDialog.java
License:Open Source License
/** * Toggles the unfolding of the details area. This is triggered by the user pressing the details button. *//*w w w .j a v a 2 s .com*/ private void toggleDetailsArea() { Point windowSize = getShell().getSize(); Point oldSize = getContents().computeSize(SWT.DEFAULT, SWT.DEFAULT); if (text != null) { text.dispose(); text = null; getButton(detailButtonIndex).setText(IDialogConstants.SHOW_DETAILS_LABEL); } else { createDropDownText((Composite) getDialogArea()); text.setSize(oldSize.x - this.convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING), oldSize.y - convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING)); getButton(detailButtonIndex).setText(IDialogConstants.HIDE_DETAILS_LABEL); } Point newSize = getContents().computeSize(SWT.DEFAULT, SWT.DEFAULT); getContents() .setSize(new Point(windowSize.x + (newSize.x - oldSize.x), windowSize.y + (newSize.y - oldSize.y))); }
From source file:org.org.eclipse.core.utils.platform.dialogs.message.ErrorDialog.java
License:Open Source License
/** * This constructor allows you to use your own shell and image.<br> * //w ww .j a v a 2 s. co m * @param parentShell the parent shell * @param image the image to display * @param subTitle The SubTitle displayed in the dialog * @param dialogMessage THe message to display * @param detail The expandable details */ public ErrorDialog(Shell parentShell, Image image, String subTitle, String dialogMessage, Object detail) { this(PlatformUtilsPlugin.getActiveShell(), Messages.ErrorDialog_title, subTitle, null, dialogMessage, detail, new String[] { IDialogConstants.OK_LABEL, IDialogConstants.SHOW_DETAILS_LABEL }, 0, 1, image); }
From source file:org.org.eclipse.core.utils.platform.dialogs.message.InfoDialog.java
License:Open Source License
/** * This constructor allows you to use your own shell and image.<br> * //from w ww . j a v a 2s . com * @param parentShell the parent shell * @param image the image to display * @param subTitle The SubTitle displayed in the dialog * @param dialogMessage THe message to display * @param detail The expandable details */ public InfoDialog(Shell parentShell, Image image, String subTitle, String dialogMessage, Object detail) { this(parentShell, Messages.InfoDialog_title, subTitle, null, dialogMessage, detail, new String[] { IDialogConstants.OK_LABEL, IDialogConstants.SHOW_DETAILS_LABEL }, 0, 1, image); }
From source file:org.org.eclipse.core.utils.platform.dialogs.message.WarningDialog.java
License:Open Source License
/** * This constructor allows you to use your own shell and image.<br> * /* www. j a va2 s . co m*/ * @param parentShell * the parent shell * @param image * the image to display * @param subTitle * The SubTitle displayed in the dialog * @param dialogMessage * THe message to display * @param detail * The expandable details */ public WarningDialog(Shell parentShell, Image image, String subTitle, String dialogMessage, Object detail) { this(PlatformUtilsPlugin.getActiveShell(), Messages.WarningDialog_title, subTitle, null, dialogMessage, detail, new String[] { IDialogConstants.OK_LABEL, IDialogConstants.SHOW_DETAILS_LABEL }, 0, 1, image); }
From source file:org.seasar.uruma.ui.dialogs.UrumaErrorDialog.java
License:Apache License
protected void createDetailsButton(final Composite parent) { detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false);// ww w. j ava 2 s . com }