org.netbeans.modules.editor.guards/1 1.12.1

org.netbeans.spi.editor.guards
Class GuardedSectionsFactory

java.lang.Object
  extended by org.netbeans.spi.editor.guards.GuardedSectionsFactory

public abstract class GuardedSectionsFactory
extends Object

The factory allows to look up GuardedSectionsProvider factories for given mime type. Factories have to be registered under Editors/<mime path> in the module's layer.


Constructor Summary
GuardedSectionsFactory()
           
 
Method Summary
abstract  GuardedSectionsProvider create(GuardedEditorSupport editor)
          Creates a guarded sections provider.
static GuardedSectionsFactory find(String mimePath)
          Use this to find a proper factory instance for the passed mime path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuardedSectionsFactory

public GuardedSectionsFactory()
Method Detail

find

public static GuardedSectionsFactory find(String mimePath)
Use this to find a proper factory instance for the passed mime path.

Parameters:
mimePath - a mime path
Returns:
the factory instance or null

create

public abstract GuardedSectionsProvider create(GuardedEditorSupport editor)
Creates a guarded sections provider.

Parameters:
editor - an editor support
Returns:
the provider impl

org.netbeans.modules.editor.guards/1 1.12.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.