no message

This commit is contained in:
2024-10-15 15:30:26 +03:00
parent 5e2a9848da
commit f44ccf7893
11 changed files with 31 additions and 165 deletions

View File

@@ -30,6 +30,9 @@ public class SPFEditor extends BaseEditor implements SPFEditorInterface {
//--
public static final Highlighter.HighlightPainter GreenTextPainter = new DefaultHighlighter.DefaultHighlightPainter(new Color(152, 251, 152, 90));
public static final Highlighter.HighlightPainter RedTextPainter = new DefaultHighlighter.DefaultHighlightPainter(new Color(240, 128, 128, 90));
//</editor-fold>
//------------------------------------------------------
public static boolean enable_text_changed = false;
public DBProjectFile file = null; //файл связанный с редактором
//----
public RSyntaxTextAreaHighlighter highlighter = null;
@@ -63,7 +66,7 @@ public class SPFEditor extends BaseEditor implements SPFEditorInterface {
public void changedUpdate(DocumentEvent arg0) {
if (!switching_language) {
file.NeedsSave = true;
if (Global.enable_text_changed && file.state != FileState.Excluded) {
if (enable_text_changed && file.state != FileState.Excluded) {
Global.mainModule.getSapfor().ResetAllAnalyses();
//текст изменился, значит M ка более не актуальна.
file.father.dropLastModification();