/*
 * Copyright 2000-2011 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.intellij.openapi.startup;

import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;

/**
 * @author Dmitry Avdeev
 *
 * This may implement {@link com.intellij.openapi.project.DumbAware}.
 */
public interface StartupActivity {

  ExtensionPointName<StartupActivity> POST_STARTUP_ACTIVITY = ExtensionPointName.create("com.intellij.postStartupActivity");

  void runActivity(@NotNull Project project);
}

@@ -815,19 +815,30 @@
 v%0A *
-%0A * This ma
+ %3Cp%3E%0A * If the activit
 y im
@@ -844,16 +844,17 @@
 mplement
+s
  %7B@link 
@@ -892,17 +892,166 @@
 mbAware%7D
-.
+ it will be started in a pooled thread under 'Loading Project' dialog,%0A * otherwise it will be started in the dispatch thread after the initialization
 %0A */%0Apub

update javadoc