Codebase list jd-gui / 0323cc8
Cleanup emmanue1 5 years ago
2 changed file(s) with 5 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
2222 public static final String FILTERS = "MavenOrgSourceLoaderPreferencesProvider.filters";
2323
2424 public static final String DEFAULT_FILTERS_VALUE =
25 "+org +com.google +com.ibm +com.jcraft +com.springsource +com.sun -com +java +javax +sun +sunw " +
25 "+org +com.google +com.springsource +com.sun -com +java +javax +sun +sunw " +
2626 "+spring +springframework +springmodules +tomcat +maven";
2727
2828 protected static final Pattern CONTROL_PATTERN = Pattern.compile("([+-][a-zA-Z_0-9$_.]+(\\s+[+-][a-zA-Z_0-9$_.]+)*)?\\s*");
3131 protected Container.Entry entry;
3232 protected TypePage page;
3333 protected URI lastOpenedUri;
34 protected Collection<Future<Indexes>> collectionOfFutureIndexes;
34 protected Collection<Future<Indexes>> lastCollectionOfFutureIndexes;
3535
3636 public DynamicPage(API api, Container.Entry entry) {
3737 super(new BorderLayout());
7474
7575 // --- IndexesChangeListener --- //
7676 @Override public void indexesChanged(Collection<Future<Indexes>> collectionOfFutureIndexes) {
77 this.collectionOfFutureIndexes = collectionOfFutureIndexes;
78 page.indexesChanged(collectionOfFutureIndexes);
77 page.indexesChanged(lastCollectionOfFutureIndexes = collectionOfFutureIndexes);
7978 }
8079
8180 // --- LineNumberNavigable --- //
106105 page.openUri(lastOpenedUri);
107106 }
108107
109 if (collectionOfFutureIndexes != null) {
110 page.indexesChanged(collectionOfFutureIndexes);
108 if (lastCollectionOfFutureIndexes != null) {
109 page.indexesChanged(lastCollectionOfFutureIndexes);
111110 }
112111 });
113112 }