Java Code Examples for org.netbeans.spi.project.ui.support.CommonProjectActions#newFileAction()

The following examples show how to use org.netbeans.spi.project.ui.support.CommonProjectActions#newFileAction() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MultiModuleNodeFactory.java    From netbeans with Apache License 2.0 6 votes vote down vote up
@NonNull
@Override
public Action[] getActions(final boolean context) {
    if (context) {
        return super.getActions(context);
    } else {
        if (actions == null) {
            actions = new Action[] {
                CommonProjectActions.newFileAction(),
                null,
                SystemAction.get(FindAction.class),
                null,
                SystemAction.get(PasteAction.class ),
                null,
                SystemAction.get(FileSystemAction.class ),
                null,
                SystemAction.get(ToolsAction.class )
            };
        }
        return actions;
    }
}
 
Example 2
Source File: DocBaseNodeFactory.java    From netbeans with Apache License 2.0 6 votes vote down vote up
@Override
public Action[] getActions(boolean context) {
    if (actions == null) {
        actions = new Action[9];
        actions[0] = CommonProjectActions.newFileAction();
        actions[1] = null;
        actions[2] = SystemAction.get(FindAction.class);
        actions[3] = null;
        actions[4] = SystemAction.get(PasteAction.class);
        actions[5] = null;
        actions[6] = SystemAction.get(FileSystemAction.class);
        actions[7] = null;
        actions[8] = ProjectUISupport.createPreselectPropertiesAction(project, "Sources", null); //NOI18N
    }
    return actions;
}
 
Example 3
Source File: PackageView.java    From netbeans with Apache License 2.0 5 votes vote down vote up
/**
 * Creates actions for package root.
 * @return the array of {@link Action}s
 */
@NonNull
static Action[] createRootNodeActions() {
    return new Action[] {
        CommonProjectActions.newFileAction(),
        null,
        SystemAction.get( FindAction.class ),
        null,
        SystemAction.get( PasteAction.class ),
        null,
        SystemAction.get( FileSystemAction.class ),
        null,
        SystemAction.get( ToolsAction.class ),
    };
}
 
Example 4
Source File: JaxWsClientRootNode.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Action[] getActions(boolean context) {
    return new Action[]{
        CommonProjectActions.newFileAction(),
        null,
        SystemAction.get(FindAction.class),
        null,
        SystemAction.get(PasteAction.class),
        null,
        SystemAction.get(PropertiesAction.class)
    };
}
 
Example 5
Source File: JaxWsRootNode.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Action[] getActions(boolean context) {
    return new Action[]{
        CommonProjectActions.newFileAction(),
        null,
        SystemAction.get(FindAction.class),
        null,
        SystemAction.get(PasteAction.class),
        null,
        SystemAction.get(PropertiesAction.class)
    };
}
 
Example 6
Source File: ProjectWebServiceNodeFactory.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Action[] getActions(boolean context) {
    return new Action[]{
                CommonProjectActions.newFileAction(),
                null,
                SystemAction.get(FindAction.class),
                null,
                SystemAction.get(PasteAction.class),
                null,
                SystemAction.get(PropertiesAction.class)
            };
}
 
Example 7
Source File: RestServicesNode.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Action[] getActions(boolean context) {
    return new Action[] {
                CommonProjectActions.newFileAction(),
                SystemAction.get(TestRestServicesAction.class),
                null,
                SystemAction.get(FindAction.class),
                null,
                SystemAction.get(PasteAction.class),
                null,
                SystemAction.get(PropertiesAction.class)
            };
}
 
Example 8
Source File: JaxWsClientRootNode.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Action[] getActions(boolean context) {
    return new Action[]{
        CommonProjectActions.newFileAction(),
        null,
        SystemAction.get(FindAction.class),
        null,
        SystemAction.get(PasteAction.class),
        null,
        SystemAction.get(PropertiesAction.class)
    };
}
 
Example 9
Source File: JaxWsRootNode.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Action[] getActions(boolean context) {
    return new Action[]{
        CommonProjectActions.newFileAction(),
        null,
        SystemAction.get(FindAction.class),
        null,
        SystemAction.get(PasteAction.class),
        null,
        SystemAction.get(PropertiesAction.class)
    };
}
 
Example 10
Source File: ServerResourceNode.java    From netbeans with Apache License 2.0 5 votes vote down vote up
public Action[] getActions( boolean context ) {
    return new Action[] {
        CommonProjectActions.newFileAction(),
        null,
        SystemAction.get(FileSystemAction.class),
        null,
        SystemAction.get(FindAction.class),
        null,
        SystemAction.get(PasteAction.class),
    };
}
 
Example 11
Source File: EjbContainerNode.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public Action[] getActions(boolean context) {
    return new Action[]{
                CommonProjectActions.newFileAction()
            };
}