| <!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:16:05 CDT 2008 --> |
| <TITLE> |
| IJsTranslation |
| </TITLE> |
| |
| <META NAME="keywords" CONTENT="org.eclipse.wst.jsdt.web.core.javascript.IJsTranslation interface"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| parent.document.title="IJsTranslation"; |
| } |
| </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> </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/IJsTranslation.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/wst/jsdt/web/core/javascript/HTML40Namespace.EntityName.html" title="interface in org.eclipse.wst.jsdt.web.core.javascript"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslator.html" title="interface in org.eclipse.wst.jsdt.web.core.javascript"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../../index.html?org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="IJsTranslation.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | CONSTR | <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.web.core.javascript</FONT> |
| <BR> |
| Interface IJsTranslation</H2> |
| <DL> |
| <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/JsTranslation.html" title="class in org.eclipse.wst.jsdt.web.core.javascript">JsTranslation</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public interface <B>IJsTranslation</B></DL> |
| </PRE> |
| |
| <P> |
| 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.<br> |
| <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> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html#classpathChange()">classpathChange</A></B>()</CODE> |
| |
| <BR> |
| notify the translation to update any external dependancies that are created during translation</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/wst/jsdt/web/core/javascript/IJsTranslation.html#fixupMangledName(java.lang.String)">fixupMangledName</A></B>(java.lang.String displayString)</CODE> |
| |
| <BR> |
| fixes a mangled html--> pure js name.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <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/web/core/javascript/IJsTranslation.html#getAllElementsInJsRange(int, int)">getAllElementsInJsRange</A></B>(int javaPositionStart, |
| int javaPositionEnd)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptUnit</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html#getCompilationUnit()">getCompilationUnit</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <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/web/core/javascript/IJsTranslation.html#getElementsFromJsRange(int, int)">getElementsFromJsRange</A></B>(int javaPositionStart, |
| int javaPositionEnd)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> IDocument</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html#getHtmlDocument()">getHtmlDocument</A></B>()</CODE> |
| |
| <BR> |
| </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/wst/jsdt/web/core/javascript/IJsTranslation.html#getHtmlText()">getHtmlText</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html" title="interface in org.eclipse.wst.jsdt.web.core.javascript">IJsTranslation</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html#getInstance(IStructuredDocument, org.eclipse.wst.jsdt.core.IJavaScriptProject, boolean)">getInstance</A></B>(IStructuredDocument htmlDocument, |
| <A HREF="../../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptProject.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptProject</A> javaProj, |
| boolean listenForChanges)</CODE> |
| |
| <BR> |
| </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/wst/jsdt/web/core/javascript/IJsTranslation.html#getJavaPath()">getJavaPath</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptProject.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptProject</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html#getJavaProject()">getJavaProject</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <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/web/core/javascript/IJsTranslation.html#getJsElementAtOffset(int)">getJsElementAtOffset</A></B>(int jsOffset)</CODE> |
| |
| <BR> |
| </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/wst/jsdt/web/core/javascript/IJsTranslation.html#getJsText()">getJsText</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html#getMissingTagStart()">getMissingTagStart</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.List</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html#getProblems()">getProblems</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> Position[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html#getScriptPositions()">getScriptPositions</A></B>()</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/wst/jsdt/web/core/javascript/IJsTranslation.html#ifOffsetInImportNode(int)">ifOffsetInImportNode</A></B>(int offset)</CODE> |
| |
| <BR> |
| </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/wst/jsdt/web/core/javascript/IJsTranslation.html#insertInFirstScriptRegion(java.lang.String)">insertInFirstScriptRegion</A></B>(java.lang.String text)</CODE> |
| |
| <BR> |
| </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/wst/jsdt/web/core/javascript/IJsTranslation.html#insertScript(int, java.lang.String)">insertScript</A></B>(int offset, |
| java.lang.String text)</CODE> |
| |
| <BR> |
| insert javascript at the given offset.</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/wst/jsdt/web/core/javascript/IJsTranslation.html#reconcileCompilationUnit()">reconcileCompilationUnit</A></B>()</CODE> |
| |
| <BR> |
| checks the CU for errors/consistancy.</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/wst/jsdt/web/core/javascript/IJsTranslation.html#release()">release</A></B>()</CODE> |
| |
| <BR> |
| release the translation.</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/wst/jsdt/web/core/javascript/IJsTranslation.html#setProblemCollectingActive(boolean)">setProblemCollectingActive</A></B>(boolean collect)</CODE> |
| |
| <BR> |
| start/stop collecting problems within the javascript unit.</TD> |
| </TR> |
| </TABLE> |
| |
| <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="getJavaProject()"><!-- --></A><H3> |
| getJavaProject</H3> |
| <PRE> |
| <A HREF="../../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptProject.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptProject</A> <B>getJavaProject</B>()</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>IJavaScriptProject that this translation belongs to</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getHtmlDocument()"><!-- --></A><H3> |
| getHtmlDocument</H3> |
| <PRE> |
| IDocument <B>getHtmlDocument</B>()</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>Original HTML document from the translation.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMissingTagStart()"><!-- --></A><H3> |
| getMissingTagStart</H3> |
| <PRE> |
| int <B>getMissingTagStart</B>()</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>integer position of a missing </script> tag (the document isn't well formed and resulted in translation error.).</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getAllElementsInJsRange(int, int)"><!-- --></A><H3> |
| getAllElementsInJsRange</H3> |
| <PRE> |
| <A HREF="../../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A>[] <B>getAllElementsInJsRange</B>(int javaPositionStart, |
| int javaPositionEnd)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>javaPositionStart</CODE> - <DD><CODE>javaPositionEnd</CODE> - |
| <DT><B>Returns:</B><DD>all javascript elements within the given range</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getCompilationUnit()"><!-- --></A><H3> |
| getCompilationUnit</H3> |
| <PRE> |
| <A HREF="../../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptUnit</A> <B>getCompilationUnit</B>()</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the javascript unit from the jsdt.core</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getElementsFromJsRange(int, int)"><!-- --></A><H3> |
| getElementsFromJsRange</H3> |
| <PRE> |
| <A HREF="../../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A>[] <B>getElementsFromJsRange</B>(int javaPositionStart, |
| int javaPositionEnd)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>javaPositionStart</CODE> - <DD><CODE>javaPositionEnd</CODE> - |
| <DT><B>Returns:</B><DD></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getHtmlText()"><!-- --></A><H3> |
| getHtmlText</H3> |
| <PRE> |
| java.lang.String <B>getHtmlText</B>()</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>string of the document.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getJsElementAtOffset(int)"><!-- --></A><H3> |
| getJsElementAtOffset</H3> |
| <PRE> |
| <A HREF="../../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A> <B>getJsElementAtOffset</B>(int jsOffset)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>jsOffset</CODE> - |
| <DT><B>Returns:</B><DD>a single javascript element at the given offset.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getJsText()"><!-- --></A><H3> |
| getJsText</H3> |
| <PRE> |
| java.lang.String <B>getJsText</B>()</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>only the translated javascript text</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getScriptPositions()"><!-- --></A><H3> |
| getScriptPositions</H3> |
| <PRE> |
| Position[] <B>getScriptPositions</B>()</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>a list of the script regions within the translation.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="insertInFirstScriptRegion(java.lang.String)"><!-- --></A><H3> |
| insertInFirstScriptRegion</H3> |
| <PRE> |
| void <B>insertInFirstScriptRegion</B>(java.lang.String text)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>text</CODE> - </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="insertScript(int, java.lang.String)"><!-- --></A><H3> |
| insertScript</H3> |
| <PRE> |
| void <B>insertScript</B>(int offset, |
| java.lang.String text)</PRE> |
| <DL> |
| <DD>insert javascript at the given offset. method should ensure the documents well-formedness and proper script region. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>offset</CODE> - <DD><CODE>text</CODE> - </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getProblems()"><!-- --></A><H3> |
| getProblems</H3> |
| <PRE> |
| java.util.List <B>getProblems</B>()</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>a list of javascript errors</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="ifOffsetInImportNode(int)"><!-- --></A><H3> |
| ifOffsetInImportNode</H3> |
| <PRE> |
| boolean <B>ifOffsetInImportNode</B>(int offset)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>offset</CODE> - |
| <DT><B>Returns:</B><DD>if the offset is within a script import node.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="reconcileCompilationUnit()"><!-- --></A><H3> |
| reconcileCompilationUnit</H3> |
| <PRE> |
| void <B>reconcileCompilationUnit</B>()</PRE> |
| <DL> |
| <DD>checks the CU for errors/consistancy. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="release()"><!-- --></A><H3> |
| release</H3> |
| <PRE> |
| void <B>release</B>()</PRE> |
| <DL> |
| <DD>release the translation. always a good idea to do when you're done. you may notice document and model locks if not. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="fixupMangledName(java.lang.String)"><!-- --></A><H3> |
| fixupMangledName</H3> |
| <PRE> |
| java.lang.String <B>fixupMangledName</B>(java.lang.String displayString)</PRE> |
| <DL> |
| <DD>fixes a mangled html--> pure js name. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>displayString</CODE> - |
| <DT><B>Returns:</B><DD></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setProblemCollectingActive(boolean)"><!-- --></A><H3> |
| setProblemCollectingActive</H3> |
| <PRE> |
| void <B>setProblemCollectingActive</B>(boolean collect)</PRE> |
| <DL> |
| <DD>start/stop collecting problems within the javascript unit. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>collect</CODE> - </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getJavaPath()"><!-- --></A><H3> |
| getJavaPath</H3> |
| <PRE> |
| java.lang.String <B>getJavaPath</B>()</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getInstance(IStructuredDocument, org.eclipse.wst.jsdt.core.IJavaScriptProject, boolean)"><!-- --></A><H3> |
| getInstance</H3> |
| <PRE> |
| <A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html" title="interface in org.eclipse.wst.jsdt.web.core.javascript">IJsTranslation</A> <B>getInstance</B>(IStructuredDocument htmlDocument, |
| <A HREF="../../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptProject.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptProject</A> javaProj, |
| boolean listenForChanges)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>htmlDocument</CODE> - <DD><CODE>javaProj</CODE> - <DD><CODE>listenForChanges</CODE> - |
| <DT><B>Returns:</B><DD></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="classpathChange()"><!-- --></A><H3> |
| classpathChange</H3> |
| <PRE> |
| void <B>classpathChange</B>()</PRE> |
| <DL> |
| <DD>notify the translation to update any external dependancies that are created during translation |
| <P> |
| <DD><DL> |
| </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/IJsTranslation.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/wst/jsdt/web/core/javascript/HTML40Namespace.EntityName.html" title="interface in org.eclipse.wst.jsdt.web.core.javascript"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../../../org/eclipse/wst/jsdt/web/core/javascript/IJsTranslator.html" title="interface in org.eclipse.wst.jsdt.web.core.javascript"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../../index.html?org/eclipse/wst/jsdt/web/core/javascript/IJsTranslation.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="IJsTranslation.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| |
| </BODY> |
| </HTML> |