Getting started

Help
Alfred
2007-09-25
2013-05-15
  • Alfred
    Alfred
    2007-09-25

    I downloaded TimeDoctor IDE 1.4.0 and installed according to the readme.txt:

       - Go to "Help->Software Updates->Manage Configuration";
       - Select "Add an extension location" and browse to the directory where
         you extracted timedoctor (C:/timedoctor);
       - Select the top-level "eclipse" directory (C:/timedoctor/eclipse);
       - Click Ok to restart Eclipse.

    onto a newly installed Eclipse 3.3.0:
    http://www.eclipse.org/downloads/
    (Eclipse Europa Packages - Windows: Eclipse IDE for Java Developers)

    The next step:

    5) Open a sample trace file (eclipse/sample.tdi) via File->Open

    results in an error:

    Error opening the editor.  Reason: Invalid Input: Must have implemented IPathEditorInput.

    Can some one help me?

     
    • Mahesh DC
      Mahesh DC
      2007-09-27

      The 1.4.0 version of TimeDoctor, currently, does not support Eclipse 3.3.0.

      Please use the 3.2.x version of Eclipse. You can get it at the link below:
      http://download.eclipse.org/eclipse/downloads/

       
    • Martijn Rutten
      Martijn Rutten
      2007-09-27

      Eclipse 3.3 changed the class used to open files from to FileStoreEditorInput, which does not implement IPathEditorInput.

      The attached CVS patch should fix it (patch from the HEAD of the CVS of today), using the IAdaptable interface to get an IPathEditorInput interface...

      ### Eclipse Workspace Patch 1.0
      #P com.nxp.timedoctor.ui.workbench
      Index: src/com/nxp/timedoctor/internal/ui/TraceEditor.java
      ===================================================================
      RCS file: /cvsroot/timedoctor/com.nxp.timedoctor.ui.workbench/src/com/nxp/timedoctor/internal/ui/TraceEditor.java,v
      retrieving revision 1.8
      diff -u -r1.8 TraceEditor.java
      --- src/com/nxp/timedoctor/internal/ui/TraceEditor.java    16 Aug 2007 09:50:36 -0000    1.8
      +++ src/com/nxp/timedoctor/internal/ui/TraceEditor.java    27 Sep 2007 16:55:57 -0000
      @@ -95,10 +95,6 @@
            */
           @Override
           public final void init(final IEditorSite site, final IEditorInput input) throws PartInitException {
      -        if ( !(input instanceof IPathEditorInput)) {
      -            throw new PartInitException("Invalid Input: Must have implemented IPathEditorInput");
      -        }
      -       
               setSite(site);
               setInput(input);
              
      @@ -107,7 +103,10 @@
               traceModel = new TraceModel();
               zoomModel = new ZoomModel();
              
      -        IPathEditorInput iPath = (IPathEditorInput)input;
      +        IPathEditorInput iPath = (IPathEditorInput)input.getAdapter(IPathEditorInput.class);
      +        if (iPath == null) {
      +            throw new PartInitException("Invalid Input: Must have implemented IPathEditorInput");
      +        }
               File ioFile = iPath.getPath().toFile();
              
               final Parser parser = new Parser("Opening trace", traceModel, ioFile);