Examples of IApplication


Examples of com.openshift.client.IApplication

    }

    ApplicationResourceDTO applicationDTO =
        new CreateApplicationRequest().execute(name, cartridge, scale, gearProfile, initialGitUrl, timeout,
            null, cartridges);
    IApplication application = new ApplicationResource(applicationDTO, this);

    getOrLoadApplications().add(application);
    return application;
  }
View Full Code Here

Examples of com.openshift.client.IApplication

    }

    ApplicationResourceDTO applicationDTO =
        new CreateApplicationRequest().execute(
            name, cartridge, scale, gearProfile, initialGitUrl, timeout, environmentVariables, cartridges);
    IApplication application = new ApplicationResource(applicationDTO, this);

    getOrLoadApplications().add(application);
    return application;
  }
View Full Code Here

Examples of com.openshift.client.IApplication

    if (applications == null) {
      return null;
    }

    IApplication matchingApplication = null;
    for (IApplication application : applications) {
      if (application.getName().equalsIgnoreCase(name)) {
        matchingApplication = application;
        break;
      }
View Full Code Here

Examples of com.openshift.client.IApplication

  private void addOrUpdateApplication(ApplicationResourceDTO applicationDTO, List<IApplication> applications) {
    ApplicationResource application = (ApplicationResource) getApplicationByName(applicationDTO.getName(),
        applications);
    if (application == null) {
      final IApplication newApplication = new ApplicationResource(applicationDTO, this);
      applications.add(newApplication);
    } else {
      application.update(applicationDTO);
    }
  }
View Full Code Here

Examples of com.openshift.client.IApplication

    }
  }

  private List<IApplication> removeApplications(List<ApplicationResourceDTO> dtos, List<IApplication> applications) {
    for (ListIterator<IApplication> it = applications.listIterator(); it.hasNext();) {
      IApplication application = it.next();
      if (!hasApplicationDTOByName(application.getName(), dtos)) {
        it.remove();
      }
    }
    return applications;
  }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.IApplication

   *
   * @param  evt  The current event.
   */
  public void actionPerformed(ActionEvent evt)
  {
    final IApplication app = getApplication();
    if (_tree != null)
    {
      // Ensure that the proper type of Object is selected in the Object
      // Tree.
      IDatabaseObjectInfo selectedObjects[] =  _tree.getSelectedDatabaseObjects();
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.IApplication

                      (selObjs[0].getDatabaseObjectType() == DatabaseObjectType.TABLE) ||
                      (selObjs[0].getDatabaseObjectType() == DatabaseObjectType.VIEW)
              )
      )
      {
          final IApplication app = getApplication();

          final CursorChanger cursorChg = new CursorChanger(app.getMainFrame());
          cursorChg.show();
          try
          {
              new SQLFilterCommand(_tree, selObjs[0]).execute();
          }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.IApplication

  @Test
  public void testCreateDataSet() throws DataSetException {
   
    ISession mockSession = mockHelper.createMock(ISession.class);
    IApplication mockApplication = mockHelper.createMock(IApplication.class);
    IIdentifier mockIdentifier = mockHelper.createMock(IIdentifier.class);
    SessionManager mockSessionManager = mockHelper.createMock(SessionManager.class);
    ISQLConnection mockSqlConnection = mockHelper.createMock(ISQLConnection.class);
    SQLDatabaseMetaData mockMetaData = mockHelper.createMock(SQLDatabaseMetaData.class);
    IProcedureInfo mockProcedureInfo = mockHelper.createMock(IProcedureInfo.class);
   
    expect(mockSessionManager.getSession(mockIdentifier)).andStubReturn(mockSession);
    expect(mockSession.getApplication()).andStubReturn(mockApplication);
    expect(mockSession.getIdentifier()).andStubReturn(mockIdentifier);
    expect(mockApplication.getSessionManager()).andStubReturn(mockSessionManager);
    expect(mockSession.getSQLConnection()).andStubReturn(mockSqlConnection);
    expect(mockSqlConnection.getSQLMetaData()).andStubReturn(mockMetaData);
    expect(mockMetaData.getProcedureColumnsDataSet(mockProcedureInfo)).andStubReturn(null);
   
    mockHelper.replayAll();
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.IApplication

   *
   * @param  evt  The current event.
   */
  public void actionPerformed(ActionEvent evt)
  {
    IApplication app = getApplication();
    CursorChanger cursorChg = new CursorChanger(app.getMainFrame());
    cursorChg.show();
    try
    {
      new ShowNativeSQLCommand(_panel).execute();
    }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.IApplication

   * current connection to the database and open a new one.
   *
   * @param  evt   The current event.
   */
  public void actionPerformed(ActionEvent evt) {
    IApplication app = getApplication();
    if(Dialogs.showYesNo(app.getMainFrame(), i18n.MSG))
    {
         // Can't work with ISessionAction because if a result window is on top
         // the session in a ISessionAction is null.
         ISession activeSession = getApplication().getSessionManager().getActiveSession();
      activeSession.reconnect();
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.