Examples of NbCommandString


Examples of org.netbeans.gradle.project.api.task.NbCommandString

    public GradleActionProvider(NbGradleProject project) {
        this.project = project;
    }

    public static String getCommandStr(Lookup context, String defaultCommandStr) {
        NbCommandString commandStr = context.lookup(NbCommandString.class);
        return commandStr != null ? commandStr.getCommandString() : defaultCommandStr;
    }
View Full Code Here

Examples of org.netbeans.gradle.project.api.task.NbCommandString

                    new Object[]{command, project.getProjectDirectory()});
        }
    }

    private static Lookup commandStringLookup(String command) {
        return Lookups.singleton(new NbCommandString(command));
    }
View Full Code Here

Examples of org.netbeans.gradle.project.api.task.NbCommandString

    private Lookup getAppliedContext(String command, Lookup context) {
        if (context == null) {
            return commandStringLookup(command);
        }

        NbCommandString currentNbCommandStr = context.lookup(NbCommandString.class);
        if (currentNbCommandStr == null) {
            return new ProxyLookup(commandStringLookup(command), context);
        }

        NbCommandString nbCommandString = new NbCommandString(command);
        if (nbCommandString.equals(currentNbCommandStr)) {
            return context;
        }
        return new ProxyLookup(Lookups.singleton(nbCommandString), context);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.