X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fsimulation%2Flisteners%2FSimulationListener.java;h=d5663ccbdc05441112f4bbcfed37627c23d0f4c9;hb=bbdd01e3f680d5c22b6dae29220d191fd8fc7163;hp=98b28aada2846690c6daf67f6171d6b5ba05347c;hpb=8654c7d5a9d56274a296500d40c7f74229cdf6f1;p=debian%2Fopenrocket diff --git a/core/src/net/sf/openrocket/simulation/listeners/SimulationListener.java b/core/src/net/sf/openrocket/simulation/listeners/SimulationListener.java index 98b28aad..d5663ccb 100644 --- a/core/src/net/sf/openrocket/simulation/listeners/SimulationListener.java +++ b/core/src/net/sf/openrocket/simulation/listeners/SimulationListener.java @@ -7,6 +7,25 @@ import net.sf.openrocket.simulation.exception.SimulationException; public interface SimulationListener { + /** + * Get the name of this simulation listener. Ideally this should be localized, as + * it can be displayed in the UI. + * + * @return the name of this simulation listener. + */ + public String getName(); + + + /** + * Get the menu position of this simulation listener. This should be an array + * of localized submenu names in descending order, or an empty array for positioning + * in the base menu. + * + * @return the menu position of this simulation listener. + */ + public String[] getMenuPosition(); + + /** * Called when starting a simulation. *