рефакторинг. вынес часть иконок в общую часть
This commit is contained in:
@@ -8,7 +8,7 @@ import _VisualDVM.Repository.Subscribes.Subscriber;
|
||||
public class AddSubscriber extends ComponentsRepositoryPass<Subscriber> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/RedAdd.png";
|
||||
return "/Common/icons/RedAdd.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.LinkedHashMap;
|
||||
public class ApplyBugReportSettings extends Pass<BugReport> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Apply.png";
|
||||
return "/Common/icons/Apply.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.Vector;
|
||||
public class ApplyCurrentFunction extends Pass {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Apply.png";
|
||||
return "/Common/icons/Apply.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.Vector;
|
||||
public class ApplyProfile extends Pass<SapforProfile> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Apply.png";
|
||||
return "/Common/icons/Apply.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -9,11 +9,11 @@ import javax.swing.*;
|
||||
public class CloseCurrentFile extends Pass<DBProjectFile> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Close.png";
|
||||
return "/Common/icons/Close.png";
|
||||
}
|
||||
@Override
|
||||
public Icon getTabIcon() {
|
||||
return Utils_.getIcon("/icons/Close_18.png");
|
||||
return Utils_.getIcon("/Common/icons/Close_18.png");
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -13,11 +13,11 @@ public class CloseCurrentProject extends Pass<db_project_info> {
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Close.png";
|
||||
return "/Common/icons/Close.png";
|
||||
}
|
||||
@Override
|
||||
public Icon getTabIcon() {
|
||||
return Utils_.getIcon("/icons/Close_18.png");
|
||||
return Utils_.getIcon("/Common/icons/Close_18.png");
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
|
||||
@@ -19,7 +19,7 @@ public class Compile extends Pass<db_project_info> {
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Start.png";
|
||||
return "/Common/icons/BlueStart.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -10,7 +10,7 @@ public class CreateTestFromProject extends CreateTestFromDirectory {
|
||||
db_project_info project;
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/RedAdd.png";
|
||||
return "/Common/icons/RedAdd.png";
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.util.Vector;
|
||||
public class CreateTestFromSelectedFiles extends CreateTestFromDirectory {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/MassFiles.png";
|
||||
return "/Common/icons/MassFiles.png";
|
||||
}
|
||||
@Override
|
||||
protected boolean selectFiles() {
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.Vector;
|
||||
public class CreateTestsGroupFromSelectedVersions extends PublishTests {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Publish.png";
|
||||
return "/Common/icons/Publish.png";
|
||||
}
|
||||
@Override
|
||||
protected PassCode getCreateTestCode() {
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.Vector;
|
||||
public class DeleteDirectory extends ChangeFilePass {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Delete.png";
|
||||
return "/Common/icons/Delete.png";
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||
public class DeleteFile extends ChangeFilePass<DBProjectFile> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Delete.png";
|
||||
return "/Common/icons/Delete.png";
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.Vector;
|
||||
public class DeleteSelectedCompilationTasks extends Pass<Vector<CompilationTask>> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Delete.png";
|
||||
return "/Common/icons/Delete.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -9,7 +9,7 @@ import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||
public class DeleteSelectedFiles extends Pass {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Delete.png";
|
||||
return "/Common/icons/Delete.png";
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.Vector;
|
||||
public class DeleteSelectedRunTasks extends Pass<Vector<RunTask>> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Delete.png";
|
||||
return "/Common/icons/Delete.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -15,7 +15,7 @@ public class DeleteSelectedVersions extends Pass<Vector<db_project_info>> {
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Delete.png";
|
||||
return "/Common/icons/Delete.png";
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.Vector;
|
||||
public class DeleteSubversions extends CurrentProjectPass {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Delete.png";
|
||||
return "/Common/icons/Delete.png";
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
|
||||
@@ -11,7 +11,7 @@ public class DeleteVersion extends Pass<db_project_info> {
|
||||
boolean current;
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Delete.png";
|
||||
return "/Common/icons/Delete.png";
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) {
|
||||
|
||||
@@ -6,7 +6,7 @@ public class EditProjectCompilationMaxtime extends CurrentProjectPass {
|
||||
SessionMaxtimeDialog f;
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Maxtime.png";
|
||||
return "/Common/icons/Maxtime.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -6,7 +6,7 @@ public class EditProjectRunMaxtime extends CurrentProjectPass {
|
||||
SessionMaxtimeDialog f;
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Maxtime.png";
|
||||
return "/Common/icons/Maxtime.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -41,7 +41,7 @@ public class ExportDVMPackageToExcel extends Pass<Vector<DVMPackage>> {
|
||||
//--
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Excel.png";
|
||||
return "/Common/icons/Excel.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -10,7 +10,7 @@ public class ExtractRecipients extends Pass {
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/LastOpened.png";
|
||||
return "/Common/icons/Search.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -23,7 +23,7 @@ public class GCOV extends Precompilation {
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/GCOV.PNG";
|
||||
return "/icons/GCOV.png";
|
||||
}
|
||||
@Override
|
||||
public boolean hasStats() {
|
||||
|
||||
@@ -11,7 +11,7 @@ public class InstallComponentFromFolder extends CurrentComponentPass {
|
||||
File file;
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/LastOpened.png";
|
||||
return "/Common/icons/Search.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -130,7 +130,7 @@ public class OpenCurrentProject extends Pass<db_project_info> {
|
||||
Global.mainModule.getUI().getVersionsWindow().BlockVariants();
|
||||
//-
|
||||
Global.mainModule.getUI().getMainWindow().ShowProject();
|
||||
//криво. но при тихом режиме открытие файлов все равно не понадобится.
|
||||
//криво. но при тихом режиме открытие файлов все равно не понадобится. LastOpenedProjectsMenu
|
||||
Global.mainModule.getPass(PassCode.OpenCurrentFile).Do(target.getLastOpenedFile());
|
||||
}
|
||||
@Override
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.Date;
|
||||
public class PublishBugReport extends Pass<BugReport> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Publish.png";
|
||||
return "/Common/icons/Publish.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -21,7 +21,7 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
|
||||
PublishForm f = new PublishForm();
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Publish.png";
|
||||
return "/Common/icons/Publish.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -17,7 +17,7 @@ public class PublishComponentsServer extends RepositoryServerSSHPass {
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Publish.png";
|
||||
return "/Common/icons/Publish.png";
|
||||
}
|
||||
//1. остановить сервер.
|
||||
//2. заменить файл сервера на компонент визуализатора. переименовать его.
|
||||
|
||||
@@ -17,7 +17,7 @@ public class PublishTestingServer extends RepositoryServerSSHPass {
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Publish.png";
|
||||
return "/Common/icons/Publish.png";
|
||||
}
|
||||
//1. остановить сервер.
|
||||
//2. заменить файл сервера на компонент визуализатора. переименовать его.
|
||||
|
||||
@@ -16,7 +16,7 @@ public class Run extends Pass<db_project_info> {
|
||||
Vector<RunTask> runTasks;
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/GreenStart.png";
|
||||
return "/Common/icons/GreenStart.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -9,10 +9,10 @@ import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||
public class SPF_GetGCovInfo extends SilentSapforPass {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/NotPick.png";
|
||||
return "/Common/icons/NotPick.png";
|
||||
}
|
||||
protected String getDoneIconPath() {
|
||||
return "/icons/Pick.png";
|
||||
return "/Common/icons/Pick.png";
|
||||
}
|
||||
@Override
|
||||
public boolean hasStats() {
|
||||
|
||||
@@ -6,7 +6,7 @@ import org.apache.commons.io.FileUtils;
|
||||
public class Save extends Pass<DBProjectFile> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Save.png";
|
||||
return "/Common/icons/Save.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -3,7 +3,7 @@ import _VisualDVM.Global;
|
||||
public class SaveBugReportComment extends UpdateBugReportField {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Save.png";
|
||||
return "/Common/icons/Save.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -3,7 +3,7 @@ import _VisualDVM.Global;
|
||||
public class SaveBugReportDescription extends UpdateBugReportField {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Save.png";
|
||||
return "/Common/icons/Save.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -4,7 +4,7 @@ import _VisualDVM.Global;
|
||||
public class SaveBugReportExecutor extends UpdateBugReportField {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Apply.png";
|
||||
return "/Common/icons/Apply.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -3,7 +3,7 @@ import _VisualDVM.Repository.BugReport.BugReportInterface;
|
||||
public class SaveBugReportRecipients extends UpdateBugReportField {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Save.png";
|
||||
return "/Common/icons/Save.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -11,7 +11,7 @@ public class SaveProfile extends AddObjectPass<SapforProfile> {
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Save.png";
|
||||
return "/Common/icons/Save.png";
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
|
||||
@@ -17,7 +17,7 @@ public class ShowComponentChangesLog extends ComponentsRepositoryPass<Component>
|
||||
File res;
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Log.png";
|
||||
return "/Common/icons/Log.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import _VisualDVM.Passes.SSH.RepositoryServerSSHPass;
|
||||
public class StartComponentsServer extends RepositoryServerSSHPass {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/GreenStart.png";
|
||||
return "/Common/icons/GreenStart.png";
|
||||
}
|
||||
@Override
|
||||
protected String getServerHomeName() {
|
||||
|
||||
@@ -18,7 +18,7 @@ public class StartSelectedDVMConfigurations extends PublishServerObject<TestingS
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Start.png";
|
||||
return "/Common/icons/BlueStart.png";
|
||||
}
|
||||
//--
|
||||
@Override
|
||||
|
||||
@@ -19,7 +19,7 @@ public class StartSelectedSAPFORConfigurations extends PublishServerObject<Testi
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Start.png";
|
||||
return "/Common/icons/BlueStart.png";
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
|
||||
@@ -5,7 +5,7 @@ import _VisualDVM.Passes.SSH.RepositoryServerSSHPass;
|
||||
public class StartTestingServer extends RepositoryServerSSHPass {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/GreenStart.png";
|
||||
return "/Common/icons/GreenStart.png";
|
||||
}
|
||||
@Override
|
||||
protected String getServerHomeName() {
|
||||
|
||||
Reference in New Issue
Block a user