org.eclipse.ui.dialogs.WizardNewProjectCreationPage.getProjectHandle()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中org.eclipse.ui.dialogs.WizardNewProjectCreationPage.getProjectHandle()方法的一些代码示例,展示了WizardNewProjectCreationPage.getProjectHandle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WizardNewProjectCreationPage.getProjectHandle()方法的具体详情如下:
包路径:org.eclipse.ui.dialogs.WizardNewProjectCreationPage
类名称:WizardNewProjectCreationPage
方法名:getProjectHandle

WizardNewProjectCreationPage.getProjectHandle介绍

[英]Creates a project resource handle for the current project name field value. The project handle is created relative to the workspace root.

This method does not create the project resource; this is the responsibility of IProject::create invoked by the new project resource wizard.
[中]为当前项目名称字段值创建项目资源句柄。项目句柄是相对于工作区根创建的。
此方法不创建项目资源;这是新项目资源向导调用的IProject::create的责任。

代码示例

代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui

/**
 * Returns the project handle. Subclasses should override this 
 * method if they don't provide a main page or if they provide 
 * their own main page implementation.
 * 
 * @return the project handle
 */
protected IProject getProjectHandle() {
  Assert.isNotNull(fMainPage);
  return fMainPage.getProjectHandle();
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * Returns the project handle. Subclasses should override this
 * method if they don't provide a main page or if they provide
 * their own main page implementation.
 *
 * @return the project handle
 */
protected IProject getProjectHandle() {
  Assert.isNotNull(fMainPage);
  return fMainPage.getProjectHandle();
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * Returns the project handle. Subclasses should override this
 * method if they don't provide a main page or if they provide
 * their own main page implementation.
 *
 * @return the project handle
 */
protected IProject getProjectHandle() {
  Assert.isNotNull(fMainPage);
  return fMainPage.getProjectHandle();
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide

final IProject newProjectHandle = mainPage.getProjectHandle();

代码示例来源:origin: org.openl/org.openl.eclipse.ui.wizard

private IProject createNewProject() {
  final OpenLProjectCreator creator = new OpenLProjectCreator(mainPage.getProjectHandle(),
      mainPage.useDefaults() ? null : mainPage.getLocationPath());

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide

IProject handle = getProjectHandle();
if (handle.exists()) {
  setErrorMessage(IDEWorkbenchMessages.WizardNewProjectCreationPage_projectExistsMessage);

相关文章