no message
This commit is contained in:
@@ -81,7 +81,7 @@ public class DVMConvertProject extends ComponentsRepositoryPass<db_project_info>
|
||||
//-
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Transformations/" + code().toString() + ".png";
|
||||
return "/icons/Transformations/" + getName() + ".png";
|
||||
}
|
||||
@Override
|
||||
public boolean hasStats() {
|
||||
|
||||
@@ -60,7 +60,7 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
|
||||
f.fields.cbAssemblyOnServer.setVisible(false);
|
||||
f.fields.cbAssemblyOnServer.setSelected(false);
|
||||
}
|
||||
if (f.ShowDialog(code().getDescription())) {
|
||||
if (f.ShowDialog(getDescription())) {
|
||||
target.needs_update_minimal_version = f.fields.cbUpdateMinimalVersion.isSelected();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Passes.PassCode_;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import MainModule_.MainModule_;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
@@ -41,6 +43,6 @@ public class SPF_GetArrayDistribution extends SPF_GetArrayDistributionOnlyAnalys
|
||||
}
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return code().getDescription();
|
||||
return Global.mainModule.getPassDescription(getName());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Utils.Vector_;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.Controls.PassControl;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -15,8 +16,8 @@ import java.util.Comparator;
|
||||
import java.util.Vector;
|
||||
public class SPF_GetArrayDistributionOnlyAnalysis extends SapforAnalysis {
|
||||
@Override
|
||||
protected Vector<PassCode> getForbiddenPhases() {
|
||||
return new Vector<>(Collections.singletonList(PassCode.SPF_GetArrayDistributionOnlyRegions));
|
||||
protected Vector<String> getForbiddenPhases() {
|
||||
return new Vector_<>("SPF_GetArrayDistributionOnlyRegions");
|
||||
}
|
||||
@Override
|
||||
public String phase() {
|
||||
|
||||
@@ -19,7 +19,7 @@ public class SPF_StatisticAnalyzer extends SilentSapforPass {
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
sapfor.RunAnalysis(
|
||||
code().toString(),
|
||||
getName(),
|
||||
-Global.messagesServer.getPort(),
|
||||
Global.packSapforSettings(),
|
||||
Utils_.DQuotes(task.getLocalStsFile().getAbsolutePath()) +
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.awt.event.ActionEvent;
|
||||
import java.util.Vector;
|
||||
public class SapforAnalysis extends SapforPass {
|
||||
boolean asDonePhase = false;
|
||||
protected Vector<PassCode> getForbiddenPhases() {
|
||||
protected Vector<String> getForbiddenPhases() {
|
||||
return new Vector<>();
|
||||
}
|
||||
@Override
|
||||
@@ -106,8 +106,8 @@ public class SapforAnalysis extends SapforPass {
|
||||
if (!p.isEmpty() && !phase().equals(p)) {
|
||||
SapforAnalysis analysis =
|
||||
sapfor.getAnalysisByPhase(p);
|
||||
if ((analysis != null) && (analysis.code() != code()) && (analysis.alwaysCheck() || !analysis.isDone())) {
|
||||
if (getForbiddenPhases().contains(analysis.code())) {
|
||||
if ((analysis != null) && (!analysis.getName().equals(getName())) && (analysis.alwaysCheck() || !analysis.isDone())) {
|
||||
if (getForbiddenPhases().contains(analysis.getName())) {
|
||||
analysis.setDone();
|
||||
analysis.MarkAsDone();
|
||||
} else
|
||||
|
||||
@@ -15,7 +15,7 @@ public class SapforTransformation extends SapforPass {
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Transformations/" + code().toString() + ".png";
|
||||
return "/icons/Transformations/" + getName() + ".png";
|
||||
}
|
||||
protected String getVersionLetter() {
|
||||
return "v";
|
||||
@@ -46,7 +46,7 @@ public class SapforTransformation extends SapforPass {
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
sapfor.RunTransformation(
|
||||
code().toString(),
|
||||
getName(),
|
||||
-Global.messagesServer.getPort(),
|
||||
Global.packSapforSettings(),
|
||||
target.getProjFile().getAbsolutePath(),
|
||||
|
||||
@@ -13,7 +13,7 @@ public class SilentSapforPass extends CurrentProjectPass {
|
||||
return true;
|
||||
}
|
||||
protected String getSapforPassName() {
|
||||
return code().toString();
|
||||
return getName();
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
|
||||
@@ -23,7 +23,7 @@ public class Transformation extends CurrentProjectPass {
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Transformations/" + code().toString() + ".png";
|
||||
return "/icons/Transformations/" + getName() + ".png";
|
||||
}
|
||||
protected String getVersionLetter() {
|
||||
return "v";
|
||||
|
||||
Reference in New Issue
Block a user