Skip to content

Commit 5bf29f3

Browse files
committed
Refactor XcodePrivate.h using Xprobe
1 parent 76da9f8 commit 5bf29f3

1 file changed

Lines changed: 15 additions & 99 deletions

File tree

Classes/XcodePrivate.h

Lines changed: 15 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//
2-
// Created by Benoît on 11/01/14.
3-
// Copyright (c) 2014 Pragmatic Code. All rights reserved.
2+
// XcodePrivate.h
3+
// GitDiff
4+
//
5+
//  Created by Christoffer Winterkvist on 30/10/14.
6+
// Copyright (c) 2014 zenangst. All rights reserved.
47
//
58

69
#import <Cocoa/Cocoa.h>
@@ -10,115 +13,28 @@
1013
@property (readonly) NSRange lineRange;
1114
@end
1215

13-
@interface DVTTextPreferences : NSObject
14-
+ (id)preferences;
15-
@property BOOL trimWhitespaceOnlyLines;
16-
@property BOOL trimTrailingWhitespace;
17-
@property BOOL useSyntaxAwareIndenting;
18-
@end
19-
20-
@interface DVTSourceTextStorage : NSTextStorage
21-
- (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string withUndoManager:(id)undoManager;
22-
- (NSRange)lineRangeForCharacterRange:(NSRange)range;
23-
- (NSRange)characterRangeForLineRange:(NSRange)range;
24-
- (void)indentCharacterRange:(NSRange)range undoManager:(id)undoManager;
25-
@end
26-
27-
@interface DVTFileDataType : NSObject
28-
@property (readonly) NSString *identifier;
29-
@end
30-
31-
@interface DVTFilePath : NSObject
32-
@property (readonly) NSURL *fileURL;
33-
@property (readonly) DVTFileDataType *fileDataTypePresumed;
34-
@end
35-
36-
@interface IDEContainerItem : NSObject
37-
@property (readonly) DVTFilePath *resolvedFilePath;
38-
@end
39-
40-
@interface IDEGroup : IDEContainerItem
41-
42-
@end
43-
44-
@interface IDEFileReference : IDEContainerItem
45-
46-
@end
47-
48-
@interface IDENavigableItem : NSObject
49-
@property (readonly) IDENavigableItem *parentItem;
50-
@property (readonly) NSArray *childItems;
51-
@property (readonly) id representedObject;
52-
@end
53-
54-
@interface IDEFileNavigableItem : IDENavigableItem
55-
@property (readonly) DVTFileDataType *documentType;
56-
@property (readonly) NSURL *fileURL;
57-
@end
58-
59-
@interface IDEGroupNavigableItem : IDENavigableItem
60-
@property (readonly) IDEGroup *group;
61-
@end
62-
63-
@interface IDEStructureNavigator : NSObject
64-
@property (retain) NSArray *selectedObjects;
65-
@end
66-
67-
@interface IDENavigableItemCoordinator : NSObject
68-
- (id)structureNavigableItemForDocumentURL:(id)arg1 inWorkspace:(id)arg2 error:(id *)arg3;
69-
@end
70-
71-
@interface IDENavigatorArea : NSObject
72-
- (id)currentNavigator;
73-
@end
74-
75-
@interface IDEWorkspaceTabController : NSObject
76-
@property (readonly) IDENavigatorArea *navigatorArea;
77-
@end
78-
79-
@interface IDEDocumentController : NSDocumentController
80-
+ (id)editorDocumentForNavigableItem:(id)arg1;
81-
+ (id)retainedEditorDocumentForNavigableItem:(id)arg1 error:(id *)arg2;
82-
+ (void)releaseEditorDocument:(id)arg1;
83-
@end
84-
85-
@interface IDESourceCodeDocument : NSDocument
86-
- (DVTSourceTextStorage *)textStorage;
87-
- (NSUndoManager *)undoManager;
88-
@end
89-
9016
@interface IDESourceCodeComparisonEditor : NSObject
9117
@property (readonly) NSTextView *keyTextView;
92-
@property (retain) NSDocument *primaryDocument;
9318
@end
9419

9520
@interface IDESourceCodeEditor : NSObject
21+
9622
@property (retain) NSTextView *textView;
97-
- (IDESourceCodeDocument *)sourceCodeDocument;
98-
- (long long)_currentOneBasedLineNubmer;
99-
- (id)_documentLocationForLineNumber:(long long)arg1;
100-
- (void)selectDocumentLocations:(id)arg1 highlightSelection:(BOOL)arg2;
101-
- (void)selectAndHighlightDocumentLocations:(id)arg1;
102-
- (void)selectDocumentLocations:(id)arg1;
23+
- (long)_currentOneBasedLineNubmer;
24+
- (id)_documentLocationForLineNumber:(long)a0;
25+
- (void)selectDocumentLocations:(id)a0 highlightSelection:(BOOL)a1;
26+
- (void)selectAndHighlightDocumentLocations:(id)a1;
27+
- (void)selectDocumentLocations:(id)a1;
10328
@end
10429

10530
@interface IDEEditorContext : NSObject
106-
- (id)editor; // returns the current editor. If the editor is the code editor, the class is `IDESourceCodeEditor`
31+
- (id)editor;
10732
@end
10833

10934
@interface IDEEditorArea : NSObject
110-
- (IDEEditorContext *)lastActiveEditorContext;
111-
@end
112-
113-
@interface IDEWorkspaceWindowController : NSObject
114-
@property (readonly) IDEWorkspaceTabController *activeWorkspaceTabController;
115-
- (IDEEditorArea *)editorArea;
35+
- (id)lastActiveEditorContext;
11636
@end
11737

118-
@interface IDEWorkspace : NSObject
119-
@property (readonly) DVTFilePath *representingFilePath;
38+
@interface IDEWorkspaceWindowController : NSWindowController
39+
- (id)editorArea;
12040
@end
121-
122-
@interface IDEWorkspaceDocument : NSDocument
123-
@property (readonly) IDEWorkspace *workspace;
124-
@end

0 commit comments

Comments
 (0)