Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » JavaScript project reindexing
JavaScript project reindexing [message #1017117] Sat, 09 March 2013 09:03 Go to next message
Eclipse UserFriend
Hi,

I'm looking for method to fully reindexing javascript project (like while workbench startup, or while reconcile)?

project->clean not work :/ this method too:
JavaModelManager.getJavaModelManager().getIndexManager().reset();
project.build(IncrementalProjectBuilder.FULL_BUILD, JavaScriptCore.BUILDER_ID, null, monitor);

[Updated on: Sat, 09 March 2013 09:03] by Moderator

Re: JavaScript project reindexing [message #1017155 is a reply to message #1017117] Sat, 09 March 2013 22:46 Go to previous messageGo to next message
Eclipse UserFriend
Why do you need to reindex it?
Re: JavaScript project reindexing [message #1017169 is a reply to message #1017117] Sun, 10 March 2013 08:15 Go to previous messageGo to next message
Eclipse UserFriend
I'm working on ExtJS JSDT inferer provider, which should by enabled only if ExtJS facet is installed.

After enable (or disable), I have to reindex whole JavaScript project.

If is better method for enable/disable inferer provider, it would be nice to know Wink
Re: JavaScript project reindexing [message #1017588 is a reply to message #1017169] Tue, 12 March 2013 02:38 Go to previous message
Eclipse UserFriend
The provider itself can say whether or not it applies to a particular file, but org.eclipse.wst.jsdt.internal.core.search.indexing.IndexManager#indexAll(IProject) looks like it might be what you're looking for--beware that it's internal, although unlikely to be changed. The reset() method you were looking at may only remove the in-memory representations without invalidating the indexed already on disk, and the build() method will only invoke the builders. JSDT (like JDT) is foremost a source model; the builder only serves to perform validation.

As an aside, you should only mark the files as needing rebuilding with IResource#touch() rather than forcing a rebuild immediately. Users who have automatic builds disabled shouldn't have to endure a build until they ask for it.
Previous Topic:JBoss Server jboss-4.2.2.GA taking too long to start from Indigo
Next Topic:How to use axis2 commandline options in Eclipse
Goto Forum:
  


Current Time: Thu Jul 24 18:08:19 EDT 2025

Powered by FUDForum. Page generated in 0.24027 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top