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:msi.gama.gui.swt.dialogs.AbstractDetailsDialog.java
License:Open Source License
/** * The buttonPressed() method is called when either the OK or Details buttons is pressed. We * override this method to alternately show or hide the details area if the Details button is * pressed.// w w w. j a v a 2 s . c o m * * @param id the id */ @Override protected void buttonPressed(final int id) { if (id == IDialogConstants.DETAILS_ID) { toggleDetailsArea(); } else { super.buttonPressed(id); } }
From source file:net.enilink.komma.common.ui.dialogs.DiagnosticDialog.java
License:Open Source License
/** * Handles the pressing of the OK or Details button in this dialog. If the * OK button was pressed then close this dialog. If the Details button was * pressed then toggle the displaying of the diagnostic details area. Note * that the Details button will only be visible if the diagnostic being * displayed specifies child details.// w ww .j a v a 2 s .co m */ @Override protected void buttonPressed(int id) { if (id == IDialogConstants.DETAILS_ID) { // was the details button pressed? toggleDetailsArea(); } else { super.buttonPressed(id); } }
From source file:net.enilink.komma.common.ui.dialogs.DiagnosticDialog.java
License:Open Source License
/** * Create the details button if it should be included. * //ww w . j a v a 2 s .c o m * @param parent * the parent composite */ protected void createDetailsButton(Composite parent) { if (shouldShowDetailsButton()) { detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, helper.getButtonLabel(IDialogConstants.DETAILS_ID, DialogHelper.SHOW), false); } }
From source file:net.enilink.komma.common.ui.dialogs.DiagnosticDialog.java
License:Open Source License
/** * Toggles the unfolding of the details area. This is triggered by the user * pressing the details button.//from w ww .j av a2s. com */ private void toggleDetailsArea() { Point windowSize = getShell().getSize(); if (diagnosticComposite != null) { // Closing the detail area diagnosticComposite.dispose(); diagnosticComposite = null; detailsButton.setText(helper.getButtonLabel(IDialogConstants.DETAILS_ID, DialogHelper.SHOW)); } else { // Opening the detail area diagnosticComposite = createDiagnosticComposite((Composite) getContents()); detailsButton.setText(helper.getButtonLabel(IDialogConstants.DETAILS_ID, DialogHelper.HIDE)); } Point newSize = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); getShell().setSize(new Point(windowSize.x, newSize.y)); }
From source file:net.enilink.komma.common.ui.editor.ProblemEditorPart.java
License:Open Source License
protected void updateDetails() { if (detailsButton.getData() == Boolean.TRUE) { if (diagnosticComposite == null) { diagnosticComposite = new DiagnosticComposite(detailsComposite, SWT.NONE); diagnosticComposite.setSeverityMask(DiagnosticComposite.ERROR_WARNING_MASK); diagnosticComposite.setLayoutData(new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL)); if (getTextProvider() != null) { diagnosticComposite.setTextProvider(getTextProvider()); }/*from w w w . j av a 2 s.c o m*/ diagnosticComposite.initialize(getDiagnostic()); detailsComposite.layout(true); } else { diagnosticComposite.setVisible(true); } detailsButton .setText(DialogHelper.get().getButtonLabel(IDialogConstants.DETAILS_ID, DialogHelper.HIDE)); } else { if (diagnosticComposite != null) { diagnosticComposite.setVisible(false); } detailsButton .setText(DialogHelper.get().getButtonLabel(IDialogConstants.DETAILS_ID, DialogHelper.HIDE)); } }
From source file:net.refractions.udig.ui.ExceptionDetailsDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false); detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false);/*from w w w. j ava 2 s . co m*/ }
From source file:net.refractions.udig.ui.ExceptionDetailsDialog.java
License:Open Source License
protected void buttonPressed(int id) { if (id == IDialogConstants.DETAILS_ID) toggleDetailsArea();/*from ww w . j av a 2 s. c o m*/ else super.buttonPressed(id); }
From source file:net.sourceforge.metrics.ui.dependencies.TopoSortDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { Button copyButton = createButton(parent, IDialogConstants.DETAILS_ID, "Copy to Clipboard", false); createButton(parent, IDialogConstants.OK_ID, "OK", true); copyButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { copyToClipboard();/*from www. j a va 2s.c o m*/ } public void widgetDefaultSelected(SelectionEvent e) { } }); copyButton.setEnabled(sorted != null); }
From source file:net.sourceforge.taggerplugin.dialog.AbstractDetailsDialog.java
License:Open Source License
/** * The buttonPressed() method is called when either the OK or Details buttons is pressed. We override this method to * alternately show or hide the details area if the Details button is pressed. *//*ww w .j ava 2s.com*/ protected void buttonPressed(int id) { if (id == IDialogConstants.DETAILS_ID) { toggleDetailsArea(); } else { super.buttonPressed(id); } }
From source file:nl.utwente.ce.imageexport.ExceptionErrorDialog.java
License:Open Source License
@Override protected void buttonPressed(int id) { if (id == IDialogConstants.DETAILS_ID) { // Details button got pressed toggleDetailsArea();//from ww w. j a va2s . c om } else { super.buttonPressed(id); } }