Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Where is the code that nicely ask you to switch to the debug perspective?
Where is the code that nicely ask you to switch to the debug perspective? [message #225157] Fri, 03 March 2006 20:25 Go to next message
Eclipse UserFriend
Hi,

I am trying to switch to the debug perspective with the below code, but
it does not work

IWorkbench workbench = PlatformUI.getWorkbench();
workbench.showPerspective("org.eclipse.debug.ui.DebugPerspective ",
workbench.getActiveWorkbenchWindow());

I keep getting error on the above code.

I am in the "Java" perspective and would like to switch to the debug
perspective programmatically.

THANKS!
Re: Where is the code that nicely ask you to switch to the debug perspective? [message #225315 is a reply to message #225157] Mon, 06 March 2006 12:44 Go to previous messageGo to next message
Eclipse UserFriend
org.eclipse.debug.internal.ui.launchConfigurations.Perspecti veManager

"AL" <unbonnevie@yahoo.com> wrote in message
news:duaqa7$aa0$1@eclipse.org...
> Hi,
>
> I am trying to switch to the debug perspective with the below code, but
> it does not work
>
> IWorkbench workbench = PlatformUI.getWorkbench();
> workbench.showPerspective("org.eclipse.debug.ui.DebugPerspective ",
> workbench.getActiveWorkbenchWindow());
>
> I keep getting error on the above code.
>
> I am in the "Java" perspective and would like to switch to the debug
> perspective programmatically.
>
> THANKS!
Re: Where is the code that nicely ask you to switch to the debug perspective? [message #225460 is a reply to message #225315] Tue, 07 March 2006 12:53 Go to previous message
Eclipse UserFriend
Thanks very much for all the answers you posted!

Darin Swanson wrote:

> org.eclipse.debug.internal.ui.launchConfigurations.Perspecti veManager
>
> "AL" <unbonnevie@yahoo.com> wrote in message
> news:duaqa7$aa0$1@eclipse.org...
>
>>Hi,
>>
>>I am trying to switch to the debug perspective with the below code, but
>>it does not work
>>
>>IWorkbench workbench = PlatformUI.getWorkbench();
>>workbench.showPerspective("org.eclipse.debug.ui.DebugPerspective ",
>>workbench.getActiveWorkbenchWindow());
>>
>>I keep getting error on the above code.
>>
>>I am in the "Java" perspective and would like to switch to the debug
>>perspective programmatically.
>>
>>THANKS!
>
>
>
Previous Topic:How to get hold of the current open java source file?
Next Topic:OS X Intel Build
Goto Forum:
  


Current Time: Thu Jul 24 18:39:35 EDT 2025

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

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

Back to the top