Skip to content

Instantly share code, notes, and snippets.

@code-twister
Created January 8, 2018 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save code-twister/aab5ce8e44508b033a22dba7c2fc0c08 to your computer and use it in GitHub Desktop.
Save code-twister/aab5ce8e44508b033a22dba7c2fc0c08 to your computer and use it in GitHub Desktop.
Test project component for Android Studio plugin
package com.example.plugin;
import com.intellij.openapi.components.ProjectComponent;
import org.jetbrains.annotations.NotNull;
public class TestProjectComponent implements ProjectComponent {
private static final String TEST_PROJECT_COMPONENT_NAME = "TestProjectComponent";
@Override
public void projectOpened() {}
@Override
public void projectClosed() {}
@Override
public void initComponent() {
System.out.println("THIS IS A TEST");
}
@Override
public void disposeComponent() {}
@NotNull
@Override
public String getComponentName() {
return TEST_PROJECT_COMPONENT_NAME;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment