Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Disabling the welcome view
Disabling the welcome view [message #289979] Tue, 16 August 2005 13:20 Go to next message
Eran Belinsky is currently offline Eran BelinskyFriend
Messages: 8
Registered: July 2009
Junior Member
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 05:17 Go to previous messageGo to next message
Manohar is currently offline ManoharFriend
Messages: 9
Registered: July 2009
Junior Member
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 11:13 Go to previous messageGo to next message
Eran Belinsky is currently offline Eran BelinskyFriend
Messages: 8
Registered: July 2009
Junior Member
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 15:43 Go to previous message
NiS is currently offline NiSFriend
Messages: 58
Registered: July 2009
Member
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: Fri Apr 19 15:52:42 GMT 2024

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

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

Back to the top