Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] JSDT

> Jon Goering wrote on 12/21/2009 08:22:50 AM:
> Hi,
> I originally posted this message the ATF project, but WTP/JSDT is more 
pertinent.
> I’m using Eclipse: 3.4.1 M20080911-1700
> I’ve installed WTP 3.0.5
> I’m using an implementation of IStorageEditorInput to pass in a string
> to the JavaScript Editor. 
> I want to control the saving from the editor so I can retrieve the 
> changed text and persist other than to file.  Is there a way to do 
> this, perhaps through an extension?
> Thanks in advance

Any IStorageEditorInput that returns false for isReadOnly() will be 
modifiable, but you will have to make use of the org.eclipse.ui.editors
.documentProvider extension point to make sure your own document provider 
is used, and that it is written to allow saving.

Regards,
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


Back to the top