Skip to content

Commit

Permalink
Use ServiceManager instead of getComponent. #128.
Browse files Browse the repository at this point in the history
  • Loading branch information
thepieterdc committed Mar 24, 2020
1 parent 559b47b commit a81e902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies {
}

intellij {
alternativeIdePath '/home/pieter/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/192.6262.12/'
downloadSources false
pluginName 'dodona'
plugins = ['java', 'PythonCore:2019.2.192.5728.98']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

package io.github.thepieterdc.dodona.plugin.toolwindow;

import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.startup.StartupActivity;

Expand All @@ -19,6 +20,7 @@ public class DodonaToolWindowInitialiser implements StartupActivity {
@Override
public void runActivity(final Project project) {
// Determine whether the tool window should be shown now.
project.getComponent(DodonaToolWindowFactory.class).update();
ServiceManager.getService(project, DodonaToolWindowFactory.class)
.update();
}
}

0 comments on commit a81e902

Please sign in to comment.