Reputation: 1190
I haven't written any eclipse plugin before so my question may be stupid to some of you, but is it possible to open one of editors available in Eclipse inside my new eclipse view?
Well, actually I don't know how to open any editor, even simple text area there, I've just searched for some examples, but all of them just display some simple data in table or tree.
Thanks in advance for your help.
Upvotes: 1
Views: 2815
Reputation: 6987
Editors and views are different animals, so you can't just mix and match. This FAQ explains the difference.
You can also check this good eclipse plug-in development tutorial. It was a great starting source for me.
Upvotes: 2
Reputation: 8598
As @vainolo has mentioned, editor and views are 2 different things in Eclipse application.
Views are used to display information in an RCP application; they can also be used to change data. Views extend the abstract class ViewPart. Editors extend the abstract EditorPart. Both extend WorkbenchPart.
An editor typically requires that the user explicitly select "save" to apply the changes to the data while a view typically changes the data immediately. All editors are opened in the same area.
For creating an editor in your eclipse application you can follow this Eclipse Editors tutorial.
You may also go through this Eclipse RCP tutorial which describes developing Eclipse RCP applications.
Upvotes: 2