Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to identify the IPath source of a JobSafeStructuredDocument?
How to identify the IPath source of a JobSafeStructuredDocument? [message #188072] Fri, 16 February 2007 00:58 Go to next message
Eclipse User
Originally posted by: fakeaddress.brainkandy.org

Hello,

If I have an IStructuredDocument (really a JobSafeStructuredDocument),
how can I determine the workspace path associated with it? I need this
for a custom template variable resolver.

Thanks, Robert
Re: How to identify the IPath source of a JobSafeStructuredDocument? [message #188080 is a reply to message #188072] Fri, 16 February 2007 02:24 Go to previous messageGo to next message
Eclipse User
Originally posted by: fakeaddress.brainkandy.org

Robert Konigsberg wrote:
> Hello,
>
> If I have an IStructuredDocument (really a JobSafeStructuredDocument),
> how can I determine the workspace path associated with it? I need this
> for a custom template variable resolver.
>
> Thanks, Robert
Yay! I answered my own question!

model.getBaseLocation.
Re: How to identify the IPath source of a JobSafeStructuredDocument? [message #188170 is a reply to message #188072] Sun, 18 February 2007 06:07 Go to previous messageGo to next message
David Williams is currently offline David Williams
Messages: 696
Registered: July 2009
Senior Member
On Thu, 15 Feb 2007 19:58:44 -0500, Robert Konigsberg <fakeaddress@brain=
kandy.org> wrote:

> Hello,
>
> If I have an IStructuredDocument (really a JobSafeStructuredDocument),=

> how can I determine the workspace path associated with it? I need this=

> for a custom template variable resolver.
>
> Thanks, Robert
>

The best way to do this is with the new-in-33M6 API that associates
documents with their resource location. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D108764
Re: How to identify the IPath source of a JobSafeStructuredDocument? [message #188194 is a reply to message #188170] Sun, 18 February 2007 17:48 Go to previous message
Eclipse User
Originally posted by: konigsberg-at-g-m.ail-ddooott.com

Excellent, I'll put a TODO in my plugin.

Thanks, Robert
"David Williams" <david_williams@us.ibm.com> wrote in message
news:op.tnxkmgi1ac05ss@dmw2t23.ibm.com...
On Thu, 15 Feb 2007 19:58:44 -0500, Robert Konigsberg
<fakeaddress@brainkandy.org> wrote:

> Hello,
>
> If I have an IStructuredDocument (really a JobSafeStructuredDocument),
> how can I determine the workspace path associated with it? I need this
> for a custom template variable resolver.
>
> Thanks, Robert
>

The best way to do this is with the new-in-33M6 API that associates
documents with their resource location. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=108764
Previous Topic:When do I use IDOMNode.getModel and when do I used StructuredModelManager.getModelForRead?
Next Topic:Turning off validation on selective directories
Goto Forum:
  


Current Time: Mon Sep 15 04:22:25 GMT 2014

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

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