org.eclipse.ui.internal.IWorkbenchHelpContextIds Java Examples

The following examples show how to use org.eclipse.ui.internal.IWorkbenchHelpContextIds. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GamaActionBarAdvisor.java    From gama with GNU General Public License v3.0 5 votes vote down vote up
OpenPreferencesAction() {
	super(WorkbenchMessages.OpenPreferences_text);
	setId("preferences");
	setText("Preferences");
	setToolTipText("Open GAMA preferences");
	setImageDescriptor(icons.desc("menu.open.preferences2"));
	window.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.OPEN_PREFERENCES_ACTION);
}
 
Example #2
Source File: GamaActionBarAdvisor.java    From gama with GNU General Public License v3.0 5 votes vote down vote up
HelpContentsAction() {
	setActionDefinitionId(IWorkbenchCommandConstants.HELP_HELP_CONTENTS);
	setId("helpContents");
	setText("GAMA documentation");
	setToolTipText("GAMA online documentation");
	setImageDescriptor(icons.desc("menu.help2"));
	window.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.HELP_CONTENTS_ACTION);
}
 
Example #3
Source File: GlobalActions.java    From elexis-3-core with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Create a new <code>OpenPreferenceAction</code> and initialize it from the
 * given resource bundle.
 * 
 * @param window
 */
public OpenPreferencesAction(IWorkbenchWindow window) {
	super(WorkbenchMessages.OpenPreferences_text);
	if (window == null) {
		throw new IllegalArgumentException();
	}
	this.workbenchWindow = window;
	// @issue action id not set
	setToolTipText(WorkbenchMessages.OpenPreferences_toolTip);
	window.getWorkbench().getHelpSystem().setHelp(this, IWorkbenchHelpContextIds.OPEN_PREFERENCES_ACTION);
}
 
Example #4
Source File: GamaActionBarAdvisor.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
private IContributionItem getDeleteItem() {
	return getItem(ActionFactory.DELETE.getId(), ActionFactory.DELETE.getCommandId(), "menu.delete2", null,
		WorkbenchMessages.Workbench_delete, WorkbenchMessages.Workbench_deleteToolTip,
		IWorkbenchHelpContextIds.DELETE_RETARGET_ACTION);
}
 
Example #5
Source File: KeysPreferencePage.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected Control createContents(Composite parent) {
	PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IWorkbenchHelpContextIds.KEYS_PREFERENCE_PAGE);
	final Composite page = new Composite(parent, SWT.NONE);
	GridLayout layout = new GridLayout(1, false);
	layout.marginWidth = 0;
	page.setLayout(layout);

	Group groupParent = new Group(page, SWT.None);
	groupParent.setLayout(new GridLayout());
	groupParent.setLayoutData(new GridData(GridData.FILL_BOTH));
	groupParent.setText(Messages.getString("preferencepage.KeysPreferencePage.groupParent"));

	HsImageLabel imageLabel = new HsImageLabel(Messages.getString("preferencepage.KeysPreferencePage.imageLabel"),
			Activator.getImageDescriptor(ImageConstant.PREFERENCE_SYS_KEY));
	Composite cmp = imageLabel.createControl(groupParent);
	cmp.setLayout(new GridLayout());
	Composite cmpTemp = (Composite) imageLabel.getControl();
	cmpTemp.setLayoutData(new GridData(GridData.FILL_BOTH));
	Composite cmpContent = new Composite(cmpTemp, SWT.None);
	cmpContent.setLayout(new GridLayout());
	GridData data = new GridData(GridData.FILL_BOTH);
	data.horizontalSpan = 2;
	cmpContent.setLayoutData(data);

	// 不显示过滤文本框
	PlatformUI.getPreferenceStore().setDefault(IWorkbenchPreferenceConstants.SHOW_FILTERED_TEXTS, false);

	IDialogSettings settings = getDialogSettings();

	fPatternFilter = new CategoryPatternFilter(true, commandService.getCategory(null));
	if (settings.get(TAG_FILTER_UNCAT) != null) {
		fPatternFilter.filterCategories(settings.getBoolean(TAG_FILTER_UNCAT));
	}

	createTree(cmpContent);

	fill();

	applyDialogFont(cmpContent);
	imageLabel.computeSize();
	return page;
}
 
