MultiPageEditor save problem with JSEditor [message #147929] |
Mon, 21 November 2005 09:52 |
Eclipse User |
|
|
|
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 #149215 is a reply to message #148142] |
Fri, 25 November 2005 23:00 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 ...
|
|
|
Powered by
FUDForum. Page generated in 0.03517 seconds