public interface IWorkingCopyManager
ICompilationUnit
objects. The original compilation unit is only given indirectly by means
of an IEditorInput
. The life cycle is as follows:
connect
creates and remembers a working copy of the
compilation unit which is encoded in the given editor inputgetWorkingCopy
returns the working copy remembered on
connect
disconnect
destroys the working copy remembered on
connect
In order to provide backward compatibility for clients of IWorkingCopyManager
, extension
interfaces are used to provide a means of evolution. The following extension interfaces
exist:
IWorkingCopyManagerExtension
since version 2.1 introducing API
to set and remove the working copy for a given editor input.This interface is not intended to be implemented by clients.
JavaUI.getWorkingCopyManager()
,
IWorkingCopyManagerExtension
Modifier and Type | Method and Description |
---|---|
void |
connect(IEditorInput input)
Connects the given editor input to this manager.
|
void |
disconnect(IEditorInput input)
Disconnects the given editor input from this manager.
|
ICompilationUnit |
getWorkingCopy(IEditorInput input)
Returns the working copy remembered for the compilation unit encoded in the
given editor input.
|
void |
shutdown()
Shuts down this working copy manager.
|
void connect(IEditorInput input) throws CoreException
input
- the editor inputCoreException
- if the working copy cannot be created for the
compilation unitvoid disconnect(IEditorInput input)
input
- the editor inputICompilationUnit getWorkingCopy(IEditorInput input)
input
- the editor inputnull
if the
input does not encode an editor input, or if there is no remembered working
copy for this compilation unitvoid shutdown()
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.