Tabnine Logo
ResourceResolver.newPackage
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.uberfire/uberfire-project-backend

@Override
public Package newPackage(final Package parentPackage,
             final String packageName) {
  try {
    //Make new Package
    final Package newPackage = resourceResolver.newPackage(parentPackage,
                                packageName,
                                true);
    //Raise an event for the new package
    newPackageEvent.fire(new NewPackageEvent(newPackage));
    //Return the new package
    return newPackage;
  } catch (Exception e) {
    throw ExceptionUtilities.handleException(e);
  }
}
origin: org.guvnor/guvnor-project-backend

@Override
public Package newPackage(final Package parentPackage,
             final String packageName) {
  try {
    //Make new Package
    final Package newPackage = resourceResolver.newPackage(parentPackage,
                                packageName,
                                true);
    //Raise an event for the new package
    newPackageEvent.fire(new NewPackageEvent(newPackage));
    //Return the new package
    return newPackage;
  } catch (Exception e) {
    throw ExceptionUtilities.handleException(e);
  }
}
origin: kiegroup/appformer

@Override
public Package newPackage(final Package parentPackage,
             final String packageName) {
  try {
    //Make new Package
    final Package newPackage = resourceResolver.newPackage(parentPackage,
                                packageName,
                                true);
    //Raise an event for the new package
    newPackageEvent.fire(new NewPackageEvent(newPackage));
    //Return the new package
    return newPackage;
  } catch (Exception e) {
    throw ExceptionUtilities.handleException(e);
  }
}
org.guvnor.common.services.project.backend.serverResourceResolvernewPackage

Popular methods of ResourceResolver

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

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFileChooser (javax.swing)
  • CodeWhisperer alternatives
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