List of usage examples for org.eclipse.jface.dialogs IDialogConstants HELP_LABEL
String HELP_LABEL
To view the source code for org.eclipse.jface.dialogs IDialogConstants HELP_LABEL.
Click Source Link
From source file:com.android.ide.eclipse.adt.internal.build.ConvertSwitchDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.HELP_ID, IDialogConstants.HELP_LABEL, false); }
From source file:com.bdaum.zoom.ui.preferences.AbstractPreferencePage.java
License:Open Source License
private static CLink createHelpLink(final Composite parent) { CLink link = new CLink(parent, SWT.WRAP | SWT.NO_FOCUS); ((GridLayout) parent.getLayout()).numColumns++; link.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER)); link.setText(IDialogConstants.HELP_LABEL); link.setToolTipText(IDialogConstants.HELP_LABEL); link.addListener(new Listener() { @Override//from www.j av a 2 s .c o m public void handleEvent(Event event) { helpPressed(parent); } }); return link; }
From source file:com.codesourcery.internal.installer.ui.WizardDialog.java
License:Open Source License
/** * Creates the buttons for this dialog's button bar. * <p>/*w w w . jav a2s .c o m*/ * The <code>WizardDialog</code> implementation of this framework method * prevents the parent composite's columns from being made equal width in * order to remove the margin between the Back and Next buttons. * </p> * * @param parent * the parent composite to contain the buttons */ protected void createButtonsForButtonBar(Composite parent) { ((GridLayout) parent.getLayout()).makeColumnsEqualWidth = false; if (wizard.isHelpAvailable()) { helpButton = createButton(parent, IDialogConstants.HELP_ID, IDialogConstants.HELP_LABEL, false); } if (wizard.needsPreviousAndNextButtons()) { createPreviousAndNextButtons(parent); } finishButton = createButton(parent, IDialogConstants.FINISH_ID, IDialogConstants.FINISH_LABEL, true); cancelButton = createCancelButton(parent); if (parent.getDisplay().getDismissalAlignment() == SWT.RIGHT) { // Make the default button the right-most button. // See also special code in org.eclipse.jface.dialogs.Dialog#initializeBounds() finishButton.moveBelow(null); } }
From source file:com.microsoft.tfs.client.common.ui.dialogs.vc.checkinpolicies.PolicyScopeDialog.java
License:Open Source License
@Override protected void hookAddToDialogArea(final Composite dialogArea) { SWTUtil.fillLayout(dialogArea);//from ww w . j av a2s. c o m scopeControl = new PolicyScopeControl(dialogArea, SWT.NONE); final RegularExpressionTableData[] expressions = new RegularExpressionTableData[scopeExpressions.length]; for (int i = 0; i < scopeExpressions.length; i++) { expressions[i] = new RegularExpressionTableData(scopeExpressions[i]); } scopeControl.setScopeExpressions(expressions); addButtonDescription(IDialogConstants.HELP_ID, IDialogConstants.HELP_LABEL, false); }
From source file:net.refractions.udig.style.sld.editor.internal.EditorDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { // create OK and Cancel buttons by default okButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); getShell().setDefaultButton(okButton); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); if (isHelpAvailable) { createButton(parent, IDialogConstants.HELP_ID, IDialogConstants.HELP_LABEL, false); }/*w w w. j ava2s.c o m*/ }
From source file:org.eclipse.babel.runtime.dialogs.LocalizableTrayDialog.java
License:Open Source License
private Link createLocalizationLink(Composite parent) { Link link = new Link(parent, SWT.WRAP | SWT.NO_FOCUS); ((GridLayout) parent.getLayout()).numColumns++; link.setLayoutData(new GridData(SWT.CENTER, SWT.FILL, false, false)); link.setText("<a>" + IDialogConstants.HELP_LABEL + "</a>"); //$NON-NLS-1$ //$NON-NLS-2$ link.setToolTipText(IDialogConstants.HELP_LABEL); link.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { localizationPressed();// w w w . j a v a 2 s .c o m } }); return link; }
From source file:org.eclipse.birt.chart.ui.swt.wizard.format.popup.AbstractPopupSheet.java
License:Open Source License
private Link createHelpLink(Composite parent) { Link link = new Link(parent, SWT.WRAP | SWT.NO_FOCUS); link.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER)); link.setText("<a>" + IDialogConstants.HELP_LABEL + "</a>"); //$NON-NLS-1$ //$NON-NLS-2$ link.setToolTipText(IDialogConstants.HELP_LABEL); link.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { helpPressed();// w w w.ja va2 s . c o m } }); return link; }
From source file:org.eclipse.birt.report.designer.internal.ui.dialogs.WizardDialog.java
License:Open Source License
/** * Sets the layout data of the button to a GridData with appropriate heights * and widths.//from w ww.ja v a2s . c om * <p> * The <code>WizardDialog</code> override the method in order to make Help * button split with other buttons. * * @param button * the button to be set layout data to */ protected void setButtonLayoutData(Button button) { GridData data; if (button.getText().equals(IDialogConstants.HELP_LABEL)) { data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_CENTER); data.grabExcessHorizontalSpace = true; } else { data = new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.VERTICAL_ALIGN_CENTER); } data.heightHint = convertVerticalDLUsToPixels(IDialogConstants.BUTTON_HEIGHT); int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); data.widthHint = Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x); button.setLayoutData(data); }
From source file:org.eclipse.birt.report.designer.ui.dialogs.ExpressionBuilder.java
License:Open Source License
/** * Sets the layout data of the button to a GridData with appropriate heights * and widths./*w w w . ja v a 2 s . com*/ * <p> * The <code>BaseDialog</code> override the method in order to make Help * button split with other buttons. * * @param button * the button to be set layout data to */ protected void setButtonLayoutData(Button button) { GridData gridData; if (button.getText().equals(IDialogConstants.HELP_LABEL)) { gridData = new GridData(GridData.VERTICAL_ALIGN_END | GridData.HORIZONTAL_ALIGN_CENTER); gridData.grabExcessVerticalSpace = true; } else { gridData = new GridData(GridData.VERTICAL_ALIGN_BEGINNING); } int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); gridData.widthHint = Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x); button.setLayoutData(gridData); }
From source file:org.eclipse.jubula.client.ui.rcp.dialogs.FindDialog.java
License:Open Source License
/** * creates the help link// w ww .ja v a2 s .c om * borrowed from TrayDialog * adapted for FormLayout */ private void createHelpLink() { m_helpLink = new Link(m_shell, SWT.WRAP | SWT.NO_FOCUS); m_helpLink.setText("<a>" + IDialogConstants.HELP_LABEL + "</a>"); //$NON-NLS-1$ //$NON-NLS-2$ m_helpLink.setToolTipText(IDialogConstants.HELP_LABEL); FormData helpLinkData = new FormData(); helpLinkData.bottom = new FormAttachment(m_findButton, 0, SWT.BOTTOM); helpLinkData.left = new FormAttachment(0, 0); helpLinkData.right = new FormAttachment(16, 0); m_helpLink.setLayoutData(helpLinkData); m_helpLink.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { helpPressed(); } }); }