Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Getting Class information from Eclipse
Getting Class information from Eclipse [message #506731] Sat, 09 January 2010 03:55
Eclipse UserFriend
Hi All,

I developed a new plugin and need to get class information (properties and methods) at runtime.

I can get it as below code block but it is valid when user selects a class via package explorer. I need to get it by setting class-name via code. How can it be gotten with no selection ?

IWorkbenchWindow window1 = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
ISelectionService service = window1.getSelectionService();
IStructuredSelection selection = (IStructuredSelection) service.getSelection("org.eclipse.jdt.ui.PackageExplorer");

Thanks a lot for your helps
Previous Topic:question on src folder in linux
Next Topic:Ant editor warning about missing AnnotationProcessorFactory class
Goto Forum:
  


Current Time: Sat Mar 15 17:37:51 EDT 2025

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

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

Back to the top