Examples of ResourceManager


Examples of com.qspin.qtaste.ui.tools.ResourceManager

    private final static String INTERACTIVE_TABLE_LAYOUT_PROPERTY = "interactive_test_case_report_table_layout";
    private final static String EXECUTION_TABLE_LAYOUT_PROPERTY = "execution_test_case_report_table_layout";
    private String runName;

    private void initIcons() {
        ResourceManager resourceManager = ResourceManager.getInstance();
        passedImg = resourceManager.getImageIcon("icons/passed");
        passedImg.setDescription("Passed");
        failedImg = resourceManager.getImageIcon("icons/failed");
        failedImg.setDescription(("Failed"));
        runningImg = resourceManager.getImageIcon("icons/running");
        runningImg.setDescription(("Running"));
        naImg = resourceManager.getImageIcon("icons/na");
        naImg.setDescription(("Test in error"));
        /*snapShotImg = resourceManager.getImageIcon("icons/snapshot");
        snapShotImg.setDescription(("Failed"));*/
    }
View Full Code Here

Examples of com.sun.faces.application.resource.ResourceManager

        if (!devModeEnabled) {
            resourceCache = new ResourceCache();
        }

        resourceManager = new ResourceManager(appMap, resourceCache);
        namedEventManager = new NamedEventManager();
        applicationStateInfo = new ApplicationStateInfo();
       
        appImpl.subscribeToEvent(PostConstructApplicationEvent.class,
                         Application.class, new PostConstructApplicationListener());
View Full Code Here

Examples of com.threerings.resource.ResourceManager

        throws Exception
    {
        super.init(injector);

        // create the resource manager
        rsrcmgr = new ResourceManager("rsrc");
        rsrcmgr.initBundles(null, getResourceConfig(), null);

        // create our tile manager and repository
        tilemgr = new TileManager(null);
        tilemgr.setTileSetRepository(
View Full Code Here

Examples of crud.backend.ResourceManager

        this.component = component;
        this.implementation = implementation;
    }

    public Invoker createInvoker(RuntimeComponentService service, Operation operation) {
        CRUDImplementationInvoker invoker = new CRUDImplementationInvoker(operation, new ResourceManager(implementation.getDirectory()));
        return invoker;
    }
View Full Code Here

Examples of io.undertow.server.handlers.resource.ResourceManager

                throw UndertowServletMessages.MESSAGES.couldNotInstantiateComponent(servletInfo.getName(), e);
            }
            instance = handle.getInstance();
            instance.init(new ServletConfigImpl(servletInfo, servletContext));
            //if a servlet implements FileChangeCallback it will be notified of file change events
            final ResourceManager resourceManager = servletContext.getDeployment().getDeploymentInfo().getResourceManager();
            if(instance instanceof ResourceChangeListener && resourceManager.isResourceChangeListenerSupported()) {
                resourceManager.registerResourceChangeListener(changeListener = (ResourceChangeListener) instance);
            }
        }
View Full Code Here

