org.openide.text 6.16.1

org.openide.text
Class CloneableEditorSupportRedirector

java.lang.Object
  extended by 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 FileObjects represent the same physical file.

Instances should be registered to default lookup.

Since:
6.13

Constructor Summary
CloneableEditorSupportRedirector()
           
 
Method Summary
protected abstract  CloneableEditorSupport redirect(Lookup env)
          Find a delegate for given CloneableEditorSupport's Lookup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloneableEditorSupportRedirector

public CloneableEditorSupportRedirector()
Method Detail

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

org.openide.text 6.16.1

Built on March 20 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.