當前位置: 首頁>>代碼示例>>Java>>正文


Java StatusBar.removeWidget方法代碼示例

本文整理匯總了Java中com.intellij.openapi.wm.StatusBar.removeWidget方法的典型用法代碼示例。如果您正苦於以下問題:Java StatusBar.removeWidget方法的具體用法?Java StatusBar.removeWidget怎麽用?Java StatusBar.removeWidget使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.intellij.openapi.wm.StatusBar的用法示例。


在下文中一共展示了StatusBar.removeWidget方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: projectOpened

import com.intellij.openapi.wm.StatusBar; //導入方法依賴的package包/類
public void projectOpened() {
    this.checkProject();

    // attach toolbar popup (right bottom)
    StatusBar statusBar = WindowManager.getInstance().getStatusBar(this.project);
    if(statusBar == null) {
        return;
    }

    // clean bar on project open; we can have multiple projects att some time
    if(statusBar.getWidget(SymfonyProfilerWidget.ID) != null) {
        statusBar.removeWidget(SymfonyProfilerWidget.ID);
    }

    if(isEnabled()) {
        SymfonyProfilerWidget symfonyProfilerWidget = new SymfonyProfilerWidget(this.project);
        statusBar.addWidget(symfonyProfilerWidget);
    }

}
 
開發者ID:Haehnchen,項目名稱:idea-php-symfony2-plugin,代碼行數:21,代碼來源:Symfony2ProjectComponent.java

示例2: uninstall

import com.intellij.openapi.wm.StatusBar; //導入方法依賴的package包/類
private void uninstall() {
    StatusBar statusBar = WindowManager.getInstance().getStatusBar(myProject);
    if (statusBar != null) {
        statusBar.removeWidget(myStatusWidget.ID());
        myStatusWidget.uninstalled();
    }
}
 
開發者ID:WesleyElliott,項目名稱:IntelliJ-TimeTracker,代碼行數:8,代碼來源:StatusBarManager.java

示例3: uninstallGtmWidget

import com.intellij.openapi.wm.StatusBar; //導入方法依賴的package包/類
private void uninstallGtmWidget() {
    StatusBar statusBar = WindowManager.getInstance().getStatusBar(myProject);
    if (statusBar != null) {
        statusBar.removeWidget(myStatusWidget.ID());
        myStatusWidget.uninstalled();
    }

}
 
開發者ID:git-time-metric,項目名稱:gtm-jetbrains-plugin,代碼行數:9,代碼來源:GTMProject.java

示例4: deactivate

import com.intellij.openapi.wm.StatusBar; //導入方法依賴的package包/類
@CalledInAwt
public void deactivate() {
  if (!isAlreadyShown) return;
  StatusBar statusBar = WindowManager.getInstance().getStatusBar(myProject);
  if (null != statusBar) {
    statusBar.removeWidget(ID());
    isAlreadyShown = false;
  }
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:10,代碼來源:HgIncomingOutgoingWidget.java

示例5: removeWidgets

import com.intellij.openapi.wm.StatusBar; //導入方法依賴的package包/類
private static void removeWidgets(final Project project) {
    final StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
    if (statusBar != null) {
        // Remove build widget
        if (statusBar.getWidget(BuildWidget.getID()) != null) {
            statusBar.removeWidget(BuildWidget.getID());
        }
    }
}
 
開發者ID:Microsoft,項目名稱:vso-intellij,代碼行數:10,代碼來源:StatusBarManager.java

示例6: uninstall

import com.intellij.openapi.wm.StatusBar; //導入方法依賴的package包/類
private void uninstall() {
  StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
  if (statusBar != null) {
    statusBar.removeWidget(statusWidget.ID());
    statusWidget.uninstalled();
  }
}
 
開發者ID:zielu,項目名稱:GitToolBox,代碼行數:8,代碼來源:StatusBarManager.java

示例7: deactivate

import com.intellij.openapi.wm.StatusBar; //導入方法依賴的package包/類
public void deactivate() {
  if (!isAlreadyShown) return;
  StatusBar statusBar = WindowManager.getInstance().getStatusBar(myProject);
  if (null != statusBar) {
    statusBar.removeWidget(ID());
    isAlreadyShown = false;
  }
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:9,代碼來源:HgIncomingOutgoingWidget.java

示例8: projectClosed

import com.intellij.openapi.wm.StatusBar; //導入方法依賴的package包/類
@Override
public void projectClosed() {

    StatusBar statusBar = WindowManager.getInstance().getStatusBar(myProject);
    if (statusBar != null) {
        statusBar.removeWidget("FileLanguage");
    }
}
 
開發者ID:mfedko,項目名稱:idea-file-language,代碼行數:9,代碼來源:FileLanguageProjectComponent.java

示例9: projectClosed

import com.intellij.openapi.wm.StatusBar; //導入方法依賴的package包/類
@Override
public void projectClosed() {
    if (myBranchWidget != null && !ApplicationManager.getApplication().isHeadlessEnvironment()) {
        StatusBar statusBar = WindowManager.getInstance().getStatusBar(myProject);
        if (statusBar != null) {
            statusBar.removeWidget(myBranchWidget.ID());
        }
    }
    LOG.debug("Project closed");
}
 
開發者ID:zielu,項目名稱:SVNToolBox,代碼行數:11,代碼來源:SvnToolBoxProject.java

示例10: uninstall

import com.intellij.openapi.wm.StatusBar; //導入方法依賴的package包/類
void uninstall() {
  final StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
  if (statusBar != null) {
    statusBar.removeWidget(mtStatusWidget.ID());
  }
}
 
開發者ID:ChrisRM,項目名稱:material-theme-jetbrains,代碼行數:7,代碼來源:MTStatusBarManager.java

示例11: removeStatusBarWidget

import com.intellij.openapi.wm.StatusBar; //導入方法依賴的package包/類
public static void removeStatusBarWidget(@NotNull Project project, @NotNull StatusBarWidget widget) {
  StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
  if (statusBar != null) {
    statusBar.removeWidget(widget.ID());
  }
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:7,代碼來源:DvcsUtil.java


注:本文中的com.intellij.openapi.wm.StatusBar.removeWidget方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。