Example #6
Source File: KeysPreferencePage.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected Control createContents(Composite parent) {
	PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IWorkbenchHelpContextIds.KEYS_PREFERENCE_PAGE);
	final Composite page = new Composite(parent, SWT.NONE);
	GridLayout layout = new GridLayout(1, false);
	layout.marginWidth = 0;
	page.setLayout(layout);

	Group groupParent = new Group(page, SWT.None);
	groupParent.setLayout(new GridLayout());
	groupParent.setLayoutData(new GridData(GridData.FILL_BOTH));
	groupParent.setText(Messages.getString("preferencepage.KeysPreferencePage.groupParent"));

	HsImageLabel imageLabel = new HsImageLabel(Messages.getString("preferencepage.KeysPreferencePage.imageLabel"),
			Activator.getImageDescriptor(ImageConstants.PREFERENCE_SYS_KEY));
	Composite cmp = imageLabel.createControl(groupParent);
	cmp.setLayout(new GridLayout());
	Composite cmpTemp = (Composite) imageLabel.getControl();
	cmpTemp.setLayoutData(new GridData(GridData.FILL_BOTH));
	Composite cmpContent = new Composite(cmpTemp, SWT.None);
	cmpContent.setLayout(new GridLayout());
	GridData data = new GridData(GridData.FILL_BOTH);
	data.horizontalSpan = 2;
	cmpContent.setLayoutData(data);

	// 不显示过滤文本框
	PlatformUI.getPreferenceStore().setDefault(IWorkbenchPreferenceConstants.SHOW_FILTERED_TEXTS, false);

	IDialogSettings settings = getDialogSettings();

	fPatternFilter = new CategoryPatternFilter(true, commandService.getCategory(null));
	if (settings.get(TAG_FILTER_UNCAT) != null) {
		fPatternFilter.filterCategories(settings.getBoolean(TAG_FILTER_UNCAT));
	}

	createTree(cmpContent);

	fill();

	applyDialogFont(cmpContent);
	imageLabel.computeSize();
	return page;
}
 
Example #7
Source File: KeysPreferencePage.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
protected Control createContents(Composite parent) {
	PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IWorkbenchHelpContextIds.KEYS_PREFERENCE_PAGE);
	final Composite page = new Composite(parent, SWT.NONE);
	GridLayout layout = new GridLayout(1, false);
	layout.marginWidth = 0;
	page.setLayout(layout);

	Group groupParent = new Group(page, SWT.None);
	groupParent.setLayout(new GridLayout());
	groupParent.setLayoutData(new GridData(GridData.FILL_BOTH));
	groupParent.setText(Messages.getString("preferencepage.KeysPreferencePage.groupParent"));

	HsImageLabel imageLabel = new HsImageLabel(Messages.getString("preferencepage.KeysPreferencePage.imageLabel"),
			Activator.getImageDescriptor(ImageConstant.PREFERENCE_SYS_KEY));
	Composite cmp = imageLabel.createControl(groupParent);
	cmp.setLayout(new GridLayout());
	Composite cmpTemp = (Composite) imageLabel.getControl();
	cmpTemp.setLayoutData(new GridData(GridData.FILL_BOTH));
	Composite cmpContent = new Composite(cmpTemp, SWT.None);
	cmpContent.setLayout(new GridLayout());
	GridData data = new GridData(GridData.FILL_BOTH);
	data.horizontalSpan = 2;
	cmpContent.setLayoutData(data);

	// 不显示过滤文本框
	PlatformUI.getPreferenceStore().setDefault(IWorkbenchPreferenceConstants.SHOW_FILTERED_TEXTS, false);

	IDialogSettings settings = getDialogSettings();

	fPatternFilter = new CategoryPatternFilter(true, commandService.getCategory(null));
	if (settings.get(TAG_FILTER_UNCAT) != null) {
		fPatternFilter.filterCategories(settings.getBoolean(TAG_FILTER_UNCAT));
	}

	createTree(cmpContent);

	fill();

	applyDialogFont(cmpContent);
	imageLabel.computeSize();
	return page;
}
 
Example #8
Source File: AboutDialog.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setText(NLS.bind(WorkbenchMessages.AboutDialog_shellTitle,productName ));
    PlatformUI.getWorkbench().getHelpSystem().setHelp(newShell,
IWorkbenchHelpContextIds.ABOUT_DIALOG);
}