Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Several editors in One
Several editors in One [message #1010057] Sat, 16 February 2013 11:56
Dmitriy Shishkin is currently offline Dmitriy ShishkinFriend
Messages: 20
Registered: May 2012
Junior Member
Hi,
I try to integrate several editors into one multipage editor.
For example, for Mylyn TaskEditor:

1. Create editor instance
editor = new TaskEditor();

2. Init task editor (editor site take from myMultipageEditor)
editor.init(getEditor().getEditorSite(), getTaskEditorInput());

3. Create ui to my own composite
editor.createPartControl(composite);


It works well, but..
The main problem is that myMultipageEditor doesn't have an ActionBarContributor, but TaskEditor have. And when I init TaskEditor java.lang.IllegalArgumentException occurs because getActionBarContributor() == null

MultiPageEditor have capability to add IEditorPart as page, but problem became the same.

And I have a question. How I can create IEditorSite so that editor works in background?
Or it's bad idea to combine several editors in one?

Thanks,
Dmitriy
Previous Topic:making my first android app
Next Topic:Changing path variable in project properties only works when "linked resources" has not be
Goto Forum:
  


Current Time: Sun Dec 21 20:12:28 GMT 2014

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

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