| <!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.6.0_14) on Wed Apr 07 07:58:04 BST 2010 --> |
| <TITLE> |
| FileUtils |
| </TITLE> |
| |
| <META NAME="date" CONTENT="2010-04-07"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="FileUtils"; |
| } |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| <HR> |
| |
| |
| <!-- ========= 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> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FileUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/EditResourcesManager.html" title="class in org.eclipse.jst.ws.jaxws.utils.resources"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../../index.html?org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="FileUtils.html" target="_top"><B>NO FRAMES</B></A> |
| <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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.jst.ws.jaxws.utils.resources</FONT> |
| <BR> |
| Class FileUtils</H2> |
| <PRE> |
| java.lang.Object |
| <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by "><B>org.eclipse.jst.ws.jaxws.utils.resources.FileUtils</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public class <B>FileUtils</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></DL> |
| </PRE> |
| |
| <P> |
| Implementation for file utilities interface |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Author:</B></DT> |
| <DD>Danail Branekov</DD> |
| </DL> |
| <HR> |
| |
| <P> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_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>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#FileUtils()">FileUtils</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== 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> java.io.File</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#createTempDirectory()">createTempDirectory</A></B>()</CODE> |
| |
| <BR> |
| Creates a new directory in the OS temp folder</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#deleteDirectory(java.io.File)">deleteDirectory</A></B>(java.io.File directory)</CODE> |
| |
| <BR> |
| Deletes the specified directory and all its content |
| |
| param directory</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.net.URL</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#fileOrURLToURL(java.net.URL, java.lang.String)">fileOrURLToURL</A></B>(java.net.URL base, |
| java.lang.String path)</CODE> |
| |
| <BR> |
| Converts a String to a URL, assuming 'file:' as a default scheme.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.List<org.eclipse.jdt.core.ICompilationUnit></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#getCompilationUnits(java.lang.String)">getCompilationUnits</A></B>(java.lang.String fileLocation)</CODE> |
| |
| <BR> |
| Retrieve compilation units for the location specified</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.Collection<org.eclipse.ui.IEditorPart></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#getDirtyEditors()">getDirtyEditors</A></B>()</CODE> |
| |
| <BR> |
| Retrieves a list of dirty editors</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.List<org.eclipse.ui.IEditorPart></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#getEditorsByCompilationUnit(org.eclipse.jdt.core.ICompilationUnit)">getEditorsByCompilationUnit</A></B>(org.eclipse.jdt.core.ICompilationUnit cu)</CODE> |
| |
| <BR> |
| Retrieves a list of editors that are currently displaying the compilation |
| unit specified.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.List<org.eclipse.ui.IEditorPart></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#getEditorsByFileLocation(java.lang.String)">getEditorsByFileLocation</A></B>(java.lang.String fileLocation)</CODE> |
| |
| <BR> |
| Retrieves the editors that are currently displaying the file specfied.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#getFileContent(java.io.File)">getFileContent</A></B>(java.io.File sourceFile)</CODE> |
| |
| <BR> |
| Reads file content as text and returns <CODE>String</CODE></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> org.eclipse.core.resources.IFile</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#getFileForLocation(org.eclipse.core.runtime.IPath)">getFileForLocation</A></B>(org.eclipse.core.runtime.IPath location)</CODE> |
| |
| <BR> |
| Retrieve a file instance for the location specified.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> org.eclipse.core.resources.IFile[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#getFilesByExtension(org.eclipse.core.resources.IProject, java.lang.String)">getFilesByExtension</A></B>(org.eclipse.core.resources.IProject project, |
| java.lang.String extension)</CODE> |
| |
| <BR> |
| Gets all the files with the provided extension within a project.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#getInstance()">getInstance</A></B>()</CODE> |
| |
| <BR> |
| The factory method</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> org.eclipse.core.resources.IProject</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#getProjectUnit(java.lang.String)">getProjectUnit</A></B>(java.lang.String fileLocation)</CODE> |
| |
| <BR> |
| Retrieve project unit for the location specified</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#isCompilationUnitDisplayedInDirtyEditor(org.eclipse.jdt.core.ICompilationUnit)">isCompilationUnitDisplayedInDirtyEditor</A></B>(org.eclipse.jdt.core.ICompilationUnit unit)</CODE> |
| |
| <BR> |
| Determines whether the compilation unit specified is displayed within an |
| editor which has a dirty state.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#isFileDisplayedInDirtyEditor(java.util.List)">isFileDisplayedInDirtyEditor</A></B>(java.util.List<org.eclipse.ui.IEditorPart> displayingEditors)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#isFileDisplayedInDirtyEditor(java.lang.String)">isFileDisplayedInDirtyEditor</A></B>(java.lang.String fileLocation)</CODE> |
| |
| <BR> |
| Determines whether the file specified is displayed within an editor which |
| has a dirty state.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#saveEditor(org.eclipse.jdt.core.ICompilationUnit)">saveEditor</A></B>(org.eclipse.jdt.core.ICompilationUnit cu)</CODE> |
| |
| <BR> |
| Saves all the dirty state editors that are currently displaying the |
| compilation unit specified</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#saveEditor(org.eclipse.jdt.core.ICompilationUnit, org.eclipse.core.runtime.IProgressMonitor)">saveEditor</A></B>(org.eclipse.jdt.core.ICompilationUnit cu, |
| org.eclipse.core.runtime.IProgressMonitor monitor)</CODE> |
| |
| <BR> |
| Saves all the dirty state editors that are currently displaying the |
| compilation unit specified</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#saveEditor(java.lang.String)">saveEditor</A></B>(java.lang.String fileLocation)</CODE> |
| |
| <BR> |
| Saves the dirty state editor</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#saveEditor(java.lang.String, org.eclipse.core.runtime.IProgressMonitor)">saveEditor</A></B>(java.lang.String fileLocation, |
| org.eclipse.core.runtime.IProgressMonitor monitor)</CODE> |
| |
| <BR> |
| Saves the dirty state editor</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#setCompilationUnitContent(org.eclipse.jdt.core.ICompilationUnit, java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)">setCompilationUnitContent</A></B>(org.eclipse.jdt.core.ICompilationUnit unit, |
| java.lang.String content, |
| boolean force, |
| org.eclipse.core.runtime.IProgressMonitor monitor)</CODE> |
| |
| <BR> |
| Sets the content of the compilation unit specified with the |
| <code>content</code> provided.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html#setCompilationUnitContentAndSaveDirtyEditors(org.eclipse.jdt.core.ICompilationUnit, java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)">setCompilationUnitContentAndSaveDirtyEditors</A></B>(org.eclipse.jdt.core.ICompilationUnit unit, |
| java.lang.String content, |
| boolean force, |
| org.eclipse.core.runtime.IProgressMonitor monitor)</CODE> |
| |
| <BR> |
| Sets the content of the compilation unit specified with the |
| <code>content</code> provided and saves the dirty editors if any which |
| display the compilation unit.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_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>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="FileUtils()"><!-- --></A><H3> |
| FileUtils</H3> |
| <PRE> |
| public <B>FileUtils</B>()</PRE> |
| <DL> |
| </DL> |
| |
| <!-- ============ 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="getInstance()"><!-- --></A><H3> |
| getInstance</H3> |
| <PRE> |
| public static <A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A> <B>getInstance</B>()</PRE> |
| <DL> |
| <DD>The factory method |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>a FileUtils instance</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getEditorsByFileLocation(java.lang.String)"><!-- --></A><H3> |
| getEditorsByFileLocation</H3> |
| <PRE> |
| public final java.util.List<org.eclipse.ui.IEditorPart> <B>getEditorsByFileLocation</B>(java.lang.String fileLocation) |
| throws java.io.FileNotFoundException</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getEditorsByFileLocation(java.lang.String)">IFileUtils</A></CODE></B></DD> |
| <DD>Retrieves the editors that are currently displaying the file specfied. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getEditorsByFileLocation(java.lang.String)">getEditorsByFileLocation</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>fileLocation</CODE> - Absolute path to the file |
| <DT><B>Returns:</B><DD>Current opened editors of the file specified or an empty list if such are not opened |
| <DT><B>Throws:</B> |
| <DD><CODE>java.io.FileNotFoundException</CODE> - when the file does not exist<DT><B>See Also:</B><DD><CODE>IResource#getLocation().toOSString()</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getCompilationUnits(java.lang.String)"><!-- --></A><H3> |
| getCompilationUnits</H3> |
| <PRE> |
| public final java.util.List<org.eclipse.jdt.core.ICompilationUnit> <B>getCompilationUnits</B>(java.lang.String fileLocation) |
| throws java.io.FileNotFoundException</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getCompilationUnits(java.lang.String)">IFileUtils</A></CODE></B></DD> |
| <DD>Retrieve compilation units for the location specified |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getCompilationUnits(java.lang.String)">getCompilationUnits</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>fileLocation</CODE> - The absolute path to the file, e.g. |
| <code>C:\\dir1\\dir2\\file.name</code> |
| <DT><B>Returns:</B><DD>The compilation units; cannot be null |
| <DT><B>Throws:</B> |
| <DD><CODE>java.io.FileNotFoundException</CODE> - when the file specified cannot be found in the workspace<DT><B>See Also:</B><DD><CODE>IResource#getLocation()#toOSString()</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getProjectUnit(java.lang.String)"><!-- --></A><H3> |
| getProjectUnit</H3> |
| <PRE> |
| public org.eclipse.core.resources.IProject <B>getProjectUnit</B>(java.lang.String fileLocation) |
| throws java.io.FileNotFoundException</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getProjectUnit(java.lang.String)">IFileUtils</A></CODE></B></DD> |
| <DD>Retrieve project unit for the location specified |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getProjectUnit(java.lang.String)">getProjectUnit</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>fileLocation</CODE> - The absolute path to the file, e.g. |
| <code>C:\\dir1\\dir2\\file.name</code> |
| <DT><B>Returns:</B><DD>The compilation units; cannot be null |
| <DT><B>Throws:</B> |
| <DD><CODE>java.io.FileNotFoundException</CODE> - when the file specified cannot be found in the workspace<DT><B>See Also:</B><DD><CODE>IResource#getLocation()#toOSString()</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isFileDisplayedInDirtyEditor(java.lang.String)"><!-- --></A><H3> |
| isFileDisplayedInDirtyEditor</H3> |
| <PRE> |
| public final boolean <B>isFileDisplayedInDirtyEditor</B>(java.lang.String fileLocation) |
| throws java.io.FileNotFoundException</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#isFileDisplayedInDirtyEditor(java.lang.String)">IFileUtils</A></CODE></B></DD> |
| <DD>Determines whether the file specified is displayed within an editor which |
| has a dirty state. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#isFileDisplayedInDirtyEditor(java.lang.String)">isFileDisplayedInDirtyEditor</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>fileLocation</CODE> - Absolute path to the file |
| <DT><B>Returns:</B><DD>whether the file is dirty |
| <DT><B>Throws:</B> |
| <DD><CODE>java.io.FileNotFoundException</CODE> - when the location specified does not exist<DT><B>See Also:</B><DD><CODE>IResource#getLocation().toOSString()</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isCompilationUnitDisplayedInDirtyEditor(org.eclipse.jdt.core.ICompilationUnit)"><!-- --></A><H3> |
| isCompilationUnitDisplayedInDirtyEditor</H3> |
| <PRE> |
| public boolean <B>isCompilationUnitDisplayedInDirtyEditor</B>(org.eclipse.jdt.core.ICompilationUnit unit)</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#isCompilationUnitDisplayedInDirtyEditor(org.eclipse.jdt.core.ICompilationUnit)">IFileUtils</A></CODE></B></DD> |
| <DD>Determines whether the compilation unit specified is displayed within an |
| editor which has a dirty state. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#isCompilationUnitDisplayedInDirtyEditor(org.eclipse.jdt.core.ICompilationUnit)">isCompilationUnitDisplayedInDirtyEditor</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>unit</CODE> - The compilation unit |
| <DT><B>Returns:</B><DD>whether the compilation unit is dirty</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="saveEditor(java.lang.String)"><!-- --></A><H3> |
| saveEditor</H3> |
| <PRE> |
| public final void <B>saveEditor</B>(java.lang.String fileLocation) |
| throws java.io.FileNotFoundException</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#saveEditor(java.lang.String)">IFileUtils</A></CODE></B></DD> |
| <DD>Saves the dirty state editor |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#saveEditor(java.lang.String)">saveEditor</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>fileLocation</CODE> - Absolute path to the file |
| <DT><B>Throws:</B> |
| <DD><CODE>java.io.FileNotFoundException</CODE> - when the location specified does not exis<DT><B>See Also:</B><DD><CODE>IResource#getLocation()#toOSString()</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="saveEditor(java.lang.String, org.eclipse.core.runtime.IProgressMonitor)"><!-- --></A><H3> |
| saveEditor</H3> |
| <PRE> |
| public void <B>saveEditor</B>(java.lang.String fileLocation, |
| org.eclipse.core.runtime.IProgressMonitor monitor) |
| throws java.io.FileNotFoundException</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#saveEditor(java.lang.String, org.eclipse.core.runtime.IProgressMonitor)">IFileUtils</A></CODE></B></DD> |
| <DD>Saves the dirty state editor |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#saveEditor(java.lang.String, org.eclipse.core.runtime.IProgressMonitor)">saveEditor</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>fileLocation</CODE> - Absolute path to the file<DD><CODE>monitor</CODE> - Progress monitor |
| <DT><B>Throws:</B> |
| <DD><CODE>java.io.FileNotFoundException</CODE> - when the location specified does not exis<DT><B>See Also:</B><DD><CODE>IResource#getLocation()#toOSString()</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="saveEditor(org.eclipse.jdt.core.ICompilationUnit, org.eclipse.core.runtime.IProgressMonitor)"><!-- --></A><H3> |
| saveEditor</H3> |
| <PRE> |
| public void <B>saveEditor</B>(org.eclipse.jdt.core.ICompilationUnit cu, |
| org.eclipse.core.runtime.IProgressMonitor monitor)</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#saveEditor(org.eclipse.jdt.core.ICompilationUnit, org.eclipse.core.runtime.IProgressMonitor)">IFileUtils</A></CODE></B></DD> |
| <DD>Saves all the dirty state editors that are currently displaying the |
| compilation unit specified |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#saveEditor(org.eclipse.jdt.core.ICompilationUnit, org.eclipse.core.runtime.IProgressMonitor)">saveEditor</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>cu</CODE> - the compilation unit<DD><CODE>monitor</CODE> - Progress monitor</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="saveEditor(org.eclipse.jdt.core.ICompilationUnit)"><!-- --></A><H3> |
| saveEditor</H3> |
| <PRE> |
| public void <B>saveEditor</B>(org.eclipse.jdt.core.ICompilationUnit cu)</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#saveEditor(org.eclipse.jdt.core.ICompilationUnit)">IFileUtils</A></CODE></B></DD> |
| <DD>Saves all the dirty state editors that are currently displaying the |
| compilation unit specified |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#saveEditor(org.eclipse.jdt.core.ICompilationUnit)">saveEditor</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>cu</CODE> - the compilation unit</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDirtyEditors()"><!-- --></A><H3> |
| getDirtyEditors</H3> |
| <PRE> |
| public java.util.Collection<org.eclipse.ui.IEditorPart> <B>getDirtyEditors</B>()</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getDirtyEditors()">IFileUtils</A></CODE></B></DD> |
| <DD>Retrieves a list of dirty editors |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getDirtyEditors()">getDirtyEditors</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>collection containing dirty editors</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fileOrURLToURL(java.net.URL, java.lang.String)"><!-- --></A><H3> |
| fileOrURLToURL</H3> |
| <PRE> |
| public final java.net.URL <B>fileOrURLToURL</B>(java.net.URL base, |
| java.lang.String path) |
| throws java.io.IOException</PRE> |
| <DL> |
| <DD>Converts a String to a URL, assuming 'file:' as a default scheme. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#fileOrURLToURL(java.net.URL, java.lang.String)">fileOrURLToURL</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>base</CODE> - <DD><CODE>path</CODE> - |
| <DT><B>Returns:</B><DD> |
| <DT><B>Throws:</B> |
| <DD><CODE>NullPointerException,</CODE> - if the String is neither a valid URL, nor a valid filename. |
| <DD><CODE>java.io.IOException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createTempDirectory()"><!-- --></A><H3> |
| createTempDirectory</H3> |
| <PRE> |
| public java.io.File <B>createTempDirectory</B>()</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#createTempDirectory()">IFileUtils</A></CODE></B></DD> |
| <DD>Creates a new directory in the OS temp folder |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#createTempDirectory()">createTempDirectory</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the directory</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="deleteDirectory(java.io.File)"><!-- --></A><H3> |
| deleteDirectory</H3> |
| <PRE> |
| public void <B>deleteDirectory</B>(java.io.File directory)</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#deleteDirectory(java.io.File)">IFileUtils</A></CODE></B></DD> |
| <DD>Deletes the specified directory and all its content |
| |
| param directory |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#deleteDirectory(java.io.File)">deleteDirectory</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getFilesByExtension(org.eclipse.core.resources.IProject, java.lang.String)"><!-- --></A><H3> |
| getFilesByExtension</H3> |
| <PRE> |
| public org.eclipse.core.resources.IFile[] <B>getFilesByExtension</B>(org.eclipse.core.resources.IProject project, |
| java.lang.String extension) |
| throws org.eclipse.core.runtime.CoreException</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getFilesByExtension(org.eclipse.core.resources.IProject, java.lang.String)">IFileUtils</A></CODE></B></DD> |
| <DD>Gets all the files with the provided extension within a project. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getFilesByExtension(org.eclipse.core.resources.IProject, java.lang.String)">getFilesByExtension</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>project</CODE> - - |
| to be searched<DD><CODE>extension</CODE> - - |
| types of files of interest |
| <DT><B>Throws:</B> |
| <DD><CODE>org.eclipse.core.runtime.CoreException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getFileForLocation(org.eclipse.core.runtime.IPath)"><!-- --></A><H3> |
| getFileForLocation</H3> |
| <PRE> |
| public org.eclipse.core.resources.IFile <B>getFileForLocation</B>(org.eclipse.core.runtime.IPath location)</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getFileForLocation(org.eclipse.core.runtime.IPath)">IFileUtils</A></CODE></B></DD> |
| <DD>Retrieve a file instance for the location specified. This method is a |
| convenience method equivalent to invoking |
| <code>ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(location)</code> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getFileForLocation(org.eclipse.core.runtime.IPath)">getFileForLocation</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>location</CODE> - the file location; must be absolute |
| <DT><B>Returns:</B><DD>the corresponding file in the workspace, or null if none<DT><B>See Also:</B><DD><CODE>IWorkspaceRoot.getFileForLocation(IPath)</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getEditorsByCompilationUnit(org.eclipse.jdt.core.ICompilationUnit)"><!-- --></A><H3> |
| getEditorsByCompilationUnit</H3> |
| <PRE> |
| public java.util.List<org.eclipse.ui.IEditorPart> <B>getEditorsByCompilationUnit</B>(org.eclipse.jdt.core.ICompilationUnit cu)</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getEditorsByCompilationUnit(org.eclipse.jdt.core.ICompilationUnit)">IFileUtils</A></CODE></B></DD> |
| <DD>Retrieves a list of editors that are currently displaying the compilation |
| unit specified. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getEditorsByCompilationUnit(org.eclipse.jdt.core.ICompilationUnit)">getEditorsByCompilationUnit</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>cu</CODE> - the compilation unit; must not be null |
| <DT><B>Returns:</B><DD>Current editors list or an empty list in case there are not |
| editors displaying the file specified</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isFileDisplayedInDirtyEditor(java.util.List)"><!-- --></A><H3> |
| isFileDisplayedInDirtyEditor</H3> |
| <PRE> |
| public final boolean <B>isFileDisplayedInDirtyEditor</B>(java.util.List<org.eclipse.ui.IEditorPart> displayingEditors)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getFileContent(java.io.File)"><!-- --></A><H3> |
| getFileContent</H3> |
| <PRE> |
| public java.lang.String <B>getFileContent</B>(java.io.File sourceFile) |
| throws java.io.IOException</PRE> |
| <DL> |
| <DD>Reads file content as text and returns <CODE>String</CODE> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#getFileContent(java.io.File)">getFileContent</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>sourceFile</CODE> - |
| <DT><B>Returns:</B><DD>the content of file |
| <DT><B>Throws:</B> |
| <DD><CODE>java.io.IOException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setCompilationUnitContent(org.eclipse.jdt.core.ICompilationUnit, java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)"><!-- --></A><H3> |
| setCompilationUnitContent</H3> |
| <PRE> |
| public void <B>setCompilationUnitContent</B>(org.eclipse.jdt.core.ICompilationUnit unit, |
| java.lang.String content, |
| boolean force, |
| org.eclipse.core.runtime.IProgressMonitor monitor) |
| throws org.eclipse.jdt.core.JavaModelException</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#setCompilationUnitContent(org.eclipse.jdt.core.ICompilationUnit, java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)">IFileUtils</A></CODE></B></DD> |
| <DD>Sets the content of the compilation unit specified with the |
| <code>content</code> provided. There is no validation of the content |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#setCompilationUnitContent(org.eclipse.jdt.core.ICompilationUnit, java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)">setCompilationUnitContent</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>unit</CODE> - the compilation unit. Must not be null. If the compilation |
| unit does not exist, it will be created<DD><CODE>content</CODE> - the content to be set. Must not be null<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 monitor to report progress to or null if no progress |
| monitoring is required |
| <DT><B>Throws:</B> |
| <DD><CODE>org.eclipse.jdt.core.JavaModelException</CODE> - when there is a problem with setting compilation unit content<DT><B>See Also:</B><DD><CODE>ICompilationUnit.becomeWorkingCopy(IProgressMonitor)</CODE>, |
| <CODE>ICompilationUnit.commitWorkingCopy(boolean, IProgressMonitor)</CODE>, |
| <CODE>ICompilationUnit.discardWorkingCopy()</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setCompilationUnitContentAndSaveDirtyEditors(org.eclipse.jdt.core.ICompilationUnit, java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)"><!-- --></A><H3> |
| setCompilationUnitContentAndSaveDirtyEditors</H3> |
| <PRE> |
| public void <B>setCompilationUnitContentAndSaveDirtyEditors</B>(org.eclipse.jdt.core.ICompilationUnit unit, |
| java.lang.String content, |
| boolean force, |
| org.eclipse.core.runtime.IProgressMonitor monitor) |
| throws org.eclipse.jdt.core.JavaModelException</PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#setCompilationUnitContentAndSaveDirtyEditors(org.eclipse.jdt.core.ICompilationUnit, java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)">IFileUtils</A></CODE></B></DD> |
| <DD>Sets the content of the compilation unit specified with the |
| <code>content</code> provided and saves the dirty editors if any which |
| display the compilation unit. There is no validation of the content |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#setCompilationUnitContentAndSaveDirtyEditors(org.eclipse.jdt.core.ICompilationUnit, java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)">setCompilationUnitContentAndSaveDirtyEditors</A></CODE> in interface <CODE><A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources">IFileUtils</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>unit</CODE> - the compilation unit. Must not be null. If the compilation |
| unit does not exist, it will be created<DD><CODE>content</CODE> - the content to be set. Must not be null<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 monitor to report progress to or null if no progress |
| monitoring is required |
| <DT><B>Throws:</B> |
| <DD><CODE>org.eclipse.jdt.core.JavaModelException</CODE> - when there is a problem with setting compilation unit content<DT><B>See Also:</B><DD><CODE>ICompilationUnit.becomeWorkingCopy(IProgressMonitor)</CODE>, |
| <CODE>ICompilationUnit.commitWorkingCopy(boolean, IProgressMonitor)</CODE>, |
| <CODE>ICompilationUnit.discardWorkingCopy()</CODE>, |
| <A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#setCompilationUnitContent(org.eclipse.jdt.core.ICompilationUnit, java.lang.String, boolean, org.eclipse.core.runtime.IProgressMonitor)"><CODE>IFileUtils.setCompilationUnitContent(ICompilationUnit, String, |
| boolean, IProgressMonitor)</CODE></A>, |
| <A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#isFileDisplayedInDirtyEditor(java.lang.String)"><CODE>IFileUtils.isFileDisplayedInDirtyEditor(String)</CODE></A>, |
| <A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html#saveEditor(org.eclipse.jdt.core.ICompilationUnit, org.eclipse.core.runtime.IProgressMonitor)"><CODE>IFileUtils.saveEditor(ICompilationUnit, IProgressMonitor)</CODE></A></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> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FileUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/EditResourcesManager.html" title="class in org.eclipse.jst.ws.jaxws.utils.resources"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../../../org/eclipse/jst/ws/jaxws/utils/resources/IFileUtils.html" title="interface in org.eclipse.jst.ws.jaxws.utils.resources"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../../index.html?org/eclipse/jst/ws/jaxws/utils/resources/FileUtils.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="FileUtils.html" target="_top"><B>NO FRAMES</B></A> |
| <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| |
| </BODY> |
| </HTML> |