return getIcon( type );
}
@Override
public Action[] getActions ( boolean ignored ) {
NodeJSProject project = getLookup().lookup( NodeJSProject.class );
final ResourceBundle bundle
= NbBundle.getBundle( RootNode.class );
List<Action> actions = new ArrayList<>();
actions.add( CommonProjectActions.newFileAction() );
actions.add( null );
actions.add( ProjectSensitiveActions.projectCommandAction(
ActionProvider.COMMAND_RUN,
bundle.getString( "LBL_RunAction_Name" ), null ) ); // NOI18N
actions.add( null );
actions.add( CommonProjectActions.setAsMainProjectAction() );
actions.add( null );
actions.add( ProjectSensitiveActions.projectCommandAction(
NodeJSProject.MAIN_FILE_COMMAND,
bundle.getString( "LBL_ChooseMainFile_Name" ), null ) ); // NOI18N
actions.add( null );
// actions.add(ProjectSensitiveActions.projectCommandAction(
// NodeJSProject.LIBRARIES_COMMAND,
// bundle.getString("LBL_AddLibrary_Name"), null));
actions.add( new AddLibraryAction( bundle, project, this ) );
actions.add( null );
actions.add( CommonProjectActions.setAsMainProjectAction() );
actions.add( CommonProjectActions.closeProjectAction() );
actions.add( null );
actions.add( CommonProjectActions.renameProjectAction() );
actions.add( CommonProjectActions.moveProjectAction() );
actions.add( CommonProjectActions.copyProjectAction() );
actions.add( CommonProjectActions.deleteProjectAction() );
actions.add( null );
actions.add( SystemAction.get( FindAction.class ) );
actions.add( null );
actions.add( SystemAction.get( PasteAction.class ) );
actions.add( null );
actions.add( getFilesystemAction() );
actions.addAll( Lookups.forPath( "Project/NodeJS/Actions" ).lookupAll( Action.class ) ); //NOI18N
actions.add( new AbstractAction( NbBundle.getMessage( RootNode.class, "PROPERTIES" ) ) { //NOI18N
@Override
public void actionPerformed ( ActionEvent e ) {
Project project = getLookup().lookup( Project.class );
new PropertiesPanel( project.getLookup().lookup( NodeJSProjectProperties.class ) ).showDialog();
}
} );
final LibrariesResolver resolver = getLookup().lookup( Project.class ).getLookup().lookup( LibrariesResolver.class );
if (resolver.hasMissingLibraries()) {
actions.add(new AbstractAction(NbBundle.getMessage(RootNode.class, "RESOLVE_LIBRARIES")){ //NOI18N