Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Custom Breakpoint Handling
Custom Breakpoint Handling [message #302659] Wed, 26 April 2006 13:22 Go to next message
Eclipse UserFriend
I'm creating custom breakpoints and want to handle the user's double click
from the breakpoint view myself. Is there a way to do that without
overriding the standard BreakpointsView class?
Re: Custom Breakpoint Handling [message #318735 is a reply to message #302659] Fri, 03 August 2007 06:19 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Yes it is. You must only implement IDebugModelPresentation getEditorInput method

public IEditorInput getEditorInput(Object element) {
if (element instanceof MagikLineBreakpoint) {
return ((YourLineBreakpoint)
element).getEditorInput();
}
return null;
}

and
public IEditorInput getEditorInput()
{
IWorkbench bench =
DebuggerPlugin.getDefault().getWorkbench();
if (bench != null)
{
IWorkbenchWindow window =
bench.getActiveWorkbenchWindow();
if (window != null)
{
IWorkbenchPage page = window.getActivePage();
if (page != null)
{
FileEditorInput input = new FileEditorInput(
(IFile) getMarker().getResource());
return input;
}
}
}
return null;
}
Previous Topic:Can I UN-install new features in "Software Updates"-"Find and Install" ?
Next Topic:Missing feature in "Help -> About Eclipse SDK -> Feature Details"
Goto Forum:
  


Current Time: Wed May 07 19:53:36 EDT 2025

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

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

Back to the top