commit
ff03c9cd5d
@ -3,6 +3,15 @@
|
||||
# easy-i18n Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Added
|
||||
- Support for IntelliJ 2021.2
|
||||
|
||||
### Changed
|
||||
- Replace deprecated api methods
|
||||
|
||||
### Fixed
|
||||
- Warning for unset target element inside tree-view toolbar
|
||||
|
||||
## [1.4.0]
|
||||
### THANKS FOR OVER 1000 DOWNLOADS SO FAR!
|
||||
|
||||
|
@ -3,15 +3,19 @@
|
||||
|
||||
pluginGroup = de.marhali.easyi18n
|
||||
pluginName = easy-i18n
|
||||
pluginVersion = 1.4.0
|
||||
pluginVersion = 1.4.1
|
||||
|
||||
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
|
||||
# for insight into build numbers and IntelliJ Platform versions.
|
||||
pluginSinceBuild = 202
|
||||
pluginUntilBuild = 211.*
|
||||
pluginUntilBuild = 212.*
|
||||
|
||||
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
|
||||
# See https://jb.gg/intellij-platform-builds-list for available build versions
|
||||
pluginVerifierIdeVersions = 2020.2.4, 2020.3.4, 2021.1.1
|
||||
pluginVerifierIdeVersions = 2020.2.4, 2020.3.4, 2021.2
|
||||
|
||||
platformType = IC
|
||||
platformVersion = 2021.1.3
|
||||
platformVersion = 2021.2
|
||||
platformDownloadSources = true
|
||||
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
|
||||
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
|
||||
|
@ -1,10 +1,10 @@
|
||||
package de.marhali.easyi18n.service;
|
||||
|
||||
import com.intellij.openapi.components.PersistentStateComponent;
|
||||
import com.intellij.openapi.components.ServiceManager;
|
||||
import com.intellij.openapi.components.State;
|
||||
import com.intellij.openapi.project.Project;
|
||||
|
||||
import com.intellij.util.xmlb.XmlSerializerUtil;
|
||||
import de.marhali.easyi18n.model.SettingsState;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@ -17,8 +17,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
public class SettingsService implements PersistentStateComponent<SettingsState> {
|
||||
|
||||
public static SettingsService getInstance(Project project) {
|
||||
ServiceManager.getService(project, SettingsService.class).initializeComponent();
|
||||
return ServiceManager.getService(project, SettingsService.class);
|
||||
return project.getService(SettingsService.class);
|
||||
}
|
||||
|
||||
private SettingsState state;
|
||||
|
@ -2,6 +2,7 @@ package de.marhali.easyi18n.tabs;
|
||||
|
||||
import com.intellij.ide.projectView.PresentationData;
|
||||
import com.intellij.openapi.actionSystem.ActionManager;
|
||||
import com.intellij.openapi.actionSystem.ActionToolbar;
|
||||
import com.intellij.openapi.actionSystem.DefaultActionGroup;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.ui.components.JBScrollPane;
|
||||
@ -68,10 +69,11 @@ public class TreeView implements DataSynchronizer {
|
||||
group.add(collapse);
|
||||
group.add(expand);
|
||||
|
||||
JComponent actionToolbar = ActionManager.getInstance()
|
||||
.createActionToolbar("TranslationsActions", group, false).getComponent();
|
||||
ActionToolbar actionToolbar = ActionManager.getInstance()
|
||||
.createActionToolbar("TranslationsActions", group, false);
|
||||
|
||||
toolBarPanel.add(actionToolbar);
|
||||
actionToolbar.setTargetComponent(toolBarPanel);
|
||||
toolBarPanel.add(actionToolbar.getComponent());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user