Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.WizardNewFileCreationPage


    //Eclipse won't let us setContainerFullPath with a directory that doesn't exist
    protected Stack<IFolder> speculativelyCreatedFolders = new Stack<IFolder>();

    @Override
    public void addPages() {
        mainPage = new WizardNewFileCreationPage("newFilePage", selection) {
            @Override
            protected InputStream getInitialContents() {
                return getTemplateContents();
            }
        };
View Full Code Here


    protected WizardNewFileCreationPage mainPage;
    private final LaunchTemplateSelectionPage templatePage = new LaunchTemplateSelectionPage();

    @Override
    public void addPages() {
        mainPage = new WizardNewFileCreationPage("newFilePage", selection) {
            @Override
            protected InputStream getInitialContents() {
                return getTemplateContents();
            }
        };
View Full Code Here

    }

    @Override
    public void addPages() {
      super.addPages();
      WizardNewFileCreationPage page = (WizardNewFileCreationPage) getPage("newFilePage1");
      page.setTitle("New Template File");
      page.setDescription("Creates a new Lapg Templates File");
      page.setFileName("TemplateFile.ltp");
    }
View Full Code Here

    }

    @Override
    public boolean performFinish()
    {
        WizardNewFileCreationPage page = ((WizardNewFileCreationPage)getPage("newFilePage1"));
        String fileName = page.getFileName();
        if (!fileName.endsWith(CodeFile.EXTENTION_WITH_DOT))
        {
            fileName += CodeFile.EXTENTION_WITH_DOT;
        }
        page.setFileName(fileName);
       
        return super.performFinish();
    }
View Full Code Here

   * Further initial settings can be done here if needed.
   * @param title The title of the wizard page
   * @param description A description of the wizard page.
   */
  protected void initWNFCPage(IStructuredSelection selection, String title, String description, String file_ext){
    this.wnfcPage = new WizardNewFileCreationPage("WNFC", selection);
   
    this.wnfcPage.setFileExtension(file_ext);
    this.wnfcPage.setTitle(title);
    this.wnfcPage.setDescription(description);

View Full Code Here

   * Further initial settings can be done here if needed.
   * @param title The title of the wizard page
   * @param description A description of the wizard page.
   */
  protected void initWNFCPage(IStructuredSelection selection, String title, String description, String file_ext){
    this.wnfcPage = new WizardNewFileCreationPage("WNFC", selection);
   
    this.wnfcPage.setFileExtension(file_ext);
    this.wnfcPage.setTitle(title);
    this.wnfcPage.setDescription(description);

View Full Code Here

  public NewS3DWizard() {
  }

  @Override
  public void init(IWorkbench workbench, IStructuredSelection selection) {
    page = new WizardNewFileCreationPage("Create a new S3D file.", selection);
   
    page.setFileExtension("s3d");
    page.setTitle("Create a new S3D file.");
    page.setDescription("Create a new S3D file in the specified directory.");
  }
View Full Code Here

    }
    return true;
  }
 
  public void addPages() {
    exportPage = new WizardNewFileCreationPage("XML Catalog Export",  getSelection());
    exportPage.setTitle(XMLWizardsMessages._UI_DIALOG_XMLCATALOG_EXPORT_TITLE);
    exportPage.setDescription(XMLWizardsMessages._UI_DIALOG_XMLCATALOG_EXPORT_DESCRIPTION);
    exportPage.setFileExtension("xml"); //$NON-NLS-1$
   
    addPage(exportPage);
View Full Code Here

      TransactionalEditingDomain editingDomain) {
    assert domainModelURI != null : "Domain model uri must be specified"; //$NON-NLS-1$
    assert diagramRoot != null : "Doagram root element must be specified"; //$NON-NLS-1$
    assert editingDomain != null : "Editing domain must be specified"; //$NON-NLS-1$

    myFileCreationPage = new WizardNewFileCreationPage(
        Messages.DispelNewDiagramFileWizard_CreationPageName,
        StructuredSelection.EMPTY);
    myFileCreationPage
        .setTitle(Messages.DispelNewDiagramFileWizard_CreationPageTitle);
    myFileCreationPage.setDescription(NLS.bind(
View Full Code Here

      TransactionalEditingDomain editingDomain) {
    assert domainModelURI != null : "Domain model uri must be specified"; //$NON-NLS-1$
    assert diagramRoot != null : "Doagram root element must be specified"; //$NON-NLS-1$
    assert editingDomain != null : "Editing domain must be specified"; //$NON-NLS-1$

    myFileCreationPage = new WizardNewFileCreationPage(
        eu.admire.visual.pmml.neuralnetwork._40.diagram.part.Messages.PMMLNewDiagramFileWizard_CreationPageName,
        StructuredSelection.EMPTY);
    myFileCreationPage
        .setTitle(eu.admire.visual.pmml.neuralnetwork._40.diagram.part.Messages.PMMLNewDiagramFileWizard_CreationPageTitle);
    myFileCreationPage
View Full Code Here

TOP

Related Classes of org.eclipse.ui.dialogs.WizardNewFileCreationPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.