Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 94363 Details for
Bug 225099
Breakpoint toggling for files outside projects is broken in CDT CVS HEAD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
This solves the problem for my case
fixtoggglebreakpoint.txt (text/plain), 1.50 KB, created by
Oyvind Harboe
on 2008-04-01 09:59:00 EDT
(
hide
)
Description:
This solves the problem for my case
Filename:
MIME Type:
Creator:
Oyvind Harboe
Created:
2008-04-01 09:59:00 EDT
Size:
1.50 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.debug.ui >Index: src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/all/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java,v >retrieving revision 1.34 >diff -u -r1.34 ToggleBreakpointAdapter.java >--- src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java 14 Feb 2008 08:10:43 -0000 1.34 >+++ src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java 1 Apr 2008 13:57:50 -0000 >@@ -290,11 +290,15 @@ > IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); > if ( part instanceof IEditorPart ) { > IEditorInput editorInput = ((IEditorPart)part).getEditorInput(); >+ IResource r = null; > if ( editorInput instanceof IFileEditorInput ) { >- return ((IFileEditorInput)editorInput).getFile(); >+ r =((IFileEditorInput)editorInput).getFile(); > } else if (editorInput instanceof ExternalEditorInput) { >- return ((ExternalEditorInput)editorInput).getMarkerResource(); >+ r =((ExternalEditorInput)editorInput).getMarkerResource(); > } >+ if (r!=null) >+ return r; >+ /* This file is not in a project, let default case handle it */ > ILocationProvider provider = (ILocationProvider)editorInput.getAdapter( ILocationProvider.class ); > if ( provider != null ) { > IPath location = provider.getPath( editorInput );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
bjorn.freeman-benson
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 225099
: 94363