Normalizing file path returned from the server - it should always be the full path from the index root
authorJan Lahoda <jlahoda@netbeans.org>
Thu, 16 May 2013 07:30:10 +0200
changeset 9619d2a181083c5
parent 960 6c7c658cf583
child 962 63179ba3f8fa
Normalizing file path returned from the server - it should always be the full path from the index root
remoting/server/web/web.ui.frontend/public_html/index/ui/script.js
remoting/server/web/web.ui/src/org/netbeans/modules/jackpot30/backend/ui/UI.java
     1.1 --- a/remoting/server/web/web.ui.frontend/public_html/index/ui/script.js	Sat May 11 14:04:14 2013 +0200
     1.2 +++ b/remoting/server/web/web.ui.frontend/public_html/index/ui/script.js	Thu May 16 07:30:10 2013 +0200
     1.3 @@ -16,7 +16,6 @@
     1.4                          symbols[j].project = project;
     1.5                          symbols[j].displayName = symbolDisplayName(symbols[j]).replace("&", "&amp;").replace("<", "&lt;");
     1.6                          symbols[j].enclosingFQN = symbols[j].enclosingFQN.replace("&", "&amp;").replace("<", "&lt;");
     1.7 -                        symbols[j].file = relPath + symbols[j].file;
     1.8                          result[index++] = symbols[j];
     1.9                      }
    1.10                  }
     2.1 --- a/remoting/server/web/web.ui/src/org/netbeans/modules/jackpot30/backend/ui/UI.java	Sat May 11 14:04:14 2013 +0200
     2.2 +++ b/remoting/server/web/web.ui/src/org/netbeans/modules/jackpot30/backend/ui/UI.java	Thu May 16 07:30:10 2013 +0200
     2.3 @@ -247,7 +247,7 @@
     2.4                          fqn = fqn.substring(0, fqn.indexOf("$"));
     2.5                      }
     2.6  
     2.7 -                    result.put("file", fqn.replace('.', '/') + ".java");
     2.8 +                    result.put("file", e.getKey() + fqn.replace('.', '/') + ".java");
     2.9  
    2.10                      thisSourceRootResults.add(result);
    2.11                  }