站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

GuardedSectionsFactory (Editor Guarded Sections) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.guards/0 0.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/0 0.1

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.