v++
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
package _VisualDVM.Repository.Component;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
|
||||
@@ -60,7 +62,7 @@ public class Visualiser extends Component {
|
||||
//http://www.seostella.com/ru/article/2012/02/05/formatirovanie-daty-v-java.html
|
||||
@Override
|
||||
public void GetVersionInfo() {
|
||||
version = 1140;
|
||||
version = 1141;
|
||||
String pattern = "MMM dd yyyy HH:mm:ss";
|
||||
DateFormat df = new SimpleDateFormat(pattern, Locale.ENGLISH);
|
||||
date_text = df.format(getClassBuildTime());
|
||||
@@ -68,17 +70,24 @@ public class Visualiser extends Component {
|
||||
@Override
|
||||
public void Update() throws Exception {
|
||||
super.Update();
|
||||
ComponentsSet.visualizer_2.SendRequest("update: ");
|
||||
Global.visualizer_2.SendRequest("update: ");
|
||||
System.exit(0);
|
||||
}
|
||||
public File getWorkspace() {
|
||||
File res = Global.ProjectsDirectory;
|
||||
//---
|
||||
if (!Global.normalProperties.Workspace.isEmpty()) {
|
||||
File workspace = new File(Global.normalProperties.Workspace);
|
||||
if (workspace.exists())
|
||||
return workspace;
|
||||
res = workspace;
|
||||
else
|
||||
Global.mainModule.getPass(PassCode.UpdateProperty).Do("Workspace", "");
|
||||
}
|
||||
return Global.ProjectsDirectory;
|
||||
return res;
|
||||
}
|
||||
public File getDownloadsDirectory(){
|
||||
File res = new File(getWorkspace(), Constants.DownloadsDirectoryName);
|
||||
Utils_.CheckDirectory(res);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user