Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Re: How to open URL contents in editor.
Re: How to open URL contents in editor. [message #481117] Wed, 19 August 2009 16:50 Go to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
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 Web Tools Platform
Re: How to open URL contents in editor. [message #481145 is a reply to message #481117] 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 #482639 is a reply to message #481145] 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 #482737 is a reply to message #482639] Thu, 27 August 2009 17:38 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
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 Web Tools Platform
Re: How to open URL contents in editor. [message #483355 is a reply to message #482737] 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 #483996 is a reply to message #483355] Thu, 03 September 2009 20:33 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
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 Web Tools Platform
Previous Topic:Working Set, Open - no more idalog?
Next Topic:[resources] thread safety - project occassionally programmatically invisible
Goto Forum:
  


Current Time: Wed Apr 24 19:22:11 GMT 2024

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

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

Back to the top