Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » get File or class Name from IDocumet
get File or class Name from IDocumet [message #333504] Tue, 16 December 2008 11:06 Go to next message
Artur Zeiler is currently offline Artur ZeilerFriend
Messages: 10
Registered: July 2009
Junior Member
Hi all,

is there a possibility to get the file or class name from an IDocument?

Thanks!
Re: get File or class Name from IDocumet [message #333505 is a reply to message #333504] Tue, 16 December 2008 11:15 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Artur Zeiler wrote:
> Hi all,
>
> is there a possibility to get the file or class name from an IDocument?
Not directly. However, if performance is not an issue and if your
document is backed by a file buffer then you could use
org.eclipse.core.filebuffers.ITextFileBufferManager.getTextF ileBuffer(IDocument).

Dani
>
> Thanks!
>
Previous Topic:How to enable debug in plugin
Next Topic:Multiple Column Edits on a Tree Viewer
Goto Forum:
  


Current Time: Fri Apr 26 00:45:25 GMT 2024

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

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

Back to the top