Codota Logo
ResourceResolver.getPackageNames
Code IndexAdd Codota to your IDE (free)

How to use
getPackageNames
method
in
org.guvnor.common.services.project.backend.server.ResourceResolver

Best Java code snippets using org.guvnor.common.services.project.backend.server.ResourceResolver.getPackageNames (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.guvnor/guvnor-project-backend

for (String src : SOURCE_PATHS) {
  final org.uberfire.java.nio.file.Path nioPackageRootSrcPath = nioProjectRootPath.resolve(src);
  packageNames.addAll(getPackageNames(nioProjectRootPath,
                    nioPackageRootSrcPath,
                    true,
origin: org.uberfire/uberfire-project-backend

for (String src : SOURCE_PATHS) {
  final org.uberfire.java.nio.file.Path nioPackageRootSrcPath = nioModuleRootPath.resolve(src);
  packageNames.addAll(getPackageNames(nioModuleRootPath,
                    nioPackageRootSrcPath,
                    true,
origin: kiegroup/appformer

for (String src : SOURCE_PATHS) {
  final org.uberfire.java.nio.file.Path nioPackageRootSrcPath = nioModuleRootPath.resolve(src);
  packageNames.addAll(getPackageNames(nioModuleRootPath,
                    nioPackageRootSrcPath,
                    true,
origin: org.guvnor/guvnor-project-backend

packageNames.addAll(getPackageNames(nioProjectRootPath,
                  nioPackageRootSrcPath,
                  false,
origin: kiegroup/appformer

for (org.uberfire.java.nio.file.Path nioChildPackageSrcPath : nioChildPackageSrcPaths) {
  if (recursive) {
    packageNames.addAll(getPackageNames(nioModuleRootPath,
                      nioChildPackageSrcPath,
                      includeDefault,
origin: org.guvnor/guvnor-project-backend

@Override
public org.guvnor.common.services.project.model.Package resolveDefaultPackage(final Project project) {
  final Set<String> packageNames = new HashSet<String>();
  if (project == null) {
    return null;
  }
  //Build a set of all package names across /src/main/java, /src/main/resources, /src/test/java and /src/test/resources paths
  //It is possible (if the project was not created within the workbench that some packages only exist in certain paths)
  final Path projectRoot = project.getRootPath();
  final org.uberfire.java.nio.file.Path nioProjectRootPath = Paths.convert(projectRoot);
  for (String src : SOURCE_PATHS) {
    final org.uberfire.java.nio.file.Path nioPackageRootSrcPath = nioProjectRootPath.resolve(src);
    packageNames.addAll(getPackageNames(nioProjectRootPath,
                      nioPackageRootSrcPath,
                      true,
                      true,
                      false));
  }
  //Construct Package objects for each package name
  final java.util.Set<String> resolvedPackages = new java.util.HashSet<String>();
  for (String packagePathSuffix : packageNames) {
    for (String src : SOURCE_PATHS) {
      final org.uberfire.java.nio.file.Path nioPackagePath = nioProjectRootPath.resolve(src).resolve(packagePathSuffix);
      if (Files.exists(nioPackagePath) && !resolvedPackages.contains(packagePathSuffix)) {
        return resolvePackage(Paths.convert(nioPackagePath));
      }
    }
  }
  return null;
}
origin: kiegroup/appformer

packageNames.addAll(getPackageNames(nioModuleRootPath,
                  nioPackageRootSrcPath,
                  false,
origin: org.uberfire/uberfire-project-backend

for (org.uberfire.java.nio.file.Path nioChildPackageSrcPath : nioChildPackageSrcPaths) {
  if (recursive) {
    packageNames.addAll(getPackageNames(nioModuleRootPath,
                      nioChildPackageSrcPath,
                      includeDefault,
origin: org.guvnor/guvnor-project-backend

for (org.uberfire.java.nio.file.Path nioChildPackageSrcPath : nioChildPackageSrcPaths) {
  if (recursive) {
    packageNames.addAll(getPackageNames(nioProjectRootPath,
                      nioChildPackageSrcPath,
                      includeDefault,
origin: org.uberfire/uberfire-project-backend

@Override
public org.guvnor.common.services.project.model.Package resolveDefaultPackage(final Module module) {
  final Set<String> packageNames = new HashSet<>();
  if (module == null) {
    return null;
  }
  //Build a set of all package names across /src/main/java, /src/main/resources, /src/test/java and /src/test/resources paths
  //It is possible (if the module was not created within the workbench that some packages only exist in certain paths)
  final Path moduleRoot = module.getRootPath();
  final org.uberfire.java.nio.file.Path nioModuleRootPath = Paths.convert(moduleRoot);
  for (String src : SOURCE_PATHS) {
    final org.uberfire.java.nio.file.Path nioPackageRootSrcPath = nioModuleRootPath.resolve(src);
    packageNames.addAll(getPackageNames(nioModuleRootPath,
                      nioPackageRootSrcPath,
                      true,
                      true,
                      false));
  }
  //Construct Package objects for each package name
  final java.util.Set<String> resolvedPackages = new java.util.HashSet<>();
  for (String packagePathSuffix : packageNames) {
    for (String src : SOURCE_PATHS) {
      final org.uberfire.java.nio.file.Path nioPackagePath = nioModuleRootPath.resolve(src).resolve(packagePathSuffix);
      if (Files.exists(nioPackagePath) && !resolvedPackages.contains(packagePathSuffix)) {
        return resolvePackage(Paths.convert(nioPackagePath));
      }
    }
  }
  return null;
}
origin: org.uberfire/uberfire-project-backend

packageNames.addAll(getPackageNames(nioModuleRootPath,
                  nioPackageRootSrcPath,
                  false,
origin: kiegroup/appformer

@Override
public org.guvnor.common.services.project.model.Package resolveDefaultPackage(final Module module) {
  final Set<String> packageNames = new HashSet<>();
  if (module == null) {
    return null;
  }
  //Build a set of all package names across /src/main/java, /src/main/resources, /src/test/java and /src/test/resources paths
  //It is possible (if the module was not created within the workbench that some packages only exist in certain paths)
  final Path moduleRoot = module.getRootPath();
  final org.uberfire.java.nio.file.Path nioModuleRootPath = Paths.convert(moduleRoot);
  for (String src : SOURCE_PATHS) {
    final org.uberfire.java.nio.file.Path nioPackageRootSrcPath = nioModuleRootPath.resolve(src);
    packageNames.addAll(getPackageNames(nioModuleRootPath,
                      nioPackageRootSrcPath,
                      true,
                      true,
                      false));
  }
  //Construct Package objects for each package name
  final java.util.Set<String> resolvedPackages = new java.util.HashSet<>();
  for (String packagePathSuffix : packageNames) {
    for (String src : SOURCE_PATHS) {
      final org.uberfire.java.nio.file.Path nioPackagePath = nioModuleRootPath.resolve(src).resolve(packagePathSuffix);
      if (Files.exists(nioPackagePath) && !resolvedPackages.contains(packagePathSuffix)) {
        return resolvePackage(Paths.convert(nioPackagePath));
      }
    }
  }
  return null;
}
origin: org.uberfire/uberfire-project-backend

packageNames.addAll(getPackageNames(nioModuleRootPath,
                  Paths.convert(pkg.getPackageMainSrcPath()).getParent(),
                  true,
                  false,
                  false));
packageNames.addAll(getPackageNames(nioModuleRootPath,
                  Paths.convert(pkg.getPackageMainResourcesPath()).getParent(),
                  true,
                  false,
                  false));
packageNames.addAll(getPackageNames(nioModuleRootPath,
                  Paths.convert(pkg.getPackageTestSrcPath()).getParent(),
                  true,
                  false,
                  false));
packageNames.addAll(getPackageNames(nioModuleRootPath,
                  Paths.convert(pkg.getPackageTestResourcesPath()).getParent(),
                  true,
origin: org.guvnor/guvnor-project-backend

packageNames.addAll(getPackageNames(nioProjectRootPath,
                  Paths.convert(pkg.getPackageMainSrcPath()).getParent(),
                  true,
                  false,
                  false));
packageNames.addAll(getPackageNames(nioProjectRootPath,
                  Paths.convert(pkg.getPackageMainResourcesPath()).getParent(),
                  true,
                  false,
                  false));
packageNames.addAll(getPackageNames(nioProjectRootPath,
                  Paths.convert(pkg.getPackageTestSrcPath()).getParent(),
                  true,
                  false,
                  false));
packageNames.addAll(getPackageNames(nioProjectRootPath,
                  Paths.convert(pkg.getPackageTestResourcesPath()).getParent(),
                  true,
origin: kiegroup/appformer

packageNames.addAll(getPackageNames(nioModuleRootPath,
                  Paths.convert(pkg.getPackageMainSrcPath()).getParent(),
                  true,
                  false,
                  false));
packageNames.addAll(getPackageNames(nioModuleRootPath,
                  Paths.convert(pkg.getPackageMainResourcesPath()).getParent(),
                  true,
                  false,
                  false));
packageNames.addAll(getPackageNames(nioModuleRootPath,
                  Paths.convert(pkg.getPackageTestSrcPath()).getParent(),
                  true,
                  false,
                  false));
packageNames.addAll(getPackageNames(nioModuleRootPath,
                  Paths.convert(pkg.getPackageTestResourcesPath()).getParent(),
                  true,
org.guvnor.common.services.project.backend.serverResourceResolvergetPackageNames

Popular methods of ResourceResolver

  • resolvePackage
  • getDefaultWorkspacePath
  • isPom
  • resolveDefaultPath
  • resolveDefaultWorkspacePackage
  • resolveModule
  • getLegalId
  • getPackageDisplayName
  • getPackagePathSuffix
  • getPackageRelativeCaption
  • hasPom
  • initResourcePathResolvers
  • hasPom,
  • initResourcePathResolvers,
  • makePackage,
  • newPackage,
  • resolvePkgName,
  • resolveProject,
  • simpleModuleInstance,
  • addSecurityGroups,
  • findProjectConfig

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JButton (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now