1 package tim.prune.function;
3 import javax.swing.JOptionPane;
6 import tim.prune.GenericFunction;
7 import tim.prune.I18nManager;
8 import tim.prune.threedee.ThreeDException;
9 import tim.prune.threedee.ThreeDWindow;
10 import tim.prune.threedee.WindowFactory;
13 * Class to show the 3d window
15 public class ShowThreeDFunction extends GenericFunction
19 * @param inApp app object
21 public ShowThreeDFunction(App inApp)
29 public String getNameKey() {
30 return "function.show3d";
34 * Show the help screen
38 ThreeDWindow window = WindowFactory.getWindow(_parentFrame);
41 JOptionPane.showMessageDialog(_parentFrame, I18nManager.getText("error.function.nojava3d"),
42 I18nManager.getText("error.function.notavailable.title"), JOptionPane.WARNING_MESSAGE);
48 // Pass the track object and show the window
49 window.setTrack(_app.getTrackInfo().getTrack());
52 catch (ThreeDException e)
54 _app.showErrorMessageNoLookup(getNameKey(), I18nManager.getText("error.3d") + ": " + e.getMessage());