Skip to content

Commit a438f8a

Browse files
author
y4zhang
committed
connect new action and reorganize open connections
1 parent 93f9c9b commit a438f8a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

drjava/src/edu/rice/cs/drjava/DrJava.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
import edu.rice.cs.util.Log;
5858
import edu.rice.cs.util.UnexpectedException;
5959
import edu.rice.cs.drjava.model.DrJavaFileUtils;
60-
import edu.rice.cs.drjava.collect.*;
60+
//import edu.rice.cs.drjava.collect.*;
6161

6262
/** Startup class for DrJava consisting entirely of static members. The main method reads the .drjava file (creating
6363
* one if none exists) to get the critical information required to start the main JVM for DrJava:
@@ -246,7 +246,7 @@ public static void main(final String[] args) {
246246
System.out.println(getOperatingSystem());
247247
System.out.println(getJavaVersion());
248248
System.out.println(getInterfaceLanguage());
249-
DataCollector.drjavaOpened(getOperatingSystem(),getJavaVersion(),getInterfaceLanguage());
249+
// DataCollector.drjavaOpened(getOperatingSystem(),getJavaVersion(),getInterfaceLanguage());
250250
// Utilities.showDebug("Calling configureAndLoadDrJavaRoot with args = " + args);
251251
configureAndLoadDrJavaRoot(args);
252252
}
@@ -711,4 +711,4 @@ public static boolean warnIfLinuxWithCompiz() {
711711
return false; // do not warn
712712
}
713713
}
714-
}
714+
}

drjava/src/edu/rice/cs/drjava/model/AbstractGlobalModel.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@
158158

159159
import static edu.rice.cs.plt.debug.DebugUtil.debug;
160160

161+
//import edu.rice.cs.drjava.collect.*;
162+
161163
/** In simple terms, a DefaultGlobalModel without an interpreter, compiler, junit testing, debugger or javadoc.
162164
* Hence, it only has only document handling functionality
163165
* @version $Id$
@@ -1231,6 +1233,7 @@ public OpenDefinitionsDocument newFile(String text) {
12311233
if (dir == null) dir = getMasterWorkingDirectory();
12321234
OpenDefinitionsDocument doc = newFile(dir, text);
12331235
setActiveDocument(doc);
1236+
//DataCollector.newFile(dir, doc);
12341237
return doc;
12351238
}
12361239

@@ -1430,6 +1433,7 @@ private OpenDefinitionsDocument[] _openFiles(File[] files)
14301433
for(OpenDefinitionsDocument d : alreadyOpenDocuments) {
14311434
_notifier.handleAlreadyOpenDocument(d);
14321435
_notifier.fileOpened(d);
1436+
//DataCollector.openClass(d)
14331437
}
14341438
}
14351439

drjava/src/edu/rice/cs/drjava/ui/MainFrame.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9356,7 +9356,6 @@ public void undoableEditHappened() {
93569356

93579357
public void activeDocumentRefreshed(final OpenDefinitionsDocument active) {
93589358
assert EventQueue.isDispatchThread();
9359-
// System.err.println("activeDocumentRefreshed");
93609359
_recentDocFrame.pokeDocument(active);
93619360
_refreshDefScrollPane();
93629361

0 commit comments

Comments
 (0)