| CompilationUnitEditor inside a widget [message #304012] | 
Sun, 28 May 2006 17:42  | 
 
Eclipse User  | 
 | 
 | 
   | 
 
I'm trying to embed a CompilationUnitEditor in a custom widget  
(Composite subclass). My widget is used inside an EditorPart subclass.  
I've tried attaching the CompilationUnitEditor instance to the  
IEditorSite from the EditorPart and an IEditorInput from another  
CompilationUnitEditor. Although everything seems to initialize  
successfully, with no exceptions thrown, nothing is being drawn in my  
widget (where I was hoping for a CompilationUnitEditor to appear). 
 
An outline of what I'm currently doing to set up the  
CompilationUnitEditor (inside the constructor for my widget): 
 
editor = new CompilationUnitEditor (); 
editor.init(editorSite, editorInput); 
editor.createPartControl(this); 
 
I get the feeling that I'm going about this totally the wrong way -  
maybe I need to figure out how to make an EditorSite instance inside my  
widget? But that seems to require hookup to the rest of the workbench,  
which isn't really what I want. Can anyone give me a hint as to what I  
need to do? 
 
Thanks very much, 
Michael Coblenz
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03380 seconds