Sunday, March 25, 2012

How to create Sticky View


What is Sticky View?
Sticky view is mostly applicable for other perspective. Is is act as a normal view in my perspective but act as a sticky for other perspective.

Requirement:
Dependencies: org.eclipse.core.resources
Extensions: org.eclipse.ui.views

[Note: Can be created for separate Category for this Sticky view also.]

1. Open the "plug.xml" file and go to the "Extensions" tab. R-click on "org.eclipse.ui.views" extension and select New -> stickyView option.
Popup menu of new add StickyView

 2. Provide id*and select location. According to the location selection, the sticky view will be shown in other perspective. The id* value should be same as already created view id like: SampleCode.view

3. Now run the eclipse application and open any perspective, you can see your View.

Attachment: To Download this project click here.

No comments:

Post a Comment