Package com.tensegrity.wpalo.client.ui.mvc.viewbrowser.importer

Examples of com.tensegrity.wpalo.client.ui.mvc.viewbrowser.importer.PaloSuiteViewCreationDialog


    else if(button.equals(REFRESH_BTN)) {
      doRefresh();
    } else if (button.equals(SHOW_INFO_BTN)) {
      doShowAbout();
    } else if (button.equals(CONNECTION_PICKER_BTN)) {
      final PaloSuiteViewCreationDialog dia =
        new PaloSuiteViewCreationDialog();
      dia.addButtonListener(ViewImportDialog.BUTTON_OK,
          new Listener<BaseEvent>() {
            public void handleEvent(BaseEvent be) {
              final XView[] xViews = dia.getSelectedViews();
              if (xViews != null && xViews.length == 1) {
                final String extId = view.getExternalId();
                view.setExternalId("_");
                ((Workbench) Registry.get(Workbench.ID)).showWaitCursor(constants.applyingModifications());
                String sessionId = ((Workbench)Registry.get(Workbench.ID)).getUser().getSessionId();
                WPaloCubeViewServiceProvider.getInstance().saveView(sessionId,
                    view, new Callback<XViewModel>(){
                  public void onSuccess(XViewModel arg0) {
                    ((Workbench) Registry.get(Workbench.ID)).hideWaitCursor();
                    xViews[0].setExternalId(extId);
                    modifyView(xViews[0], extId);
                  }
                });
              }
            }
          });
      dia.show();     
    }
  }
View Full Code Here


                        ((Workbench)Registry.get(Workbench.ID)).setPaloSuite(true);
                        } catch (Throwable t) {
                          t.printStackTrace();
                        }
                        try {
                        final PaloSuiteViewCreationDialog dia =
                          new PaloSuiteViewCreationDialog();
                        dia.addButtonListener(ViewImportDialog.BUTTON_OK,
                            new Listener<BaseEvent>() {
                              public void handleEvent(BaseEvent be) {
                                XView[] xViews = dia.getSelectedViews();
                                if (xViews != null && xViews.length == 1) {
                                  xViews[0].setExternalId(data.getPaloSuiteViewId());
                                  createView(xViews[0], data.getPaloSuiteViewId(), data.getDisplayFlags(), data.getGlobalDisplayFlags());
                                }
                              }
                            });
                        dia.show();
                        } catch (Throwable t) {
                          t.printStackTrace();
                        }
                      } else {
                        try {
View Full Code Here

TOP

Related Classes of com.tensegrity.wpalo.client.ui.mvc.viewbrowser.importer.PaloSuiteViewCreationDialog

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.