Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Identifying Classes and Functions within .cpp and .h files
Identifying Classes and Functions within .cpp and .h files [message #330635] Wed, 06 August 2008 14:26
Eclipse UserFriend
Originally posted by: kevin.oberg.baesystems.com

I have the active editor IEditorPart, its input IFileEditorInput, and its
file IFile. I am trying to write a plug-in that will check the file open
in the active editor for proper Doxygen commenting above each function and
class, and add it if it is not present.

I have tried getting each line and trying to determine by parsing each
line String which are functions and classes, but ultimately this is a poor
solution and is impossible to fully implement correctly. Also, I have
tried getting IMarkers but those also do not identify classes or functions.

Is there any part of the file that will identify to me where (via line
number or position from start of file) the classes or functions are
declared or defined for .cpp and .h files? There must be something that
identifies these because their syntax coloring is properly working.

Any help or suggestions are greatly appreciated!!!
Previous Topic:Jobs seems to have a different behavior
Next Topic:Integrating build.xml ant-script with eclipse's build-process?
Goto Forum:
  


Current Time: Thu Jul 18 04:33:03 GMT 2024

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

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

Back to the top