forked from everettjf/XSourceNote
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXSourceNoteUtil.h
More file actions
39 lines (32 loc) · 1.15 KB
/
Copy pathXSourceNoteUtil.h
File metadata and controls
39 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// XcodeUtil.h
// XSourceNote
//
// Created by everettjf on 9/29/15.
// Copyright © 2015 everettjf. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#import "DVTKit.h"
#import "IDEKit.h"
#import "IDESourceEditor.h"
// Helper globals
@interface XSourceNoteGlobal : NSObject
+(XSourceNoteGlobal*)shared;
@property (nonatomic,weak) IDEWorkspaceWindowController *mainWorkspaceWindowController;
@end
@interface XSourceNoteUtil : NSObject
+ (IDEWorkspaceDocument*)currentWorkspaceDocument;
+ (IDEWorkspaceTabController*)tabController;
+ (IDESourceCodeEditor*)currentEditor;
+ (IDESourceCodeDocument*)currentSourceCodeDocument;
+ (IDEWorkspace*)currentIDEWorkspace;
+ (IDEWorkspaceWindowController*)currentIDEWorkspaceWindowController;
// Helper
+ (NSUInteger)locationRangeForTextView:(DVTSourceTextView*)textView forLine:(NSUInteger)lineNumber;
+ (NSString*)currentWorkspaceFilePath;
//+ (BOOL)openSourceFile:(NSString*)sourceFilePath highlightLineNumber:(NSUInteger)lineNumber;
+ (BOOL)openSourceFile:(NSString*)sourceFilePath highlightLineNumber:(NSUInteger)lineNumber;
+ (NSString*)settingDirectory;
+ (NSString*)notesDirectory;
@end