no message

This commit is contained in:
2024-10-07 17:46:38 +03:00
parent 6537eebe09
commit e7f661f7ad
87 changed files with 279 additions and 222 deletions

View File

@@ -1,5 +1,5 @@
package ProjectData.Files.UI.Editor.AutoComplete.SAPFOR.Directives;
import Common_old.Utils.Utils;
import Common.Utils.CommonUtils;
import ProjectData.Files.UI.Editor.AutoComplete.SAPFOR.Providers.BaseProvider;
public class IntervalDirective extends BaseDirective {
protected String prefix;
@@ -19,9 +19,9 @@ public class IntervalDirective extends BaseDirective {
}
@Override
public String getReplacementText() {
prefix = Utils.pack(getCaretInfo().before.substring(0, getCaretInfo().before.length() - getCaretInfo().prefix_word.length()));
prefix = CommonUtils.removeRedundantSpaces(getCaretInfo().before.substring(0, getCaretInfo().before.length() - getCaretInfo().prefix_word.length()));
word = name.getText();
suffix = Utils.pack(getCaretInfo().after.substring(getCaretInfo().suffix_word.length()));
suffix = CommonUtils.removeRedundantSpaces(getCaretInfo().after.substring(getCaretInfo().suffix_word.length()));
String pp = prefix.replace(" ", "");
String ps = suffix.replace(" ", "");
if ((!ps.isEmpty()) && (ps.charAt(0) != ','))

View File

@@ -1,5 +1,5 @@
package ProjectData.Files.UI.Editor.AutoComplete.SAPFOR.Directives;
import Common_old.Utils.Utils;
import Common.Utils.CommonUtils;
import ProjectData.Files.UI.Editor.AutoComplete.SAPFOR.Providers.BaseProvider;
//промежуточный тип. относится ко всем директивам со скобками и требующим запятых.
public class SpecDirective extends BaseDirective {
@@ -16,9 +16,9 @@ public class SpecDirective extends BaseDirective {
}
@Override
public String getReplacementText() {
prefix = Utils.pack(getCaretInfo().before.substring(0, getCaretInfo().before.length() - getCaretInfo().prefix_word.length()));
prefix = CommonUtils.removeRedundantSpaces(getCaretInfo().before.substring(0, getCaretInfo().before.length() - getCaretInfo().prefix_word.length()));
word = get_word();
suffix = Utils.pack(getCaretInfo().after.substring(getCaretInfo().suffix_word.length()));
suffix = CommonUtils.removeRedundantSpaces(getCaretInfo().after.substring(getCaretInfo().suffix_word.length()));
String pp = prefix.replace(" ", "");
String ps = suffix.replace(" ", "");
if (!pp.isEmpty() && (pp.charAt(pp.length() - 1) != ',') && (pp.charAt(pp.length() - 1) != '('))

View File

@@ -3,7 +3,7 @@ import Common_old.Current;
import _VisualDVM.Global;
import Common_old.UI.Menus.GraphMenu;
import Common_old.UI.Menus.VersionsMenu;
import Common_old.UI.Selectable;
import Common.Visual.Selectable;
import Common_old.UI.Trees.DataTree;
import Common_old.UI.Trees.TreeRenderers;
import Visual_DVM_2021.Passes.PassCode_2021;

View File

@@ -1,7 +1,7 @@
package ProjectData.Project.UI;
import Common_old.Current;
import _VisualDVM.Global;
import Common_old.UI.Selectable;
import Common.Visual.Selectable;
import _VisualDVM.Syntax.VisualiserFonts;
import Common_old.UI.Trees.StyledTreeCellRenderer;
import ProjectData.Project.db_project_info;

View File

@@ -1,4 +1,5 @@
package ProjectData.SapforData.Arrays.UI;
import Common.Visual.CommonUI;
import Common_old.Current;
import Common_old.UI.ControlForm;
import Common_old.UI.Tables.Grid.GridAnchestor;
@@ -25,7 +26,7 @@ public class DimensionsTableForm extends ControlForm<StyledTable> {
@Override
public void Clear() {
super.Clear();
UI.Clear(content);
CommonUI.Clear(content);
}
@Override
public void CreateControl() {

View File

@@ -1,7 +1,7 @@
package ProjectData.SapforData.Functions.UI.Graph;
import Common.Visual.CommonUI;
import Common_old.Current;
import Common_old.UI.ControlForm;
import Common_old.UI.UI;
import com.mxgraph.swing.mxGraphComponent;
import java.awt.*;
@@ -22,6 +22,6 @@ public class FunctionsGraphForm extends ControlForm<mxGraphComponent> {
@Override
public void Clear() {
super.Clear();
UI.Clear(content);
CommonUI.Clear(content);
}
}