gonna move the rename dialog out

This commit is contained in:
Ben Fry
2018-03-26 11:42:14 -04:00
parent f2fb1911ce
commit 273b0d8b42

View File

@@ -114,7 +114,7 @@ public class PDEX {
inspectMode = new InspectMode(editor, pps);
showUsage = new ShowUsage(editor, pps);
rename = new Rename(editor, pps);
rename = new Rename(editor, pps, showUsage);
if (SHOW_DEBUG_TREE) {
debugTree = new DebugTree(editor, pps);
}
@@ -647,21 +647,23 @@ public class PDEX {
}
private class Rename {
static private class Rename {
final JavaEditor editor;
final PreprocessingService pps;
final ShowUsage showUsage;
final JDialog window;
final JTextField textField;
final JLabel oldNameLabel;
final JavaEditor editor;
final PreprocessingService pps;
IBinding binding;
PreprocessedSketch ps;
Rename(JavaEditor editor, PreprocessingService pps) {
Rename(JavaEditor editor, PreprocessingService pps, ShowUsage showUsage) {
this.editor = editor;
this.pps = pps;
this.showUsage = showUsage;
// Add rename option
JMenuItem renameItem = new JMenuItem(Language.text("editor.popup.rename"));