Fix error when trying to edit TeaVM tab in module configuration

This commit is contained in:
Alexey Andreev 2016-02-19 23:50:39 +03:00
parent 8f734ba3b5
commit 0f9014103e
2 changed files with 1 additions and 33 deletions

View File

@ -24,7 +24,7 @@ import org.jetbrains.annotations.Nullable;
import org.teavm.idea.jps.model.TeaVMJpsConfiguration; import org.teavm.idea.jps.model.TeaVMJpsConfiguration;
@State(name = "teavm", storages = @Storage(id = "other", file = "$MODULE_FILE$")) @State(name = "teavm", storages = @Storage(id = "other", file = "$MODULE_FILE$"))
public class TeaVMConfigurationStorage implements PersistentStateComponent<TeaVMJpsConfiguration>, ModuleComponent { public class TeaVMConfigurationStorage implements PersistentStateComponent<TeaVMJpsConfiguration> {
private TeaVMJpsConfiguration state = new TeaVMJpsConfiguration(); private TeaVMJpsConfiguration state = new TeaVMJpsConfiguration();
@Nullable @Nullable
@ -37,30 +37,4 @@ public class TeaVMConfigurationStorage implements PersistentStateComponent<TeaVM
public void loadState(TeaVMJpsConfiguration state) { public void loadState(TeaVMJpsConfiguration state) {
this.state.applyChanges(state); this.state.applyChanges(state);
} }
@Override
public void projectOpened() {
}
@Override
public void projectClosed() {
}
@Override
public void moduleAdded() {
}
@Override
public void initComponent() {
}
@Override
public void disposeComponent() {
}
@NotNull
@Override
public String getComponentName() {
return "TeaVM configuration";
}
} }

View File

@ -23,10 +23,4 @@
serviceImplementation="org.teavm.idea.TeaVMConfigurationStorage"/> serviceImplementation="org.teavm.idea.TeaVMConfigurationStorage"/>
<compileServer.plugin classpath="jps/teavm-jps-plugin.jar;teavm-all.jar"/> <compileServer.plugin classpath="jps/teavm-jps-plugin.jar;teavm-all.jar"/>
</extensions> </extensions>
<module-components>
<component>
<implementation-class>org.teavm.idea.TeaVMConfigurationStorage</implementation-class>
</component>
</module-components>
</idea-plugin> </idea-plugin>