本文整理汇总了Java中org.eclipse.ui.internal.ide.IIDEHelpContextIds类的典型用法代码示例。如果您正苦于以下问题:Java IIDEHelpContextIds类的具体用法?Java IIDEHelpContextIds怎么用?Java IIDEHelpContextIds使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IIDEHelpContextIds类属于org.eclipse.ui.internal.ide包,在下文中一共展示了IIDEHelpContextIds类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createControl
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/**
* (non-Javadoc) Method declared on IDialogPage.
*/
public void createControl(Composite parent) {
initializeDialogUnits(parent);
// top level group
Composite topLevel = new Composite(parent, SWT.NONE);
topLevel.setLayout(new GridLayout());
topLevel.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL
| GridData.HORIZONTAL_ALIGN_FILL));
topLevel.setFont(parent.getFont());
PlatformUI.getWorkbench().getHelpSystem()
.setHelp(topLevel, IIDEHelpContextIds.NEW_FILE_WIZARD_PAGE);
// resource and container group
resourceGroup = new ResourceAndContainerGroup(topLevel, this,
getNewFileLabel(),
IDEWorkbenchMessages.WizardNewFileCreationPage_file, false,
SIZING_CONTAINER_GROUP_HEIGHT);
resourceGroup.setAllowExistingResources(initialAllowExistingResources);
initialPopulateContainerNameField();
createAdvancedControls(topLevel);
if (initialFileName != null) {
resourceGroup.setResource(initialFileName);
}
if (initialFileExtension != null) {
resourceGroup.setResourceExtension(initialFileExtension);
}
validatePage();
// Show description on opening
setErrorMessage(null);
setMessage(null);
setControl(topLevel);
}
示例2: configureShell
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/**
* @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
*/
protected void configureShell(Shell shell) {
super.configureShell(shell);
shell.setText(text);
PlatformUI.getWorkbench().getHelpSystem().setHelp(shell, IIDEHelpContextIds.SAVE_AS_DIALOG);
IPath path2 = Path.fromOSString(path);
IFile file;
file = ResourcesPlugin.getWorkspace().getRoot().getFile(path2);
setOriginalFile(file);
}
示例3: createControl
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/** (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);
}
示例4: createControl
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/**
* (non-Javadoc) Method declared on IDialogPage.
*/
@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));
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);
}
示例5: createControl
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/** (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);
}
示例6: EnsembleOpenResourceHandler
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/**
* Creates a new instance of the class.
*/
public EnsembleOpenResourceHandler() {
super();
PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
IIDEHelpContextIds.OPEN_WORKSPACE_FILE_ACTION);
artificialResourceManager = getNewArtificialResourceManager();
}
示例7: EnsembleOpenResourceDialog
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/**
* Creates a new instance of the class.
*
* @param parentShell
* the parent shell
* @param container
* the container
* @param typesMask
* the types mask
*/
public EnsembleOpenResourceDialog(Shell parentShell, IContainer container,
int typesMask) {
super(parentShell, true, container, typesMask);
setTitle(getTitle());
setInitialPattern("?");
PlatformUI.getWorkbench().getHelpSystem().setHelp(parentShell,
IIDEHelpContextIds.OPEN_RESOURCE_DIALOG);
this.container = container;
}
示例8: OpenFileWithValidAction
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/**
* 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;
}
示例9: createControl
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/** (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);
}
createOptions(composite);
createMainFileOptions(composite);
createMainNclCheckBox.addListener(SWT.Selection, new Listener()
{
@Override
public void handleEvent(Event e)
{
Button button = (Button)(e.widget);
if (button.getSelection()){
fileIdLabel.setEnabled(true);
idMainNclNameField.setEnabled(true);
fileNameLabel.setEnabled(true);
nameMainNclNameField.setEnabled(true);
}
else {
fileIdLabel.setEnabled(false);
idMainNclNameField.setEnabled(false);
idMainNclNameField.setText("");
fileNameLabel.setEnabled(false);
nameMainNclNameField.setEnabled(false);
nameMainNclNameField.setText("");
}
}
});
// 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);
}
示例10: configureShell
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
@Override
protected void configureShell(final Shell newShell) {
super.configureShell(newShell);
PlatformUI.getWorkbench().getHelpSystem().setHelp(newShell, IIDEHelpContextIds.DELETE_PROJECT_DIALOG);
}
示例11: initAction
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/**
* Action initialization.
*/
private void initAction() {
setToolTipText(IDEWorkbenchMessages.DeleteResourceAction_toolTip);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.DELETE_RESOURCE_ACTION);
setId(ID);
}
示例12: initAction
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/**
* Initializes the workbench
*/
private void initAction() {
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.OPEN_RESOURCE_ACTION);
setToolTipText(IDEWorkbenchMessages.OpenResourceAction_toolTip);
setId(ID);
}
示例13: initAction
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
/**
* Initializes for the constructor.
*/
private void initAction() {
setToolTipText(IDEWorkbenchMessages.RefreshAction_toolTip);
setId(ID);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.REFRESH_ACTION);
}
示例14: initAction
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
private void initAction() {
setToolTipText(IDEWorkbenchMessages.RenameResourceAction_toolTip);
setId(ID);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.RENAME_RESOURCE_ACTION);
}
示例15: initAction
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
private void initAction() {
setId(ID);
setToolTipText(IDEWorkbenchMessages.CloseResourceAction_toolTip);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.CLOSE_RESOURCE_ACTION);
}