Results 1 to 3 of 3
  1. #1
    SSG_JJV is offline Member
    Join Date
    Jan 2009
    Posts
    5
    Rep Power
    0

    Default AutoCompile in Eclipse Custom Editor

    I developed a custom editor extending from TextEditor of Eclipse. I want to add auto compile option for this editor similar to Java auto compilation in Eclipse Java Editor. i.e User writes some syntax in the editor and if the editor is idle for a specified milli-second time, compilation should be triggerred and compile the code in Editor. I have the compiler developed for the language in Editor. But i want to integrate it with Editor.

    Any idea which methods i should look into?

    Thanks,
    VVG

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    I hate it when no one responds, so...

    All I can suggest is looking at the Eclipse source to see how the Java editor integrates that functionality.

  3. #3
    SSG_JJV is offline Member
    Join Date
    Jan 2009
    Posts
    5
    Rep Power
    0

    Default

    I have created a TextListener and attached it to Editor Class. Inside TextListener's textChanged() method, i wrote code to invoke auto compile using Threads. Seems to work. Any better choice is welcome


    ---
    Lolita

Similar Threads

  1. Replies: 1
    Last Post: 08-21-2009, 09:07 PM
  2. Visual Editor For Eclipse 3.4 Ganymede
    By fcojavierperez in forum Eclipse
    Replies: 0
    Last Post: 12-19-2008, 01:11 PM
  3. Eclipse Visual Editor problem
    By Scar€crow in forum AWT / Swing
    Replies: 0
    Last Post: 09-08-2008, 12:06 AM
  4. Eclipse Visual Editor and Ganymede
    By jobsonandrew in forum Eclipse
    Replies: 3
    Last Post: 08-05-2008, 10:07 AM
  5. Eclipse plugin extending the standard editor
    By gaspard in forum Eclipse
    Replies: 0
    Last Post: 03-04-2008, 04:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •