Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Access information about existing Java projects in the workspace
Access information about existing Java projects in the workspace [message #60946] Mon, 11 May 2009 14:16 Go to next message
Eclipse UserFriend
Originally posted by: cold.phusion.gmail.com

Hi,

I'm trying to build a plugin which displays various informations about
Java classes for a project in the local workspace - e.g. javadocs or
class details (modifiers, fields, methods, etc..). Is there a public API
for the JDT where I can get this kind of data?

Thanks,
Alex
Re: Access information about existing Java projects in the workspace [message #60970 is a reply to message #60946] Mon, 11 May 2009 14:46 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Aleksandar Shterev wrote:
> class details (modifiers, fields, methods, etc..). Is there a public API
> for the JDT where I can get this kind of data?

JDT Core has those APIs:
http://help.eclipse.org/stable/topic/org.eclipse.jdt.doc.isv /guide/jdt_int_model.htm

- Prakash
---
http://blog.eclipse-tips.com
Re: Access information about existing Java projects in the workspace [message #60994 is a reply to message #60946] Mon, 11 May 2009 14:47 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Aleksandar Shterev wrote:
> Hi,
>
> I'm trying to build a plugin which displays various informations about
> Java classes for a project in the local workspace - e.g. javadocs or
> class details (modifiers, fields, methods, etc..). Is there a public API
> for the JDT where I can get this kind of data?

I'd get the workspace from ResourcesPlugin and than you can use the
JDTCore class to get an IJavaProject from a workspace project. That
should be enough to get you started.

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Access information about existing Java projects in the workspace [message #61015 is a reply to message #60946] Mon, 11 May 2009 22:57 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

example: http://www.vogella.de/articles/EclipseJDT/article.html

Besgt regards, Lars

Aleksandar Shterev wrote:
> Hi,
>
> I'm trying to build a plugin which displays various informations about
> Java classes for a project in the local workspace - e.g. javadocs or
> class details (modifiers, fields, methods, etc..). Is there a public API
> for the JDT where I can get this kind of data?
>
> Thanks,
> Alex
Re: Access information about existing Java projects in the workspace [message #597215 is a reply to message #60946] Mon, 11 May 2009 14:46 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Aleksandar Shterev wrote:
> class details (modifiers, fields, methods, etc..). Is there a public API
> for the JDT where I can get this kind of data?

JDT Core has those APIs:
http://help.eclipse.org/stable/topic/org.eclipse.jdt.doc.isv /guide/jdt_int_model.htm

- Prakash
---
http://blog.eclipse-tips.com
Re: Access information about existing Java projects in the workspace [message #597224 is a reply to message #60946] Mon, 11 May 2009 14:47 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Aleksandar Shterev wrote:
> Hi,
>
> I'm trying to build a plugin which displays various informations about
> Java classes for a project in the local workspace - e.g. javadocs or
> class details (modifiers, fields, methods, etc..). Is there a public API
> for the JDT where I can get this kind of data?

I'd get the workspace from ResourcesPlugin and than you can use the
JDTCore class to get an IJavaProject from a workspace project. That
should be enough to get you started.

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Access information about existing Java projects in the workspace [message #597231 is a reply to message #60946] Mon, 11 May 2009 22:57 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

example: http://www.vogella.de/articles/EclipseJDT/article.html

Besgt regards, Lars

Aleksandar Shterev wrote:
> Hi,
>
> I'm trying to build a plugin which displays various informations about
> Java classes for a project in the local workspace - e.g. javadocs or
> class details (modifiers, fields, methods, etc..). Is there a public API
> for the JDT where I can get this kind of data?
>
> Thanks,
> Alex
Previous Topic:Access information about existing Java projects in the workspace
Next Topic:eclipse API's to get console message
Goto Forum:
  


Current Time: Fri Mar 29 12:34:26 GMT 2024

Powered by FUDForum. Page generated in 0.04508 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top