Package org.eclipse.ui

Examples of org.eclipse.ui.IFileEditorInput


  protected void doValidate(){
    try {
      ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
        public void run(IProgressMonitor monitor) throws CoreException {
          try {
            IFileEditorInput input = (IFileEditorInput)getEditorInput();
            new JavaScriptValidator(input.getFile()).doValidate();
          } catch(Exception ex){
          }
        }
      },null);
    } catch(Exception ex){
View Full Code Here


    if(getEditorInput() instanceof IFileEditorInput){
      try {
        ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
          public void run(IProgressMonitor monitor) throws CoreException {
            try {
              IFileEditorInput input = (IFileEditorInput)getEditorInput();
              HTMLProjectParams params = new HTMLProjectParams(input.getFile().getProject());
              if(params.getRemoveMarkers()){
                input.getFile().deleteMarkers(IMarker.PROBLEM,false,0);
              }
            } catch(Exception ex){
            }
          }
        }, null);
View Full Code Here

  }
  @Override
  public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException{
    super.init(site, editorInput);
    setPartName(editorInput.getName());
    IFileEditorInput ifei = (IFileEditorInput)editorInput;
    modelFile = (IFile) ifei.getFile();
  }
View Full Code Here

  @Override
  public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException{
    super.init(site, editorInput);
    setPartName(editorInput.getName());
    IFileEditorInput ifei = (IFileEditorInput)editorInput;
    modelFile = ifei.getFile();
  }
View Full Code Here

    super.doSave(monitor);
  }
 
  public void init(IEditorSite site, IEditorInput editorInput) {
    super.init(site, editorInput);
    IFileEditorInput ifei = (IFileEditorInput)editorInput;
    IFile modelFile = ifei.getFile();
    ToolServiceObject so = ToolServiceObject.fetch(modelFile);
    setPartName(so.getToolName());
    this.setSo(so);
   
  }
View Full Code Here

    }

    public void init(IEditorSite site, IEditorInput editorInput) {
        super.init(site, editorInput);
       
        IFileEditorInput ifei = (IFileEditorInput)editorInput;
        IFile modelFile = ifei.getFile();
        ToolClass cdf = ToolClass.fetch(modelFile);
        this.setCdf(cdf);
        setPartName(cdf.getToolName());
    }
View Full Code Here

    return this.dirty;
  }
 
  public void init(IEditorSite site, IEditorInput editorInput) {
    super.init(site, editorInput);
    IFileEditorInput ifei = (IFileEditorInput)editorInput;
    IFile modelFile = ifei.getFile();
    ToolPlan plan = ToolPlan.getInstance(modelFile);
    setPartName(plan.getToolName());
    this.setModel(plan);
  }
View Full Code Here

            throw new PartInitException(e.getStatus());
          }
        else {
          linkedFile = ExtLinkedFileHelper.obtainLink(uri, false);
        }
        IFileEditorInput linkedInput = new FileEditorInput(linkedFile);
        super.init(site, linkedInput);

      }
      else {
        // use EMF URI (readonly) input - will open without validation though...
View Full Code Here

    if (!(editorInput instanceof IFileEditorInput))
    {
      throw new PartInitException("Invalid Input: Must be IFileEditorInput");
    }
    super.init(site, editorInput);
    IFileEditorInput fileInput = (IFileEditorInput)editorInput;
    if (Activator.getProjectManager().getCurrentHaxeProject() != null)
    {
        buildFile = Activator.getProjectManager().getCurrentHaxeProject().findBuildFile(
            fileInput.getFile().getLocation().toOSString());
    }   
  }
View Full Code Here

    {
        super.init(site, input);
       
        if (input != null && input instanceof IFileEditorInput)
        {
            IFileEditorInput i = (IFileEditorInput)input;
            Activator.getProjectManager().setCurrentProject(i.getFile());
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IFileEditorInput

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.