Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Commit

Permalink
修复由于Java8特性造成的抽象方法异常
Browse files Browse the repository at this point in the history
  • Loading branch information
DevDengChao committed Apr 25, 2017
1 parent f89deca commit 7c836ab
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 8 deletions.
124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 64 additions & 8 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions src/com/wingsofts/mvphelper/gui/MvpHelperConfigPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.intellij.openapi.components.Storage;
import com.intellij.openapi.options.Configurable;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.options.UnnamedConfigurable;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;
import com.wingsofts.mvphelper.biz.config.MvpConfigurable;
Expand Down Expand Up @@ -156,6 +157,18 @@ public void apply() throws ConfigurationException {
suffix = suffixNewValue;
}

/**
* Override this to avoid AbstractMethodException,
* for the IDEA plugin dev-platform use Java 8's feature: default interface
*
* @see UnnamedConfigurable#disposeUIResources()
*/
@Override
public void disposeUIResources() {
//noinspection BoundFieldAssignment
panel = null;
}

/**
* Only available in MvpHelperConfigPanel(project,false)
*/
Expand Down

0 comments on commit 7c836ab

Please sign in to comment.