mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[dynamic plugins] text should fit (#IDEA-257906, IDEA-257857) fixed
GitOrigin-RevId: 9a2e1d08e1e34b48ea5ff106b1ea52f010fe1129
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9e277df228
commit
2b620276e0
@@ -1385,7 +1385,7 @@ plugins.configurable.disabled.for.all.projects=Disabled for all projects
|
||||
plugins.configurable.disable.for.current.project=Disable for Current Project
|
||||
plugins.configurable.disable.for.current.project.only=Disable for Current Project Only
|
||||
plugins.configurable.disabled.for.current.project=Disabled for the current project
|
||||
plugins.configurable.loaded.for.projects=<html>{0}.<br>Loaded because enabled for another open project:<br>{1}</html>
|
||||
plugins.configurable.loaded.for.projects=<html>{0}.<br>Loaded due to being enabled for:<br>{1}</html>
|
||||
plugins.configurable.show=Show
|
||||
plugins.configurable.search.options=Search Options
|
||||
plugins.configurable.other.bundled=Other Tools
|
||||
|
||||
+3
-1
@@ -46,6 +46,7 @@ import java.awt.event.FocusAdapter;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
@@ -290,6 +291,7 @@ public class PluginDetailsPageComponent extends MultiPanel {
|
||||
myAuthor = new LinkPanel(panel1, false, true, null, TextHorizontalLayout.FIX_LABEL);
|
||||
|
||||
myEnabledForProject = new JLabel();
|
||||
myEnabledForProject.add(createDescriptionComponent(null));
|
||||
myEnabledForProject.setHorizontalTextPosition(SwingConstants.LEFT);
|
||||
myEnabledForProject.setForeground(ListPluginComponent.GRAY_COLOR);
|
||||
setFont(myEnabledForProject);
|
||||
@@ -808,7 +810,7 @@ public class PluginDetailsPageComponent extends MultiPanel {
|
||||
}
|
||||
|
||||
private void updateEnabledForProject() {
|
||||
ProjectDependentPluginEnabledState state = myPluginModel.getProjectDependentState(myPlugin);
|
||||
ProjectDependentPluginEnabledState state = myPluginModel.getProjectDependentState(Objects.requireNonNull(myPlugin));
|
||||
myEnabledForProject.setText(state.toString());
|
||||
myEnabledForProject.setIcon(state.getIcon());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user