Skip to main content

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

I'll give that a try; thanks for info and quick response.

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.

From: wtp-dev-bounces@xxxxxxxxxxx [mailto:wtp-dev-bounces@xxxxxxxxxxx] On Behalf Of Nitin Dahyabhai
Sent: Monday, December 21, 2009 11:40 AM
To: General discussion of project-wide or architectural issues.
Subject: 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
> 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.

Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational

Back to the top