1 26 27 package org.objectweb.util.browser.plugin.java; 28 29 import java.util.Collection ; 30 31 import org.objectweb.util.browser.api.DropAction; 32 import org.objectweb.util.browser.api.DropTreeView; 33 34 43 public class CollectionAddObjectOnDropAction 44 implements DropAction { 45 46 52 58 64 70 77 public void 78 execute(DropTreeView dropTreeView) 79 throws Exception { 80 Collection collection = (Collection )dropTreeView.getSelectedObject(); 81 Object objectToAdd = dropTreeView.getDragSourceObject(); 82 collection.add(objectToAdd); 83 } 84 85 } | Popular Tags |