Merge commit '42b2e5ca519766e37ce6941ba4faecc9691cc403' into upstream
[debian/openrocket] / core / src / net / sf / openrocket / gui / customexpression / CustomExpressionDialog.java
diff --git a/core/src/net/sf/openrocket/gui/customexpression/CustomExpressionDialog.java b/core/src/net/sf/openrocket/gui/customexpression/CustomExpressionDialog.java
new file mode 100644 (file)
index 0000000..b8dee9f
--- /dev/null
@@ -0,0 +1,35 @@
+package net.sf.openrocket.gui.customexpression;
+
+import java.awt.Window;
+
+import javax.swing.BorderFactory;
+import javax.swing.JDialog;
+import javax.swing.JPanel;
+
+import net.sf.openrocket.document.OpenRocketDocument;
+import net.sf.openrocket.document.Simulation;
+import net.sf.openrocket.gui.util.GUIUtil;
+import net.sf.openrocket.l10n.Translator;
+import net.sf.openrocket.logging.LogHelper;
+import net.sf.openrocket.rocketcomponent.Rocket;
+import net.sf.openrocket.startup.Application;
+
+public class CustomExpressionDialog extends JDialog {
+       private static final Translator trans = Application.getTranslator();
+       private static final LogHelper log = Application.getLogger();
+       
+       private final Window parentWindow;
+       private final OpenRocketDocument doc;
+       
+       public CustomExpressionDialog(OpenRocketDocument doc, Window parent){
+               super(parent, trans.get("customExpressionPanel.lbl.CustomExpressions"));
+               
+               this.doc = doc;
+               this.parentWindow = parent;
+               
+               JPanel panel = new CustomExpressionPanel(doc, this);
+               this.add( panel );
+               
+               GUIUtil.setDisposableDialogOptions(this, null);
+       }
+}