mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-135340 When you create component (New -> project component) no @Override annotations inserted.
This commit is contained in:
@@ -5,6 +5,8 @@ import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
|
||||
#parse("File Header.java")
|
||||
public class ${NAME} extends AnAction {
|
||||
|
||||
@Override
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
// TODO: insert action logic here
|
||||
}
|
||||
|
||||
@@ -8,14 +8,17 @@ public class ${NAME} implements ApplicationComponent {
|
||||
public ${NAME}() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initComponent() {
|
||||
// TODO: insert component initialization logic here
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disposeComponent() {
|
||||
// TODO: insert component disposal logic here
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getComponentName() {
|
||||
return "${NAME}";
|
||||
|
||||
@@ -9,27 +9,33 @@ public class ${NAME} implements ModuleComponent {
|
||||
public ${NAME}(Module module) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initComponent() {
|
||||
// TODO: insert component initialization logic here
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disposeComponent() {
|
||||
// TODO: insert component disposal logic here
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getComponentName() {
|
||||
return "${NAME}";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void projectOpened() {
|
||||
// called when project is opened
|
||||
}
|
||||
|
||||
@Override
|
||||
public void projectClosed() {
|
||||
// called when project is being closed
|
||||
}
|
||||
|
||||
@Override
|
||||
public void moduleAdded() {
|
||||
// Invoked when the module corresponding to this component instance has been completely
|
||||
// loaded and added to the project.
|
||||
|
||||
@@ -9,23 +9,28 @@ public class ${NAME} implements ProjectComponent {
|
||||
public ${NAME}(Project project) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initComponent() {
|
||||
// TODO: insert component initialization logic here
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disposeComponent() {
|
||||
// TODO: insert component disposal logic here
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getComponentName() {
|
||||
return "${NAME}";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void projectOpened() {
|
||||
// called when project is opened
|
||||
}
|
||||
|
||||
@Override
|
||||
public void projectClosed() {
|
||||
// called when project is being closed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user