mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix error when trying to edit TeaVM tab in module configuration
This commit is contained in:
parent
8f734ba3b5
commit
0f9014103e
|
@ -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";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue
Block a user