Examples of BackgroundAction


Examples of com.cedarsoft.spring.rcp.async.BackgroundAction

    ConfirmationDialog dlg = new ConfirmationDialog( title, message ) {
      @Override
      protected void onConfirm() {
        final List<? extends T> objectsToDelete = objectAccess.getElements();

        new BlockingBackgroundActionRunner( SpringSupport.INSTANCE.getActiveApplicationWindow(), new BackgroundAction( idStrategy.getBaseId() + AddRemoveAspect.KEY_DELETE_BEAN ) {
          @Override
          protected boolean confirm() {
            if ( callback != null ) {
              return callback.confirm();
            }
View Full Code Here

Examples of com.cedarsoft.spring.rcp.async.BackgroundAction

    super( commandId );
  }

  @Override
  protected void executeCommand() throws Exception {
    BackgroundAction action = new BackgroundAction( getId() + ".message" ) {
      @Override
      protected void prepare() throws CanceledException {
        AbstractBackgroundCommand.this.prepare();
      }
View Full Code Here

Examples of com.cedarsoft.spring.rcp.async.BackgroundAction

    publishEvent( new LifecycleApplicationEvent( LifecycleApplicationEvent.MODIFIED, object ) );
  }

  public void openEditor( @NotNull final Object editorRoot ) {
    //Prefetch it
    final BlockingBackgroundActionRunner actionRunner = new BlockingBackgroundActionRunner( getApplication().getActiveWindow(), new BackgroundAction( "prefetching.data" ) {
      @Override
      protected void executeInBackground() throws Exception {
        prepareOpenEditor( editorRoot );
      }
View Full Code Here

Examples of com.cedarsoft.spring.rcp.async.BackgroundAction

      }
    }

    getForm().commit();

    new BlockingBackgroundActionRunner( springSupport.getActiveApplicationWindow(), new BackgroundAction( "saving" ) {
      @Override
      protected void executeInBackground() throws Exception {
        String eventType;
        if ( backend.isCreatingNew() ) {
          eventType = LifecycleApplicationEvent.CREATED;
View Full Code Here

Examples of com.jetbrains.heroku.ui.BackgroundAction

                "right:pref, 6dlu, pref, 10dlu, right:pref:g(0.2), 6dlu, pref, 10dlu, pref, 10dlu:g(0.1)", // columns
                "pref, pref, min(pref;100dlu), pref, min(pref;50dlu)"));// rows
        builder.appendSeparator("Heroku Credentials");
        builder.append("API-Key");
        builder.append(tokenField, 3);
        builder.append(new JButton(new BackgroundAction("Check API-Key") {
            public void runActionPerformed(ActionEvent e) {
                String token = getToken();
                if (token.isEmpty()) {
                    Notifications.notifyModalInfo("<html>Please retrieve your API-Key at your <a href=\"https://api.heroku.com/account\">Heroku Account</a></html>","Need API-Key");
                } else {
View Full Code Here

Examples of com.jetbrains.heroku.ui.BackgroundAction

    }

    private void appendAppsTable(DefaultFormBuilder builder) {
        selectedApp = new AtomicInteger(-1);
        builder.append(table(appsModel,selectedApp), 10);
        builder.append(new JButton(new BackgroundAction("Add Application") {
            public void runActionPerformed(ActionEvent e) {
                Pair<String,Heroku.Stack> newApplicationInfo = Notifications.showCreateNewAppDialog();
                if (newApplicationInfo==null) return;
                App newApp = herokuApplicationService.createApplication(newApplicationInfo.first, newApplicationInfo.second);
                Notifications.notifyModalInfo("Created App", "Sucessfully created App " + newApp.getName() + " on " + newApp.getStack());
                appsModel.update(herokuApplicationService.listApps());
            }
        }), 1);
        builder.append(new JButton(new BackgroundAction("Destroy App") {
            public void runActionPerformed(ActionEvent e) {
                App app = appsModel.getApplication(selectedApp.get());
                if (app==null) return;
                if (Messages.showYesNoDialog("Really destroy app "+app.getName()+" this is irrecoverable!","Destroy App",Messages.getWarningIcon())!=Messages.YES) return;
                herokuApplicationService.destroyApp(app);
View Full Code Here

Examples of com.jetbrains.heroku.ui.BackgroundAction

    }

    private void appendKeysTable(DefaultFormBuilder builder) {
        selectedKey = new AtomicInteger(-1);
        builder.append(table(keyModel, selectedKey), 10);
        builder.append(new JButton(new BackgroundAction("Add Key") {
            public void runActionPerformed(ActionEvent e) {
                final String key = Messages.showMultilineInputDialog(null, "Input public ssh key", "Add SSH-KEy", null, Messages.getQuestionIcon(), null);
                herokuApplicationService.addKey(key);
                keyModel.update(herokuApplicationService.listKeys());
            }
        }), 1);
        builder.append(new JButton(new BackgroundAction("Remove Key") {
            public void runActionPerformed(ActionEvent e) {
                Key key = keyModel.getKey(selectedKey.get());
                if (key == null) return;
                herokuApplicationService.removeKey(key);
                keyModel.update(herokuApplicationService.listKeys());
View Full Code Here

Examples of com.mxgraph.examples.swing.editor.EditorActions.BackgroundAction

    menu.addSeparator();

    submenu = (JMenu) menu.add(new JMenu(mxResources.get("background")));

    submenu.add(editor.bind(mxResources.get("backgroundColor"),
        new BackgroundAction()));
    submenu.add(editor.bind(mxResources.get("backgroundImage"),
        new BackgroundImageAction()));

    submenu.addSeparator();
View Full Code Here

Examples of com.mxgraph.examples.swing.editor.EditorActions.BackgroundAction

    menu.addSeparator();

    submenu = (JMenu) menu.add(new JMenu(mxResources.get("background")));

    submenu.add(editor.bind(mxResources.get("backgroundColor"),
        new BackgroundAction()));
    submenu.add(editor.bind(mxResources.get("backgroundImage"),
        new BackgroundImageAction()));

    submenu.addSeparator();
View Full Code Here

Examples of com.mxgraph.examples.swing.editor.EditorActions.BackgroundAction

    menu.addSeparator();

    submenu = (JMenu) menu.add(new JMenu(mxResources.get("background")));

    submenu.add(editor.bind(mxResources.get("backgroundColor"), new BackgroundAction()));
    submenu.add(editor.bind(mxResources.get("backgroundImage"), new BackgroundImageAction()));

    submenu.addSeparator();

    submenu.add(editor.bind(mxResources.get("pageBackground"), new PageBackgroundAction()));
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.