Permalink
Browse files

synchronize return deleted files

  • Loading branch information...
1 parent f756a13 commit 7f8ea767f0b4f7873979c2d088afdcd97b1d8a1a @JPMoresmau committed Apr 23, 2012
View
3 docs/BW-DB.txt
@@ -61,11 +61,14 @@ The database will be on the Eclipse side to not have a long running process to m
### Info
need module + package to resolve duplicates?
+ versioning of packages?
+ maybe important for local projects (do we reference the project or an older version)
file in Eclipse -> file id so that we can easily delete all info pertaining to one file
package + module -> unique module id + file where defined (for local modules)
-> get all modules from package
-> need to get local modules from name and then get package
-> can list all modules for project: module where package=cabal name and defined file exist
+ -> several Main for one project can exist!! -> need component name for main
module id + name -> unique symbol id + definition (for local symbols)
symbol id -> usages (file in Eclipse format (project + path), line span)
module id -> usages (import)
View
25 ...sf.eclipsefp.haskell.buildwrapper/src/net/sf/eclipsefp/haskell/buildwrapper/BWFacade.java
@@ -260,18 +260,21 @@ public void synchronize(boolean force){
JSONArray notes=arr.optJSONArray(1);
parseNotes(notes);
}
- JSONArray paths=arr.optJSONArray(0);
- if (paths!=null){
- for (int a=0;a<paths.length();a++){
- try {
- String p=paths.getString(a);
- if (p!=null && p.equals(cabalShortName)){
- cabalFileChanged();
+ JSONArray allPaths=arr.optJSONArray(0);
+ if (allPaths!=null){
+ JSONArray paths=allPaths.optJSONArray(0);
+ if (paths!=null){
+ for (int a=0;a<paths.length();a++){
+ try {
+ String p=paths.getString(a);
+ if (p!=null && p.equals(cabalShortName)){
+ cabalFileChanged();
+ }
+ // remove from cache if file has changed
+ outlines.remove(p);
+ } catch (JSONException je){
+ BuildWrapperPlugin.logError(BWText.process_parse_component_error, je);
}
- // remove from cache if file has changed
- outlines.remove(p);
- } catch (JSONException je){
- BuildWrapperPlugin.logError(BWText.process_parse_component_error, je);
}
}
}

0 comments on commit 7f8ea76

Please sign in to comment.