Package org.pdfsam.guiclient.exceptions

Examples of org.pdfsam.guiclient.exceptions.PluginException


        else {
          try{
            String configSearchPath = new File(URLDecoder.decode(getClass().getProtectionDomain().getCodeSource().getLocation().getPath(), "UTF-8")).getParent();
                this.pluginsDirectory = new File(configSearchPath, "plugins");
            }catch (Exception e){
                throw new PluginException(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Error getting plugins directory."), e);
            }
        }
        pluginsList = getPlugInsList();
    }
View Full Code Here


                    if (pluginsSubDirs[i].isDirectory()){
                      retVal.add(pluginsSubDirs[i]);
                    }
                }
              }catch (Exception e){
                  throw new PluginException("Error getting plugins list",e);
              }
        }else{
            throw new PluginException(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Cannot read plugins directory ")+pluginsDirectory.getAbsolutePath());
          }
      }else{
        throw new PluginException(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Plugins directory is null."));
      }      
        return (File[])retVal.toArray(new File[retVal.size()]);
    }
View Full Code Here

TOP

Related Classes of org.pdfsam.guiclient.exceptions.PluginException

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.