Search in sources :

Example 1 with BuckEventsConsumer

use of com.facebook.buck.intellij.ideabuck.ui.BuckEventsConsumer in project buck by facebook.

the class BuckModule method projectOpened.

@Override
public void projectOpened() {
    projectClosed = new AtomicBoolean(false);
    BuckFileUtil.setBuckFileType();
    // connect to the Buck client
    BuckClientManager.getOrCreateClient(mProject, mEventHandler).connect();
    if (!UISettings.getInstance().SHOW_MAIN_TOOLBAR) {
        BuckPluginNotifications.notifyActionToolbar(mProject);
    }
    mBuckEventsConsumer = new BuckEventsConsumer(mProject);
    PsiDocumentManager manager = PsiDocumentManager.getInstance(mProject);
    manager.addListener(new BuckAutoDepsContributor(mProject));
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) BuckEventsConsumer(com.facebook.buck.intellij.ideabuck.ui.BuckEventsConsumer) BuckAutoDepsContributor(com.facebook.buck.intellij.ideabuck.autodeps.BuckAutoDepsContributor) PsiDocumentManager(com.intellij.psi.PsiDocumentManager)

Aggregations

BuckAutoDepsContributor (com.facebook.buck.intellij.ideabuck.autodeps.BuckAutoDepsContributor)1 BuckEventsConsumer (com.facebook.buck.intellij.ideabuck.ui.BuckEventsConsumer)1 PsiDocumentManager (com.intellij.psi.PsiDocumentManager)1 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1