Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Javascript editor, StorageEditorInput
Javascript editor, StorageEditorInput [message #228096] Fri, 20 February 2009 17:17
Carl Hagenmaier is currently offline Carl HagenmaierFriend
Messages: 11
Registered: July 2009
Junior Member
I'm trying to use the javascript editor with StorageEditorInput rather
than a file. When I open the editor, the initial contents are always
empty even when the contents of the StorageEditorInput is not empty.

After debugging I've concluded that the problem is in
CompilationUnitDocumentProvider.createFileInfo().

<code>
protected FileInfo createFileInfo(Object element) throws CoreException {
IJavaScriptUnit original= null;
if (element instanceof IFileEditorInput) {
IFileEditorInput input= (IFileEditorInput) element;
original= createCompilationUnit(input.getFile());
if (original == null)
return null;
}

FileInfo info= super.createFileInfo(element);
if (!(info instanceof CompilationUnitInfo))
return null;

if (original == null)
original= createFakeCompiltationUnit(element, false);
</code>
Previous Topic:Re: Foregrownd color issue at "=" sign
Next Topic:Javascript editor, StorageEditorInput
Goto Forum:
  


Current Time: Tue Mar 19 08:33:37 GMT 2024

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

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

Back to the top