|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.make.internal.ui.editor.WorkingCopyManager
public class WorkingCopyManager
This working copy manager works together with a given compilation unit document provider and additionally offers to "overwrite" the working copy provided by this document provider.
Constructor Summary | |
---|---|
WorkingCopyManager(IMakefileDocumentProvider provider)
Creates a new working copy manager that co-operates with the given compilation unit document provider. |
Method Summary | |
---|---|
void |
connect(org.eclipse.ui.IEditorInput input)
Connects the given editor input to this manager. |
void |
disconnect(org.eclipse.ui.IEditorInput input)
Disconnects the given editor input from this manager. |
IMakefile |
getWorkingCopy(org.eclipse.ui.IEditorInput input)
Returns the working copy remembered for the compilation unit encoded in the given editor input. |
void |
removeWorkingCopy(org.eclipse.ui.IEditorInput input)
Removes the working copy set for the given editor input. |
void |
setWorkingCopy(org.eclipse.ui.IEditorInput input,
IMakefile workingCopy)
Sets the given working copy for the given editor input. |
void |
shutdown()
Shuts down this working copy manager. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkingCopyManager(IMakefileDocumentProvider provider)
provider
- the providerMethod Detail |
---|
public void connect(org.eclipse.ui.IEditorInput input) throws org.eclipse.core.runtime.CoreException
IWorkingCopyManager
connect
in interface IWorkingCopyManager
input
- the editor input
org.eclipse.core.runtime.CoreException
- if the working copy cannot be created for the
unitpublic void disconnect(org.eclipse.ui.IEditorInput input)
IWorkingCopyManager
disconnect
in interface IWorkingCopyManager
input
- the editor inputpublic void shutdown()
IWorkingCopyManager
shutdown
in interface IWorkingCopyManager
public IMakefile getWorkingCopy(org.eclipse.ui.IEditorInput input)
IWorkingCopyManager
getWorkingCopy
in interface IWorkingCopyManager
input
- the editor input
null
if the
input does not encode an editor input, or if there is no remembered working
copy for this compilation unitpublic void setWorkingCopy(org.eclipse.ui.IEditorInput input, IMakefile workingCopy)
IWorkingCopyManagerExtension
This working copy manager does not assume the ownership of this working copy, i.e., the given working copy is not automatically be freed when this manager is shut down.
setWorkingCopy
in interface IWorkingCopyManagerExtension
input
- the editor inputworkingCopy
- the working copypublic void removeWorkingCopy(org.eclipse.ui.IEditorInput input)
IWorkingCopyManagerExtension
removeWorkingCopy
in interface IWorkingCopyManagerExtension
input
- the editor input
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |