当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
GuardedSectionsFactory (Editor Guarded Sections) - NetBeans API Javadoc (Current Development Version)
org.netbeans.spi.editor.guards
Class GuardedSectionsFactory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GuardedSectionsFactory
public GuardedSectionsFactory()
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