当前位置: 首页>>代码示例>>Java>>正文


Java WizardNewFileCreationPage.setDescription方法代码示例

本文整理汇总了Java中org.eclipse.ui.dialogs.WizardNewFileCreationPage.setDescription方法的典型用法代码示例。如果您正苦于以下问题:Java WizardNewFileCreationPage.setDescription方法的具体用法?Java WizardNewFileCreationPage.setDescription怎么用?Java WizardNewFileCreationPage.setDescription使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.ui.dialogs.WizardNewFileCreationPage的用法示例。


在下文中一共展示了WizardNewFileCreationPage.setDescription方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addPages

import org.eclipse.ui.dialogs.WizardNewFileCreationPage; //导入方法依赖的package包/类
@Override
public void addPages() {
    super.addPages();
    page = new WizardNewFileCreationPage(getPageName(), selection) {
        @Override
        protected void createAdvancedControls(Composite parent) {}

        @Override
        protected IStatus validateLinkedResource() {
            return Status.OK_STATUS;
        }
    };
    page.setImageDescriptor(RoboVMPlugin.getDefault().getImageRegistry()
            .getDescriptor(getPageBanner()));
    page.setTitle(getPageTitle());
    page.setDescription(getPageDescription());
    addPage(page);
}
 
开发者ID:robovm,项目名称:robovm-eclipse,代码行数:19,代码来源:AbstractNewXcodeFileWizard.java

示例2: addPages

import org.eclipse.ui.dialogs.WizardNewFileCreationPage; //导入方法依赖的package包/类
/**
 * The wizard is composed of two pages
 */
@Override
public void addPages() {
  viewContainerFolderSelectionPage =
      new WizardNewFileCreationPage(Messages.getString("VirtualModelFileWizard.Page.Name"), //$NON-NLS-1$
                                    selection);
  viewContainerFolderSelectionPage
      .setImageDescriptor(EmfViewsUIPlugin.getImageDescriptor("VirtualModelWizard.png")); //$NON-NLS-1$

  viewContainerFolderSelectionPage.setTitle(Messages.getString("VirtualModelFileWizard.Title")); //$NON-NLS-1$
  viewContainerFolderSelectionPage
      .setDescription(Messages.getString("VirtualModelFileWizard.Page.Description")); //$NON-NLS-1$
  viewContainerFolderSelectionPage.setFileExtension("eview"); //$NON-NLS-1$
  addPage(viewContainerFolderSelectionPage);
  String viewpoint = virtualMetamodel.getFullPath().makeRelative().toString();
  createViewScreen = new CreateViewScreen(viewpoint);

  addPage(createViewScreen);
}
 
开发者ID:atlanmod,项目名称:emfviews,代码行数:22,代码来源:CreateViewWizard.java

示例3: addPages

import org.eclipse.ui.dialogs.WizardNewFileCreationPage; //导入方法依赖的package包/类
/**
 * The wizard is composed of two pages
 */
@Override
public void addPages() {
  simplePage =
      new WizardNewFileCreationPage(Messages.getString("VirtualMetamodelFileWizard.Page.Name"), //$NON-NLS-1$
                                    selection);
  simplePage.setImageDescriptor(EmfViewsUIPlugin.getImageDescriptor("VirtualModelWizard.png")); //$NON-NLS-1$

  simplePage.setTitle(Messages.getString("VirtualMetamodelFileWizard.Title")); //$NON-NLS-1$
  simplePage.setDescription(Messages.getString("VirtualModelFileWizard.Page.Description")); //$NON-NLS-1$
  simplePage.setFileExtension("eviewpoint"); //$NON-NLS-1$
  addPage(simplePage);

  advancedPage = new CreateViewpointScreen(selection);
  addPage(advancedPage);

  attSelectionPage = new AttributesSelectionPage();
  addPage(attSelectionPage);

}
 
开发者ID:atlanmod,项目名称:emfviews,代码行数:23,代码来源:CreateViewpointWizard.java

示例4: init

