\r
//---------------------------------------------------------------------------------------//\r
\r
- public String getFilepath() {\r
+ public String getFilepath(String title) {\r
+ fc.setDialogTitle(title);\r
if (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\r
log.append(fc.getSelectedFile().getAbsolutePath() + "\n");\r
return fc.getSelectedFile().getAbsolutePath();\r
\r
public void actionPerformed(ActionEvent e) {\r
if ( e.getSource() == moduleButton ) {\r
- modulepath = getFilepath();\r
+ modulepath = getFilepath("Please choose a starting path");\r
+ moduletext.setText(modulepath);\r
}\r
if ( e.getSource() == goButton ) {\r
try {\r
this.outputpath = this.modulepath.replaceAll(Common.strseparate, "$1");\r
} else {\r
ModuleInfo.ui.println("Choose where to place the result");\r
- if ((outputpath = ModuleInfo.ui.getFilepath()) == null) {\r
+ if ((outputpath = ModuleInfo.ui.getFilepath("Please choose where to place the output module")) == null) {\r
outputpath = modulepath; \r
}\r
ModuleInfo.ui.println("Output to: " + outputpath);\r
private static final void manipulate(ModuleInfo mi) throws Exception {\r
\r
ModuleReader.ModuleScan(mi);\r
- \r
+ //ModuleInfo.ui.yesOrNo("go on replace?");\r
SourceFileReplacer.flush(mi); // some adding library actions are taken here,so it must be put before "MsaWriter"\r
- \r
+\r
+ //ModuleInfo.ui.yesOrNo("go on show?");\r
// show result\r
if (ModuleInfo.printModuleInfo) {\r
ModuleInfo.ui.println("\nModule Information : ");\r
show(mi.hashnonlocalfunc, "nonlocal : ");\r
show(mi.hashr8only, "hashr8only : ");\r
}\r
- \r
+\r
+ //ModuleInfo.ui.yesOrNo("go on msawrite?");\r
new MsaWriter(mi).flush();\r
+ //ModuleInfo.ui.yesOrNo("go on critic?");\r
\r
if (ModuleInfo.doCritic) {\r
Critic.fireAt(mi.outputpath + File.separator + "Migration_" + mi.modulename);\r
}\r
- \r
+\r
+ //ModuleInfo.ui.yesOrNo("go on delete?");\r
Common.deleteDir(mi.modulepath + File.separator + "temp");\r
\r
ModuleInfo.ui.println("Errors Left : " + ModuleInfo.db.error);\r