[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Make a custom view visible by default

Siddharth wrote:
Hi,
I have created a custom view in an application which I have built on top of eclipse. Now can someone please tell me as to how can I make this view open as default in all the perspectives (i.e. whenever i launch the application for the first time I wouldn't have to go to Windows-->Views-->My View and open it from there). Any and every help would be highly appreciated.


Thanks and Regards,
Siddharth

PS: I tried the sticky view option but it didn't solve my problem of having it as opened when I first launch the application


A perspective extension may help you out:

http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_ui_perspectiveExtensions.html

Of course, this doesn't make it open in all perspectives, just the ones that you explicitly extend.

Maybe you could try using the startup extension:

http://help.eclipse.org/help32/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_ui_startup.html

The documentation indicates that it is invoked after the workbench initializes, so you should be able to progammatically open a view or stickyview.

HTH,

Wayne