1 26 27 package org.objectweb.util.explorer.plugin.java; 28 29 import java.util.Collection ; 30 31 import org.objectweb.util.explorer.api.DropAction; 32 import org.objectweb.util.explorer.api.DropTreeView; 33 34 35 44 public class CollectionAddObjectOnDropAction 45 implements DropAction 46 { 47 48 54 60 66 72 79 public void 80 execute(DropTreeView dropTreeView) 81 throws Exception { 82 Collection collection = (Collection )dropTreeView.getSelectedObject(); 83 Object objectToAdd = dropTreeView.getDragSourceObject(); 84 collection.add(objectToAdd); 85 } 86 87 } | Popular Tags |