This commit is contained in:
emmanue1 2019-05-18 20:48:56 +02:00
parent b147bb8112
commit 0323cc8a60
2 changed files with 5 additions and 6 deletions

View File

@ -23,7 +23,7 @@ public class MavenOrgSourceLoaderPreferencesProvider extends JPanel implements P
public static final String FILTERS = "MavenOrgSourceLoaderPreferencesProvider.filters";
public static final String DEFAULT_FILTERS_VALUE =
"+org +com.google +com.ibm +com.jcraft +com.springsource +com.sun -com +java +javax +sun +sunw " +
"+org +com.google +com.springsource +com.sun -com +java +javax +sun +sunw " +
"+spring +springframework +springmodules +tomcat +maven";
protected static final Pattern CONTROL_PATTERN = Pattern.compile("([+-][a-zA-Z_0-9$_.]+(\\s+[+-][a-zA-Z_0-9$_.]+)*)?\\s*");

View File

@ -32,7 +32,7 @@ public class DynamicPage
protected Container.Entry entry;
protected TypePage page;
protected URI lastOpenedUri;
protected Collection<Future<Indexes>> collectionOfFutureIndexes;
protected Collection<Future<Indexes>> lastCollectionOfFutureIndexes;
public DynamicPage(API api, Container.Entry entry) {
super(new BorderLayout());
@ -75,8 +75,7 @@ public class DynamicPage
// --- IndexesChangeListener --- //
@Override public void indexesChanged(Collection<Future<Indexes>> collectionOfFutureIndexes) {
this.collectionOfFutureIndexes = collectionOfFutureIndexes;
page.indexesChanged(collectionOfFutureIndexes);
page.indexesChanged(lastCollectionOfFutureIndexes = collectionOfFutureIndexes);
}
// --- LineNumberNavigable --- //
@ -107,8 +106,8 @@ public class DynamicPage
page.openUri(lastOpenedUri);
}
if (collectionOfFutureIndexes != null) {
page.indexesChanged(collectionOfFutureIndexes);
if (lastCollectionOfFutureIndexes != null) {
page.indexesChanged(lastCollectionOfFutureIndexes);
}
});
}