List of usage examples for org.eclipse.jface.dialogs IDialogConstants DETAILS_ID
int DETAILS_ID
To view the source code for org.eclipse.jface.dialogs IDialogConstants DETAILS_ID.
Click Source Link
From source file:org.eclipse.buildship.ui.notification.ExceptionDetailsDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { Button copyExceptionButton = createButton(parent, COPY_EXCEPTION_BUTTON_ID, "", false); copyExceptionButton.setToolTipText(UiMessages.Button_CopyFailuresToClipboard_Tooltip); copyExceptionButton//from w w w . j a v a 2 s .co m .setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_COPY)); this.detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false); Button okButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); okButton.setFocus(); }
From source file:org.eclipse.buildship.ui.notification.ExceptionDetailsDialog.java
License:Open Source License
@Override protected void buttonPressed(int id) { if (id == IDialogConstants.DETAILS_ID) { toggleStacktraceArea();//from w w w. java2 s . c om } else if (id == COPY_EXCEPTION_BUTTON_ID) { copyStacktracesToClipboard(); } else { super.buttonPressed(id); } }
From source file:org.eclipse.e4.ui.internal.progress.ProgressMonitorJobsDialog.java
License:Open Source License
/** * Create the details button for the receiver. * //from w w w .j av a2s .co m * @param parent * The parent of the new button. */ protected void createDetailsButton(Composite parent) { detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, ProgressMessages.ProgressMonitorJobsDialog_DetailsTitle, false); detailsButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { handleDetailsButtonSelect(); } }); detailsButton.setCursor(arrowCursor); detailsButton.setEnabled(enableDetailsButton); }
From source file:org.eclipse.edt.ide.internal.testserver.UpdateErrorDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createDetailsButton(parent);//from w w w . j a v a 2 s . c o m createButton(parent, BUTTON_ID_TERMINATE_SERVER, configs.length > 1 ? TestServerMessages.ErrorDialogTerminatePluralButton : TestServerMessages.ErrorDialogTerminateButton, false); createButton(parent, IDialogConstants.OK_ID, TestServerMessages.ErrorDialogContinueButton, false); Button details = getButton(IDialogConstants.DETAILS_ID); if (details != null) { details.setFocus(); } }
From source file:org.eclipse.emf.common.ui.dialogs.DiagnosticDialog.java
License:Open Source License
/** * Create the details button if it should be included. * @param parent the parent composite/* www .j a v a 2 s .c om*/ */ protected void createDetailsButton(Composite parent) { if (shouldShowDetailsButton()) { detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.get().SHOW_DETAILS_LABEL, false); } }
From source file:org.eclipse.epf.authoring.ui.actions.UserInteractionHandler.java
License:Open Source License
public int selectOne(int[] actions, String title, String msg, IStatus status) { final String[] buttonLabels = new String[actions.length]; for (int i = 0; i < actions.length; i++) { buttonLabels[i] = getActionText(actions[i]); }//from ww w .ja va2 s.c o m Image image = null; try { shell = LibraryUIPlugin.getDefault().getWorkbench().getDisplay().getActiveShell(); image = shell.getImage(); } catch (Exception e) { } if (status == null) { MessageDialog msgDlg = new MessageDialog(shell, title, image, msg, MessageDialog.QUESTION, buttonLabels, 0); int id = msgDlg.open(); return actions[id]; } else { ErrorDialogNoReason dlg = new ErrorDialogNoReason(shell, title, msg, status, IStatus.OK | IStatus.INFO | IStatus.WARNING | IStatus.ERROR) { protected void createButtonsForButtonBar(Composite parent) { // create OK and Details buttons for (int i = 0; i < buttonLabels.length; i++) { String label = buttonLabels[i]; createButton(parent, i, label, i == 0); } if (shouldShowDetailsButton()) { detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false); } } /* * (non-Javadoc) * * @see org.eclipse.epf.common.serviceability.ErrorDialogNoReason#buttonPressed(int) */ protected void buttonPressed(int id) { if (id == IDialogConstants.DETAILS_ID) { super.buttonPressed(id); } else { setReturnCode(id); close(); } } }; int id = dlg.open(); return actions[id]; } }
From source file:org.eclipse.epf.common.serviceability.ErrorDialogNoReason.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { // create OK and Details buttons createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); if (shouldShowDetailsButton()) { detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false);/*from w w w .ja va 2s.c om*/ } }
From source file:org.eclipse.gmf.internal.codegen.popup.actions.DiagnosticsDialog.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 . j av a2 s .c om } else if (id == IDialogConstants.OK_ID || id == IDialogConstants.CANCEL_ID) { super.buttonPressed(id); } else { setReturnCode(id); close(); } }
From source file:org.eclipse.gmf.internal.codegen.popup.actions.ErrorDialogEx.java
License:Open Source License
protected void buttonPressed(int buttonId) { if (IDialogConstants.DETAILS_ID == buttonId) { super.buttonPressed(buttonId); } else {/*w w w . j a va 2 s. com*/ setReturnCode(buttonId); close(); } }
From source file:org.eclipse.linuxtools.internal.lttng2.control.ui.views.dialogs.EnableChannelDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.DETAILS_ID, "&Default", true); //$NON-NLS-1$ createButton(parent, IDialogConstants.CANCEL_ID, "&Cancel", true); //$NON-NLS-1$ createButton(parent, IDialogConstants.OK_ID, "&Ok", true); //$NON-NLS-1$ }