Lines 56-61
Link Here
|
56 |
import java.io.IOException; |
56 |
import java.io.IOException; |
57 |
import java.lang.reflect.InvocationTargetException; |
57 |
import java.lang.reflect.InvocationTargetException; |
58 |
import java.util.List; |
58 |
import java.util.List; |
|
|
59 |
import java.util.logging.Level; |
60 |
import java.util.logging.Logger; |
59 |
import javax.swing.AbstractAction; |
61 |
import javax.swing.AbstractAction; |
60 |
import javax.swing.Action; |
62 |
import javax.swing.Action; |
61 |
import org.netbeans.api.annotations.common.StaticResource; |
63 |
import org.netbeans.api.annotations.common.StaticResource; |
Lines 80-85
Link Here
|
80 |
*/ |
82 |
*/ |
81 |
public class MatchingObjectNode extends AbstractNode { |
83 |
public class MatchingObjectNode extends AbstractNode { |
82 |
|
84 |
|
|
|
85 |
Logger LOG = Logger.getLogger(MatchingObjectNode.class.getName()); |
86 |
|
83 |
@StaticResource |
87 |
@StaticResource |
84 |
private static final String INVALID_ICON = |
88 |
private static final String INVALID_ICON = |
85 |
"org/netbeans/modules/search/res/invalid.png"; //NOI18N |
89 |
"org/netbeans/modules/search/res/invalid.png"; //NOI18N |
Lines 334-339
Link Here
|
334 |
File f = FileUtil.toFile( |
338 |
File f = FileUtil.toFile( |
335 |
matchingObject.getFileObject()); |
339 |
matchingObject.getFileObject()); |
336 |
if (f != null) { |
340 |
if (f != null) { |
|
|
341 |
LOG.log(Level.INFO, "Copying path of file {0}", //REM //NOI18N |
342 |
f.getPath()); |
337 |
String path = f.getPath(); |
343 |
String path = f.getPath(); |
338 |
Toolkit toolkit = Toolkit.getDefaultToolkit(); |
344 |
Toolkit toolkit = Toolkit.getDefaultToolkit(); |
339 |
if (toolkit != null) { |
345 |
if (toolkit != null) { |
Lines 341-348
Link Here
|
341 |
if (clipboard != null) { |
347 |
if (clipboard != null) { |
342 |
StringSelection strSel = new StringSelection(path); |
348 |
StringSelection strSel = new StringSelection(path); |
343 |
clipboard.setContents(strSel, null); |
349 |
clipboard.setContents(strSel, null); |
|
|
350 |
LOG.log(Level.INFO, |
351 |
"Setting clipboard content: {0}", //NOI18N |
352 |
path); //REM |
353 |
} else { |
354 |
LOG.warning("Clipboard is null"); //REM //NOI18N |
344 |
} |
355 |
} |
|
|
356 |
} else { |
357 |
LOG.warning("Toolkit is null"); //REM //NOI18N |
345 |
} |
358 |
} |
|
|
359 |
} else { |
360 |
LOG.log(Level.WARNING, |
361 |
"Warning: FileObject is null: {0}", //NOI18N |
362 |
matchingObject); //REM |
346 |
} |
363 |
} |
347 |
} |
364 |
} |
348 |
} |
365 |
} |