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:com.mercatis.lighthouse3.base.ui.widgets.LighthouseErrorDialog.java
License:Apache License
/** * @param parent/*from w w w. j a v a 2s . com*/ */ private void createDetailsButton(Composite parent) { detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false); }
From source file:com.windowtester.eclipse.ui.dialogs.AbstractDetailsDialog.java
License:Open Source License
/** * Override superclass implementation to handle details button. * /*from w ww . j a v a2 s .c om*/ * @param id the id of the button that was pressed */ protected void buttonPressed(int id) { if (id == IDialogConstants.DETAILS_ID) { // was the details button pressed? toggleDetailsArea(); } else { super.buttonPressed(id); } }
From source file:com.windowtester.eclipse.ui.dialogs.AbstractDetailsDialog.java
License:Open Source License
/** * Override superclass implementation to create OK and Details buttons * but no cancel button.//from ww w .j ava2s . co m * * @param parent the button bar */ 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 source file:de.femodeling.e4.ui.progress.internal.ProgressMonitorJobsDialog.java
License:Open Source License
/** * Create the details button for the receiver. * //from w w w. j ava 2 s . c o 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() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { handleDetailsButtonSelect(); } }); detailsButton.setCursor(arrowCursor); detailsButton.setEnabled(enableDetailsButton); }
From source file:fr.imag.adele.cadse.si.workspace.uiplatform.swt.ui.UIWizardDialog.java
License:Apache License
@Override protected void createButtonsForButtonBar(Composite parent) { WizardController wizardController = (WizardController) getWizard(); if (wizardController.hasShowDetail()) { createButton(parent, IDialogConstants.DETAILS_ID, "Operations detail", false); }// w ww . j a v a 2s . c o m super.createButtonsForButtonBar(parent); }
From source file:fr.imag.adele.cadse.si.workspace.uiplatform.swt.ui.UIWizardDialog.java
License:Apache License
@Override protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.DETAILS_ID) { WizardController wizardController = (WizardController) getWizard(); wizardController.showDetailDialog(); }//from ww w.j a v a2 s . c o m super.buttonPressed(buttonId); }
From source file:jbt.tools.bteditor.util.DetailsDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); this.detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false);/*from w ww .j av a 2s .c o m*/ }
From source file:jbt.tools.bteditor.util.DetailsDialog.java
License:Open Source License
protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.DETAILS_ID) { /*//ww w . j a v a 2 s. c o m * If the details button has been pressed, then the details area * must be shown or hidden, depending on whether it as hidden or * not. After doing so, the dialog must be resized. */ Point dialogOldDimensions = getShell().getSize(); if (this.detailsTextCreated) { /* * If the details area is being showed, we delete it. Also, the * label on the details button must be changed. */ this.detailsButton.setText(IDialogConstants.SHOW_DETAILS_LABEL); this.detailsText.dispose(); } else { /* * If the text area is not being showed, it must be created and * showed. In order to do so, we initialize "this.detailsText". * Also, the label on the details button must be changed. */ this.detailsButton.setText(IDialogConstants.HIDE_DETAILS_LABEL); this.detailsText = new Text((Composite) getContents(), SWT.BORDER | SWT.READ_ONLY | SWT.MULTI | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL); this.detailsText.setText(this.details); GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); this.detailsText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE)); data.horizontalSpan = 2; this.detailsText.setLayoutData(data); } getContents().getShell().layout(); this.detailsTextCreated = !this.detailsTextCreated; /* * The dialog is finalli resized. */ Point dialogNewDimensions = getShell().computeSize(SWT.DEFAULT, SWT.DEFAULT); int screenHeight = Display.getCurrent().getClientArea().height; getShell().setSize(new Point(dialogOldDimensions.x, Math.min(dialogNewDimensions.y, screenHeight))); } else { /* * Close the dialog... */ close(); } setReturnCode(buttonId); }
From source file:msi.gama.gui.parameters.UserControlDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(final Composite parent) { createButton(parent, IDialogConstants.OK_ID, "Continue", true); detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, "Inspect " + scope.getAgentScope().getName() + "...", false); detailsButton.setImage(IGamaIcons.MENU_INSPECT.image()); }
From source file:msi.gama.gui.swt.dialogs.AbstractDetailsDialog.java
License:Open Source License
/** * Adds OK and Details buttons to this dialog's button bar. * /* w w w . j av a2 s . co m*/ * @param parent the button bar composite */ @Override protected void createButtonsForButtonBar(final Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false); detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false); }