本文整理匯總了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());
}
}