Lines 41-46
Link Here
|
41 |
import org.openide.nodes.PropertySupport; |
41 |
import org.openide.nodes.PropertySupport; |
42 |
import org.openide.nodes.Sheet; |
42 |
import org.openide.nodes.Sheet; |
43 |
import org.openide.util.HelpCtx; |
43 |
import org.openide.util.HelpCtx; |
|
|
44 |
import org.openide.util.Lookup; |
44 |
import org.openide.util.Mutex; |
45 |
import org.openide.util.Mutex; |
45 |
import org.openide.util.RequestProcessor; |
46 |
import org.openide.util.RequestProcessor; |
46 |
import org.openide.util.NbBundle; |
47 |
import org.openide.util.NbBundle; |
Lines 65-80
Link Here
|
65 |
/** should file extensions be displayed? */ |
66 |
/** should file extensions be displayed? */ |
66 |
private static boolean showFileExtensions = true; |
67 |
private static boolean showFileExtensions = true; |
67 |
|
68 |
|
|
|
69 |
/** Create a data node with the given children set for the given data object. |
70 |
* @param obj object to work with |
71 |
* @param ch children container for the node |
72 |
* @see #getShowFileExtensions |
73 |
*/ |
74 |
public DataNode (DataObject obj, Children ch) { |
75 |
this(obj, ch, null); |
76 |
} |
77 |
|
68 |
/** Create a data node for a given data object. |
78 |
/** Create a data node for a given data object. |
69 |
* The provided children object will be used to hold all child nodes. |
79 |
* The provided children object will be used to hold all child nodes. |
70 |
* The name is always set to the base name of the primary file; |
80 |
* The name is always set to the base name of the primary file; |
71 |
* the display name may instead be set to the base name with extension. |
81 |
* the display name may instead be set to the base name with extension. |
72 |
* @param obj object to work with |
82 |
* @param obj object to work with |
73 |
* @param ch children container for the node |
83 |
* @param ch children container for the node |
|
|
84 |
* @param lookup the lookup to provide content of {@link #getLookup} |
85 |
* and also {@link #getCookie} |
74 |
* @see #getShowFileExtensions |
86 |
* @see #getShowFileExtensions |
|
|
87 |
* |
88 |
* @since 5.6 |
89 |
* @author Libor Kotouc |
75 |
*/ |
90 |
*/ |
76 |
public DataNode (DataObject obj, Children ch) { |
91 |
public DataNode (DataObject obj, Children ch, Lookup lookup) { |
77 |
super (ch); |
92 |
super (ch, lookup); |
78 |
this.obj = obj; |
93 |
this.obj = obj; |
79 |
|
94 |
|
80 |
propL = new PropL (); |
95 |
propL = new PropL (); |