Package bibliothek.gui.dock.util.extension

Examples of bibliothek.gui.dock.util.extension.ExtensionManager


     * {@link ExtensionManager} of <code>controller</code>.
     * @param controller the controller for which additional extensions should be
     * loaded
     */
    protected void initExtensions( DockController controller ){
      ExtensionManager manager = controller.getExtensions();
    String[] list = { "glass.eclipse.CGlassExtension",
        "bibliothek.gui.dock.toolbar.CToolbarExtension" };
    for( String className : list ){
      try {
        Class<?> clazz = Class.forName( className );
        Object extension = clazz.newInstance();
        if( extension instanceof Extension ){
          manager.add( (Extension)extension );
        }
      } catch( ClassNotFoundException e ) {
        // ignore
      } catch( InstantiationException e ) {
        e.printStackTrace();
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.util.extension.ExtensionManager

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.