no message
This commit is contained in:
@@ -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) != ','))
|
||||
|
||||
@@ -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) != '('))
|
||||
|
||||
Reference in New Issue
Block a user