Package org.openbp.common.resource

Examples of org.openbp.common.resource.ResourceMgr


      if (! SettingUtil.getBooleanSetting("openbp.application.nosplash", false))
      {
        try
        {
          ResourceMgr resourceMgr = ResourceMgr.getDefaultInstance();
          byte[] imageData = resourceMgr.loadByteResource(resourceName);

          ImageIcon image = new ImageIcon(imageData);

          splashScreen = new SplashScreen(image);
          splashScreen.setLocationRelativeTo(null);
View Full Code Here


    {
      ExceptionUtil.printTrace(e);
      return;
    }

    ResourceMgr resMgr = ResourceMgr.getDefaultInstance();
    String resourcePattern = CockpitConstants.PLUGIN + "/*/*.plugin.xml";
    Resource[] resources = null;

    try
    {
      resources = resMgr.findResources(resourcePattern);
    }
    catch (ResourceMgrException e)
    {
      return;
    }
View Full Code Here

        ExceptionUtil.printTrace(e);
        return;
      }
    }

    ResourceMgr resMgr = ResourceMgr.getDefaultInstance();
    String resourcePattern = CockpitConstants.GENERATOR + "/*.xml";
    Resource[] resources = null;

    try
    {
      resources = resMgr.findResources(resourcePattern);
    }
    catch (ResourceMgrException e)
    {
      return;
    }
View Full Code Here

   * @param resourcePath Directory containing the item type descriptor xml files
   * @throws OpenBPException If there were errors reading the standard item type descriptors
   */
  public void loadItemTypeDescriptors(String resourcePath)
  {
    ResourceMgr resMgr = ResourceMgr.getDefaultInstance();
    String resourcePattern = resourcePath + "/*.xml";
    Resource[] resources = null;

    try
    {
      resources = resMgr.findResources(resourcePattern);
    }
    catch (ResourceMgrException e)
    {
      throw new ModelException("MissingItemTypeDescriptors", "No item type files found matching '" + resourcePattern + "'.");
    }
View Full Code Here

    xmlDriver.loadMapping(org.openbp.cockpit.modeler.figures.generic.XFigureDescriptor.class);
    xmlDriver.loadMapping(org.openbp.cockpit.modeler.skins.LinkDescriptor.class);
    xmlDriver.loadMapping(org.openbp.cockpit.modeler.skins.SymbolDescriptor.class);
    xmlDriver.loadMapping(org.openbp.cockpit.modeler.skins.Skin.class);

    ResourceMgr resMgr = ResourceMgr.getDefaultInstance();
    String resourcePattern = CockpitConstants.SKIN + "/*.xml";
    Resource[] resources = null;

    try
    {
      resources = resMgr.findResources(resourcePattern);
    }
    catch (ResourceMgrException e)
    {
      throw new ModelException("MissingItemTypeDescriptors", "No item type files found matching '" + resourcePattern + "'.");
    }
View Full Code Here

   * @throws XMLDriverException If the specified directory does not exist
   */
  public void loadCustomDescriptors(String resourcePath)
    throws XMLDriverException
  {
    ResourceMgr resMgr = ResourceMgr.getDefaultInstance();
    String resourcePattern = resourcePath + "/*.xml";
    Resource[] resources = null;

    try
    {
      resources = resMgr.findResources(resourcePattern);
    }
    catch (ResourceMgrException e)
    {
      String msg = LogUtil.error(getClass(), "No custom object descriptors found in resource location $0.", resourcePath);
      throw new XMLDriverException(msg);
View Full Code Here

TOP

Related Classes of org.openbp.common.resource.ResourceMgr

Copyright © 2018 www.massapicom. 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.