org.eclipse.ui.internal.ide.IIDEHelpContextIds Java Examples

The following examples show how to use org.eclipse.ui.internal.ide.IIDEHelpContextIds. 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: OpenFileAction.java    From gama with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Creates a new action that will open instances of the specified editor on the then-selected file resources.
 *
 * @param page
 *            the workbench page in which to open the editor
 * @param descriptor
 *            the editor descriptor, or <code>null</code> if unspecified
 */
public OpenFileAction(final IWorkbenchPage page, final IEditorDescriptor descriptor) {
	super(page);
	setText(descriptor == null ? IDEWorkbenchMessages.OpenFileAction_text : descriptor.getLabel());
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.OPEN_FILE_ACTION);
	setToolTipText(IDEWorkbenchMessages.OpenFileAction_toolTip);
	setId(ID);
	this.editorDescriptor = descriptor;
}
 
Example #2
Source File: OpenFileWithValidAction.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new action that will open instances of the specified editor on the then-selected file resources.
 * @param page
 *            the workbench page in which to open the editor
 * @param descriptor
 *            the editor descriptor, or <code>null</code> if unspecified
 */
public OpenFileWithValidAction(IWorkbenchPage page, IEditorDescriptor descriptor) {
	super(page);
	setText(descriptor == null ? IDEWorkbenchMessages.OpenFileAction_text : descriptor.getLabel());
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.OPEN_FILE_ACTION);
	setToolTipText(IDEWorkbenchMessages.OpenFileAction_toolTip);
	setId(ID);
	this.editorDescriptor = descriptor;
}
 
Example #3
Source File: OpenFileWithValidAction.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new action that will open instances of the specified editor on the then-selected file resources.
 * @param page
 *            the workbench page in which to open the editor
 * @param descriptor
 *            the editor descriptor, or <code>null</code> if unspecified
 */
public OpenFileWithValidAction(IWorkbenchPage page, IEditorDescriptor descriptor) {
	super(page);
	setText(descriptor == null ? IDEWorkbenchMessages.OpenFileAction_text : descriptor.getLabel());
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.OPEN_FILE_ACTION);
	setToolTipText(IDEWorkbenchMessages.OpenFileAction_toolTip);
	setId(ID);
	this.editorDescriptor = descriptor;
}
 
Example #4
Source File: WizardNewProjectCreationPage.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
/** (non-Javadoc)
   * Method declared on IDialogPage.
   */
  public void createControl(Composite parent) {
      Composite composite = new Composite(parent, SWT.NULL);
  

      initializeDialogUnits(parent);

      PlatformUI.getWorkbench().getHelpSystem().setHelp(composite,
              IIDEHelpContextIds.NEW_PROJECT_WIZARD_PAGE);

      composite.setLayout(new GridLayout());
      composite.setLayoutData(new GridData(GridData.FILL_BOTH));

      createProjectNameGroup(composite);
      locationArea = new ProjectContentsLocationArea(getErrorReporter(), composite);
      if(initialProjectFieldValue != null) {
	locationArea.updateProjectName(initialProjectFieldValue);
}
      
// Scale the button based on the rest of the dialog
setButtonLayoutData(locationArea.getBrowseButton());

      setPageComplete(validatePage());
      // Show description on opening
      setErrorMessage(null);
      setMessage(null);
      setControl(composite);
      Dialog.applyDialogFont(composite);
  }
 
Example #5
Source File: ExtensibleWizardNewProjectCreationPage.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createControl(Composite parent) {
	Composite composite = new Composite(parent, SWT.NULL);

	initializeDialogUnits(parent);

	PlatformUI.getWorkbench().getHelpSystem().setHelp(composite,
			IIDEHelpContextIds.NEW_PROJECT_WIZARD_PAGE);

	composite.setLayout(new GridLayout());
	composite.setLayoutData(new GridData(GridData.FILL_BOTH));

	createProjectNameGroup(composite);
	locationArea = new ProjectContentsLocationArea(getErrorReporter(), composite);
	if (initialProjectFieldValue != null) {
		locationArea.updateProjectName(initialProjectFieldValue);
	}

	// Scale the button based on the rest of the dialog
	setButtonLayoutData(locationArea.getBrowseButton());

	setPageComplete(validatePage());
	// Show description on opening
	setErrorMessage(null);
	setMessage(null);
	setControl(composite);
	Dialog.applyDialogFont(composite);
}
 
Example #6
Source File: DeleteResourceAndCloseEditorAction.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Action initialization.
 */
private void initAction() {
	setToolTipText(IDEWorkbenchMessages.DeleteResourceAction_toolTip);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.DELETE_RESOURCE_ACTION);
	setId(ID);
}
 
Example #7
Source File: DeleteResourceAndCloseEditorAction.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Action initialization.
 */
private void initAction() {
	setToolTipText(IDEWorkbenchMessages.DeleteResourceAction_toolTip);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.DELETE_RESOURCE_ACTION);
	setId(ID);
}
 
Example #8
Source File: DeleteResourceAndCloseEditorAction.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
protected void configureShell(Shell newShell) {
	super.configureShell(newShell);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(newShell, IIDEHelpContextIds.DELETE_PROJECT_DIALOG);
}
 