import org.eclipse.ui.dialogs.WizardNewFileCreationPage; //导入方法依赖的package包/类
@Override
public void init(IWorkbench workbench, IStructuredSelection selection) {
	page=new WizardNewFileCreationPage("选择存储目录",selection);
	page.setFileName("process.jpdl.xml");
	page.setTitle("流程模版存储目录选择");
	page.setDescription("选择新建的流程模版文件存放目录");
	this.addPage(page);
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:NewProcessWizard.java

示例5: addPages

import org.eclipse.ui.dialogs.WizardNewFileCreationPage; //导入方法依赖的package包/类
@Override
public void addPages() {
	mainPage = new WizardNewFileCreationPage("newFilePage1", getSelection());//$NON-NLS-1$
	mainPage.setTitle("New Solution");
	mainPage.setDescription("Create a new marketplace solution. The file name must end with \".mps\".");
	addPage(mainPage);
}
 
开发者ID:Itema-as,项目名称:dawn-marketplace-server,代码行数:8,代码来源:NewMarketplaceSolutionWizard.java

示例6: addContentPages

import org.eclipse.ui.dialogs.WizardNewFileCreationPage; //导入方法依赖的package包/类
@Override
public void addContentPages() {
       wizardNewFileCreationPage = new WizardNewFileCreationPage("newPlanFilePage1", getSelection());//$NON-NLS-1$
       wizardNewFileCreationPage.setTitle(getTranslatableName());
       wizardNewFileCreationPage.setFileExtension("plan");
       wizardNewFileCreationPage.setDescription(getDescription()); 
       
       temporalNewPlanWizardPage = new TemporalNewPlanWizardPage();
       temporalNewPlanWizardPage.setTitle(getTranslatableName());
       temporalNewPlanWizardPage.setDescription(getDescription());
       // descriptions is set in page
                     
       addPage(wizardNewFileCreationPage);
       addPage(temporalNewPlanWizardPage);
   }
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:16,代码来源:NewPlanResourceWizard.java

示例7: addPages

import org.eclipse.ui.dialogs.WizardNewFileCreationPage; //导入方法依赖的package包/类
@Override
public void addPages() {
        IStructuredSelection projectSelectionFromModulePath = getProjectSelection();
        mainPage = new WizardNewFileCreationPage("Create new Rust file", projectSelectionFromModulePath);
        mainPage.setTitle("Create new Rust file");
        mainPage.setFileExtension("rs");
        mainPage.setDescription("Create a new Rust file");
        addPage(mainPage);
}
 
开发者ID:peq,项目名称:rustyeclipse,代码行数:10,代码来源:NewPackageWizard.java

示例8: init

import org.eclipse.ui.dialogs.WizardNewFileCreationPage; //导入方法依赖的package包/类
@Override
public void init(IWorkbench workbench, IStructuredSelection selection) {

	this.workbench = workbench;

	final WizardNewFileCreationPage page = new WizardNewFileCreationPage("filenameSelection", selection) {
		@Override
		protected boolean validatePage() {
			if (!super.validatePage()) {
				return false;
			}

			final IPath path = this.getContainerFullPath();
			final IResource member = ResourcesPlugin.getWorkspace().getRoot().findMember(path);
			if (member instanceof IProject) {
				setMessage("The architecture can't be created directly " + "in a project. Please select a folder.",
						DialogPage.ERROR);
				return false;
			}

			return true;
		}

		// We don't want "Advanced" section to be displayed.
		@Override
		protected void createAdvancedControls(Composite parent) {
			// Does nothing, DO NOT REMOVE. Overwrites link related stuff
		}

		@Override
		protected IStatus validateLinkedResource() {
			// Does nothing, DO NOT REMOVE. Overwrites link related stuff
			return Status.OK_STATUS;
		}

		@Override
		protected void createLinkTarget() {
			// Does nothing, DO NOT REMOVE. Overwrites link related stuff
		}
	};
	page.setFileExtension(TurnusExtensions.ARCHITECTURE);
	page.setDescription("Select a parent folder and a name for the new architecture.");
	page.setAllowExistingResources(false);

	// Fill the page with a filename, if user selected one
	if (!selection.isEmpty()) {
		final Object firstSel = selection.getFirstElement();
		if (firstSel instanceof IFile) {
			final IFile selectedFile = (IFile) firstSel;
			final String fileName = selectedFile.getName();
			final String ext = selectedFile.getFileExtension();
			if (ext == null || ext.isEmpty()) {
				page.setFileName(fileName);
			} else {
				int idx = fileName.indexOf(ext);
				if (idx > 0) {
					page.setFileName(fileName.substring(0, idx - 1));
				}
			}
		}
	}

	addPage(page);
}
 
开发者ID:turnus,项目名称:turnus,代码行数:65,代码来源:ArchitectureBuilderWizard.java


注:本文中的org.eclipse.ui.dialogs.WizardNewFileCreationPage.setDescription方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。