Examples of jade.core.ResourceManager

    }
    outBox = new OutBox(maxQueueSize);


    try {
      ResourceManager rm = p.getResourceManager();
      delivererThreads = new Thread[poolSize];
      deliverers = new Deliverer[poolSize];
      for (int i = 0; i < poolSize; ++i) {
        String name = "Deliverer-"+i;
        deliverers[i] = new Deliverer();
        delivererThreads[i] = rm.getThread(ResourceManager.TIME_CRITICAL, name, deliverers[i]);
        if (myLogger.isLoggable(Logger.FINE)) {
          myLogger.log(Logger.FINE, "Starting deliverer "+name+". Thread="+delivererThreads[i]);
        }
        delivererThreads[i].start();
      }
View Full Code Here

Examples of net.minecraft.src.ResourceManager

  public static final String MCPATCHER_SUBDIR = "mcpatcher/";
  public static TexturePackAPI instance = new TexturePackAPI();

  public static List<ResourcePack> getResourcePacks(String namespace) {
    ArrayList list = new ArrayList();
    ResourceManager resourceManager = getResourceManager();

    if (resourceManager instanceof SimpleReloadableResourceManager) {
      Iterator i$ = ((SimpleReloadableResourceManager)resourceManager).domainResourceManagers.entrySet().iterator();

      while (i$.hasNext()) {
View Full Code Here

Examples of net.sourceforge.ganttproject.resource.ResourceManager

            myFailureState = failure;
        }

        void enter() throws IOException {
            GPParser opener = myParserFactory.newParser();
            ResourceManager hrManager = getHumanResourceManager();
            RoleManager roleManager = getRoleManager();
            TaskManager taskManager = getTaskManager();
            ResourceTagHandler resourceHandler = new ResourceTagHandler(
                    hrManager, roleManager, myProject.getResourceCustomPropertyManager());
            DependencyTagHandler dependencyHandler = new DependencyTagHandler(
View Full Code Here

Examples of net.suberic.pooka.resource.ResourceManager

  /**
   * Loads the stores.
   */
  public void loadStores(VariableBundle sourceBundle, String key) {
  ResourceManager rm = Pooka.getPookaManager().getResourceManager();
   
    String pgpPublicFilename = sourceBundle.getProperty(key + ".pgp.keyStore.public.filename", "");
    if(!pgpPublicFilename.equals(""))
      pgpPublicFilename = rm.translateName(pgpPublicFilename);
   
    String pgpPrivateFilename = sourceBundle.getProperty(key + ".pgp.keyStore.private.filename", "");
    if(!pgpPrivateFilename.equals(""))
      pgpPrivateFilename = rm.translateName(pgpPrivateFilename);
   
    String pgpPrivatePwString = sourceBundle.getProperty(key + ".pgp.keyStore.private.password", "");
    if (!pgpPrivatePwString.equals("")){
      pgpPrivatePwString = net.suberic.util.gui.propedit.PasswordEditorPane.descrambleString(pgpPrivatePwString);
      pgpPassphrase = pgpPrivatePwString.toCharArray();
    }

    // if either store is configured, try loading.
    if (! (pgpPrivateFilename.equals("") && pgpPublicFilename.equals(""))) {
      try {
    EncryptionUtils pgpUtils = EncryptionManager.getEncryptionUtils(EncryptionManager.PGP);
    if (pgpUtils != null) {
      pgpKeyMgr = pgpUtils.createKeyManager();
      try {
          pgpKeyMgr.loadPrivateKeystore(new FileInputStream(new File(pgpPrivateFilename)), null);
      } catch (java.io.IOException fnfe) {
          System.out.println("Error loading PGP private keystore from file " + pgpPrivateFilename + ":  " + fnfe.getMessage());
      } catch (java.security.GeneralSecurityException gse) {
          System.out.println("Error loading PGP private keystore from file " + pgpPrivateFilename + ":  " + gse.getMessage());
      }
      try {
        pgpKeyMgr.loadPublicKeystore(new FileInputStream(new File(pgpPublicFilename)), null);
      } catch (java.io.IOException fnfe) {
        System.out.println("Error loading PGP public keystore from file " + pgpPublicFilename + ":  " + fnfe.getMessage());
      } catch (java.security.GeneralSecurityException gse) {
        System.out.println("Error loading PGP public keystore from file " + pgpPublicFilename + ":  " + gse.getMessage());
      }
    }
      } catch (java.security.NoSuchProviderException nspe) {
        System.out.println("Error loading PGP key store:  " + nspe.getMessage());
      } catch (Exception e) {
        System.out.println("Error loading PGP key store:  " + e.getMessage());
      }
    }

    String smimePublicFilename = sourceBundle.getProperty(key + ".smime.keyStore.public.filename", "");
    if(!smimePublicFilename.equals(""))
      smimePublicFilename = rm.translateName(smimePublicFilename);

    String smimePrivateFilename = sourceBundle.getProperty(key + ".smime.keyStore.private.filename", "");
    if(!smimePrivateFilename.equals(""))
      smimePrivateFilename = rm.translateName(smimePrivateFilename);
   
    String smimePrivatePwString = sourceBundle.getProperty(key + ".smime.keyStore.private.password", "");
    if (!smimePrivatePwString.equals("")){
      smimePrivatePwString = net.suberic.util.gui.propedit.PasswordEditorPane.descrambleString(smimePrivatePwString);
      smimePassphrase = smimePrivatePwString.toCharArray();
View Full Code Here

Examples of org.apache.batik.util.gui.resource.ResourceManager

    /**
     * Implements {@link org.apache.batik.i18n.Localizable#setLocale(Locale)}.
     */
    public static void setLocale(Locale l) {
        localizableSupport.setLocale(l);
        resourceManager = new ResourceManager(localizableSupport.getResourceBundle());
    }
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.