Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] extending JDT with a non-UI related feature

Hey John,

Thanks for the quick reply.  I think the listener
mechanism will work just fine.  I've already tried it
out and it seems to suit my needs.  The problem that
I *think* I have is that there doesn't appear to be a
way for me to register that listener inside an
extension that is automatically activated when a java
project is opened.  

It appears I need to create my own plugin which in 
turn is lazily instantiated. I'm looking for a way to
get my listener added whenever a java file is opened
without having to tie the listener registragtion logic
to a plugin that adds a new view or action.  None of
the JDT extension points appear to provide this 
ability.  That said, if you think I'm best served
on the newsgroups with this question I'll go ask
those folks.  

regards,
-Michael

--- John Arthorne <John_Arthorne@xxxxxxxxxx> wrote:

> Are you saying that you cannot find how to add a
> listener, or that the JDT 
> core listener mechanism doesn't suit your needs? 
> You can listen for 
> changes to the Java model using 
>
JavaCore.addElementChangeListener(IElementChangeListener).
> Although there 
> is not much documentation outside of the javadoc,
> JDT Core has extensive 
> APIs for manipulating Java elements in a non-UI
> (headless) environment. I 
> suggest going into more detail on what you are
> looking for on the 
> eclipse.platform.jdt newsgroup - there are many
> knowledgable people there 
> who can point you in the right direction.
> --
> 
> 
> 
> 
> Michael Kovacs <chi3f_wahoo@xxxxxxxxx> 
> Sent by: jdt-core-dev-admin@xxxxxxxxxxx
> 08/12/2004 07:25 PM
> Please respond to
> jdt-core-dev
> 
> 
> To
> jdt-core-dev@xxxxxxxxxxx
> cc
> 
> Subject
> [jdt-core-dev] extending JDT with a non-UI related
> feature
> 
> 
> 
> 
> 
> 
> Hi there again,
> 
> I took a look at the Eclipse developers book that's
> out there as
> well as read up on the various documents, readmes,
> blogs, etc
> and it appears that JDT itself is only extensible in
> that you can
> create new views, actions, etc.  What I'm wondering
> is
> how would
> one go about extending JDT to add something that's
> independent of
> any of the views?  For example, if I wanted to add
> an
> element listener
> to JavaCore that is created and registered when the
> JDT is active
> how would I go about doing so?  The extension points
> for the JDT
> just don't seem to be there for this kind of
> feature. 
> I have to add
> listeners from within an action or a view which is
> limiting for what
> I want to do.  Any advice or confirmation that what
> I'm saying is
> is true?  Is there something that I'm missing? 
> Thanks
> for any 
> help insight.
> 
> -Michael
> 
> 
> 
>  
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
> _______________________________________________
> jdt-core-dev mailing list
> jdt-core-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/jdt-core-dev
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail


Back to the top