|
From: <caw...@us...> - 2007-09-18 19:36:37
|
Revision: 3213
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3213&view=rev
Author: cawilliams
Date: 2007-09-18 12:36:34 -0700 (Tue, 18 Sep 2007)
Log Message:
-----------
refresh external files as part of initialization
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java 2007-09-18 14:41:23 UTC (rev 3212)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/core/RubyCore.java 2007-09-18 19:36:34 UTC (rev 3213)
@@ -52,10 +52,7 @@
import org.rubypeople.rdt.core.search.IRubySearchConstants;
import org.rubypeople.rdt.core.search.IRubySearchScope;
import org.rubypeople.rdt.core.search.SearchEngine;
-import org.rubypeople.rdt.core.search.SearchMatch;
-import org.rubypeople.rdt.core.search.SearchParticipant;
import org.rubypeople.rdt.core.search.SearchPattern;
-import org.rubypeople.rdt.core.search.SearchRequestor;
import org.rubypeople.rdt.core.search.TypeNameRequestor;
import org.rubypeople.rdt.internal.core.BatchOperation;
import org.rubypeople.rdt.internal.core.DefaultWorkingCopyOwner;
@@ -1543,16 +1540,16 @@
throw e;
// else indexes were not ready: catch the exception so that jars are still refreshed
}
-// final RubyModel model = RubyModelManager.getRubyModelManager().getRubyModel();
-// // ensure external jars are refreshed (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=93668)
-// try {
-// model.refreshExternalArchives(
-// null/*refresh all projects*/,
-// monitor == null ? null : new SubProgressMonitor(monitor, 1) // 1% of the time is spent in jar refresh
-// );
-// } catch (RubyModelException e) {
-// // refreshing failed: ignore
-// }
+ final RubyModel model = RubyModelManager.getRubyModelManager().getRubyModel();
+ // ensure external jars are refreshed (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=93668)
+ try {
+ model.refreshExternalArchives(
+ null/*refresh all projects*/,
+ monitor == null ? null : new SubProgressMonitor(monitor, 1) // 1% of the time is spent in jar refresh
+ );
+ } catch (RubyModelException e) {
+ // refreshing failed: ignore
+ }
} finally {
if (monitor != null) monitor.done();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|