no message
This commit is contained in:
@@ -224,8 +224,9 @@ public class Global {
|
||||
public static void NormalMode(int port) throws Exception {
|
||||
//-------------------------------->>
|
||||
UI_.active = true;
|
||||
UI_.setTheme(new LightSPFEditorTheme());
|
||||
mainModule = new MainModule();
|
||||
mainModule.Init();
|
||||
//--
|
||||
CheckVisualiserDirectories();
|
||||
CreateLogAtComponentsPath();
|
||||
//-
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.GlobalData.CompilerEnvironment.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Tables.DBObjectEditor;
|
||||
import Common.Visual.UI_;
|
||||
@@ -7,7 +8,7 @@ import _VisualDVM.GlobalData.CompilerEnvironment.CompilerEnvironment;
|
||||
public class CompilerEnvironmentValueEditor extends DBObjectEditor<CompilerEnvironment> {
|
||||
@Override
|
||||
public void Action() {
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
setText(value.value.isEmpty() ? "не задано" : value.value);
|
||||
//-
|
||||
ComboTextDialog dialog = new ComboTextDialog() {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.GlobalData.CompilerEnvironment.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Tables.DBObjectRenderer;
|
||||
import Common.Visual.UI_;
|
||||
@@ -8,7 +9,7 @@ public class CompilerEnvironmentValueRenderer extends DBObjectRenderer {
|
||||
public void Display() {
|
||||
if (value != null) {
|
||||
CompilerEnvironment environment = (CompilerEnvironment) value;
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
setText(environment.value.isEmpty() ? "не задано" : environment.value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.GlobalData.CompilerOption.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Tables.DBObjectRenderer;
|
||||
import Common.Visual.UI_;
|
||||
@@ -9,10 +10,10 @@ public class CompilerOptionParameterNameRenderer extends DBObjectRenderer {
|
||||
if (value != null) {
|
||||
CompilerOption option = (CompilerOption) value;
|
||||
if (option.hasParameter()) {
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreePlain));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreePlain));
|
||||
setText(option.parameterName);
|
||||
} else {
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.UnknownState));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.UnknownState));
|
||||
setText("нет");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.GlobalData.CompilerOption.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Tables.DBObjectEditor;
|
||||
import Common.Visual.UI_;
|
||||
@@ -8,7 +9,7 @@ public class CompilerOptionParameterValueEditor extends DBObjectEditor<CompilerO
|
||||
@Override
|
||||
public void Action() {
|
||||
if (value.hasParameter()) {
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
//-
|
||||
setText(value.parameterValue.isEmpty() ? "не задано" : value.parameterValue);
|
||||
//-
|
||||
@@ -22,7 +23,7 @@ public class CompilerOptionParameterValueEditor extends DBObjectEditor<CompilerO
|
||||
setText(value.parameterValue.isEmpty() ? "не задано" : value.parameterValue);
|
||||
}
|
||||
} else {
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.UnknownState));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.UnknownState));
|
||||
setText("нет");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.GlobalData.CompilerOption.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Tables.DBObjectRenderer;
|
||||
import Common.Visual.UI_;
|
||||
@@ -9,10 +10,10 @@ public class CompilerOptionParameterValueRenderer extends DBObjectRenderer {
|
||||
if (value != null) {
|
||||
CompilerOption option = (CompilerOption) value;
|
||||
if (option.hasParameter()) {
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
setText(option.parameterValue.isEmpty() ? "не задано" : option.parameterValue);
|
||||
} else {
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.UnknownState));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.UnknownState));
|
||||
setText("нет");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package _VisualDVM.GlobalData;
|
||||
import Common.Database.VisualiserDatabase;
|
||||
import Common.MainModule_;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
@@ -89,6 +90,8 @@ public class GlobalDatabase extends VisualiserDatabase {
|
||||
//настройки компонент
|
||||
settings.AddAll();
|
||||
runConfigurations.Patch();
|
||||
//---
|
||||
MainModule_.instance.getUI().getFastAccessMenuBar().Refresh();
|
||||
}
|
||||
@Override
|
||||
public PassCode getSynchronizePassCode() {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.GlobalData.RemoteFile.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Trees.StyledTreeCellRenderer;
|
||||
import Common.Visual.UI_;
|
||||
@@ -16,7 +17,7 @@ public class RemoteFileRenderer extends StyledTreeCellRenderer {
|
||||
if (o instanceof RemoteFile) {
|
||||
RemoteFile file = (RemoteFile) o;
|
||||
setText(file.name);
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreePlain));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreePlain));
|
||||
if (file.isDirectory())
|
||||
setIcon(new ImageIcon(getClass().getResource("/icons/Folder.png")));
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ import _VisualDVM.TestingSystem.SAPFOR.SapforPackage.SapforPackage;
|
||||
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
||||
import _VisualDVM.TestingSystem.SAPFOR.ServerSapfor.ServerSapfor;
|
||||
import _VisualDVM.Visual.MainUI;
|
||||
import _VisualDVM.Visual.Syntax.LightSPFEditorTheme;
|
||||
|
||||
import javax.swing.tree.DefaultMutableTreeNode;
|
||||
import java.io.File;
|
||||
|
||||
@@ -14,6 +14,6 @@ public class DropFastAccess extends Pass {
|
||||
}
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
MainModule_.instance.fastAccessMenuBar.Drop();
|
||||
MainModule_.instance.getUI().getFastAccessMenuBar().Drop();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ public class UpdateSetting extends Pass<DBSetting> {
|
||||
break;
|
||||
case FastAccessPassesCount:
|
||||
if (Global.mainModule.HasProject())
|
||||
MainModule_.instance.fastAccessMenuBar.Refresh();
|
||||
MainModule_.instance.getUI().getFastAccessMenuBar().Refresh();
|
||||
break;
|
||||
case ShowFullArraysDeclarations:
|
||||
if (Global.mainModule.HasProject())
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.ProjectData.Files.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -41,7 +42,7 @@ public class FilesHyperlinksPanel extends JPanel {
|
||||
}
|
||||
});
|
||||
Hyperlinks.setLayoutOrientation(JList.VERTICAL);
|
||||
Hyperlinks.setFont(UI_.getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
Hyperlinks.setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
add(Hyperlinks, BorderLayout.CENTER);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.ProjectData.Files.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Trees.StyledTreeCellRenderer;
|
||||
import Common.Visual.UI_;
|
||||
@@ -23,7 +24,7 @@ public class FilesTreeCellRenderer extends StyledTreeCellRenderer {
|
||||
File dir = (File) o;
|
||||
setIcon(new ImageIcon(getClass().getResource("/icons/Folder.png")));
|
||||
setText(dir.getName());
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreePlain));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreePlain));
|
||||
} else if (o instanceof DBProjectFile) {
|
||||
DBProjectFile file = (DBProjectFile) o;
|
||||
if (Global.files_multiselection) {
|
||||
@@ -32,8 +33,8 @@ public class FilesTreeCellRenderer extends StyledTreeCellRenderer {
|
||||
setIcon(file.GetIcon());
|
||||
}
|
||||
setText(file.file.getName());
|
||||
if (file.IsMain()) setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreeBold));
|
||||
else setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreePlain));
|
||||
if (file.IsMain()) setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreeBold));
|
||||
else setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreePlain));
|
||||
if (file.state.equals(FileState.Excluded)) {
|
||||
Map attributes = getFont().getAttributes();
|
||||
attributes.put(TextAttribute.STRIKETHROUGH, TextAttribute.STRIKETHROUGH_ON);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.ProjectData.Project.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Selectable;
|
||||
import Common.Visual.Trees.StyledTreeCellRenderer;
|
||||
@@ -41,7 +42,7 @@ public class VersionsTreeCellRenderer extends StyledTreeCellRenderer {
|
||||
}
|
||||
}
|
||||
setForeground(tree.getForeground());
|
||||
setFont(UI_.getTheme().Fonts.get(
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(
|
||||
version.isNew ? VisualiserFonts.NewVersion : VisualiserFonts.TreePlain));
|
||||
setText(version.getTitle());
|
||||
return this;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.ProjectData.SapforData.Arrays.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Tables.RendererCell;
|
||||
import Common.Visual.UI_;
|
||||
@@ -14,7 +15,8 @@ public class DimensionRenderer extends RendererCell<TemplateDimension> {
|
||||
public void Display() {
|
||||
if (value != null) {
|
||||
setText(value.state.getMaskDescription());
|
||||
setFont(value.isBlocked() ? UI_.getTheme().Fonts.get(VisualiserFonts.Disabled) : UI_.getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
setFont(value.isBlocked() ? MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Disabled) :
|
||||
MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.ProjectData.SapforData.Arrays.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Tables.DBObjectEditor;
|
||||
import Common.Visual.UI_;
|
||||
@@ -17,7 +18,7 @@ public class DimensionStateChanger extends DBObjectEditor<TemplateDimension> {
|
||||
}
|
||||
@Override
|
||||
public void Action() {
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Hyperlink));
|
||||
value.SwitchState();
|
||||
setText(value.state.getMaskDescription());
|
||||
UI.getVersionsWindow().getVariantsWindow().ShowFilteredVariantsCount();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.ProjectData.SapforData.Arrays.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Trees.StyledTreeCellRenderer;
|
||||
import Common.Visual.UI_;
|
||||
@@ -14,9 +15,9 @@ public class RulesTreeCellRenderer extends StyledTreeCellRenderer {
|
||||
super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
|
||||
Object o = ((DefaultMutableTreeNode) value).getUserObject();
|
||||
if (o instanceof String) {
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.Distribution));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Distribution));
|
||||
} else if (o instanceof ParallelRegion)
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreeItalic));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreeItalic));
|
||||
setForeground(tree.getForeground());
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.Repository.Component;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Menus.DataMenuBar;
|
||||
import Common.Visual.UI_;
|
||||
@@ -12,7 +13,7 @@ public class ComponentsMenuBar extends DataMenuBar {
|
||||
new VisualiserMenu(
|
||||
"Восстановление предыдущей версии компонента", "/icons/Resurrect.png") {
|
||||
{
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.Menu));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Menu));
|
||||
add(Global.mainModule.getPass(PassCode.ResurrectComponent).createMenuItem());
|
||||
add(Global.mainModule.getPass(PassCode.ResurrectComponentFromServer).createMenuItem());
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.TestingSystem.Common;
|
||||
import Common.MainModule_;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Controls.MenuBarButton;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
@@ -81,7 +82,7 @@ public class TestingBar extends VisualiserMenuBar {
|
||||
});
|
||||
add(new JLabel(" сек ") {
|
||||
{
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreeItalic));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreeItalic));
|
||||
}
|
||||
});
|
||||
addSeparator();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.TestingSystem.SAPFOR.SapforSettings.UI;
|
||||
import Common.MainModule_;
|
||||
import Common.Visual.Tables.StyledCellLabel;
|
||||
import Common.Visual.UI_;
|
||||
import Common.Visual.Windows.Dialog.DialogFields;
|
||||
@@ -21,7 +22,7 @@ public class SapforSettingsCommandFields implements DialogFields {
|
||||
JLabel res = new StyledCellLabel();
|
||||
res.setText(value.getDescription());
|
||||
res.setBackground(isSelected ?
|
||||
UI_.getTheme().selection_background : UI_.getTheme().background
|
||||
MainModule_.instance.getUI().getTheme().selection_background : MainModule_.instance.getUI().getTheme().background
|
||||
);
|
||||
return res;
|
||||
});
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.Visual.Editor;
|
||||
import Common.MainModule_;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Menus.StyledPopupMenu;
|
||||
import Common.Visual.Menus.TextEditorMenu;
|
||||
@@ -129,7 +130,7 @@ public class BaseEditor extends RSyntaxTextArea implements ThemeElement, DialogF
|
||||
@Override
|
||||
public void applyTheme() {
|
||||
float font_size = (float) getFont().getSize();
|
||||
((SPFEditorTheme) UI_.getTheme()).getEditorTheme().apply(this);
|
||||
((SPFEditorTheme) MainModule_.instance.getUI().getTheme()).getEditorTheme().apply(this);
|
||||
setFont(getFont().deriveFont(font_size));
|
||||
menu.applyTheme();
|
||||
//меню связано с редактором. поэтому тема меняется только вместе с ним.
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
package _VisualDVM.Visual;
|
||||
import Common.Visual.UIModule_;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Visual.Syntax.LightSPFEditorTheme;
|
||||
public class MainUI extends UIModule_ {
|
||||
public MainUI(){
|
||||
setTheme(new LightSPFEditorTheme());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.Visual.Menus.FastAccessMenuBar;
|
||||
import Common.MainModule_;
|
||||
import Common.Passes.Pass;
|
||||
import Common.Visual.UI_;
|
||||
import _VisualDVM.Global;
|
||||
@@ -8,9 +9,6 @@ import _VisualDVM.Visual.Menus.VisualiserMenuBar;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
public class FastAccessMenuBar extends VisualiserMenuBar {
|
||||
public FastAccessMenuBar() {
|
||||
Refresh();
|
||||
}
|
||||
@Override
|
||||
public void setSizeLimits() {
|
||||
//если задавать PreffredSize 0, скролл НЕ РАБОТАЕТ. Магия!
|
||||
@@ -26,8 +24,8 @@ public class FastAccessMenuBar extends VisualiserMenuBar {
|
||||
public void Refresh() {
|
||||
Drop();
|
||||
int i = 1;
|
||||
for (Pass pass : Global.mainModule.getFirstAccessPasses()) {
|
||||
showPass(pass);
|
||||
for (Object pass : MainModule_.instance.getFirstAccessPasses()) {
|
||||
showPass((Pass) pass);
|
||||
++i;
|
||||
if (i > ((Global.mainModule.getDb()).settings.get(SettingName.FastAccessPassesCount).toInt32())) break;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.Visual.Menus;
|
||||
import Common.MainModule_;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.UI_;
|
||||
@@ -10,7 +11,7 @@ public class PassesSubMenu extends JMenu {
|
||||
public PassesSubMenu(String title, String icon, PassCode... passes) {
|
||||
super(title);
|
||||
setIcon(Utils_.getIcon(icon));
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.Menu));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Menu));
|
||||
for (PassCode code : passes) {
|
||||
add(Global.mainModule.getPass(code).createMenuItem());
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.Visual.Menus.ProjectMenuBar;
|
||||
import Common.MainModule_;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.UI_;
|
||||
@@ -19,7 +20,7 @@ public class ProjectViewMenu extends VisualiserMenu {
|
||||
JMenuItem m = new JMenuItem(view.getDescription()) {
|
||||
{
|
||||
setIcon(Utils_.getIcon(view.getIcon()));
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreeItalic));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreeItalic));
|
||||
addActionListener(e -> {
|
||||
Global.mainModule.set(Current.ProjectView, view);
|
||||
UI.getMainWindow().getProjectWindow().ShowProjectView();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.Visual.Menus;
|
||||
import Common.MainModule_;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.UI_;
|
||||
@@ -10,7 +11,7 @@ public class PropertiesSubmenu extends JMenu {
|
||||
super(title);
|
||||
if (icon != null)
|
||||
setIcon(Utils_.getIcon(icon));
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.Menu));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Menu));
|
||||
for (String name : settings) {
|
||||
Global.properties.addFlagMenuItem(this, name);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.Visual.Menus;
|
||||
import Common.MainModule_;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.UI_;
|
||||
@@ -11,7 +12,7 @@ public class SettingsSubmenu extends JMenu {
|
||||
super(title);
|
||||
if (icon != null)
|
||||
setIcon(Utils_.getIcon(icon));
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.Menu));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.Menu));
|
||||
for (SettingName c : settings) {
|
||||
add((Global.mainModule.getDb()).settings.get(c).getMenuItem());
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.Visual.Menus;
|
||||
import Common.MainModule_;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.UI_;
|
||||
@@ -13,7 +14,7 @@ public class VisualiserMenu extends JMenu {
|
||||
setToolTipText(text);
|
||||
if (textVisible)
|
||||
setText(text);
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreeItalic));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreeItalic));
|
||||
if (!iconPath.isEmpty())
|
||||
setIcon(Utils_.getIcon(iconPath));
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM.Visual.Menus;
|
||||
import Common.MainModule_;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.UI_;
|
||||
@@ -37,7 +38,7 @@ public class VisualiserMenuBar extends JToolBar {
|
||||
public JLabel addLabel(String text_in, String icon_path_in) {
|
||||
JLabel res = new JLabel(text_in) {
|
||||
{
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreeItalic));
|
||||
setFont(MainModule_.instance.getUI().getTheme().Fonts.get(VisualiserFonts.TreeItalic));
|
||||
if (icon_path_in != null) {
|
||||
setIcon(Utils_.getIcon(icon_path_in));
|
||||
}
|
||||
|
||||
@@ -127,7 +127,6 @@ public class UI {
|
||||
testingBar = new TestingBar();
|
||||
credentialsBar = new CredentialsBar();
|
||||
versionsMenuBar = new VersionsMenuBar();
|
||||
MainModule_.instance.fastAccessMenuBar = new FastAccessMenuBar();
|
||||
//---------------------------------------------------->>
|
||||
UI_.menuBars.put(BugReportsDBTable.class, new BugReportsMenuBar());
|
||||
UI_.menuBars.put(SubscriberWorkspaceDBTable.class, new SubscriberWorkspacesMenuBar());
|
||||
|
||||
@@ -55,7 +55,7 @@ public class ProjectForm implements FormWithSplitters, ProjectWindow {
|
||||
functionsFormPanel.add((functionsForm = new FunctionsForm()).getContent());
|
||||
analysisFormPanel.add((analysisForm = new AnalysisForm()).getContent());
|
||||
//-
|
||||
FastAccessScroll = new JScrollPane(MainModule_.instance.fastAccessMenuBar) {
|
||||
FastAccessScroll = new JScrollPane(MainModule_.instance.getUI().getFastAccessMenuBar()) {
|
||||
{
|
||||
getHorizontalScrollBar().setPreferredSize(new Dimension(0, 10));
|
||||
setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
|
||||
|
||||
Reference in New Issue
Block a user