Package bibliothek.gui.dock.common

Examples of bibliothek.gui.dock.common.CControl$Access


    protected void install( DockController controller ){   
        Controller settings = new Controller();
        settings.controller = controller;
       
        ColorManager colors = controller.getColors();
        CControl control = controller.getProperties().get( CControl.CCONTROL );
       
        try{
            colors.lockUpdate();
           
            ExtensionName<CColorBridgeExtension> name = new ExtensionName<CColorBridgeExtension>(
View Full Code Here


 
  /**
   * Queues up a call to {@link #autoRemove()}
   */
  protected void tryAutoRemove(){
    CControl control = getControl();
    if( control != null ){
      DockHierarchyLock lock = control.getController().getHierarchyLock();
      lock.onRelease( new Runnable(){
        public void run(){
          autoRemove();
        }
      } );
View Full Code Here

  private void autoRemove(){
    if( !autoRemove ){
      return;
    }
   
    CControl control = getControl();
    if( control != null ){
      DockRegister register = control.getController().getRegister();
      if( register.isStalled() ){
        register.addDockRegisterListener( new DelayedAutoRemove() );
      }
      else{
        SplitDockStation station = getStation();
        if( station.getDockableCount() == 0 ){
          DockStation parent = station.getDockParent();
          if( parent != null ){
            parent.drag( station );
          }
          control.removeDockable( this );
          control.removeStation( this );
        }
      }
    }
  }
View Full Code Here

            throw new WebApplicationException(Status.UNAUTHORIZED);
        }

        V2AuthResponse response = new V2AuthResponse();

        Access access = response.access = new Access();
        V2Token token = access.token = new V2Token();

        ProjectData project = authentication.getProject();

        // We never pass domain; we can't build a domain token with V2
View Full Code Here

        KeystoneAuthenticationToken fakeToken = buildFakeToken("HELLOWORLD");
        client.listTenants(fakeToken);
    }

    private KeystoneAuthenticationToken buildFakeToken(String tokenCode) {
        Access auth = new Access();
        Token tokenObject = new Token();
        tokenObject.setId(tokenCode);
        auth.setToken(tokenObject);
        return new KeystoneAuthenticationToken(auth);
    }
View Full Code Here

      StringBuilder stringBuilder = new StringBuilder( "Invalid access: ").append( issues.toString() );
      fail( stringBuilder.toString() );
    }

    // Build
    Access access = null;
    try
    { access = accessImpl.build(); }
    catch ( BuilderException e )
    { fail( "Build failed: " + e.getMessage() ); }
View Full Code Here

    accessImpl.setServiceBuilder( serviceBuilder );
    accessImpl.setUrlPath( urlPath );
    accessImpl.setDataSize( dataSize );
    accessImpl.setDataFormat( formatType );

    Access access;
    try
    { access = accessImpl.build(); }
    catch( BuilderException e )
    { fail( "Build failed: " + e.getMessage() ); return; }

    assertTrue( access.getService().getName().equals( serviceName ) );
    assertTrue( access.getUrlPath().equals( urlPath ) );
    assertTrue( access.getDataSize() == dataSize );
    assertTrue( access.getDataFormat().equals( formatType ) );
  }
View Full Code Here

    accessImpl.setServiceBuilder( serviceBuilder );
    accessImpl.setUrlPath( urlPath );
    accessImpl.setDataSize( dataSize );
    accessImpl.setDataFormat( formatType );

    Access access;
    try
    { access = accessImpl.build(); }
    catch( BuilderException e )
    { fail( "Build failed: " + e.getMessage() ); return; }
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.common.CControl$Access

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.