Skip to content

Commit a0f3579

Browse files
committed
support 2101.1, constructor injection (other than for Project) is not allowed for projectConfigurable
1 parent 9e7a782 commit a0f3579

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<idea-plugin version="2">
22
<id>com.millennialmedia.intellibot</id>
33
<name>[email protected]</name>
4-
<version>0.10.143.393</version>
4+
<version>0.10.143.395</version>
55
<vendor email="[email protected]" url="http://www.millennialmedia.com">Millennial Media</vendor>
66

77
<depends>com.intellij.modules.lang</depends>

intellibot.jar

99 Bytes
Binary file not shown.

src/com/millennialmedia/intellibot/ide/config/RobotConfiguration.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.intellij.openapi.options.Configurable;
44
import com.intellij.openapi.options.ConfigurationException;
55
import com.intellij.openapi.options.SearchableConfigurable;
6+
import com.intellij.openapi.project.Project;
67
import org.jetbrains.annotations.Nls;
78
import org.jetbrains.annotations.NotNull;
89
import org.jetbrains.annotations.Nullable;
@@ -29,8 +30,8 @@ public class RobotConfiguration implements SearchableConfigurable, Configurable.
2930
private JSpinner maxTransitiveDepth;
3031
private JCheckBox expandSuperSpaces;
3132

32-
public RobotConfiguration(@NotNull RobotOptionsProvider provider) {
33-
this.provider = provider;
33+
public RobotConfiguration(@NotNull Project project) {
34+
this.provider = RobotOptionsProvider.getInstance(project);
3435
maxTransitiveDepth.setModel(new SpinnerNumberModel(this.provider.maxTransitiveDepth(), 0, 99, 1));
3536
}
3637

0 commit comments

Comments
 (0)