| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ea25009 commit 63981b1
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -110,9 +110,6 @@ public abstract class AbstractDJDocument extends SwingDocument implements DJDocu | |||
| 110 | 110 | ||
| 111 | 111 | /*-------- FIELDS ----------*/ | |
| 112 | 112 | ||
| 113 | - // /** Whether a block indent operation is in progress on this document. */ | ||
| 114 | - // private volatile boolean _indentInProgress = false; | ||
| 115 | - | ||
| 116 | 113 | /** The reduced model of the document (stored in field _reduced) handles most of the document logic and keeps | |
| 117 | 114 | * track of state. This field together with _currentLocation function as a virtual object for purposes of | |
| 118 | 115 | * synchronization. All operations that access or modify this virtual object should be synchronized on _reduced. | |
@@ -1058,7 +1055,7 @@ private void _indentBlock(final int start, final int end, Indenter.IndentReason | |||
| 1058 | 1055 | final Position endPos = this.createUnwrappedPosition(end); | |
| 1059 | 1056 | // Iterate, line by line, until we get to/past the end | |
| 1060 | 1057 | int walker = start; | |
| 1061 | - // _indentInProgress = true; | ||
| 1058 | + | ||
| 1062 | 1059 | while (walker < endPos.getOffset()) { | |
| 1063 | 1060 | setCurrentLocation(walker); | |
| 1064 | 1061 | // Keep pointer to walker position that will stay current regardless of how indentLine changes things | |
@@ -1078,7 +1075,6 @@ private void _indentBlock(final int start, final int end, Indenter.IndentReason | |||
| 1078 | 1075 | // Adding 1 makes us point to the first character AFTER the next newline. We don't actually move the | |
| 1079 | 1076 | // location yet. That happens at the top of the loop, after we check if we're past the end. | |
| 1080 | 1077 | walker += _reduced.getDistToNextNewline() + 1; | |
| 1081 | - // _indentInProgress = false; | ||
| 1082 | 1078 | } | |
| 1083 | 1079 | ||
| 1084 | 1080 | // disable the query cache | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3640,8 +3640,6 @@ public void setCurrentLocation(int location) { | |||
| 3640 | 3640 | /** Get the location of the cursor in the definitions according to the definitions document. */ | |
| 3641 | 3641 | public int getCurrentLocation() { return getDocument().getCurrentLocation(); } | |
| 3642 | 3642 | ||
| 3643 | - // public boolean indentInProgress() { return getDocument().indentInProgress(); } | ||
| 3644 | - | ||
| 3645 | 3643 | /** @return the caret position as set by the view. */ | |
| 3646 | 3644 | public int getCaretPosition() { return _caretPosition; } | |
| 3647 | 3645 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -85,10 +85,7 @@ public interface DJDocument extends SwingDocumentInterface { | |||
| 85 | 85 | * @param dist the distance from the current location to the new location. | |
| 86 | 86 | */ | |
| 87 | 87 | public void move(int dist); | |
| 88 | - | ||
| 89 | - // /* Returns whether a block indent operation is in progress on this document. */ | ||
| 90 | - // public boolean indentInProgress(); | ||
| 91 | - | ||
| 88 | + | ||
| 92 | 89 | /** Finds the match for the closing brace immediately to the left, assuming there is such a brace. | |
| 93 | 90 | * @return the relative distance backwards to the offset before the matching brace. | |
| 94 | 91 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,33 +60,22 @@ | |||
| 60 | 60 | import edu.rice.cs.util.docnavigation.*; | |
| 61 | 61 | import edu.rice.cs.util.text.SwingDocument; | |
| 62 | 62 | ||
| 63 | - public class DummyOpenDefDoc implements OpenDefinitionsDocument { | ||
| 64 | - | ||
| 65 | - // public int id() { | ||
| 66 | - // throw new UnsupportedOperationException("Dummy method"); | ||
| 67 | - // } | ||
| 63 | + public class DummyOpenDefDoc implements OpenDefinitionsDocument { | ||
| 68 | 64 | ||
| 69 | 65 | public int compareTo(OpenDefinitionsDocument d) { | |
| 70 | 66 | throw new UnsupportedOperationException("Dummy method"); | |
| 71 | 67 | } | |
| 72 | 68 | ||
| 73 | 69 | public boolean modifiedOnDisk() { throw new UnsupportedOperationException("Dummy method"); } | |
| 74 | 70 | ||
| 75 | - public void addBrowserRegion(BrowserDocumentRegion r) { | ||
| 76 | - throw new UnsupportedOperationException("Dummy method"); | ||
| 77 | - } | ||
| 71 | + public void addBrowserRegion(BrowserDocumentRegion r) { throw new UnsupportedOperationException("Dummy method"); } | ||
| 72 | + | ||
| 73 | + public void removeBrowserRegion(BrowserDocumentRegion r) { throw new UnsupportedOperationException("Dummy method"); } | ||
| 78 | 74 | ||
| 79 | - public void removeBrowserRegion(BrowserDocumentRegion r) { | ||
| 80 | - throw new UnsupportedOperationException("Dummy method"); | ||
| 81 | - } | ||
| 82 | 75 | public boolean saveFile(FileSaveSelector com) throws IOException { | |
| 83 | 76 | throw new UnsupportedOperationException("Dummy method"); | |
| 84 | 77 | } | |
| 85 | 78 | ||
| 86 | - // public void uncommentLinesInDefinitions(int selStart, int selEnd) { | ||
| 87 | - // throw new UnsupportedOperationException("Dummy method"); | ||
| 88 | - // } | ||
| 89 | - | ||
| 90 | 79 | public boolean canAbandonFile() { throw new UnsupportedOperationException("Dummy method"); } | |
| 91 | 80 | ||
| 92 | 81 | public boolean quitFile() { throw new UnsupportedOperationException("Dummy method"); } | |
@@ -97,8 +86,6 @@ public boolean saveFile(FileSaveSelector com) throws IOException { | |||
| 97 | 86 | ||
| 98 | 87 | public boolean isModifiedSinceSave() { throw new UnsupportedOperationException("Dummy method"); } | |
| 99 | 88 | ||
| 100 | - // public boolean indentInProgress() { throw new UnsupportedOperationException("Dummy method"); } | ||
| 101 | - | ||
| 102 | 89 | public int balanceForward() { throw new UnsupportedOperationException("Dummy method"); } | |
| 103 | 90 | ||
| 104 | 91 | public int balanceBackward() { throw new UnsupportedOperationException("Dummy method"); } | |
@@ -147,18 +134,6 @@ public void print() throws PrinterException, BadLocationException, FileMovedExce | |||
| 147 | 134 | public RegionManager<Breakpoint> getBreakpointManager() { throw new UnsupportedOperationException("Dummy method"); } | |
| 148 | 135 | ||
| 149 | 136 | public RegionManager<MovingDocumentRegion> getBookmarkManager() { throw new UnsupportedOperationException("Dummy method"); } | |
| 150 | - | ||
| 151 | - // public List<RegionManager<MovingDocumentRegion>> getFindResultsManagers() { | ||
| 152 | - // throw new UnsupportedOperationException("Dummy method"); | ||
| 153 | - // } | ||
| 154 | - | ||
| 155 | - // public void addFindResultsManager(RegionManager<MovingDocumentRegion> rm) { | ||
| 156 | - // throw new UnsupportedOperationException("Dummy method"); | ||
| 157 | - // } | ||
| 158 | - // | ||
| 159 | - // public void removeFindResultsManager(RegionManager<MovingDocumentRegion> rm) { | ||
| 160 | - // throw new UnsupportedOperationException("Dummy method"); | ||
| 161 | - // } | ||
| 162 | 137 | ||
| 163 | 138 | public void clearBrowserRegions() { throw new UnsupportedOperationException("Dummy method"); } | |
| 164 | 139 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments