Package factOrFiction.editors

Examples of factOrFiction.editors.DeckEditorInput


      String fileName = dialog.getFileName();
      IPath path= filterPath.append(fileName).makeAbsolute()

      try {
        window.getActivePage().openEditor(new DeckEditorInput( new File(path.toOSString()) ), DeckEditor.ID);
      } catch (PartInitException e) {
        MessageDialog.openError(window.getShell(), "Error", "Error opening deck:" + e.getMessage());
      }
    }
  }
View Full Code Here


  @Override
  public boolean performFinish() {
    IPath path = new Path(page.getFileName()).makeAbsolute()

    DeckEditorInput editorInput = new DeckEditorInput( new File(path.toOSString()) );
    Deck deck = (Deck)editorInput.getAdapter(Deck.class);
   
    deck.set(DeckConstants.FEATURE_NAME, page.getDeckName() );
    deck.set(DeckConstants.FEATURE_DESIGNER, page.getDeckAuthor() );
    deck.set(DeckConstants.FEATURE_VERSION, page.getDeckVersion() );
   
View Full Code Here

       
        if( found ) {
          IWorkbenchWindow window = getWorkbenchConfigurer().getWorkbench().getActiveWorkbenchWindow();

      try {
        window.getActivePage().openEditor(new DeckEditorInput( new File(deckname) ), DeckEditor.ID);
      } catch (PartInitException e) {
        MessageDialog.openError(window.getShell(), "Error", "Error opening deck:" + e.getMessage());
      }
        }
    }
View Full Code Here

TOP

Related Classes of factOrFiction.editors.DeckEditorInput

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.