Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Creating view by extending ViewPart
Creating view by extending ViewPart [message #173786] Mon, 28 March 2005 15:31
Eclipse UserFriend
Originally posted by: gunjan_sir.yahoo.com

Hello All!
I have created a workbench view by extending org.eclipse.ui.part.ViewPart.
For this one needs to implement createPartControl() and setFocus() wihch
are called by workbench.

For implementors in createPartControl(),we do the following multistep
process:
1.Create one or more controls within the parent.
2.Set the parent layout as needed.
3.Register any global actions with the IActionService.
4.Register any popup menus with the IActionService.
5.Register a selection provider with the ISelectionService (optional)

This view of my application will have tree structure to display,the way we
have the file sturucture.
Im using TreeViewer of GEF for the same.

Now i have this requirment to fulfill:
1)The Treeview will have structure which is based on the application logic.
something like this...
category1
|-A
|-B
category2
category3
2)Whem u right click on the content.... say any category for
ex.category1... of the tree i have to send that category to the Editor
Palette.

Now this is my understanding....i will have implement the point 1,2,3,4 of
createPartControl().

can somebody say whether my understanding is correct or not, and pleez
throw some more light on this issue, specially wht class and interface i
have to implement from
AbstractTreeEditPart,AbstractEditPart,EditPartViewer,Abstrac tEditPartViewer,
TreeViewer,TreeEditPart....

Thanks in advance for the valuble suggestion.
Regards
Ved
Previous Topic:Stepd For Implementing GEF TreeViewer
Next Topic:Launching an editor without a file - openEditor()
Goto Forum:
  


Current Time: Tue Apr 16 07:17:52 GMT 2024

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

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

Back to the top