当前位置: 首页>>代码示例>>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;未经允许,请勿转载。