Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » how to add the xtextEditor in the MultiPageEditor. (how to add the xtextEditor in the MultiPageEditor. )
how to add the xtextEditor in the MultiPageEditor. [message #642400] Wed, 01 December 2010 08:15
nma is currently offline nmaFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

I get another problem, how to add the xtextEditor in the MultiPageEditor.

when I call the code:

org.eclipse.xtext.ui.editor.XtextEditor jobScriptEditor = new XtextEditor();
int index = addPage(jobScriptEditor, new FileEditorInput(file));

error emerged and told me Unable to create editor ID, and xtextEdior.init() has nullException. seems documentProvider is null.

I met this before when I wanted to open a xtext file out of workspace, but this time, I do not know how to fix.

and if I have the editor to TextEditor. It is OK.
Hope your reply and thank you.

regards,
Ma Ning
Previous Topic:How to convert between from sourceScriptFile and ObjectFile
Next Topic:UML scope
Goto Forum:
  


Current Time: Thu Apr 25 08:46:12 GMT 2024

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

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

Back to the top