本文整理汇总了Java中org.eclipse.ui.internal.ide.IIDEHelpContextIds类的典型用法代码示例。如果您正苦于以下问题:Java IIDEHelpContextIds类的具体用法?Java IIDEHelpContextIds怎么用?Java IIDEHelpContextIds使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IIDEHelpContextIds类属于org.eclipse.ui.internal.ide包,在下文中一共展示了IIDEHelpContextIds类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:35,代码来源:WizardNewFileCreationPage.java
示例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);
}
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:15,代码来源:FragmentSaveDialog.java
示例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);
}
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:30,代码来源:UMLWizardNewProjectCreationPage.java
示例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);
}
开发者ID:aspose-total,项目名称:Aspose.Total-for-Java,代码行数:32,代码来源:AsposeNewMavenProjectWizardPageBase.java
示例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);
}
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:32,代码来源:WizardNewProjectCreationPage.java
示例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();
}
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:11,代码来源:EnsembleOpenResourceHandler.java
示例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;
}
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:21,代码来源:EnsembleOpenResourceDialog.java
示例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;
}
开发者ID:heartsome,项目名称:translationstudio8,代码行数:16,代码来源:OpenFileWithValidAction.java
示例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);
}
开发者ID:ncleclipse,项目名称:ncl30-eclipse,代码行数:59,代码来源:NCLProjectWizardPage.java
示例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);
}
开发者ID:gama-platform,项目名称:gama,代码行数:6,代码来源:DeleteResourceAction.java
示例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);
}
开发者ID:gama-platform,项目名称:gama,代码行数:9,代码来源:DeleteResourceAction.java
示例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);
}
开发者ID:gama-platform,项目名称:gama,代码行数:9,代码来源:OpenResourceAction.java
示例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);
}
开发者ID:gama-platform,项目名称:gama,代码行数:9,代码来源:RefreshAction.java
示例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);
}
开发者ID:gama-platform,项目名称:gama,代码行数:6,代码来源:RenameResourceAction.java
示例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);
}
开发者ID:gama-platform,项目名称:gama,代码行数:6,代码来源:CloseResourceAction.java
示例16: CutActionHandler
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
protected CutActionHandler() {
super(IDEWorkbenchMessages.Cut);
setId("XLIFFEditorCutActionHandler");//$NON-NLS-1$
setEnabled(false);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_CUT_ACTION);
}
开发者ID:heartsome,项目名称:translationstudio8,代码行数:7,代码来源:XLIFFEditorActionHandler.java
示例17: CopyActionHandler
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
protected CopyActionHandler() {
super(IDEWorkbenchMessages.Copy);
setId("XLIFFEditorCopyActionHandler");//$NON-NLS-1$
setEnabled(false);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_COPY_ACTION);
}
开发者ID:heartsome,项目名称:translationstudio8,代码行数:7,代码来源:XLIFFEditorActionHandler.java
示例18: PasteActionHandler
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
protected PasteActionHandler() {
super(IDEWorkbenchMessages.Paste);
setId("XLIFFEditorPasteActionHandler");//$NON-NLS-1$
setEnabled(false);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_PASTE_ACTION);
}
开发者ID:heartsome,项目名称:translationstudio8,代码行数:7,代码来源:XLIFFEditorActionHandler.java
示例19: DeleteActionHandler
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
protected DeleteActionHandler() {
super(IDEWorkbenchMessages.Delete);
setId("TextDeleteActionHandler");//$NON-NLS-1$
setEnabled(false);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_DELETE_ACTION);
}
开发者ID:heartsome,项目名称:translationstudio8,代码行数:7,代码来源:XLIFFEditorActionHandler.java
示例20: SelectAllActionHandler
import org.eclipse.ui.internal.ide.IIDEHelpContextIds; //导入依赖的package包/类
protected SelectAllActionHandler() {
super(IDEWorkbenchMessages.TextAction_selectAll);
setId("TextSelectAllActionHandler");//$NON-NLS-1$
setEnabled(false);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IIDEHelpContextIds.TEXT_SELECT_ALL_ACTION);
}
开发者ID:heartsome,项目名称:translationstudio8,代码行数:7,代码来源:XLIFFEditorActionHandler.java
注:本文中的org.eclipse.ui.internal.ide.IIDEHelpContextIds类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论