1 19 20 package org.netbeans.modules.tasklist.docscan; 21 22 import java.util.List ; 23 import java.util.ArrayList ; 24 import java.awt.datatransfer.Transferable ; 25 26 import javax.swing.*; 27 28 import org.openide.util.actions.SystemAction; 29 import org.openide.util.NbBundle; 30 import org.openide.nodes.Node; 31 import org.openide.nodes.AbstractNode; 32 import org.openide.nodes.Sheet; 33 import org.openide.nodes.Children; 34 import org.openide.nodes.PropertySupport; 35 import org.openide.actions.PropertiesAction; 36 import org.openide.ErrorManager; 37 import org.openide.loaders.DataObject; 38 import org.openide.text.Line; 39 import org.openide.text.DataEditorSupport; 40 41 import org.netbeans.modules.tasklist.client.SuggestionPriority; 42 import org.netbeans.modules.tasklist.client.Suggestion; 43 44 import org.netbeans.modules.tasklist.suggestions.*; 45 import org.netbeans.modules.tasklist.core.filter.FilterAction; 46 import org.netbeans.modules.tasklist.core.*; 47 import org.netbeans.modules.tasklist.core.editors.PriorityPropertyEditor; 48 import org.netbeans.modules.tasklist.core.editors.LineNumberPropertyEditor; 49 50 57 class SourceTaskNode extends SuggestionNode { 58 59 public SourceTaskNode(SuggestionImpl rootItem) { 60 super(rootItem, Children.LEAF); 61 } 62 63 64 public SourceTaskNode(SuggestionImpl rootItem, Children children) { 65 super(rootItem, children); 66 } 67 68 public Node cloneNode () { 69 SourceTaskNode clon = new SourceTaskNode((SuggestionImpl)this.item); 70 if (!clon.isLeaf()) 71 clon.setChildren((Children)getTaskChildren().clone()); 72 return clon; 73 } 74 75 protected TaskChildren createChildren() { 76 return new SourceTaskChildren((SuggestionImpl)this.item); 77 } 78 79 public Action[] getActions(boolean context) { 80 return new Action[] { 81 SystemAction.get(ShowSuggestionAction.class) 82 }; 83 } 84 85 89 93 94 } 95 96 | Popular Tags |