Package com.jetbrains.heroku.ui

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


    }

    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

    }

    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

TOP

Related Classes of com.jetbrains.heroku.ui.BackgroundAction

Copyright © 2018 www.massapicom. 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.