Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
vadere
vadere
Commits
2d039a02
Commit
2d039a02
authored
May 21, 2019
by
Benedikt Kleinmeier
Browse files
In "PostvisualizationWindow", show error popup if trajectory file could not be read.
parent
ec80f092
Changes
1
Hide whitespace changes
Inline
Side-by-side
VadereGui/src/org/vadere/gui/postvisualization/view/PostvisualizationWindow.java
View file @
2d039a02
...
...
@@ -338,8 +338,13 @@ public class PostvisualizationWindow extends JPanel implements Observer {
public
void
loadOutputFile
(
final
File
trajectoryFile
,
final
Scenario
scenario
)
throws
IOException
{
Player
.
getInstance
(
model
).
stop
();
model
.
init
(
IOOutput
.
readTrajectories
(
trajectoryFile
.
toPath
(),
scenario
),
scenario
,
trajectoryFile
.
getParent
());
model
.
notifyObservers
();
try
{
model
.
init
(
IOOutput
.
readTrajectories
(
trajectoryFile
.
toPath
(),
scenario
),
scenario
,
trajectoryFile
.
getParent
());
model
.
notifyObservers
();
}
catch
(
Exception
ex
)
{
JOptionPane
.
showMessageDialog
(
this
,
ex
.
getMessage
(),
Messages
.
getString
(
"Error.text"
),
JOptionPane
.
ERROR_MESSAGE
);
}
}
public
void
loadOutputFile
(
final
Scenario
scenario
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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