завершение рефакторинга создания тестов из проектов.
This commit is contained in:
@@ -16,13 +16,19 @@ public class CreateTestFromProject extends CreateTestFromDirectory {
|
||||
if (args.length == 0) {
|
||||
if (Current.Check(Log, Current.Group, Current.Project)) {
|
||||
project = Current.getProject();
|
||||
from_directory_chooser = true;
|
||||
return super.canStart(Current.getProject().Home, Current.getGroup());
|
||||
if (super.canStart(Current.getProject().Home, Current.getGroup())){
|
||||
from_directory_chooser = true; //чтобы опубликовал.
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
project = (db_project_info) args[0];
|
||||
group = (Group) args[1];
|
||||
from_directory_chooser = false;
|
||||
//если проект не текущий, освежить его бд.
|
||||
if (!Current.HasProject() || !Current.getProject().Home.equals(project.Home)) {
|
||||
project.Open();
|
||||
project.Close();
|
||||
}
|
||||
return super.canStart(project.Home, group);
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user