Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Editor extending StructuredTextEditorXML and the print icon is disabled
Editor extending StructuredTextEditorXML and the print icon is disabled [message #144976] Mon, 24 October 2005 12:31 Go to next message
Eclipse UserFriend
My editor extends StructuredTextEditorXML and the print button is disabled
when in my editor. What would cause this? Anything else that might be
disabled that I havent found yet? Any ideas would be appreciated.

Brian Jakubik
Re: Editor extending StructuredTextEditorXML and the print icon is disabled [message #145204 is a reply to message #144976] Wed, 26 October 2005 14:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amywu.us.DELETETHISPART.ibm.com

I think neither StructuredTextEditor nor StructuredTextEditorXML do anything
special with the print action. Are you able to do everything else just fine
in your editor? Also, as a heads up, StructuredTextEditorXML is gone (as of
WTP 1.0 M8.) There were instructions posted in the wtp-dev mailing list on
what to do instead. But the short version of it is that you should be using
StructuredTextEditor instead. And actually, you should not be subclassing
that class but instead, use its extension points and such to extend the
editor. See http://eclipse.org/webtools/wst/components/sse/overview.html

"Brian Jakubik" <brian.jakubik@intervoice.com> wrote in message
news:djj22l$rs6$1@news.eclipse.org...
> My editor extends StructuredTextEditorXML and the print button is disabled
> when in my editor. What would cause this? Anything else that might be
> disabled that I havent found yet? Any ideas would be appreciated.
>
> Brian Jakubik
>
>
Re: Editor extending StructuredTextEditorXML and the print icon is disabled [message #145331 is a reply to message #144976] Wed, 26 October 2005 22:28 Go to previous messageGo to next message
Eclipse UserFriend
Brian Jakubik wrote:
> My editor extends StructuredTextEditorXML and the print button is disabled
> when in my editor. What would cause this? Anything else that might be
> disabled that I havent found yet? Any ideas would be appreciated.

It's very likely that you left out the editor action contributor
where you defined your editor in your plugin.xml. The
BasicTextEditorActionContributor is responsible for setting up the
global print action so that it routes to the SourceViewer's print
operation.

--
- Nitin
Re: Editor extending StructuredTextEditorXML and the print icon is disabled [message #148163 is a reply to message #145331] Mon, 21 November 2005 11:47 Go to previous message
Eclipse UserFriend
You are correct, that fixed my problem. Thanks

"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:djpe0v$9po$1@news.eclipse.org...
> Brian Jakubik wrote:
>> My editor extends StructuredTextEditorXML and the print button is
>> disabled when in my editor. What would cause this? Anything else that
>> might be disabled that I havent found yet? Any ideas would be
>> appreciated.
>
> It's very likely that you left out the editor action contributor where you
> defined your editor in your plugin.xml. The
> BasicTextEditorActionContributor is responsible for setting up the global
> print action so that it routes to the SourceViewer's print operation.
>
> --
> - Nitin
Previous Topic:Setting up a workspace for WTP Development
Next Topic:JSP Editor error
Goto Forum:
  


Current Time: Wed Apr 30 03:06:05 EDT 2025

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

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

Back to the top