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:aurora.ide.helpers.StatusDialog.java
License:Open Source License
/** * Create the details button if it should be included. * // w w w.ja v a2 s.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:aurora.ide.helpers.StatusDialog.java
License:Open Source License
/** * Toggles the unfolding of the details area. This is triggered by the user * pressing the details button./* www .ja va 2s . co m*/ */ private void toggleDetailsArea() { Point windowSize = getShell().getSize(); Point oldSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); if (textCreated) { text.dispose(); textCreated = false; detailsButton.setText(IDialogConstants.SHOW_DETAILS_LABEL); } else { text = createDropDownText((Composite) getContents()); detailsButton.setText(IDialogConstants.HIDE_DETAILS_LABEL); getContents().getShell().layout(); } Point newSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); getShell().setSize(new Point(windowSize.x, windowSize.y + (newSize.y - oldSize.y))); }
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);/* www .j av a 2 s . c om*/ }
From source file:com.byterefinery.rmbench.dialogs.AbstractDependencyDialog.java
License:Open Source License
private void toggleDetailsArea() { Point windowSize = getShell().getSize(); Point oldSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); if (detailsCreated) { detailsText.dispose();//from w ww . j a v a 2 s. com detailsCreated = false; detailsButton.setText(IDialogConstants.SHOW_DETAILS_LABEL); } else { detailsText = createDetailsText((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: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 2s. c o m }
From source file:com.elphel.vdt.ui.dialogs.VDTErrorDialog.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 . j a v a 2s .com */ private void toggleDetailsArea() { Point windowSize = getShell().getSize(); Point oldSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); if (textCreated) { text.dispose(); textCreated = false; detailsButton.setText(IDialogConstants.SHOW_DETAILS_LABEL); } else { text = createDropDownText((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: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);//w ww.ja v a2s .c om }
From source file:com.github.fengtan.sophie.dialogs.ExceptionDialog.java
License:Open Source License
/** * Show/hide the stack trace.//from ww w . j av a2s. c o m */ private void toggleDetails() { Point windowSize = getShell().getSize(); Point oldSize = getContents().computeSize(SWT.DEFAULT, SWT.DEFAULT); if (listCreated) { list.dispose(); listCreated = false; detailsButton.setText(IDialogConstants.SHOW_DETAILS_LABEL); } else { list = createDropDownList((Composite) getContents()); detailsButton.setText(IDialogConstants.HIDE_DETAILS_LABEL); } Point newSize = getContents().computeSize(SWT.DEFAULT, SWT.DEFAULT); getShell().setSize(new Point(windowSize.x, windowSize.y + (newSize.y - oldSize.y))); }
From source file:com.google.code.t4eclipse.errorlog.action.LogErrorAction.java
License:Open Source License
public static void openMRTErrorDialog(final String title, final String message, final Throwable detail, final IStatus status) { Display.getDefault().syncExec(new Runnable() { public void run() { Shell parent = PlatformUI.getWorkbench().getWorkbenchWindows()[0].getShell(); String[] labels;/*from ww w . j a v a2 s . c o m*/ if (detail != null) { labels = new String[] { IDialogConstants.OK_LABEL, IDialogConstants.SHOW_DETAILS_LABEL }; InternalErrorDialog dialog = new InternalErrorDialog(parent, title, null, message, detail, 1, labels, 1); dialog.setDetailButton(1); dialog.open(); } else { ErrorDialog.openError(parent, title, message, status); } } }); }
From source file:com.google.code.t4eclipse.tools.dialog.InternalErrorDialog.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.jav a 2 s. c om*/ */ private void toggleDetailsArea() { Point windowSize = getShell().getSize(); Point oldSize = getContents().computeSize(SWT.DEFAULT, SWT.DEFAULT); if (text != null) { text.dispose(); text = null; getButton(detailButtonID).setText(IDialogConstants.SHOW_DETAILS_LABEL); } else { createDropDownText((Composite) getContents()); getButton(detailButtonID).setText(IDialogConstants.HIDE_DETAILS_LABEL); } Point newSize = getContents().computeSize(SWT.DEFAULT, SWT.DEFAULT); getShell().setSize(new Point(windowSize.x, windowSize.y + (newSize.y - oldSize.y))); }