Examples of WindowManager


Examples of gov.nasa.arc.mct.platform.spi.WindowManager

        if (!initialized) {
            String username = this.currentUser;
            // If PersistenceProvider & WindowManager are available, we can create a dialog with available users
            Platform platform = PlatformAccess.getPlatform();
            PersistenceProvider persistence = platform != null ? platform.getPersistenceProvider() : null;
            WindowManager windowing = platform != null ? platform.getWindowManager() : null;
           
            if (username == null && persistence != null && windowing != null) {
                Object[] users = persistence.getAllUsers().toArray();
                if (users.length > 1) {
                    Arrays.sort(users);
                    username = (String) windowing.showInputDialog(bundle.getString("TITLE"), bundle.getString("QUESTION"), users, users[0], null); //NOI18N
                } else if (users.length == 1) {
                    username = users[0].toString();
                }
            }       
           
View Full Code Here

Examples of gov.nasa.arc.mct.platform.spi.WindowManager

            private boolean confirmed = false;
           
            @Override
            public void run() {
                if (context.getServiceReference(PersistenceProvider.class.getName()) == null) {
                    WindowManager windowManager = getWindowManager();
                    Map<String, Object> hints = new HashMap<String, Object>();
                   
                    if (!confirmed) {
                        logger.warn("unable to obtain persistence provider");

                        hints.put(WindowManagerImpl.OPTION_TYPE, OptionBox.YES_NO_OPTION);
                       
                        String[] options = {
                                BUNDLE.getString("persistence_warning_ok"),
                                BUNDLE.getString("persistence_warning_cancel")
                                };
                        String result = windowManager.showInputDialog(
                                BUNDLE.getString("persistence_warning_title"),
                                BUNDLE.getString("persistence_warning_message"),
                                options,
                                options[0],
                                hints);
                        if (result.equals(options[1])) {
                            System.exit(0);
                        } else {                       
                            confirmed = true;
                        }
                    } else {
                        logger.error("unable to obtain persistence provider");
                       
                        hints.put(WindowManagerImpl.OPTION_TYPE, OptionBox.YES_OPTION);
                       
                        String[] options = {
                                BUNDLE.getString("persistence_error_ok"),
                                };
                        windowManager.showInputDialog(
                                BUNDLE.getString("persistence_error_title"),
                                BUNDLE.getString("persistence_error_message"),
                                options,
                                options[0],
                                hints);
                       
                        System.exit(0);
                    }
                }
            }
           
            private WindowManager getWindowManager() {
                // Try to use the Platform's version, in case something other
                // than WindowManagerImpl has been injected somewhere.
                Platform platform = PlatformAccess.getPlatform();
                if (platform != null) {
                    WindowManager windowManager = platform.getWindowManager();
                    if (windowManager != null) {
                        return windowManager;
                    }
                }
                // Otherwise, fall back to this bundle's version.
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.gui.WindowManager

    */
   public void execute()
   {
      if (_session != null)
      {
         WindowManager winMgr = _session.getApplication().getWindowManager();
         winMgr.showSessionPropertiesDialog(_session, _tabIndexToSelect);
      }
   }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.gui.WindowManager

         {
            SessionObjectTreePropertiesPanel otPanel = (SessionObjectTreePropertiesPanel) pnl;

            if (otPanel.isObjectTreeRefreshNeeded())
            {
               WindowManager wm = getSession().getApplication().getWindowManager();
               ISessionWidget[] frames = wm.getAllFramesOfSession(getSession().getIdentifier());
               for (int i = 0; i < frames.length; i++)
               {
                  ISessionWidget widget = frames[i];
                  try
                  {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.gui.WindowManager

   */
  public void execute()
  {
    if (_tree != null)
    {
      final WindowManager winMgr = _app.getWindowManager();
      winMgr.showEditWhereColsDialog(_tree, _objectInfo);
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.gui.WindowManager

  {
    if (_objectTree != null)
    {
      final ISession session = _objectTree.getSession();
      final IApplication app = session.getApplication();
      final WindowManager winMgr = app.getWindowManager();
      winMgr.showSQLFilterDialog( _objectTree, _objectInfo);
    }
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.gui.WindowManager

    _cache =
      new DataCache(_driverMgr, _appFiles.getDatabaseDriversFile(), _appFiles.getDatabaseAliasesFile(),
        _resources.getDefaultDriversUrl(), this);

    indicateNewStartupTask(splash, s_stringMgr.getString("Application.splash.createWindowManager"));
    _windowManager = new WindowManager(this, args.getUserInterfaceDebugEnabled());

    // _mainFrame = new MainFrame(this);

    indicateNewStartupTask(splash, s_stringMgr.getString("Application.splash.uifactoryinit"));
    // AliasMaintSheetFactory.initialize(this);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.gui.WindowManager

   {
      _aliasesList.setViewAsTree(_toogleComponentHolder.isSelected());
    IApplication application = getApplication();
    if (application != null)
    {
      WindowManager windowManager = application.getWindowManager();
      if (windowManager != null)
      {
        AliasesListInternalFrame aliasesListInternalFrame = windowManager.getAliasesListInternalFrame();
        if (aliasesListInternalFrame != null)
        {
          aliasesListInternalFrame.enableDisableActions();
        }
      }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.WindowManager

   */
  static private String _getCurrWindowId(ExternalContext external, RequestContext trinContext)
  {
    if (trinContext != null)
    {
      WindowManager wm = trinContext.getWindowManager();

      if (wm != null)
      {
        Window currWindow = wm.getCurrentWindow(external);

        if (currWindow != null)
        {
          return currWindow.getId();
        }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.WindowManager

   */
  static private String _getCurrWindowId(ExternalContext external, RequestContext trinContext)
  {
    if (trinContext != null)
    {
      WindowManager wm = trinContext.getWindowManager();

      if (wm != null)
      {
        Window currWindow = wm.getCurrentWindow(external);

        if (currWindow != null)
        {
          return currWindow.getId();
        }
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.