Examples of FTPConnectionProperties


Examples of org.cfeclipse.cfml.net.FTPConnectionProperties

      ArrayList items = new ArrayList();
     
      items.add(new LocalFileSystem());
     
    for (int i=0;i<connections.length;i++) {
      FTPConnectionProperties connectionProperties = new FTPConnectionProperties(connections[i]);

        FTPConnection connection = new FTPConnection();
      connection.setConnectionProperties(connectionProperties);
      items.add(connection);
     
View Full Code Here

Examples of org.cfeclipse.cfml.net.FTPConnectionProperties

  public static TreeMap<String, FTPConnectionProperties> loadFileSystems () 
  {
      String[] connections = FTPConnectionProperties.getConnectionIds();
      final TreeMap<String, FTPConnectionProperties> items = new TreeMap<String, FTPConnectionProperties>();
    for (int i=0;i<connections.length;i++) {
      FTPConnectionProperties connectionProperties = new FTPConnectionProperties(connections[i]);
      items.put(connections[i], connectionProperties);
    }
    return items;
  }
View Full Code Here

Examples of org.cfeclipse.cfml.net.FTPConnectionProperties

  private Text keyFile;
  private Group saveGroup; 

  public void setCurrentConnectionId(String connectionId) {
    fCurrentConnectionId = connectionId;
    connectionProperties = new FTPConnectionProperties(connectionId);
      redraw();
    selectItem();
  }
View Full Code Here

Examples of org.cfeclipse.cfml.net.FTPConnectionProperties

   
  }

  protected Control createContents(Composite parent) {
    initializeDialogUnits(parent);
      connectionProperties = new FTPConnectionProperties(null);
    Arrays.sort(connectionTypes);
    Arrays.sort(connectionTypeExamples);
//    getOverlayStore().load();
//    getOverlayStore().start();
    Composite result= new Composite(parent, SWT.NONE);
View Full Code Here

Examples of org.cfeclipse.cfml.net.FTPConnectionProperties

        }
      if (connectionId.equals(ConnectionsContentProvider.NEW_CONNECTION)) {
          connectionId = null;
      }
     
      connectionProperties = new FTPConnectionProperties(connectionId);
      redraw();
    }
View Full Code Here

Examples of org.cfeclipse.cfml.net.FTPConnectionProperties

   
    if ( fConnections != null ) {
        Iterator it = fConnections.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry pairs = (Map.Entry)it.next();
            FTPConnectionProperties conProps = (FTPConnectionProperties) pairs.getValue();
            if(!conProps.getURI().equals(conProps.getConnectionid())) {             
              VFSUtil.treeAddFsNode(tree, conProps);
            }
        }
    }
  }
View Full Code Here

Examples of org.cfeclipse.cfml.net.FTPConnectionProperties

      int itemIndex = 0;

        while (it.hasNext()) {
          boolean foundConnection = false;
            Map.Entry pairs = (Map.Entry)it.next();
            FTPConnectionProperties conProps = (FTPConnectionProperties) pairs.getValue();
        for (int i = 0; i < items.length; ++i) {
          final TreeItem item = items[i];
          final String treeConnectionId = (String)item.getData(TREEITEMDATA_CONNECTIONID);
          final String filePath = (String)item.getData(TREEITEMDATA_FILE);
          if(treeConnectionId.equals(conProps.getConnectionid())){
            foundConnection = true;
            break;
          } else {
            if(fConnections.get(treeConnectionId) == null && filePath != treeConnectionId) {
              item.dispose();             
View Full Code Here

Examples of org.cfeclipse.cfml.net.FTPConnectionProperties

   *
   * @param item the TreeItem to initialize
   * @param volume the File associated with this TreeItem
   */
  private void treeInitVolume(TreeItem item, String connectionId ) {//FileObject volume) {
    FTPConnectionProperties connectionProperties = fConnections.get(connectionId);
    if(connectionProperties == null) {
      addLocalConnection(connectionId);
      connectionProperties = fConnections.get(connectionId);
    }
    item.setText(connectionId);
    item.setImage(iconCache.get(CFPluginImages.ICON_DRIVE));
    item.setData(TREEITEMDATA_FILE, connectionProperties.getConnectionid());
    item.setData(TREEITEMDATA_URI, connectionProperties.getURI());
    item.setData(TREEITEMDATA_CONNECTIONID, connectionProperties.getConnectionid());
    item.setData(TREEITEMDATA_IMAGEEXPANDED, iconCache.get(CFPluginImages.ICON_DRIVE_FTP));
    item.setData(TREEITEMDATA_IMAGECOLLAPSED, iconCache.get(CFPluginImages.ICON_DRIVE));
  }
View Full Code Here

Examples of org.cfeclipse.cfml.net.FTPConnectionProperties

    return roots; //newRequest;
  }
 

  private void addLocalConnection(String connectionId) {
    FTPConnectionProperties newConProps = new FTPConnectionProperties(connectionId);
    newConProps.setURI(connectionId);
    fConnections.put(connectionId, newConProps);
  }
View Full Code Here

Examples of org.cfeclipse.cfml.net.FTPConnectionProperties

  public FileObject resolveURI (String Uri, String connectionId) throws FileSystemException
  {
    shell.setCursor(CFPluginImages.cursors[CFPluginImages.cursorWait]);
    shell.setText(getResourceString("Title.Resolving"
        , new Object[] { Uri }));
    FTPConnectionProperties connectionProperties = fConnections.get(connectionId);

    FileObject fo = fsManager.resolveFile(Uri,connectionProperties.getFileSystemOptions());

    shell.setCursor(CFPluginImages.cursors[CFPluginImages.cursorDefault]);
    shell.setText(getResourceString("Title"
        , new Object[] { Uri }));
   
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.