Package org.pentaho.mantle.client.objects

Examples of org.pentaho.mantle.client.objects.SolutionFileInfo


    }
    return [];
  }-*/;

  private void persistFileInfoInFrame() {
    SolutionFileInfo fileInfo = new SolutionFileInfo();
    fileInfo.setName( this.name );
    fileInfo.setPath( this.path );
    fileInfo.setType( this.type );
    SolutionBrowserPanel.getInstance().getContentTabPanel().getCurrentFrame().setFileInfo( fileInfo );
  }
View Full Code Here


    type = null;
  }

  private void retrieveCachedValues( IFrameTabPanel tabPanel ) {
    clearValues();
    SolutionFileInfo info = tabPanel.getFileInfo();
    if ( info != null ) {
      this.name = info.getName();
      this.path = info.getPath();
      this.type = info.getType();
    }
  }
View Full Code Here

   * @param selectedFileItem
   */
  public void setFileInfoInFrame( FileItem selectedFileItem ) {
    IFrameTabPanel tp = getCurrentFrame();
    if ( tp != null && selectedFileItem != null ) {
      SolutionFileInfo fileInfo = new SolutionFileInfo();
      fileInfo.setName( selectedFileItem.getName() );
      fileInfo.setPath( selectedFileItem.getPath() );
      tp.setFileInfo( fileInfo );
    }
  }
View Full Code Here

    // let's only keep 5 of these guys around so at least some of the resources
    // can be cleaned up (maybe just wishful thinking)
    Widget w = closeTab.getContent();
    if ( w instanceof IFrameTabPanel && freeFrames.size() < 5 ) {
      // wipe out any file info so it doesn't impact future usages of this frame
      SolutionFileInfo sfi = null;
      IFrameTabPanel iFrameTabPanel = (IFrameTabPanel) w;
      iFrameTabPanel.setFileInfo( sfi );
      freeFrames.add( iFrameTabPanel );
    }
View Full Code Here

    }
    String filePath = repositoryFile.getPath();
    if ( filePath.endsWith( repositoryFile.getName() ) ) {
      filePath = filePath.substring( 0, filePath.lastIndexOf( repositoryFile.getName() ) - 1 );
    }
    SolutionFileInfo fileInfo = new SolutionFileInfo();
    fileInfo.setName( fileName );
    fileInfo.setPath( filePath );
    fileInfo.setType( SolutionFileInfo.Type.XACTION );
    if ( contentTabPanel != null && contentTabPanel.getCurrentFrame() != null ) {
      contentTabPanel.getCurrentFrame().setFileInfo( fileInfo );
    }
  }
View Full Code Here

  public void setFileInfo( SolutionFileInfo info ) {
    fileInfo = info;
  }

  public void setFileInfo( FileItem item ) {
    SolutionFileInfo fileInfo = new SolutionFileInfo();
    fileInfo.setName( item.getName() );
    fileInfo.setPath( item.getPath() );
    setFileInfo( fileInfo );
  }
View Full Code Here

TOP

Related Classes of org.pentaho.mantle.client.objects.SolutionFileInfo

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.