Examples of StatusBar


Examples of com.intellij.openapi.wm.StatusBar

                        JTextArea area = new JTextArea();
                        area.setOpaque(false);
                        area.setEditable(false);
                        StringBuffer notification = new StringBuffer(statusMessage);
                        area.setText(notification.toString());
                        StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
                        if (statusBar != null)

                        {
                            statusBar.fireNotificationPopup(area, LightColors.GREEN);
                        }
                    }

                }
        );
View Full Code Here

Examples of com.intellij.openapi.wm.StatusBar

                "OptionPane.questionIcon",
                true,
                ctx.project);
        dialog.show();
        if (!dialog.isOK()) {
            StatusBar statusBar = WindowManager.getInstance().getStatusBar(ctx.project);
            if (statusBar != null) {
                statusBar.setInfo(RefactoringBundle.message("press.escape.to.remove.the.highlighting"));
            }
            return false;
        }
        return true;
    }
View Full Code Here

Examples of com.intellij.openapi.wm.StatusBar

        ApplicationManager.getApplication().invokeLater(new Runnable() {
            @Override
            public void run() {
                ApplicationManager.getApplication().runWriteAction(new Runnable() {
                    public void run() {
                        StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
                        if (statusBar == null) {
                            return;
                        }
                        JLabel jLabel = new JLabel(message);
                        statusBar.fireNotificationPopup(jLabel, JBColor.WHITE);
                    }
                });
            }
        });
    }
View Full Code Here

Examples of com.intellij.openapi.wm.StatusBar

        //git repo present
        if (vcsRoots.length>0 && vcsRoots[0].getVcs() instanceof GitVcs){

            myGitflowWidget  = new GitflowWidget(myProject);
            StatusBar statusBar = WindowManager.getInstance().getStatusBar(myProject);
            if (statusBar != null) {
                statusBar.addWidget(myGitflowWidget, "after " + git4idea.ui.branch.GitBranchWidget.class.getName(), myProject);
            }
        }
        else{
            if (myGitflowWidget!=null){
                DvcsUtil.removeStatusBarWidget(myProject, myGitflowWidget);
View Full Code Here

Examples of com.intellij.openapi.wm.StatusBar

        if(!IdeHelper.supportsStatusBar()) {
            return;
        }

        // 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);
        }

    }
View Full Code Here

Examples of com.intellij.openapi.wm.StatusBar

    }
    return false;
  }

  private void showInfoDialog(String text, AnActionEvent e) {
    StatusBar statusBar = WindowManager.getInstance().getStatusBar(DataKeys.PROJECT.getData(e.getDataContext()));

    if (statusBar != null) {
      JBPopupFactory.getInstance()
          .createHtmlTextBalloonBuilder(text, MessageType.INFO, null)
          .setFadeoutTime(10000)
          .createBalloon()
          .show(RelativePoint.getCenterOf(statusBar.getComponent()),
              Balloon.Position.atRight);
    }
  }
View Full Code Here

Examples of com.intellij.openapi.wm.StatusBar

              Balloon.Position.atRight);
    }
  }

  private void showErrorDialog(String text, AnActionEvent e) {
    StatusBar statusBar = WindowManager.getInstance().getStatusBar(DataKeys.PROJECT.getData(e.getDataContext()
    ));

    if (statusBar != null) {
      JBPopupFactory.getInstance()
          .createHtmlTextBalloonBuilder(text, MessageType.ERROR, null)
          .setFadeoutTime(10000)
          .createBalloon()
          .show(RelativePoint.getCenterOf(statusBar.getComponent()),
              Balloon.Position.atRight);
    }
  }
View Full Code Here

Examples of com.intellij.openapi.wm.StatusBar

  private void setStatusBarText(String statusBarText) {
    if (ApplicationManager.getApplication() == null) return; // makes this component work in UIDesigner preview.
    final Project[] projects = ProjectManager.getInstance().getOpenProjects();
    for (Project project : projects) {
      final StatusBar bar = WindowManager.getInstance().getStatusBar(project);
      if (bar != null) {
        bar.setInfo(statusBarText);
      }
    }
  }
View Full Code Here

Examples of com.jidesoft.status.StatusBar

    // General informative messages go here..

    progressStatus = new ProgressStatusBarItem();

    statusBar = new StatusBar();
    statusBar.add(progressStatus, JideBoxLayout.VARY);
    statusBar.add(new TimeStatusBarItem(), JideBoxLayout.FLEXIBLE);
    statusBar.add(memoryStatusBar, JideBoxLayout.FLEXIBLE);

    // The tools panel includes the running tasks, Jython console and log
View Full Code Here

Examples of com.jidesoft.status.StatusBar

      }
    });

    // build statusbar
    statusbar = new StatusBar();
    tooltip = new ProgressStatusBarItem();
    statusbar.add(bsbi);
    statusbar.add(tooltip);
    statusbar.add(new MemoryStatusBarItem());
    statusbar.add(new ResizeStatusBarItem());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.