Example usage for org.eclipse.jface.dialogs IDialogConstants HELP_ID

List of usage examples for org.eclipse.jface.dialogs IDialogConstants HELP_ID

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs IDialogConstants HELP_ID.

Prototype

int HELP_ID

To view the source code for org.eclipse.jface.dialogs IDialogConstants HELP_ID.

Click Source Link

Document

Button id for a "Help" button (value 17).

Usage

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.android.ide.eclipse.adt.internal.build.ConvertSwitchDialog.java

License:Open Source License

@Override
protected void buttonPressed(int buttonId) {
    if (buttonId == IDialogConstants.HELP_ID) {
        showWebPage();/*from  w ww .  j  ava2s .  c o m*/
    } else {
        super.buttonPressed(buttonId);
    }
}

From source file:com.codesourcery.internal.installer.ui.WizardDialog.java

License:Open Source License

protected void buttonPressed(int buttonId) {
    switch (buttonId) {
    case IDialogConstants.HELP_ID: {
        helpPressed();//from   ww  w . ja v  a 2 s .c  om
        break;
    }
    case IDialogConstants.BACK_ID: {
        backPressed();
        break;
    }
    case IDialogConstants.NEXT_ID: {
        nextPressed();
        break;
    }
    case IDialogConstants.FINISH_ID: {
        finishPressed();
        break;
    }
    // The Cancel button has a listener which calls cancelPressed
    // directly
    }
}

From source file:com.codesourcery.internal.installer.ui.WizardDialog.java

License:Open Source License

/**
 * Creates the buttons for this dialog's button bar.
 * <p>//  www . ja  v 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.hangum.tadpole.mongodb.core.dialogs.collection.CollValidateDialog.java

License:Open Source License

@Override
protected void buttonPressed(int buttonId) {
    super.buttonPressed(buttonId);
    if (buttonId == IDialogConstants.HELP_ID) {
        HelpUtils.showHelp(HelpDefine.MONGODB_VALIDATE);
    }//from   w  ww.ja v  a 2 s  .  co  m
}

From source file:com.hangum.tadpole.mongodb.core.dialogs.collection.CollValidateDialog.java

License:Open Source License

/**
 * Create contents of the button bar.//from  w  w w .  j a va 2s  . c  o  m
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.HELP_ID, "Help", false);
    createButton(parent, IDialogConstants.OK_ID, "Validate", true);
    createButton(parent, IDialogConstants.CANCEL_ID, "Close", false);
}

From source file:com.hangum.tadpole.mongodb.core.dialogs.collection.FindAndModifyDialog.java

License:Open Source License

@Override
protected void buttonPressed(int buttonId) {
    super.buttonPressed(buttonId);
    if (buttonId == IDialogConstants.HELP_ID) {
        HelpUtils.showHelp(HelpDefine.MONGODB_FINDANDMOIDFY);
    }/*w w  w .j  a  v a2 s  .  c om*/
}

From source file:com.hangum.tadpole.mongodb.core.dialogs.collection.FindAndModifyDialog.java

License:Open Source License

/**
 * Create contents of the button bar.//from w w w .j  a  va 2 s .  c  om
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.HELP_ID, "Help", false);
    createButton(parent, IDialogConstants.OK_ID, "Execute", true);
    createButton(parent, IDialogConstants.CANCEL_ID, "CLOSE", false);
}

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);//w  ww . j a  va 2  s.  c om
    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:com.microsoft.tfs.client.common.ui.dialogs.vc.checkinpolicies.PolicyScopeDialog.java

License:Open Source License

@Override
protected void hookCustomButtonPressed(final int buttonId) {
    if (buttonId == IDialogConstants.HELP_ID) {
        final String text = Messages.getString("PolicyScopeDialog.CheckInPolicyRegexDialogText"); //$NON-NLS-1$

        final MessageDialog dialog = new MessageDialog(getShell(),
                Messages.getString("PolicyScopeDialog.CheckInPolicyRegexDialogTitle"), //$NON-NLS-1$
                null, text, MessageDialog.INFORMATION, new String[] { IDialogConstants.OK_LABEL }, 0);

        dialog.open();//from   www.  j ava  2 s.co  m
    }
}