Package org.pentaho.mantle.client.solutionbrowser

Examples of org.pentaho.mantle.client.solutionbrowser.SolutionBrowserPanel.openFile()


          }

          @Override
          public void fileSelected( RepositoryFile repositoryFile, String filePath, String fileName, String title ) {
            dialog.hide();
            solutionBrowserPerspective.openFile( repositoryFile, openMethod );
          }

          @Override
          public void fileSelectionChanged( RepositoryFile repositoryFile, String filePath, String fileName,
              String title ) {
View Full Code Here


          } else if ( event.getKeyCode() == KeyCodes.KEY_ENTER ) {
            SolutionBrowserPanel sbp = SolutionBrowserPanel.getInstance();
            FilesListPanel flp = sbp.getFilesListPanel();
            List<FileItem> items = flp.getSelectedFileItems();
            if ( items != null && items.size() == 1 ) {
              sbp.openFile( items.get( 0 ).getRepositoryFile(), COMMAND.RUN );
            }
          }
        }
        super.onBrowserEvent( event );
      }
View Full Code Here

    List<FileItem> selectedItems = flp.getSelectedFileItems();
    FileItem selectedItem = selectedItems.get( 0 );

    if ( mode == COMMAND.RUN || mode == COMMAND.NEWWINDOW ) {
      if ( selectedItem != null ) {
        sbp.openFile( selectedItem.getRepositoryFile(), mode );
      }
    } else if ( mode == COMMAND.PROPERTIES ) {
      new FilePropertiesCommand( fileSummary == null ? fileSummaryProvider.getRepositoryFiles().get( 0 ) : fileSummary )
          .execute();
    } else if ( mode == COMMAND.EDIT ) {
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.