blob: 97ab4eb2822d8180e0010b61c58e707ed4838a8d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_12) on Fri May 30 11:15:49 CDT 2008 -->
<TITLE>
IWorkingCopy
</TITLE>
<META NAME="keywords" CONTENT="org.eclipse.wst.jsdt.core.IWorkingCopy interface">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="IWorkingCopy";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/IWorkingCopy.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/ITypeRoot.html" title="interface in org.eclipse.wst.jsdt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptConventions.html" title="class in org.eclipse.wst.jsdt.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/eclipse/wst/jsdt/core/IWorkingCopy.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="IWorkingCopy.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.eclipse.wst.jsdt.core</FONT>
<BR>
Interface IWorkingCopy</H2>
<DL>
<DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptUnit</A></DD>
</DL>
<HR>
<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html" title="interface in org.eclipse.wst.jsdt.core"><CODE>IJavaScriptUnit</CODE></A> instead
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.</I>
<P>
<DL>
<DT><PRE>public interface <B>IWorkingCopy</B></DL>
</PRE>
<P>
Common protocol for JavaScript elements that support working copies.
<p>
A working copy of a JavaScript element acts just like a regular element (handle),
except it is not attached to an underlying resource. A working copy is not
visible to the rest of the JavaScript model. Changes in a working copy's
buffer are not realized in a resource. To bring the JavaScript model up-to-date with a working
copy's contents, an explicit commit must be performed on the working copy.
Other operations performed on a working copy update the
contents of the working copy's buffer but do not commit the contents
of the working copy.
</p>
<p>
Note: The contents of a working copy is determined when a working
copy is created, based on the current content of the element the working
copy is created from. If a working copy is an <code>IOpenable</code> and is explicitly
closed, the working copy's buffer will be thrown away. However, clients should not
explicitly open and close working copies.
</p>
<p>
The client that creates a working copy is responsible for
destroying the working copy. The JavaScript model will never automatically
destroy or close a working copy. (Note that destroying a working copy
does not commit it to the model, it only frees up the memory occupied by
the element). After a working copy is destroyed, the working copy cannot
be accessed again. Non-handle methods will throw a
<code>JavaScriptModelException</code> indicating the JavaScript element does not exist.
</p>
<p>
A working copy cannot be created from another working copy.
Calling <code>getWorkingCopy</code> on a working copy returns the receiver.
</p>
<p>
This interface is not intended to be implemented by clients.
</p>
<P>
<P>
<HR>
<P>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#commit(boolean, IProgressMonitor)">commit</A></B>(boolean&nbsp;force,
IProgressMonitor&nbsp;monitor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#commitWorkingCopy(boolean, IProgressMonitor)"><CODE>IJavaScriptUnit.commitWorkingCopy(boolean, IProgressMonitor)</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#destroy()">destroy</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#discardWorkingCopy()"><CODE>IJavaScriptUnit.discardWorkingCopy()</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#findElements(org.eclipse.wst.jsdt.core.IJavaScriptElement)">findElements</A></B>(<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A>&nbsp;element)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#findElements(org.eclipse.wst.jsdt.core.IJavaScriptElement)"><CODE>IJavaScriptUnit.findElements(IJavaScriptElement)</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/IType.html" title="interface in org.eclipse.wst.jsdt.core">IType</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#findPrimaryType()">findPrimaryType</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/ITypeRoot.html#findPrimaryType()"><CODE>ITypeRoot.findPrimaryType()</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#findSharedWorkingCopy(org.eclipse.wst.jsdt.core.IBufferFactory)">findSharedWorkingCopy</A></B>(<A HREF="../../../../../org/eclipse/wst/jsdt/core/IBufferFactory.html" title="interface in org.eclipse.wst.jsdt.core">IBufferFactory</A>&nbsp;bufferFactory)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#findWorkingCopy(org.eclipse.wst.jsdt.core.WorkingCopyOwner)"><CODE>IJavaScriptUnit.findWorkingCopy(WorkingCopyOwner)</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#getOriginal(org.eclipse.wst.jsdt.core.IJavaScriptElement)">getOriginal</A></B>(<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A>&nbsp;workingCopyElement)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html#getPrimaryElement()"><CODE>IJavaScriptElement.getPrimaryElement()</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#getOriginalElement()">getOriginalElement</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/ITypeRoot.html#findPrimaryType()"><CODE>ITypeRoot.findPrimaryType()</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#getSharedWorkingCopy(IProgressMonitor, org.eclipse.wst.jsdt.core.IBufferFactory, org.eclipse.wst.jsdt.core.IProblemRequestor)">getSharedWorkingCopy</A></B>(IProgressMonitor&nbsp;monitor,
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IBufferFactory.html" title="interface in org.eclipse.wst.jsdt.core">IBufferFactory</A>&nbsp;factory,
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IProblemRequestor.html" title="interface in org.eclipse.wst.jsdt.core">IProblemRequestor</A>&nbsp;problemRequestor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#getWorkingCopy(org.eclipse.wst.jsdt.core.WorkingCopyOwner, org.eclipse.wst.jsdt.core.IProblemRequestor, IProgressMonitor)"><CODE>IJavaScriptUnit.getWorkingCopy(WorkingCopyOwner, IProblemRequestor, IProgressMonitor)</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#getWorkingCopy()">getWorkingCopy</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#getWorkingCopy(IProgressMonitor)"><CODE>IJavaScriptUnit.getWorkingCopy(IProgressMonitor)</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#getWorkingCopy(IProgressMonitor, org.eclipse.wst.jsdt.core.IBufferFactory, org.eclipse.wst.jsdt.core.IProblemRequestor)">getWorkingCopy</A></B>(IProgressMonitor&nbsp;monitor,
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IBufferFactory.html" title="interface in org.eclipse.wst.jsdt.core">IBufferFactory</A>&nbsp;factory,
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IProblemRequestor.html" title="interface in org.eclipse.wst.jsdt.core">IProblemRequestor</A>&nbsp;problemRequestor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#getWorkingCopy(org.eclipse.wst.jsdt.core.WorkingCopyOwner, org.eclipse.wst.jsdt.core.IProblemRequestor, IProgressMonitor)"><CODE>IJavaScriptUnit.getWorkingCopy(WorkingCopyOwner, IProblemRequestor, IProgressMonitor)</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#isBasedOn(IResource)">isBasedOn</A></B>(IResource&nbsp;resource)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#hasResourceChanged()"><CODE>IJavaScriptUnit.hasResourceChanged()</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#isWorkingCopy()">isWorkingCopy</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#isWorkingCopy()"><CODE>IJavaScriptUnit.isWorkingCopy()</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;IMarker[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#reconcile()">reconcile</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#reconcile(int, boolean, org.eclipse.wst.jsdt.core.WorkingCopyOwner, IProgressMonitor)"><CODE>IJavaScriptUnit.reconcile(int, boolean, WorkingCopyOwner, IProgressMonitor)</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#reconcile(boolean, IProgressMonitor)">reconcile</A></B>(boolean&nbsp;forceProblemDetection,
IProgressMonitor&nbsp;monitor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#reconcile(int, boolean, org.eclipse.wst.jsdt.core.WorkingCopyOwner, IProgressMonitor)"><CODE>IJavaScriptUnit.reconcile(int, boolean, WorkingCopyOwner, IProgressMonitor)</CODE></A> instead.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/eclipse/wst/jsdt/core/IWorkingCopy.html#restore()">restore</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#restore()"><CODE>IJavaScriptUnit.restore()</CODE></A> instead.</I></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="commit(boolean, IProgressMonitor)"><!-- --></A><H3>
commit</H3>
<PRE>
void <B>commit</B>(boolean&nbsp;force,
IProgressMonitor&nbsp;monitor)
throws <A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#commitWorkingCopy(boolean, IProgressMonitor)"><CODE>IJavaScriptUnit.commitWorkingCopy(boolean, IProgressMonitor)</CODE></A> instead.</I>
<P>
<DD>Commits the contents of this working copy to its original element
and underlying resource, bringing the JavaScript model up-to-date with
the current contents of the working copy.
<p>It is possible that the contents of the original resource have changed
since this working copy was created, in which case there is an update conflict.
The value of the <code>force</code> parameter effects the resolution of
such a conflict:<ul>
<li> <code>true</code> - in this case the contents of this working copy are applied to
the underlying resource even though this working copy was created before
a subsequent change in the resource</li>
<li> <code>false</code> - in this case a <code>JavaScriptModelException</code> is thrown</li>
</ul>
<p>
A working copy can be created on a not-yet existing compilation
unit. In particular, such a working copy can then be committed in order to create
the corresponding javaScript unit.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>force</CODE> - a flag to handle the cases when the contents of the original resource have changed
since this working copy was created<DD><CODE>monitor</CODE> - the given progress monitor
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></CODE> - if this working copy could not commit. Reasons include:
<ul>
<li> A <code>CoreException</code> occurred while updating an underlying resource
<li> This element is not a working copy (INVALID_ELEMENT_TYPES)
<li> A update conflict (described above) (UPDATE_CONFLICT)
</ul></DL>
</DD>
</DL>
<HR>
<A NAME="destroy()"><!-- --></A><H3>
destroy</H3>
<PRE>
void <B>destroy</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#discardWorkingCopy()"><CODE>IJavaScriptUnit.discardWorkingCopy()</CODE></A> instead.</I>
<P>
<DD>Destroys this working copy, closing its buffer and discarding
its structure. Subsequent attempts to access non-handle information
for this working copy will result in <code>IJavaModelException</code>s. Has
no effect if this element is not a working copy.
<p>
If this working copy is shared, it is destroyed only when the number of calls to
<code>destroy()</code> is the same as the number of calls to <code>
getSharedWorkingCopy(IProgressMonitor, IBufferFactory)</code>.
</p><p>
When it is destroyed, a REMOVED IJavaScriptElementDelta is reported on this
working copy.
</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="findSharedWorkingCopy(org.eclipse.wst.jsdt.core.IBufferFactory)"><!-- --></A><H3>
findSharedWorkingCopy</H3>
<PRE>
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A> <B>findSharedWorkingCopy</B>(<A HREF="../../../../../org/eclipse/wst/jsdt/core/IBufferFactory.html" title="interface in org.eclipse.wst.jsdt.core">IBufferFactory</A>&nbsp;bufferFactory)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#findWorkingCopy(org.eclipse.wst.jsdt.core.WorkingCopyOwner)"><CODE>IJavaScriptUnit.findWorkingCopy(WorkingCopyOwner)</CODE></A> instead.</I>
<P>
<DD>Finds the shared working copy for this element, given a <code>IBuffer</code> factory.
If no working copy has been created for this element associated with this
buffer factory, returns <code>null</code>.
<p>
Users of this method must not destroy the resulting working copy.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>bufferFactory</CODE> - the given <code>IBuffer</code> factory
<DT><B>Returns:</B><DD>the found shared working copy for this element, <code>null</code> if none<DT><B>See Also:</B><DD><A HREF="../../../../../org/eclipse/wst/jsdt/core/IBufferFactory.html" title="interface in org.eclipse.wst.jsdt.core"><CODE>IBufferFactory</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getOriginal(org.eclipse.wst.jsdt.core.IJavaScriptElement)"><!-- --></A><H3>
getOriginal</H3>
<PRE>
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A> <B>getOriginal</B>(<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A>&nbsp;workingCopyElement)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html#getPrimaryElement()"><CODE>IJavaScriptElement.getPrimaryElement()</CODE></A> instead.</I>
<P>
<DD>Returns the original element the specified working copy element was created from,
or <code>null</code> if this is not a working copy element. This is a handle
only method, the returned element may or may not exist.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>workingCopyElement</CODE> - the specified working copy element
<DT><B>Returns:</B><DD>the original element the specified working copy element was created from,
or <code>null</code> if this is not a working copy element</DL>
</DD>
</DL>
<HR>
<A NAME="getOriginalElement()"><!-- --></A><H3>
getOriginalElement</H3>
<PRE>
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A> <B>getOriginalElement</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/ITypeRoot.html#findPrimaryType()"><CODE>ITypeRoot.findPrimaryType()</CODE></A> instead.</I>
<P>
<DD>Returns the original element this working copy was created from,
or <code>null</code> if this is not a working copy.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the original element this working copy was created from,
or <code>null</code> if this is not a working copy</DL>
</DD>
</DL>
<HR>
<A NAME="findElements(org.eclipse.wst.jsdt.core.IJavaScriptElement)"><!-- --></A><H3>
findElements</H3>
<PRE>
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A>[] <B>findElements</B>(<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A>&nbsp;element)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#findElements(org.eclipse.wst.jsdt.core.IJavaScriptElement)"><CODE>IJavaScriptUnit.findElements(IJavaScriptElement)</CODE></A> instead.</I>
<P>
<DD>Finds the elements in this javaScript unit that correspond to
the given element.
An element A corresponds to an element B if:
<ul>
<li>A has the same element name as B.
<li>If A is a method, A must have the same number of arguments as
B and the simple names of the argument types must be equals.
<li>The parent of A corresponds to the parent of B recursively up to
their respective javaScript units.
<li>A exists.
</ul>
Returns <code>null</code> if no such javaScript elements can be found
or if the given element is not included in a javaScript unit.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>element</CODE> - the given element
<DT><B>Returns:</B><DD>the found elements in this javaScript unit that correspond to the given element</DL>
</DD>
</DL>
<HR>
<A NAME="findPrimaryType()"><!-- --></A><H3>
findPrimaryType</H3>
<PRE>
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IType.html" title="interface in org.eclipse.wst.jsdt.core">IType</A> <B>findPrimaryType</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/ITypeRoot.html#findPrimaryType()"><CODE>ITypeRoot.findPrimaryType()</CODE></A> instead.</I>
<P>
<DD>Finds the primary type of this javaScript unit (that is, the type with the same name as the
javaScript unit), or <code>null</code> if no such a type exists.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the found primary type of this javaScript unit, or <code>null</code> if no such a type exists</DL>
</DD>
</DL>
<HR>
<A NAME="getSharedWorkingCopy(IProgressMonitor, org.eclipse.wst.jsdt.core.IBufferFactory, org.eclipse.wst.jsdt.core.IProblemRequestor)"><!-- --></A><H3>
getSharedWorkingCopy</H3>
<PRE>
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A> <B>getSharedWorkingCopy</B>(IProgressMonitor&nbsp;monitor,
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IBufferFactory.html" title="interface in org.eclipse.wst.jsdt.core">IBufferFactory</A>&nbsp;factory,
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IProblemRequestor.html" title="interface in org.eclipse.wst.jsdt.core">IProblemRequestor</A>&nbsp;problemRequestor)
throws <A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#getWorkingCopy(org.eclipse.wst.jsdt.core.WorkingCopyOwner, org.eclipse.wst.jsdt.core.IProblemRequestor, IProgressMonitor)"><CODE>IJavaScriptUnit.getWorkingCopy(WorkingCopyOwner, IProblemRequestor, IProgressMonitor)</CODE></A> instead.</I>
<P>
<DD>Returns a shared working copy on this element using the given factory to create
the buffer, or this element if this element is already a working copy.
This API can only answer an already existing working copy if it is based on the same
original javaScript unit AND was using the same buffer factory (that is, as defined by <code>Object.equals</code>).
<p>
The life time of a shared working copy is as follows:
<ul>
<li>The first call to <code>getSharedWorkingCopy(...)</code> creates a new working copy for this
element</li>
<li>Subsequent calls increment an internal counter.</li>
<li>A call to <code>destroy()</code> decrements the internal counter.</li>
<li>When this counter is 0, the working copy is destroyed.
</ul>
So users of this method must destroy exactly once the working copy.
<p>
Note that the buffer factory will be used for the life time of this working copy, that is if the
working copy is closed then reopened, this factory will be used.
The buffer will be automatically initialized with the original's javaScript unit content
upon creation.
<p>
When the shared working copy instance is created, an ADDED IJavaScriptElementDelta is reported on this
working copy.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>monitor</CODE> - a progress monitor used to report progress while opening this javaScript unit
or <code>null</code> if no progress should be reported<DD><CODE>factory</CODE> - the factory that creates a buffer that is used to get the content of the working copy
or <code>null</code> if the internal factory should be used<DD><CODE>problemRequestor</CODE> - a requestor which will get notified of problems detected during
reconciling as they are discovered. The requestor can be set to <code>null</code> indicating
that the client is not interested in problems.
<DT><B>Returns:</B><DD>a shared working copy on this element using the given factory to create
the buffer, or this element if this element is already a working copy
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></CODE> - if the contents of this element can
not be determined.<DT><B>See Also:</B><DD><A HREF="../../../../../org/eclipse/wst/jsdt/core/IBufferFactory.html" title="interface in org.eclipse.wst.jsdt.core"><CODE>IBufferFactory</CODE></A>,
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IProblemRequestor.html" title="interface in org.eclipse.wst.jsdt.core"><CODE>IProblemRequestor</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getWorkingCopy()"><!-- --></A><H3>
getWorkingCopy</H3>
<PRE>
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A> <B>getWorkingCopy</B>()
throws <A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#getWorkingCopy(IProgressMonitor)"><CODE>IJavaScriptUnit.getWorkingCopy(IProgressMonitor)</CODE></A> instead.</I>
<P>
<DD>Returns a new working copy of this element if this element is not
a working copy, or this element if this element is already a working copy.
<p>
Note: if intending to share a working copy amongst several clients, then
<code>#getSharedWorkingCopy</code> should be used instead.
</p><p>
When the working copy instance is created, an ADDED IJavaScriptElementDelta is
reported on this working copy.
</p><p>
A working copy can be created on a not-yet existing compilation
unit. In particular, such a working copy can then be committed in order to create
the corresponding javaScript unit.
</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a new working copy of this element if this element is not
a working copy, or this element if this element is already a working copy
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></CODE> - if the contents of this element can
not be determined.</DL>
</DD>
</DL>
<HR>
<A NAME="getWorkingCopy(IProgressMonitor, org.eclipse.wst.jsdt.core.IBufferFactory, org.eclipse.wst.jsdt.core.IProblemRequestor)"><!-- --></A><H3>
getWorkingCopy</H3>
<PRE>
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A> <B>getWorkingCopy</B>(IProgressMonitor&nbsp;monitor,
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IBufferFactory.html" title="interface in org.eclipse.wst.jsdt.core">IBufferFactory</A>&nbsp;factory,
<A HREF="../../../../../org/eclipse/wst/jsdt/core/IProblemRequestor.html" title="interface in org.eclipse.wst.jsdt.core">IProblemRequestor</A>&nbsp;problemRequestor)
throws <A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#getWorkingCopy(org.eclipse.wst.jsdt.core.WorkingCopyOwner, org.eclipse.wst.jsdt.core.IProblemRequestor, IProgressMonitor)"><CODE>IJavaScriptUnit.getWorkingCopy(WorkingCopyOwner, IProblemRequestor, IProgressMonitor)</CODE></A> instead.</I>
<P>
<DD>Returns a new working copy of this element using the given factory to create
the buffer, or this element if this element is already a working copy.
Note that this factory will be used for the life time of this working copy, that is if the
working copy is closed then reopened, this factory will be reused.
The buffer will be automatically initialized with the original's javaScript unit content
upon creation.
<p>
Note: if intending to share a working copy amongst several clients, then
<code>#getSharedWorkingCopy</code> should be used instead.
</p><p>
When the working copy instance is created, an ADDED IJavaScriptElementDelta is
reported on this working copy.
</p><p>
A working copy can be created on a not-yet existing compilation
unit. In particular, such a working copy can then be committed in order to create
the corresponding javaScript unit.
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>monitor</CODE> - a progress monitor used to report progress while opening this javaScript unit
or <code>null</code> if no progress should be reported<DD><CODE>factory</CODE> - the factory that creates a buffer that is used to get the content of the working copy
or <code>null</code> if the internal factory should be used<DD><CODE>problemRequestor</CODE> - a requestor which will get notified of problems detected during
reconciling as they are discovered. The requestor can be set to <code>null</code> indicating
that the client is not interested in problems.
<DT><B>Returns:</B><DD>a new working copy of this element using the given factory to create
the buffer, or this element if this element is already a working copy
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></CODE> - if the contents of this element can
not be determined.</DL>
</DD>
</DL>
<HR>
<A NAME="isBasedOn(IResource)"><!-- --></A><H3>
isBasedOn</H3>
<PRE>
boolean <B>isBasedOn</B>(IResource&nbsp;resource)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#hasResourceChanged()"><CODE>IJavaScriptUnit.hasResourceChanged()</CODE></A> instead.</I>
<P>
<DD>Returns whether this working copy's original element's content
has not changed since the inception of this working copy.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resource</CODE> - this working copy's resource
<DT><B>Returns:</B><DD>true if this working copy's original element's content
has not changed since the inception of this working copy, false otherwise</DL>
</DD>
</DL>
<HR>
<A NAME="isWorkingCopy()"><!-- --></A><H3>
isWorkingCopy</H3>
<PRE>
boolean <B>isWorkingCopy</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#isWorkingCopy()"><CODE>IJavaScriptUnit.isWorkingCopy()</CODE></A> instead.</I>
<P>
<DD>Returns whether this element is a working copy.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if this element is a working copy, false otherwise</DL>
</DD>
</DL>
<HR>
<A NAME="reconcile()"><!-- --></A><H3>
reconcile</H3>
<PRE>
IMarker[] <B>reconcile</B>()
throws <A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#reconcile(int, boolean, org.eclipse.wst.jsdt.core.WorkingCopyOwner, IProgressMonitor)"><CODE>IJavaScriptUnit.reconcile(int, boolean, WorkingCopyOwner, IProgressMonitor)</CODE></A> instead.</I>
<P>
<DD>Reconciles the contents of this working copy.
It performs the reconciliation by locally caching the contents of
the working copy, updating the contents, then creating a delta
over the cached contents and the new contents, and finally firing
this delta.
<p>
If the working copy hasn't changed, then no problem will be detected,
this is equivalent to <code>IWorkingCopy#reconcile(false, null)</code>.</p>
<p>
Compilation problems found in the new contents are notified through the
<code>IProblemRequestor</code> interface which was passed at
creation, and no longer as transient markers. Therefore this API will
return <code>null</code>.</p>
<p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD><code>null</code>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></CODE> - if the contents of the original element
cannot be accessed. Reasons include:
<ul>
<li> The original JavaScript element does not exist (ELEMENT_DOES_NOT_EXIST)</li>
</ul></DL>
</DD>
</DL>
<HR>
<A NAME="reconcile(boolean, IProgressMonitor)"><!-- --></A><H3>
reconcile</H3>
<PRE>
void <B>reconcile</B>(boolean&nbsp;forceProblemDetection,
IProgressMonitor&nbsp;monitor)
throws <A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#reconcile(int, boolean, org.eclipse.wst.jsdt.core.WorkingCopyOwner, IProgressMonitor)"><CODE>IJavaScriptUnit.reconcile(int, boolean, WorkingCopyOwner, IProgressMonitor)</CODE></A> instead.</I>
<P>
<DD>Reconciles the contents of this working copy.
It performs the reconciliation by locally caching the contents of
the working copy, updating the contents, then creating a delta
over the cached contents and the new contents, and finally firing
this delta.
<p>
The boolean argument allows to force problem detection even if the
working copy is already consistent.</p>
<p>
Compilation problems found in the new contents are notified through the
<code>IProblemRequestor</code> interface which was passed at
creation, and no longer as transient markers. Therefore this API answers
nothing.</p>
<p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>forceProblemDetection</CODE> - boolean indicating whether problem should be recomputed
even if the source hasn't changed.<DD><CODE>monitor</CODE> - a progress monitor
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></CODE> - if the contents of the original element
cannot be accessed. Reasons include:
<ul>
<li> The original JavaScript element does not exist (ELEMENT_DOES_NOT_EXIST)</li>
</ul></DL>
</DD>
</DL>
<HR>
<A NAME="restore()"><!-- --></A><H3>
restore</H3>
<PRE>
void <B>restore</B>()
throws <A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html#restore()"><CODE>IJavaScriptUnit.restore()</CODE></A> instead.</I>
<P>
<DD>Restores the contents of this working copy to the current contents of
this working copy's original element. Has no effect if this element
is not a working copy.
<p>Note: This is the inverse of committing the content of the
working copy to the original element with <code>commit(boolean, IProgressMonitor)</code>.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptModelException.html" title="class in org.eclipse.wst.jsdt.core">JavaScriptModelException</A></CODE> - if the contents of the original element
cannot be accessed. Reasons include:
<ul>
<li> The original JavaScript element does not exist (ELEMENT_DOES_NOT_EXIST)</li>
</ul></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/IWorkingCopy.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/ITypeRoot.html" title="interface in org.eclipse.wst.jsdt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../org/eclipse/wst/jsdt/core/JavaScriptConventions.html" title="class in org.eclipse.wst.jsdt.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/eclipse/wst/jsdt/core/IWorkingCopy.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="IWorkingCopy.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>