本文整理汇总了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);
}
}
示例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();
}
}
示例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();
}
}
示例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;
}
}
示例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());
}
}
}
示例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();
}
}
示例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;
}
}
示例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");
}
}
示例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");
}
示例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());
}
}
示例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());
}
}