Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » [SOLVED] ICompilationUnit from AbstractHandler application context
icon5.gif  [SOLVED] ICompilationUnit from AbstractHandler application context [message #649504] Wed, 19 January 2011 13:51 Go to next message
Christophe Bismuth is currently offline Christophe Bismuth
Messages: 67
Registered: July 2009
Location: Paris, France
Member

Hi,

Could someone can give me a hint about how to retrieve the ICompilationUnit of a selected class name declaration in the Java text editor?

Thanks,
Chris

[Updated on: Wed, 19 January 2011 21:06]

Report message to a moderator

Re: ICompilationUnit from AbstractHandler application context [message #649507 is a reply to message #649504] Wed, 19 January 2011 14:13 Go to previous message
Christophe Bismuth is currently offline Christophe Bismuth
Messages: 67
Registered: July 2009
Location: Paris, France
Member

Will try this:

http://www.eclipse.org/forums/index.php?t=msg&goto=54517 9&S=7ce9ac25799bbf39ef963f77215d3fe9

ISelection will be got from:
HandlerUnit.getCurrentSelection(ExecutionEvent): ISelection
Previous Topic:[SOLVED] MultiTextEdit overlap
Next Topic: "create project from existing source" issue
Goto Forum:
  


Current Time: Sun Sep 21 08:17:31 GMT 2014

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

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