diff --git a/platform/platform-impl/src/com/intellij/openapi/project/DumbModeIndicator.java b/platform/platform-impl/src/com/intellij/openapi/project/DumbModeIndicator.java deleted file mode 100644 index b003a2e98839..000000000000 --- a/platform/platform-impl/src/com/intellij/openapi/project/DumbModeIndicator.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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.project; - -import com.intellij.openapi.components.AbstractProjectComponent; -import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx; -import com.intellij.openapi.ui.popup.BalloonHandler; -import com.intellij.util.Alarm; -import org.jetbrains.annotations.NotNull; - -/** - * @author peter - */ -public class DumbModeIndicator extends AbstractProjectComponent { - private static final String DUMB_MODE_MESSAGE = "Updating project indices...
\n" + - "Refactorings, usage search and some other features will become available after indexing is complete"; - private final Alarm myAlarm; - - public DumbModeIndicator(Project project) { - super(project); - myAlarm = new Alarm(project); - } - - public void projectOpened() { - myProject.getMessageBus().connect().subscribe(DumbService.DUMB_MODE, new DumbService.DumbModeListener() { - boolean myFirstNotification = true; // first dumb mode is always a "forced" dumb mode including initial project scan - BalloonHandler myHandler; - - public void enteredDumbMode() { - final boolean first = myFirstNotification; - myFirstNotification = false; - myAlarm.addRequest(new Runnable() { - public void run() { - myHandler = DumbService.getInstance(myProject).showDumbModeNotification(DUMB_MODE_MESSAGE); - } - }, first? 10000 : 1000); - } - - public void exitDumbMode() { - myAlarm.cancelAllRequests(); - if (myHandler != null) myHandler.hide(); - myHandler = null; - FileEditorManagerEx.getInstanceEx(myProject).refreshIcons(); - } - }); - } - - @NotNull - public String getComponentName() { - return DumbModeIndicator.class.getSimpleName(); - } -} diff --git a/platform/platform-resources/src/componentSets/Platform.xml b/platform/platform-resources/src/componentSets/Platform.xml index 50da64a0f0a5..f83542068109 100644 --- a/platform/platform-resources/src/componentSets/Platform.xml +++ b/platform/platform-resources/src/componentSets/Platform.xml @@ -164,10 +164,6 @@ com.intellij.openapi.vfs.encoding.EncodingProjectManagerImpl - - com.intellij.openapi.project.DumbModeIndicator - - com.intellij.ui.docking.DockManager com.intellij.ui.docking.impl.DockManagerImpl