Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
compilerconstruction
ssm
Commits
2ef8a586
Commit
2ef8a586
authored
Apr 17, 2019
by
Edoardo Putti
Committed by
Mart Lubbers
Dec 17, 2019
Browse files
add correct loading of help files
parent
cb32ce27
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/nl/uu/cs/ssmui/HelpFromProp.java
View file @
2ef8a586
...
...
@@ -34,7 +34,7 @@ public class HelpFromProp
private
static
Properties
getProps
(
String
nm
)
{
URL
url
=
HelpFromProp
.
c
lass
.
getResource
(
"/Help/"
+
nm
+
".prop"
)
;
URL
url
=
nm
.
getC
lass
()
.
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
;
}
...
...
src/nl/uu/cs/ssmui/SSMRunner.java
View file @
2ef8a586
...
...
@@ -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
)
)
;
}
...
...
Mart Lubbers
@_mlubbers
mentioned in commit
bfbf9ecc
·
Dec 17, 2019
mentioned in commit
bfbf9ecc
mentioned in commit bfbf9ecca5d1347357f25a857041710e5ca120f7
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment