|
From: <caw...@us...> - 2007-07-12 18:51:52
|
Revision: 2759
http://svn.sourceforge.net/rubyeclipse/?rev=2759&view=rev
Author: cawilliams
Date: 2007-07-12 11:51:48 -0700 (Thu, 12 Jul 2007)
Log Message:
-----------
fix #5087 - Editor hangs on typing <%= . We now force the indexer to run in the background at startup, which should avoid the "freezing" happening on first code compeltion. (though this may still "freeze" at startup the very first time)
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/plugin.xml
Added Paths:
-----------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/ForceIndexer.java
Modified: trunk/org.rubypeople.rdt.ui/plugin.xml
===================================================================
--- trunk/org.rubypeople.rdt.ui/plugin.xml 2007-07-12 17:15:21 UTC (rev 2758)
+++ trunk/org.rubypeople.rdt.ui/plugin.xml 2007-07-12 18:51:48 UTC (rev 2759)
@@ -1115,4 +1115,9 @@
class="org.rubypeople.rdt.internal.ui.search.OccurrencesSearchResultPage">
</viewPage>
</extension>
+
+ <extension
+ point="org.eclipse.ui.startup">
+ <startup class="org.rubypeople.rdt.internal.ui.ForceIndexer"/>
+ </extension>
</plugin>
Added: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/ForceIndexer.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/ForceIndexer.java (rev 0)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/ForceIndexer.java 2007-07-12 18:51:48 UTC (rev 2759)
@@ -0,0 +1,12 @@
+package org.rubypeople.rdt.internal.ui;
+
+import org.eclipse.ui.IStartup;
+import org.rubypeople.rdt.core.RubyCore;
+
+public class ForceIndexer implements IStartup {
+
+ public void earlyStartup() {
+ RubyCore.forceIndexing();
+ }
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|