Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Disabling the welcome view
Disabling the welcome view [message #289979] Tue, 16 August 2005 09:20 Go to next message
Eclipse UserFriend
Hi,

I would like to disable the new welcome view in our eclipse-based
offering, so that after the splash screen vanishes, our users will get
straight to the workbench (preferably to our perspective). I know I can
set the default perspective using a command line argument, but how can I
disable the welcome view?

Thanks in advance,

- Eran B.
Re: Disabling the welcome view [message #290043 is a reply to message #289979] Thu, 18 August 2005 01:17 Go to previous messageGo to next message
Eclipse UserFriend
U can try with the code below..

IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
IWorkbenchPage page = window.getActivePage();
IViewReference[] viewRefs = page.getViewReferences();
// this will give u all the view references..
// so run a for loop and check for the introview id , that is nothing but
the welcome page id...

if (viewRefs[i].getId().equals("org.eclipse.ui.internal.introview ")) {
IViewPart part = page.findView("org.eclipse.ui.internal.introview");
page.hideView(part); // this will hide the view...
}
Re: Disabling the welcome view [message #290069 is a reply to message #290043] Thu, 18 August 2005 07:13 Go to previous messageGo to next message
Eclipse UserFriend
Babu wrote:

> U can try with the code below..

> IWorkbench workbench = PlatformUI.getWorkbench();
> IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
> IWorkbenchPage page = window.getActivePage();
> IViewReference[] viewRefs = page.getViewReferences();
> // this will give u all the view references..
> // so run a for loop and check for the introview id , that is nothing but
> the welcome page id...

> if (viewRefs[i].getId().equals("org.eclipse.ui.internal.introview ")) {
> IViewPart part = page.findView("org.eclipse.ui.internal.introview");
> page.hideView(part); // this will hide the view...
> }
Thanks! worked like a charm!

Cheers,

- Eran B.
Re: Disabling the welcome view [message #304554 is a reply to message #290043] Fri, 09 June 2006 11:43 Go to previous message
Eclipse UserFriend
Where should this code be?

"Babu" <manohar.babu@gmail.com> a
Previous Topic:Using base content describers when extending content type.
Next Topic:Disabling ActionSetPartAssociations of other plugins
Goto Forum:
  


Current Time: Thu Jul 17 21:33:26 EDT 2025

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

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

Back to the top