- XXX no answer for exec-property
+
+ this property allows core.ui module to disable refresh on focus gain.
+ If that happens, the Parsing API then shows "Refresh Folder" action
+ on each folder.
+
diff -r b660de30f8bd parsing.api/src/org/netbeans/modules/parsing/impl/indexing/ScanForExternalChanges.java
--- a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/ScanForExternalChanges.java Mon Apr 19 11:52:24 2010 +0200
+++ b/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/ScanForExternalChanges.java Mon Apr 19 16:03:24 2010 +0200
@@ -42,6 +42,7 @@
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import org.netbeans.modules.parsing.api.indexing.IndexingManager;
+import org.openide.filesystems.FileUtil;
import org.openide.util.NbBundle;
/**
@@ -54,7 +55,9 @@
super(NbBundle.getMessage(ScanForExternalChanges.class, "ScanForExternalChanges_name")); //NOI18N
}
+ @Override
public void actionPerformed(ActionEvent e) {
+ FileUtil.refreshAll();
RepositoryUpdater.getDefault().refreshAll(false, false, true);
}
diff -r b660de30f8bd parsing.api/src/org/netbeans/modules/parsing/impl/indexing/errors/ErrorAnnotator.java
--- a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/errors/ErrorAnnotator.java Mon Apr 19 11:52:24 2010 +0200
+++ b/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/errors/ErrorAnnotator.java Mon Apr 19 16:03:24 2010 +0200
@@ -40,6 +40,8 @@
*/
package org.netbeans.modules.parsing.impl.indexing.errors;
+import org.openide.actions.FileSystemRefreshAction;
+import org.openide.util.actions.SystemAction;
import org.netbeans.api.java.classpath.ClassPath;
import java.awt.Image;
import java.io.File;
@@ -173,7 +175,11 @@
return null;
}
+ @Override
public Action[] actions(Set files) {
+ if (Boolean.getBoolean("netbeans.indexing.noFileRefresh")) { // NOI18N
+ return new Action[]{SystemAction.get(FileSystemRefreshAction.class)};
+ }
return null;
}
diff -r b660de30f8bd parsing.api/src/org/netbeans/modules/parsing/impl/layer.xml
--- a/parsing.api/src/org/netbeans/modules/parsing/impl/layer.xml Mon Apr 19 11:52:24 2010 +0200
+++ b/parsing.api/src/org/netbeans/modules/parsing/impl/layer.xml Mon Apr 19 16:03:24 2010 +0200
@@ -40,11 +40,16 @@
Version 2 license, then the option applies only if the new code is
made subject to such option by the copyright holder.
-->
-
+