no message
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package _VisualDVM.Visual.Windows;
|
||||
import Common.CommonConstants;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.Editor.Viewer;
|
||||
@@ -173,29 +173,29 @@ public class FileForm implements FileWindow, FormWithSplitters {
|
||||
//----
|
||||
@Override
|
||||
public void ShowWarningsCount() {
|
||||
boolean flag = ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
boolean flag = ((GlobalDatabase) Utils_.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
messagesTabs.setTitleAt(1, (flag ? "Предупреждения: " : "") + file.father.db.warnings.getVisibleKeys().size());
|
||||
}
|
||||
@Override
|
||||
public void ShowErrorsCount() {
|
||||
boolean flag = ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
boolean flag = ((GlobalDatabase) Utils_.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
messagesTabs.setTitleAt(2, (flag ? "Ошибки: " : "") + file.father.db.errors.getVisibleKeys().size());
|
||||
}
|
||||
@Override
|
||||
public void ShowNotesCount() {
|
||||
boolean flag = ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
boolean flag = ((GlobalDatabase) Utils_.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
messagesTabs.setTitleAt(0, (flag ? "Примечания: " : "") + file.father.db.notes.getVisibleKeys().size());
|
||||
}
|
||||
@Override
|
||||
public void ShowRecommendationsCount() {
|
||||
boolean flag = ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
boolean flag = ((GlobalDatabase) Utils_.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
messagesTabs.setTitleAt(3, (flag ? "Рекомендации: " : "") + file.father.db.recommendations.getVisibleKeys().size());
|
||||
}
|
||||
//---
|
||||
@Override
|
||||
public void RefreshTabsNames() {
|
||||
UI.ShowTabsNames(graphsTabs);
|
||||
boolean flag = ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
boolean flag = ((GlobalDatabase) Utils_.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
//--
|
||||
ShowNotesCount();
|
||||
ShowWarningsCount();
|
||||
@@ -216,7 +216,7 @@ public class FileForm implements FileWindow, FormWithSplitters {
|
||||
}
|
||||
@Override
|
||||
public void ShowText() {
|
||||
CommonUI.Clear(editorPanel);
|
||||
UI_.Clear(editorPanel);
|
||||
editorPanel.add(new RTextScrollPane(Body = new SPFEditor(file)));
|
||||
UI.getSearchReplaceWindow().updateEditor(Body);
|
||||
}
|
||||
@@ -235,7 +235,7 @@ public class FileForm implements FileWindow, FormWithSplitters {
|
||||
}
|
||||
@Override
|
||||
public void ShowNoMessages() {
|
||||
boolean full_tiles = ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
boolean full_tiles = ((GlobalDatabase) Utils_.db).settings.get(SettingName.ShowFullTabsNames).toBoolean();
|
||||
file.father.db.notes.ClearUI();
|
||||
file.father.db.warnings.ClearUI();
|
||||
file.father.db.errors.ClearUI();
|
||||
@@ -367,31 +367,31 @@ public class FileForm implements FileWindow, FormWithSplitters {
|
||||
//--
|
||||
@Override
|
||||
public void CollapseGraphs() {
|
||||
CommonUtils.db.splitters.get("SC12").position = SC12.getDividerLocation();
|
||||
CommonUI.Clear(editorBackground);
|
||||
Utils_.db.splitters.get("SC12").position = SC12.getDividerLocation();
|
||||
UI_.Clear(editorBackground);
|
||||
editorBackground.add(editorPanel);
|
||||
}
|
||||
@Override
|
||||
public void ExpandGraphs() {
|
||||
CommonUI.Clear(editorBackground);
|
||||
UI_.Clear(editorBackground);
|
||||
SC12.setRightComponent(editorPanel);
|
||||
editorBackground.add(SC12);
|
||||
//--
|
||||
SC12.setDividerLocation(CommonUtils.db.splitters.get("SC12").position);
|
||||
SC12.setDividerLocation(Utils_.db.splitters.get("SC12").position);
|
||||
SC12.updateUI();
|
||||
}
|
||||
@Override
|
||||
public void CollapseMessages() {
|
||||
CommonUtils.db.splitters.get("SC1").position = SC1.getDividerLocation();
|
||||
CommonUI.Clear(content);
|
||||
Utils_.db.splitters.get("SC1").position = SC1.getDividerLocation();
|
||||
UI_.Clear(content);
|
||||
content.add(editorBackground);
|
||||
}
|
||||
@Override
|
||||
public void ExpandMessages() {
|
||||
CommonUI.Clear(content);
|
||||
UI_.Clear(content);
|
||||
SC1.setLeftComponent(editorBackground);
|
||||
content.add(SC1);
|
||||
SC1.setDividerLocation(CommonUtils.db.splitters.get("SC1").position);
|
||||
SC1.setDividerLocation(Utils_.db.splitters.get("SC1").position);
|
||||
SC1.updateUI();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user