From f89cf0ec10f03e807d4aeab726c80c237c3529fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 14 Apr 2022 10:57:19 +0200 Subject: [PATCH] StartupActivity: javadoc cleanup GitOrigin-RevId: 6ef8047e179663c997f984f42c8b5d552662fcea --- .../openapi/startup/StartupActivity.java | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java b/platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java index 4cc9c6ce5f3d..197b1512053b 100644 --- a/platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java +++ b/platform/core-api/src/com/intellij/openapi/startup/StartupActivity.java @@ -1,4 +1,4 @@ -// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.openapi.startup; import com.intellij.ide.util.RunOnceUtil; @@ -8,19 +8,18 @@ import org.jetbrains.annotations.NotNull; /** * Runs an activity on project open. + *

+ * If activity implements {@link com.intellij.openapi.project.DumbAware}, it is executed after project is opened + * on a background thread with no visible progress indicator. Otherwise, it is executed on EDT when indexes are ready. + *

+ *

* See docs for details. * * @see StartupManager * @see RunOnceUtil */ public interface StartupActivity { - /** - * If activity implements {@link com.intellij.openapi.project.DumbAware}, it is executed after project is opened - * on a background thread with no visible progress indicator. Otherwise, it is executed on EDT when indexes are ready. - * - * @see StartupManager#registerPostStartupActivity - * @see DumbAware - */ + ExtensionPointName POST_STARTUP_ACTIVITY = new ExtensionPointName<>("com.intellij.postStartupActivity"); void runActivity(@NotNull Project project); @@ -28,9 +27,12 @@ public interface StartupActivity { /** * Represents a startup activity that should be executed before {@link com.intellij.openapi.project.DumbService} switches to the "smart mode". */ - interface RequiredForSmartMode extends StartupActivity { } + interface RequiredForSmartMode extends StartupActivity { + } - interface DumbAware extends StartupActivity, com.intellij.openapi.project.DumbAware { } + interface DumbAware extends StartupActivity, com.intellij.openapi.project.DumbAware { + } - interface Background extends StartupActivity, com.intellij.openapi.project.DumbAware { } + interface Background extends StartupActivity, com.intellij.openapi.project.DumbAware { + } }