return actions.toArray( new Action[actions.size()] );
}
private Action getFilesystemAction () {
Project project = getLookup().lookup( Project.class );
FileSystemAction a = SystemAction.get( FileSystemAction.class );
try {
if (project.getProjectDirectory().isValid()) {
Node n = DataObject.find( project.getProjectDirectory() ).getNodeDelegate();
return a.createContextAwareInstance( n.getLookup() );
} else {
return a;
}
} catch ( DataObjectNotFoundException ex ) {
Exceptions.printStackTrace( ex );