Tabnine Logo
CndFileUtils.createLocalFile
Code IndexAdd Tabnine to your IDE (free)

How to use
createLocalFile
method
in
org.netbeans.modules.cnd.utils.cache.CndFileUtils

Best Java code snippets using org.netbeans.modules.cnd.utils.cache.CndFileUtils.createLocalFile (Showing top 8 results out of 315)

origin: org.netbeans.api/org-netbeans-modules-cnd-gizmo

@Override
public Map<String, File> getBinaryFiles(ExecutionEnvironment env) {
  Map<String, File> result = new HashMap<String, File>();
  if (relativePath != null && localAbsPath != null) {
    result.put(relativePath, CndFileUtils.createLocalFile(localAbsPath)); // NOI18N
  }
  return result;
}

origin: org.netbeans.modules/org-netbeans-modules-cnd-makeproject

public static String getValidProjectName(String projectFolder, String name) {
  int baseCount = 0;
  String projectName = null;
  while (true) {
    if (baseCount == 0) {
      projectName = name;
    } else {
      projectName = name + baseCount;
    }
    File projectNameFile = CndFileUtils.createLocalFile(projectFolder, projectName);
    if (!projectNameFile.exists()) {
      break;
    }
    baseCount++;
  }
  return projectName;
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-makeproject

private static ValidationResult isValidLocalProjectNameAndLocation(String projectNameTextField, String projectLocationTextField, String createdFolderTextField) {
  if (!isValidProjectName(projectNameTextField)) {
    return new ValidationResult(Boolean.FALSE, NbBundle.getMessage(PanelProjectLocationVisual.class, "MSG_IllegalProjectName")); // Display name not specified
  }
  if (!CndPathUtilities.isPathAbsolute(projectLocationTextField)) { // empty field imcluded
    String message = NbBundle.getMessage(PanelProjectLocationVisual.class, "MSG_IllegalProjectLocation"); // NOI18N
    return new ValidationResult(Boolean.FALSE, message);
  }
  File f = CndFileUtils.createLocalFile(projectLocationTextField).getAbsoluteFile();
  if (getCanonicalFile(f) == null) {
    String message = NbBundle.getMessage(PanelProjectLocationVisual.class, "MSG_IllegalProjectLocation"); // NOI18N
    return new ValidationResult(Boolean.FALSE, message);
  }
  final File destFolder = getCanonicalFile(CndFileUtils.createLocalFile(createdFolderTextField).getAbsoluteFile()); // project folder always local
  if (destFolder == null) {
    String message = NbBundle.getMessage(PanelProjectLocationVisual.class, "MSG_IllegalProjectName"); // NOI18N
    return new ValidationResult(Boolean.FALSE, message);
  }
  return new ValidationResult(Boolean.TRUE, null);
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-toolchain-ui

if (flavors.isEmpty() && CndFileUtils.createLocalFile(path).exists()) {
  CompilerFlavor flavor = CompilerFlavor.getUnknown(csm.getPlatform());
  if (flavor != null) {
origin: org.netbeans.modules/org-netbeans-modules-cnd-toolchain

if (flavors.isEmpty() && CndFileUtils.createLocalFile(path).exists()) {
  CompilerFlavor flavor = CompilerFlavor.getUnknown(csm.getPlatform());
  if (flavor != null) {
origin: org.netbeans.modules/org-netbeans-modules-cnd-makeproject

if (CndPathUtilities.isPathAbsolute(projectLocationTextField.getText())) {
  if (env.isLocal()) {
    File projectsDir = CndFileUtils.createLocalFile(projectLocationTextField.getText());
    if (projectsDir.isDirectory()) {
      ProjectChooser.setProjectsFolder(projectsDir);
origin: org.netbeans.modules/org-netbeans-modules-cnd-makeproject

file = CndFileUtils.createLocalFile(executable + ".exe"); // NOI18N
origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2

    ProjectGenerator.ProjectParameters prjParams = new ProjectGenerator.ProjectParameters(projectName, CndFileUtils.createLocalFile(projectParentFolder, projectName));
    prjParams.setOpenFlag(open).setConfiguration(seed.conf);
seed.project =  ProjectGenerator.createBlankProject(prjParams);
org.netbeans.modules.cnd.utils.cacheCndFileUtilscreateLocalFile

Popular methods of CndFileUtils

  • isLocalFileSystem
  • normalizeAbsolutePath
  • toFileObject
  • getLocalFileSystem
  • normalizeFile
    normalize file
  • fileObjectToUrl
  • getFileSeparatorChar
  • isExistingFile
    Tests whether the file exists and not directory. One of file or filePath must be not null
  • normalizePath
  • urlToFileObject
  • areFilenamesEqual
  • getCanonicalFileObject
  • areFilenamesEqual,
  • getCanonicalFileObject,
  • getCanonicalPath,
  • isExistingDirectory,
  • isSystemCaseSensitive,
  • toFSPathList,
  • toFile,
  • changeStringCaseIfNeeded,
  • clearFileExistenceCache

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now