Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » MultiPageEditor save problem with JSEditor
MultiPageEditor save problem with JSEditor [message #147929] Mon, 21 November 2005 09:52 Go to next message
Eclipse UserFriend
Originally posted by: amitz.nimblefish.com

I have an rcp application which uses a MultiPageEditor.

The MultiPageEditor adds a web tools JSEditor to page 0 like so:

JSEditor jseditor = new JSEditor();
int index = addPage(jseditor, getEditorInput());


When I run the application and load a Javascript file using the
File -> open file menu, it opens the file in the MultiPageEditor and
shows Javascript syntax highlighting as expected, but when I try to save
by either doing CTRL-S or by right clicking and saving nothing happens.


The method doSave in the MultiPageEditor never gets called.


Any idea why?


Any help will be highly appreciated !
Re: MultiPageEditor save problem with JSEditor [message #148142 is a reply to message #147929] Mon, 21 November 2005 13:37 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Amit Zohar wrote:
> I have an rcp application which uses a MultiPageEditor.
>
> The MultiPageEditor adds a web tools JSEditor to page 0 like so:
>
> JSEditor jseditor = new JSEditor();
> int index = addPage(jseditor, getEditorInput());
>
>
> When I run the application and load a Javascript file using the
> File -> open file menu, it opens the file in the MultiPageEditor and
> shows Javascript syntax highlighting as expected, but when I try to save
> by either doing CTRL-S or by right clicking and saving nothing happens.

Does your JSEditor retarget the save global actions? Does your MPE?

Later,
PW


Re: MultiPageEditor save problem with JSEditor [message #149215 is a reply to message #148142] Fri, 25 November 2005 23:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amitz.nimblefish.com

Paul Webster wrote:
> Amit Zohar wrote:
>
>> I have an rcp application which uses a MultiPageEditor.
>>
>> The MultiPageEditor adds a web tools JSEditor to page 0 like so:
>>
>> JSEditor jseditor = new JSEditor();
>> int index = addPage(jseditor, getEditorInput());
>>
>>
>> When I run the application and load a Javascript file using the
>> File -> open file menu, it opens the file in the MultiPageEditor and
>> shows Javascript syntax highlighting as expected, but when I try to
>> save by either doing CTRL-S or by right clicking and saving nothing
>> happens.
>
>
> Does your JSEditor retarget the save global actions? Does your MPE?
>
> Later,
> PW
Thanks for the replay,

I was finally able to make it work by extending the editor and writing my own implementation of the save methdod.
Re: MultiPageEditor save problem with JSEditor [message #151405 is a reply to message #149215] Mon, 12 December 2005 00:23 Go to previous message
Eclipse UserFriend
Originally posted by: amitgolwala.gmail.com

Hi Amit, Amit Golwala here !! conincidence... ne ways, just wanted a
favour from you. I m fairly new to Eclispe and I am using webtools
straight away. Can u please let me know the class that u extended and
methods u overide for your Java Script Editor !! do reply as i m badly
stuck at a particular instance. If you want then, please read the post
with date 9/12/2005. do reply mate ...
Previous Topic:Weird deployment issue
Next Topic:Attemp to create JBoss4-Serverdef for M9
Goto Forum:
  


Current Time: Wed Jul 17 23:34:14 GMT 2024

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

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

Back to the top