Commit 2c902e53 authored by Philipp Spohr's avatar Philipp Spohr
Browse files

Fix for Thesis link

parent 9bb204d1
......@@ -7,11 +7,11 @@ import java.util.HashMap;
import de.hhu.ba.yoshikoWrapper.swing.components.EditCostPanel;
public final class HelpLinks {
private static final String docLocation = "file:///home/philipp/workspace/cs/BachelorThesis/YoshikoWrapper/thesis/tex/Thesis.pdf";
private static final HashMap <Class<?>,URI> helpLinks;
static {
helpLinks = new HashMap<Class<?>,URI>();
try {
......@@ -20,16 +20,16 @@ public final class HelpLinks {
e.printStackTrace();
}
}
public static URI getHelpLink(Class<?> c) {
if (helpLinks.containsKey(c)) {
return helpLinks.get(c);
}
return null;
}
private static URI buildURI(String fragment) throws URISyntaxException {
return new URI(null,docLocation,fragment);
return new URI(null,docLocation,"nameddest="+fragment);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment