Commit 2ef8a586 authored by Edoardo Putti's avatar Edoardo Putti Committed by Mart Lubbers

add correct loading of help files

parent cb32ce27
......@@ -34,7 +34,7 @@ public class HelpFromProp
private static Properties getProps( String nm )
{
URL url = HelpFromProp.class.getResource( "/Help/" + nm + ".prop" ) ;
URL url = nm.getClass().getResource( "/Help/" + nm + ".prop" ) ;
Properties props = new Properties() ;
try
{
......@@ -42,6 +42,7 @@ public class HelpFromProp
}
catch( IOException ex )
{
System.err.println("Could not read help source for " + nm);
}
return props ;
}
......
......@@ -176,7 +176,7 @@ public class SSMRunner extends JFrame
helper = new Help() ;
HelpSupplier instrHelpSupplier = Instruction.getHelpSupplier() ;
//helper.addHelpSupplier( instrHelpSupplier ) ;
helper.addHelpSupplier( instrHelpSupplier ) ;
helper.addHelpSupplier( new HelpFromProp( "ssminstrhelp", instrHelpSupplier, true ) ) ;
helper.addHelpSupplier( new HelpFromProp( "ssmhelp", instrHelpSupplier, false ) ) ;
}
......
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