org.openide.text
Class CloneableEditorSupportRedirector
java.lang.Object
org.openide.text.CloneableEditorSupportRedirector
public abstract class CloneableEditorSupportRedirector
- extends Object
Allows to find another CloneableEditorSupport
that all the
requests passed to given one should be redirected to. This is useful
for redirecting operation on
FileObject to another one in cases when two FileObject
s
represent the same physical file.
Instances should be registered to default lookup.
- Since:
- 6.9.23
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloneableEditorSupportRedirector
public CloneableEditorSupportRedirector()
redirect
protected abstract CloneableEditorSupport redirect(Lookup env)
- Find a delegate for given
CloneableEditorSupport
's Lookup
.
The common code can be to extract for example a
FileObject from the lookup and use its location to find another
CloneableEditorSupport
to delegate to.
- Parameters:
env
- the environment associated with current CloneableEditorSupport
- Returns:
- null or another CloneableEditorSupport to use as a replacement