Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Open Debug Perspective automatically
Open Debug Perspective automatically [message #734963] Mon, 10 October 2011 14:24 Go to next message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
Hi,
I have successfully created a graphical editor for a XML based language.
There is already an interpreter available that I want to use to create
an Eclipse-Debugger.

The most things are working great, except that the debug perspective is
not starting automatically.

I just want that the "Confirm Persperctive Switch" Dialog appears, when
I start the debugger, just like the standard Java-Debugger.

I have no idea what causes the Eclipse Debug Plugin to switch the
perspective.

To fire a DebugEvent

DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[]{ new
DebugEvent(this, DebugEvent.SUSPEND, DebugEvent.BREAKPOINT) });

didn't solve the problem.

Can anyone give me a hint?

With best regards
Sui
[SOLVED] Re: Open Debug Perspective automatically [message #735000 is a reply to message #734963] Mon, 10 October 2011 15:11 Go to previous message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
Right after writing this message i solved the problem.

All i had to do was to override the method getAdapter(Class adapter) in
the extended class PlatformObject.
if(adapter == ILaunch.class)
return target.getLaunch();

greetings
Sui

On 10.10.2011 16:24, SuiTheDoc wrote:
> Hi,
> I have successfully created a graphical editor for a XML based language.
> There is already an interpreter available that I want to use to create
> an Eclipse-Debugger.
>
> The most things are working great, except that the debug perspective is
> not starting automatically.
>
> I just want that the "Confirm Persperctive Switch" Dialog appears, when
> I start the debugger, just like the standard Java-Debugger.
>
> I have no idea what causes the Eclipse Debug Plugin to switch the
> perspective.
>
> To fire a DebugEvent
>
> DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[]{ new
> DebugEvent(this, DebugEvent.SUSPEND, DebugEvent.BREAKPOINT) });
>
> didn't solve the problem.
>
> Can anyone give me a hint?
>
> With best regards
> Sui
>
>
Previous Topic:Dandelion PlugIn: Connection Error
Next Topic:plugin with native libraries/LD_LIBRARY_PATH
Goto Forum:
  


Current Time: Sat Aug 08 18:14:35 GMT 2020

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

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

Back to the top