Example #9
Source File: RenameResourceAndCloseEditorAction.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
private void initAction(){
	setToolTipText(IDEWorkbenchMessages.RenameResourceAction_toolTip);
	setId(ID);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
			IIDEHelpContextIds.RENAME_RESOURCE_ACTION);
}
 
Example #10
Source File: XLIFFEditorActionHandler.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
protected SelectAllActionHandler() {
	super(IDEWorkbenchMessages.TextAction_selectAll);
	setId("TextSelectAllActionHandler");//$NON-NLS-1$
	setEnabled(false);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_SELECT_ALL_ACTION);
}
 
Example #11
Source File: XLIFFEditorActionHandler.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
protected DeleteActionHandler() {
	super(IDEWorkbenchMessages.Delete);
	setId("TextDeleteActionHandler");//$NON-NLS-1$
	setEnabled(false);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_DELETE_ACTION);
}
 
Example #12
Source File: XLIFFEditorActionHandler.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
protected PasteActionHandler() {
	super(IDEWorkbenchMessages.Paste);
	setId("XLIFFEditorPasteActionHandler");//$NON-NLS-1$
	setEnabled(false);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_PASTE_ACTION);
}
 
Example #13
Source File: XLIFFEditorActionHandler.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
protected CopyActionHandler() {
	super(IDEWorkbenchMessages.Copy);
	setId("XLIFFEditorCopyActionHandler");//$NON-NLS-1$
	setEnabled(false);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_COPY_ACTION);
}
 
Example #14
Source File: XLIFFEditorActionHandler.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
protected CutActionHandler() {
	super(IDEWorkbenchMessages.Cut);
	setId("XLIFFEditorCutActionHandler");//$NON-NLS-1$
	setEnabled(false);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_CUT_ACTION);
}
 
Example #15
Source File: DeleteResourceAction.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Action initialization.
 */
private void initAction() {
	setToolTipText(IDEWorkbenchMessages.DeleteResourceAction_toolTip);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.DELETE_RESOURCE_ACTION);
	setId(ID);
}
 
Example #16
Source File: RenameResourceAction.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
private void initAction() {
	setToolTipText(IDEWorkbenchMessages.RenameResourceAction_toolTip);
	setId(ID);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.RENAME_RESOURCE_ACTION);
}
 
Example #17
Source File: DeleteResourceAndCloseEditorAction.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
protected void configureShell(Shell newShell) {
	super.configureShell(newShell);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(newShell, IIDEHelpContextIds.DELETE_PROJECT_DIALOG);
}
 
Example #18
Source File: RenameResourceAndCloseEditorAction.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
private void initAction(){
	setToolTipText(IDEWorkbenchMessages.RenameResourceAction_toolTip);
	setId(ID);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
			IIDEHelpContextIds.RENAME_RESOURCE_ACTION);
}
 
Example #19
Source File: XLIFFEditorActionHandler.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
protected SelectAllActionHandler() {
	super(IDEWorkbenchMessages.TextAction_selectAll);
	setId("TextSelectAllActionHandler");//$NON-NLS-1$
	setEnabled(false);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_SELECT_ALL_ACTION);
}
 
Example #20
Source File: XLIFFEditorActionHandler.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
protected DeleteActionHandler() {
	super(IDEWorkbenchMessages.Delete);
	setId("TextDeleteActionHandler");//$NON-NLS-1$
	setEnabled(false);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_DELETE_ACTION);
}
 
Example #21
Source File: XLIFFEditorActionHandler.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
protected PasteActionHandler() {
	super(IDEWorkbenchMessages.Paste);
	setId("XLIFFEditorPasteActionHandler");//$NON-NLS-1$
	setEnabled(false);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_PASTE_ACTION);
}
 
Example #22
Source File: XLIFFEditorActionHandler.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
protected CopyActionHandler() {
	super(IDEWorkbenchMessages.Copy);
	setId("XLIFFEditorCopyActionHandler");//$NON-NLS-1$
	setEnabled(false);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_COPY_ACTION);
}
 
Example #23
Source File: XLIFFEditorActionHandler.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
protected CutActionHandler() {
	super(IDEWorkbenchMessages.Cut);
	setId("XLIFFEditorCutActionHandler");//$NON-NLS-1$
	setEnabled(false);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_CUT_ACTION);
}
 
Example #24
Source File: OpenResourceAction.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Initializes the workbench
 */
private void initAction() {
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.OPEN_RESOURCE_ACTION);
	setToolTipText(IDEWorkbenchMessages.OpenResourceAction_toolTip);
	setId(ID);
}
 
Example #25
Source File: CloseResourceAction.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
private void initAction() {
	setId(ID);
	setToolTipText(IDEWorkbenchMessages.CloseResourceAction_toolTip);
	PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.CLOSE_RESOURCE_ACTION);
}
 
Example #26
Source File: NewFolderDialogOfHs.java    From translationstudio8 with GNU General Public License v2.0 votes vote down vote up
protected void configureShell(Shell shell) {
			super.configureShell(shell);
			PlatformUI.getWorkbench().getHelpSystem().setHelp(shell,
					IIDEHelpContextIds.NEW_FOLDER_DIALOG);
		}