Examples of DirectoryItem


Examples of org.apache.wiki.dav.items.DirectoryItem

        //  Lists top-level elements
        //
        if( path.isRoot() )
        {
            log.info("Adding DAV items from path "+path);
            DirectoryItem di = new DirectoryItem( this, path );
           
            di.addDavItems( listAlphabeticals(path) );
           
            return di;
        }

        //
        //  Lists each item in each subdir
        //
        if( path.isDirectory() )
        {
            log.info("Listing pages in path "+path);
           
            DirectoryItem di = new DirectoryItem( this, path );
           
            di.addDavItems( listDirContents(path) );
           
            return di;
        }
       
        if( pname.endsWith(".txt") && pname.length() > 4 )
View Full Code Here

Examples of org.jampa.model.disk.DirectoryItem

    }

    @Override
    public Object[] getChildren(Object parentElement) {
      if (parentElement instanceof DirectoryItem) {
        DirectoryItem item = (DirectoryItem) parentElement;
        if (Controller.getInstance().getPreferenceStore().getString(PreferenceConstants.DISKVIEW_DISPLAY_MODE).equals("0")) { //$NON-NLS-1$
          return concat(item.getDirectoryList().toArray(), item.getFileList().toArray());
        } else {
          return concat(item.getFileList().toArray(), item.getDirectoryList().toArray());
        }
      }
      return EMPTY_ARRAY;
    }
View Full Code Here

Examples of org.jampa.model.disk.DirectoryItem

  }

  class ViewLabelProvider extends LabelProvider implements ILabelProvider {
    public Image getImage(Object obj) {
      if (obj instanceof DirectoryItem) {
        DirectoryItem item = (DirectoryItem) obj;
       
        if (item == Controller.getInstance().getRootDirectoryItem().getLocalParentDir()) {
          return _libraryDirImage;
        } else if (item == Controller.getInstance().getRootDirectoryItem().getRemovableParentDir()) {
          return _removableDirImage;
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.