Adding an editor to a perspective [message #461400] |
Wed, 10 January 2007 12:44 |
Eclipse User |
|
|
|
Originally posted by: badreddine49.yahoo.fr
To add a view we create a plugin project as a view template and we add view in perspective classe using
folder.addView("prg.exemple.view2.views.SampleView") and clicking Windows==>Show View. Its ok. my problem is i
will add an editor in my perspective!
how can i do this!?
Many thanks
badr
|
|
|
|
Re: Adding an editor to a perspective [message #461404 is a reply to message #461402] |
Wed, 10 January 2007 13:50 |
Eclipse User |
|
|
|
Originally posted by: badreddine49.yahoo.fr
Thank you.
i have added this instruc in my Perspective classe: layout.setEditorAreaVisible(true);
in my RCP application i show the zone of editor, but no editor.
i have create a menu item:
<i>private IWorkbenchAction newAction;</i> in ApplicationActionBarAdvisor
and i have added this menu to FileMenu in fillMenuBar:
<i>MenuManager fileMenu = new MenuManager("&File");
fileMenu.add(newAction);</i>
and in makeActions:
<i>newAction = ActionFactory.NEW_WIZARD_DROP_DOWN.create(window);
register(newAction);</i>
but no results
can you give more details about your solution!!?
|
|
|
|
Powered by
FUDForum. Page generated in 0.04071 seconds