Package ag.ion.bion.workbench.office.editor.ui.editors

Examples of ag.ion.bion.workbench.office.editor.ui.editors.OfficeEditor


  @Override
  public ITutorialDocument getDocument(IEditorPart editor) {
    if (!(editor instanceof OfficeEditor))
      return null;
    OfficeEditor officeEditor = (OfficeEditor) editor;

    IEditorInput editorInput = editor.getEditorInput();
    if (!(editorInput instanceof IFileEditorInput))
      return null;
    FileEditorInput input = (FileEditorInput) editor.getEditorInput();

    return new OODocument(officeEditor.getDocument(), input.getFile());
  }
View Full Code Here


  @Override
  public void replaceSaveRoutine(IEditorPart editor,
      ITutorialDocument tutorialDocument) {
    if (!(editor instanceof OfficeEditor))
      return;
    OfficeEditor officeEditor = (OfficeEditor) editor;
    IFrame frame = officeEditor.getFrame();
    frame.addDispatchDelegate(GlobalCommands.SAVE,
        new SaveDispatchDelegate(officeEditor, tutorialDocument));
    frame.updateDispatches();
  }
View Full Code Here

TOP

Related Classes of ag.ion.bion.workbench.office.editor.ui.editors.OfficeEditor

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.