MCPcopy Index your code
hub / github.com/processing/processing / rebuild

Method rebuild

java/src/processing/mode/java/JavaEditor.java:148–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146 public EditorHeader createHeader() {
147 return new EditorHeader(this) {
148 public void rebuild() {
149 super.rebuild();
150
151 // after Rename and New Tab, we may have new .java tabs
152 boolean newHasJavaTabs = checkForJavaTabs();
153 boolean hasJavaTabsChanged = hasJavaTabs != newHasJavaTabs;
154 hasJavaTabs = newHasJavaTabs;
155
156 if (preprocessingService != null) {
157 if (hasJavaTabsChanged) {
158 preprocessingService.handleHasJavaTabsChange(hasJavaTabs);
159 pdex.hasJavaTabsChanged(hasJavaTabs);
160 if (hasJavaTabs) {
161 setProblemList(Collections.emptyList());
162 }
163 }
164
165 int currentTabCount = sketch.getCodeCount();
166 if (currentTabCount != previousTabCount) {
167 previousTabCount = currentTabCount;
168 pdex.sketchChanged();
169 }
170 }
171 }
172 };
173 }
174

Callers 1

runMethod · 0.45

Calls 6

checkForJavaTabsMethod · 0.95
hasJavaTabsChangedMethod · 0.80
setProblemListMethod · 0.80
getCodeCountMethod · 0.80
sketchChangedMethod · 0.45

Tested by

no test coverage detected