Package java.util

Examples of java.util.Map


    String  from_host,
    String  to_host )
  {
    System.out.println( "AddressUtils::addHostRedirect - " + from_host + " -> " + to_host );
   
    Map  new_map;
   
    if ( host_map == null ){
     
      new_map = new HashMap();
    }else{
     
      new_map = new HashMap( host_map );
    }
   
    new_map.put( from_host, to_host );
   
    host_map = new_map;
  }
View Full Code Here


    btnEdit.setLayoutData(gridData);
    btnEdit.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event e) {
        int selection = configList.getSelectionIndex();
        String selected = configList.getItem(selection);
        Map multiTrackers = TrackersUtil.getInstance().getMultiTrackers();
        new MultiTrackerEditor(selected,(List)multiTrackers.get(selected),MultiTrackerPanel.this);
      }
    });
   
    btnDelete = new Button(panel, SWT.PUSH);  
    Messages.setLanguageText(btnDelete, "wizard.multitracker.delete");
View Full Code Here

    refreshDetails();
    setEditDeleteEnable();
  }
 
  private void refreshList(String toBeSelected) {
    Map multiTrackers = TrackersUtil.getInstance().getMultiTrackers();
    configList.removeAll();
    Iterator iter = multiTrackers.keySet().iterator();
    while(iter.hasNext()) {
      configList.add((String)iter.next());
    }
    int selection = configList.indexOf(toBeSelected);
    if(selection != -1) {
View Full Code Here

      setNext();
      return;
    }
    String selected = configList.getItem(selection);
    ((NewTorrentWizard)wizard).multiTrackerConfig = selected;
    Map multiTrackers = TrackersUtil.getInstance().getMultiTrackers();
    ((NewTorrentWizard)wizard).trackers = (List) multiTrackers.get(selected);
    setNext();
  }
View Full Code Here

        }
       
          Map<File, Map> drives = AEWin32Manager.getAccessor(false).getAllDrives();
          if (drives != null) {
            for (File file : drives.keySet()) {
              Map driveInfo = drives.get(file);
              boolean isWritableUSB = AEWin32Manager.getAccessor(false).isUSBDrive(driveInfo);
              driveInfo.put("isWritableUSB", isWritableUSB);
              DriveDetectorFactory.getDeviceDetector().driveDetected(file, driveInfo);
            }
          }
      }
    }.start();
View Full Code Here

                if (((1 << i) & unitMask) > 0) {
                  letter = (char) ('A' + i);
                  if (DEBUG) {
                    System.out.println("Drive " + letter + ";mask=" + unitMask);
                  }
                  Map driveInfo = AEWin32AccessInterface.getDriveInfo(letter);
                  boolean isWritableUSB = AEWin32Manager.getAccessor(false).isUSBDrive(driveInfo);
                  driveInfo.put("isWritableUSB", isWritableUSB);
                  DriveDetector driveDetector = DriveDetectorFactory.getDeviceDetector();
                  driveDetector.driveDetected(new File(letter + ":\\"), driveInfo);
                }
              }
            }
View Full Code Here

    gridData = new GridData();
    gridData.widthHint = 100;
    btnNew.setLayoutData(gridData);
    btnNew.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event e) {
      Map webseeds = new HashMap();
         webseeds.put( "getright", new ArrayList());
         webseeds.put( "webseed", new ArrayList());
        new WebSeedsEditor(null,webseeds,WebSeedPanel.this);
      }
    });
   
    btnEdit = new Button(panel, SWT.PUSH);  
    Messages.setLanguageText(btnEdit, "wizard.multitracker.edit");
    gridData = new GridData();
    gridData.widthHint = 100;
    btnEdit.setLayoutData(gridData);
    btnEdit.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event e) {
        int selection = configList.getSelectionIndex();
        String selected = configList.getItem(selection);
        Map webseeds = TrackersUtil.getInstance().getWebSeeds();
        new WebSeedsEditor(selected,(Map)webseeds.get(selected),WebSeedPanel.this);
      }
    });
   
    btnDelete = new Button(panel, SWT.PUSH);  
    Messages.setLanguageText(btnDelete, "wizard.multitracker.delete");
View Full Code Here

    return true;
  }
 
  void refreshDetails() {
    configDetails.removeAll();
    Map webseeds = ((NewTorrentWizard) wizard).webseeds;
    Iterator iter = webseeds.entrySet().iterator();
    while(iter.hasNext()) {
        Map.Entry  entry = (Map.Entry)iter.next();
        TreeItem itemRoot = new TreeItem(configDetails,SWT.NULL);
        itemRoot.setText((String)entry.getKey());
        Iterator iter2 = ((List)entry.getValue()).iterator();
View Full Code Here

    refreshDetails();
    setEditDeleteEnable();
  }
 
  private void refreshList(String toBeSelected) {
    Map webseeds = TrackersUtil.getInstance().getWebSeeds();
    configList.removeAll();
    Iterator iter = webseeds.keySet().iterator();
    while(iter.hasNext()) {
      configList.add((String)iter.next());
    }
    int selection = configList.indexOf(toBeSelected);
    if(selection != -1) {
View Full Code Here

      setNext();
      return;
    }
    String selected = configList.getItem(selection);
    ((NewTorrentWizard)wizard).webSeedConfig = selected;
    Map webseeds = TrackersUtil.getInstance().getWebSeeds();
    ((NewTorrentWizard)wizard).webseeds = (Map) webseeds.get(selected);
    setNext();
  }
View Full Code Here

TOP

Related Classes of java.util.Map

Copyright © 2015 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.