How to open the javascript editor with a non IFileEditorInput [message #176792] |
Thu, 10 August 2006 14:46  |
Eclipse User |
|
|
|
Hi,
sorry, but this is repost from:
"Integration of the Javascript Editor into a FormDialog"
I need to open the JavaScript editor with a non IFileEditorInput!
I have seen a lot of javascript text editors in eclipse
(BIRT, WorkflowEditor,.....).
Reason:
======
I implement a logic editor (like the GEF example) and want
implement the logic of the parts in javascript. So - the user
can change/create any parts in the library.
double click on a library element and edit the logic via javascript editor.
The javascript logic is a part of the element and isn't stored as
separat file.
Is there any solution available!!!!
greetings
Andreas
|
|
|
Re: How to open the javascript editor with a non IFileEditorInput [message #179730 is a reply to message #176792] |
Fri, 22 September 2006 23:42  |
Eclipse User |
|
|
|
FreeGroup wrote:
> sorry, but this is repost from:
> "Integration of the Javascript Editor into a FormDialog"
>
> I need to open the JavaScript editor with a non IFileEditorInput!
>
> I have seen a lot of javascript text editors in eclipse
> (BIRT, WorkflowEditor,.....).
>
> Reason:
> ======
> I implement a logic editor (like the GEF example) and want
> implement the logic of the parts in javascript. So - the user
> can change/create any parts in the library.
>
> double click on a library element and edit the logic via javascript editor.
> The javascript logic is a part of the element and isn't stored as
> separat file.
>
> Is there any solution available!!!!
While we haven't tested any scenarios like that, I'd start by
looking at the IStorageEditorInput interface and how it can be used
to open an editor on a non-file. For editing without a full editor,
it's best to look into using a SourceViewer and the same setup as
the JavaScript Editor's text page
(org.eclipse.wst.javascript.ui.internal.editor.JSEditor). The
editor adds lifecycle management and other features, most of which
aren't really suited for putting into a dialog.
--
- Nitin
|
|
|
Powered by
FUDForum. Page generated in 0.02522 seconds