изменение умолчаний для контролов таблиц
This commit is contained in:
@@ -56,7 +56,7 @@ public class CheckAccount extends Pass<Boolean> {
|
||||
protected void showDone() throws Exception {
|
||||
if (Global.mainModule.getUI().getMainWindow() != null) {
|
||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowAccount();
|
||||
if (Global.componentsServer.db.bugReports.getUI().getCurrent()!=null)
|
||||
if (Global.componentsServer.db.bugReports.getUI().getCurrent() != null)
|
||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
||||
}
|
||||
if (Global.mainModule.getAccount().isAdmin())
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Passes.Server.CloneServerObject;
|
||||
import _VisualDVM.TestingSystem.Common.TestingServer;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
import _VisualDVM.Passes.Server.CloneServerObject;
|
||||
|
||||
@@ -37,7 +37,7 @@ public class CompareDVMRunTasks extends Pass<Vector<DVMRunTask>> {
|
||||
master = target.get(0);
|
||||
slave = null;
|
||||
return UI.Question("Отобразить задачу " + Utils_.Brackets(master.getPK()));
|
||||
} else if ((target.size() == 0) && (Global.testingServer.db.dvmRunTasks.getUI().getCurrent()!=null)) {
|
||||
} else if ((target.size() == 0) && (Global.testingServer.db.dvmRunTasks.getUI().getCurrent() != null)) {
|
||||
master = Global.testingServer.db.dvmRunTasks.getUI().getCurrent();
|
||||
slave = null;
|
||||
return UI.Question("Отобразить задачу " + Utils_.Brackets(master.getPK()));
|
||||
|
||||
@@ -37,7 +37,7 @@ public class CompareSapforPackages extends Pass<Vector<SapforPackage>> {
|
||||
master = target.get(0);
|
||||
slave = null;
|
||||
return UI.Question("Отобразить пакет " + Utils_.Brackets(master.getPK()));
|
||||
} else if ((target.size() == 0) && ( (Global.testingServer.db.sapforPackages.getUI().getCurrent()!=null))) {
|
||||
} else if ((target.size() == 0) && ((Global.testingServer.db.sapforPackages.getUI().getCurrent() != null))) {
|
||||
master = Global.testingServer.db.sapforPackages.getUI().getCurrent();
|
||||
slave = null;
|
||||
return UI.Question("Отобразить пакет " + Utils_.Brackets(master.getPK()));
|
||||
|
||||
@@ -37,8 +37,8 @@ public class Compile extends Pass<db_project_info> {
|
||||
target = Global.mainModule.getProject();
|
||||
//--
|
||||
machine = Global.mainModule.getDb().getTable(Machine.class).getUI().getCurrent();
|
||||
user= Global.mainModule.getDb().getTable(User.class).getUI().getCurrent();
|
||||
makefile= Global.mainModule.getDb().getTable(Makefile.class).getUI().getCurrent();
|
||||
user = Global.mainModule.getDb().getTable(User.class).getUI().getCurrent();
|
||||
makefile = Global.mainModule.getDb().getTable(Makefile.class).getUI().getCurrent();
|
||||
//--
|
||||
subpass = null;
|
||||
compilationTask = null;
|
||||
|
||||
@@ -27,7 +27,7 @@ public class ConvertCorrectnessTests extends TestingSystemPass<File> {
|
||||
Log.Writeln_("Вы не являетесь администратором");
|
||||
return false;
|
||||
}
|
||||
if (! Global.testingServer.db.serverSapfors.getUI().CheckCurrent(Log)) {
|
||||
if (!Global.testingServer.db.serverSapfors.getUI().CheckCurrent(Log)) {
|
||||
return false;
|
||||
}
|
||||
return UI.Warning("Загрузить полный пакет DVM тестов на корректность и производительность.");
|
||||
|
||||
@@ -2,7 +2,6 @@ package _VisualDVM.Passes.All;
|
||||
import Common.MainModule_;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Machine.Machine;
|
||||
import _VisualDVM.GlobalData.User.User;
|
||||
import _VisualDVM.GlobalData.User.UserState;
|
||||
import _VisualDVM.Passes.ProcessPass;
|
||||
|
||||
@@ -21,8 +21,8 @@ public class PublishBugReport extends Pass<BugReport> {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) {
|
||||
if ( Global.componentsServer.db.bugReports.getUI().CheckCurrent(Log)) {
|
||||
target = Global.componentsServer.db.bugReports.getUI().getCurrent();
|
||||
if (Global.componentsServer.db.bugReports.getUI().CheckCurrent(Log)) {
|
||||
target = Global.componentsServer.db.bugReports.getUI().getCurrent();
|
||||
if (!target.state.equals(BugReportState.draft)) {
|
||||
Log.Writeln_("Отчёт об ошибке " + target.id + " уже опубликован!");
|
||||
return false;
|
||||
|
||||
@@ -45,8 +45,8 @@ public class Run extends Pass<db_project_info> {
|
||||
@Override
|
||||
protected boolean canStart(Object... args) {
|
||||
subpass = null;
|
||||
if ((Global.mainModule.Check(Log, Current.Project))&&
|
||||
MainModule_.instance.getDb().CheckCurrent(Log,Machine.class, User.class, Makefile.class, RunConfiguration.class,CompilationTask.class)) {
|
||||
if ((Global.mainModule.Check(Log, Current.Project)) &&
|
||||
MainModule_.instance.getDb().CheckCurrent(Log, Machine.class, User.class, Makefile.class, RunConfiguration.class, CompilationTask.class)) {
|
||||
//-
|
||||
target = Global.mainModule.getProject();
|
||||
//-
|
||||
|
||||
@@ -24,7 +24,7 @@ public class SPF_ModifyArrayDistribution extends SapforModification {
|
||||
if (
|
||||
Global.mainModule.getProject().parallelRegions.getUI().CheckCurrent(Log)
|
||||
&& super.canStart(args) && Global.mainModule.getPass(PassCode.SPF_GetArrayLinks).Do()) {
|
||||
region = Global.mainModule.getProject().parallelRegions.getUI().getCurrent();
|
||||
region = Global.mainModule.getProject().parallelRegions.getUI().getCurrent();
|
||||
DBObjectDialog dialog = new DBObjectDialog<ParallelRegion, ParallelRegionFields>(ParallelRegionFields.class) {
|
||||
@Override
|
||||
public int getDefaultHeight() {
|
||||
|
||||
@@ -11,8 +11,8 @@ public class SaveBugReportExecutor extends UpdateBugReportField {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
return Global.componentsServer.db.subscribers.getUI().CheckCurrent(Log) &&
|
||||
super.canStart("executor",Global.componentsServer.db.subscribers.getUI().getCurrent().name,
|
||||
return Global.componentsServer.db.subscribers.getUI().CheckCurrent(Log) &&
|
||||
super.canStart("executor", Global.componentsServer.db.subscribers.getUI().getCurrent().name,
|
||||
"executor_address", Global.componentsServer.db.subscribers.getUI().getCurrent().address
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Passes.Testing.SaveCurrentConfiguration;
|
||||
import _VisualDVM.TestingSystem.DVM.DVMConfiguration.DVMConfiguration;
|
||||
import _VisualDVM.TestingSystem.DVM.DVMSettings.DVMSettings;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Passes.Testing.SaveCurrentConfiguration;
|
||||
import _VisualDVM.TestingSystem.SAPFOR.SapforConfiguration.SapforConfiguration;
|
||||
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Passes.Testing.ShowCurrentConfigurationTests;
|
||||
import _VisualDVM.ServerObjectsCache.DVMConfigurationCache;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Passes.Testing.ShowCurrentConfigurationTests;
|
||||
import _VisualDVM.ServerObjectsCache.SapforConfigurationCache;
|
||||
|
||||
@@ -22,7 +22,7 @@ public class ShowMakefilePreview extends Pass<db_project_info> {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) {
|
||||
if (Global.mainModule.Check(Log, Current.Project) &&MainModule_.instance.getDb().getTable(Makefile.class).getUI().CheckCurrent(Log) ) {
|
||||
if (Global.mainModule.Check(Log, Current.Project) && MainModule_.instance.getDb().getTable(Makefile.class).getUI().CheckCurrent(Log)) {
|
||||
target = Global.mainModule.getProject();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public class UpdateBugReportField extends ComponentsRepositoryPass<BugReport> {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (!Global.componentsServer.db.bugReports.getUI().CheckCurrent(Log))
|
||||
if (!Global.componentsServer.db.bugReports.getUI().CheckCurrent(Log))
|
||||
return false;
|
||||
old_description = "";
|
||||
old_comment = "";
|
||||
|
||||
Reference in New Issue
Block a user