Java 类org.eclipse.jface.dialogs.IDialogLabelKeys 实例源码

项目:statecharts    文件:AbstractEditorPropertySection.java   
protected void createHelpWidget(final Composite parent, final Control control, String helpId) {
    final ImageHyperlink helpWidget = toolkit.createImageHyperlink(parent, SWT.CENTER);
    Image defaultImage = PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_LCL_LINKTO_HELP);
    helpWidget.setImage(defaultImage);
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).applyTo(helpWidget);
    helpWidget.setToolTipText(JFaceResources.getString(IDialogLabelKeys.HELP_LABEL_KEY));
    helpWidget.addMouseListener(new MouseAdapter() {
        public void mouseDown(MouseEvent e) {
            control.setFocus();
            PlatformUI.getWorkbench().getHelpSystem().displayDynamicHelp();
        }
    });
    GridDataFactory.fillDefaults().applyTo(helpWidget);
    helpWidget.setEnabled(true);
    setHelpContext(control, helpId);
}
项目:emfstore-rest    文件:LoginDialog.java   
/**
 * 
 * {@inheritDoc}
 * 
 * @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, JFaceResources.getString(IDialogLabelKeys.OK_LABEL_KEY),
        true);
    createButton(parent, IDialogConstants.CANCEL_ID,
        JFaceResources.getString(IDialogLabelKeys.CANCEL_LABEL_KEY), false);
}
项目:emfstore-rest    文件:ServerInfoSelectionDialog.java   
/**
 * 
 * {@inheritDoc}
 * 
 * @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, JFaceResources.getString(IDialogLabelKeys.OK_LABEL_KEY), true);
    createButton(parent, IDialogConstants.CANCEL_ID, JFaceResources.getString(IDialogLabelKeys.CANCEL_LABEL_KEY),
        false);
}
项目:emfstore-rest    文件:BranchSelectionDialog.java   
/**
 * Create contents of the button bar.
 * 
 * @param parent
 *            parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, JFaceResources.getString(IDialogLabelKeys.OK_LABEL_KEY),
        true);
    createButton(parent, IDialogConstants.CANCEL_ID,
        JFaceResources.getString(IDialogLabelKeys.CANCEL_LABEL_KEY), false);
}