Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to open URL contents in editor.
How to open URL contents in editor. [message #481072] Wed, 19 August 2009 14:00 Go to next message
mkaditya is currently offline mkadityaFriend
Messages: 9
Registered: July 2009
Junior Member
Is there any way to open contents of a URL in editor instead of browser. For
example if URL fetches XML contents i want to open it using XML editors.

Regards,
M.K.Aditya.
Re: How to open URL contents in editor. [message #481116 is a reply to message #481072] Wed, 19 August 2009 16:50 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2341
Registered: July 2009
Senior Member
mkaditya wrote:
> Is there any way to open contents of a URL in editor instead of browser. For
> example if URL fetches XML contents i want to open it using XML editors.

Do you mean you want to do this as a user, or are you trying to
write a plug-in to do it?

--
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: How to open URL contents in editor. [message #481144 is a reply to message #481116] Wed, 19 August 2009 18:17 Go to previous messageGo to next message
mkaditya is currently offline mkadityaFriend
Messages: 9
Registered: July 2009
Junior Member
I want to achieve that in WSDL editor hyperlinks.

"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:h6half$aiq$1@build.eclipse.org...
> mkaditya wrote:
>> Is there any way to open contents of a URL in editor instead of browser.
>> For example if URL fetches XML contents i want to open it using XML
>> editors.
>
> Do you mean you want to do this as a user, or are you trying to write a
> plug-in to do it?
>
> --
> Nitin Dahyabhai
> Eclipse WTP Source Editing
> IBM Rational
Re: How to open URL contents in editor. [message #482637 is a reply to message #481144] Thu, 27 August 2009 12:21 Go to previous messageGo to next message
mkaditya is currently offline mkadityaFriend
Messages: 9
Registered: July 2009
Junior Member
Putting it this way, are there any extension points which can be used to
customize code navigation ??

Regards,.
M.K.Aditya.

"mkaditya" <mkaditya@gmail.com> wrote in message
news:h6hfjt$fh1$1@build.eclipse.org...
>I want to achieve that in WSDL editor hyperlinks.
>
> "Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
> news:h6half$aiq$1@build.eclipse.org...
>> mkaditya wrote:
>>> Is there any way to open contents of a URL in editor instead of browser.
>>> For example if URL fetches XML contents i want to open it using XML
>>> editors.
>>
>> Do you mean you want to do this as a user, or are you trying to write a
>> plug-in to do it?
>>
>> --
>> Nitin Dahyabhai
>> Eclipse WTP Source Editing
>> IBM Rational
>
>
Re: How to open URL contents in editor. [message #482735 is a reply to message #482637] Thu, 27 August 2009 17:38 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2341
Registered: July 2009
Senior Member
mkaditya wrote:
>
> "mkaditya" <mkaditya@gmail.com> wrote in message
> news:h6hfjt$fh1$1@build.eclipse.org...
>> "Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
>> news:h6half$aiq$1@build.eclipse.org...
>>> mkaditya wrote:
>>>> Is there any way to open contents of a URL in editor instead of browser.
>>>> For example if URL fetches XML contents i want to open it using XML
>>>> editors.
>>> Do you mean you want to do this as a user, or are you trying to write a
>>> plug-in to do it?
>>>
>> I want to achieve that in WSDL editor hyperlinks.
>>
> Putting it this way, are there any extension points which can be
used to
> customize code navigation ??

Yes, there's an extension point for contributing hyperlink
detectors: org.eclipse.ui.workbench.texteditor.hyperlinkDetectors .
You would assign your own to one of the targets supported by the
WSDL Editor, and write it so that it opens its target as you wish; I
suspect that's "org.eclipse.wst.wsdl.wsdlsource".

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: How to open URL contents in editor. [message #483354 is a reply to message #482735] Tue, 01 September 2009 10:11 Go to previous messageGo to next message
mkaditya is currently offline mkadityaFriend
Messages: 9
Registered: July 2009
Junior Member
Thanx Nitin for your feedbacks. Your suggestion worked, however I ran into a
issue. Now it is showing code navigation links both for opening in
browser(which came from framework) and the one which i coded for. Is there
any way to remove the navigation links provided by the framework ?

Regards,
M.K.Aditya.

"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:h76ga5$2ic$2@build.eclipse.org...
> mkaditya wrote:
>>
>> "mkaditya" <mkaditya@gmail.com> wrote in message
>> news:h6hfjt$fh1$1@build.eclipse.org...
>>> "Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
>>> news:h6half$aiq$1@build.eclipse.org...
>>>> mkaditya wrote:
>>>>> Is there any way to open contents of a URL in editor instead of
>>>>> browser. For example if URL fetches XML contents i want to open it
>>>>> using XML editors.
>>>> Do you mean you want to do this as a user, or are you trying to write a
>>>> plug-in to do it?
>>>>
> >> I want to achieve that in WSDL editor hyperlinks.
> >>
> > Putting it this way, are there any extension points which can be
> used to
> > customize code navigation ??
>
> Yes, there's an extension point for contributing hyperlink detectors:
> org.eclipse.ui.workbench.texteditor.hyperlinkDetectors . You would assign
> your own to one of the targets supported by the WSDL Editor, and write it
> so that it opens its target as you wish; I suspect that's
> "org.eclipse.wst.wsdl.wsdlsource".
>
> --
> ---
> Nitin Dahyabhai
> Eclipse WTP Source Editing
> IBM Rational
Re: How to open URL contents in editor. [message #483994 is a reply to message #483354] Thu, 03 September 2009 20:33 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2341
Registered: July 2009
Senior Member
mkaditya wrote:
> Thanx Nitin for your feedbacks. Your suggestion worked, however I ran into a
> issue. Now it is showing code navigation links both for opening in
> browser(which came from framework) and the one which i coded for. Is there
> any way to remove the navigation links provided by the framework ?

Not that I know of, but then I've not had a reason to try.

---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:[WSDL Validator] wsp:PolicyReference validation problems.
Next Topic:Associate XSD schema with XML document without declaration
Goto Forum:
  


Current Time: Thu Dec 18 04:19:02 GMT 2014

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

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