コード例 #1
0
 public void stackChanged(@Nullable final XStackFrame xStackFrame) {
   AppUIUtil.invokeOnEdt(
       new Runnable() {
         @Override
         public void run() {
           myXTree.stackChanged(xStackFrame);
           ((CardLayout) (myCards.getLayout())).show(myCards, xStackFrame == null ? TREE : X_TREE);
         }
       });
 }
コード例 #2
0
 @Override
 protected void showError(
     @Nullable final String error,
     @Nullable final WebBrowser browser,
     @Nullable final Project project,
     final String title,
     @Nullable final Runnable launchTask) {
   AppUIUtil.invokeOnEdt(
       new Runnable() {
         @Override
         public void run() {
           if (Messages.showYesNoDialog(
                   project,
                   StringUtil.notNullize(error, "Unknown error"),
                   title == null ? IdeBundle.message("browser.error") : title,
                   Messages.OK_BUTTON,
                   IdeBundle.message("button.fix"),
                   null)
               == Messages.NO) {
             final BrowserSettings browserSettings = new BrowserSettings();
             if (ShowSettingsUtil.getInstance()
                 .editConfigurable(
                     project,
                     browserSettings,
                     browser == null
                         ? null
                         : new Runnable() {
                           @Override
                           public void run() {
                             browserSettings.selectBrowser(browser);
                           }
                         })) {
               if (launchTask != null) {
                 launchTask.run();
               }
             }
           }
         }
       },
       project == null ? null : project.getDisposed());
 }