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

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

Best Java code snippets using org.guvnor.common.services.project.backend.server.ResourceResolver.isPom (Showing top 4 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.kie.workbench.services/kie-wb-common-services-backend

@Override
public boolean isPom(final Path resource) {
  return resourceResolver.isPom(resource);
}
origin: kiegroup/appformer

@Override
public org.guvnor.common.services.project.model.Package resolvePackage(final Path resource) {
  try {
    //Null resource paths cannot resolve to a Module
    if (resource == null) {
      return null;
    }
    //If Path is not within a Module we cannot resolve a package
    final Module module = resolveModule(resource);
    if (module == null) {
      return null;
    }
    //pom.xml is not inside a package
    if (isPom(resource)) {
      return null;
    }
    return makePackage(module,
              resource);
  } catch (Exception e) {
    throw ExceptionUtilities.handleException(e);
  }
}
origin: org.guvnor/guvnor-project-backend

@Override
public org.guvnor.common.services.project.model.Package resolvePackage(final Path resource) {
  try {
    //Null resource paths cannot resolve to a Project
    if (resource == null) {
      return null;
    }
    //If Path is not within a Project we cannot resolve a package
    final Project project = resolveProject(resource);
    if (project == null) {
      return null;
    }
    //pom.xml is not inside a package
    if (isPom(resource)) {
      return null;
    }
    return makePackage(project,
              resource);
  } catch (Exception e) {
    throw ExceptionUtilities.handleException(e);
  }
}
origin: org.uberfire/uberfire-project-backend

@Override
public org.guvnor.common.services.project.model.Package resolvePackage(final Path resource) {
  try {
    //Null resource paths cannot resolve to a Module
    if (resource == null) {
      return null;
    }
    //If Path is not within a Module we cannot resolve a package
    final Module module = resolveModule(resource);
    if (module == null) {
      return null;
    }
    //pom.xml is not inside a package
    if (isPom(resource)) {
      return null;
    }
    return makePackage(module,
              resource);
  } catch (Exception e) {
    throw ExceptionUtilities.handleException(e);
  }
}
org.guvnor.common.services.project.backend.serverResourceResolverisPom

Popular methods of ResourceResolver

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

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
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