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" <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
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
>
>
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
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
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