Sweet Home 3D 3.4

com.eteks.sweethome3d.plugin
Class PluginManager

java.lang.Object
  extended by com.eteks.sweethome3d.plugin.PluginManager

public class PluginManager
extends java.lang.Object

Sweet Home 3D plug-ins manager.

Author:
Emmanuel Puybaret

Constructor Summary
PluginManager(java.io.File pluginFolder)
          Reads application plug-ins from resources in the given plug-in folder.
PluginManager(java.io.File[] pluginFolders)
          Reads application plug-ins from resources in the given plug-in folders.
PluginManager(java.net.URL[] pluginUrls)
          Reads application plug-ins from resources in the given URLs.
 
Method Summary
 void addPlugin(java.lang.String pluginName)
          Adds the file pluginName to the first plug-ins folders if it exists.
 java.util.List<Plugin> getPlugins(HomeApplication application, Home home, UserPreferences preferences, javax.swing.undo.UndoableEditSupport undoSupport)
          Returns an unmodifiable list of plug-in instances initialized with the given parameters.
 boolean pluginExists(java.lang.String pluginName)
          Returns true if a plug-in with the given file name already exists in the first plug-ins folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginManager

public PluginManager(java.io.File pluginFolder)
Reads application plug-ins from resources in the given plug-in folder.


PluginManager

public PluginManager(java.io.File[] pluginFolders)
Reads application plug-ins from resources in the given plug-in folders.

Since:
3.0

PluginManager

public PluginManager(java.net.URL[] pluginUrls)
Reads application plug-ins from resources in the given URLs.

Method Detail

getPlugins

public java.util.List<Plugin> getPlugins(HomeApplication application,
                                         Home home,
                                         UserPreferences preferences,
                                         javax.swing.undo.UndoableEditSupport undoSupport)
Returns an unmodifiable list of plug-in instances initialized with the given parameters.


pluginExists

public boolean pluginExists(java.lang.String pluginName)
                     throws RecorderException
Returns true if a plug-in with the given file name already exists in the first plug-ins folder.

Throws:
RecorderException - if no plug-ins folder is associated to this manager.

addPlugin

public void addPlugin(java.lang.String pluginName)
               throws RecorderException
Adds the file pluginName to the first plug-ins folders if it exists. Once added, the plug-in will be available at next application start.

Throws:
RecorderException - if no plug-ins folder is associated to this manager.

Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License