mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-15 16:11:25 +00:00
* Framework/PCEditorManager.m
* Modules/Debuggers/ProjectCenter/PCDebuggerView.m: Changes to bring up the file in which the debugger has stopped in. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27429 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
466f1709f2
commit
1d1c796f67
3 changed files with 28 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-12-26 02:25-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Framework/PCEditorManager.m
|
||||
* Modules/Debuggers/ProjectCenter/PCDebuggerView.m: Changes to bring
|
||||
up the file in which the debugger has stopped in.
|
||||
|
||||
2008-12-25 23:46-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Framework/PCProject.m
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#import <ProjectCenter/PCProjectManager.h>
|
||||
#import <ProjectCenter/PCBundleManager.h>
|
||||
#import <ProjectCenter/PCEditorManager.h>
|
||||
#import <ProjectCenter/PCProject.h>
|
||||
|
||||
#import <ProjectCenter/PCLogController.h>
|
||||
|
||||
|
@ -92,6 +93,12 @@ NSString *PCEditorDidResignActiveNotification =
|
|||
selector:@selector(editorDidChangeFileName:)
|
||||
name:PCEditorDidChangeFileNameNotification
|
||||
object:nil];
|
||||
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
addObserver:self
|
||||
selector:@selector(debuggerDidHitBreakpoint:)
|
||||
name:PCProjectBreakpointNotification
|
||||
object:nil];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
@ -382,5 +389,19 @@ NSString *PCEditorDidResignActiveNotification =
|
|||
[_editorsDict setObject:_editor forKey:_newFileName];
|
||||
}
|
||||
|
||||
- (void) debuggerDidHitBreakpoint: (NSNotification *)aNotif
|
||||
{
|
||||
id object = [aNotif object];
|
||||
NSString *fileName = [object objectForKey: @"file"];
|
||||
NSString *filePath = [[[self project] projectPath]
|
||||
stringByAppendingPathComponent: fileName];
|
||||
NSString *line = [object objectForKey: @"line"];
|
||||
id<CodeEditor> editor = [self openEditorForFile: filePath
|
||||
editable: YES
|
||||
windowed: YES];
|
||||
|
||||
NSLog(@"object = %@", [aNotif object]);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
NSDictionary *dict = [NSDictionary
|
||||
dictionaryWithObjectsAndKeys:
|
||||
file, @"file", line, @"line", nil];
|
||||
NSLog(@"dict = %@, Line = %@", dict);
|
||||
NSLog(@"dict = %@", dict);
|
||||
[NOTIFICATION_CENTER
|
||||
postNotificationName: PCProjectBreakpointNotification
|
||||
object: dict];
|
||||
|
|
Loading…
Reference in a new issue