commit | 623a993934bae172db428792a45c3bf8b953807e | [log] [tgz] |
---|---|---|
author | nitind <nitind> | Mon Aug 17 04:48:40 2009 +0000 |
committer | nitind <nitind> | Mon Aug 17 04:48:40 2009 +0000 |
tree | 8ed3aac4125c4cd5ecd943687dd6b99e38e83e63 | |
parent | 98317669eca6983c9ecba189d0c5246308aa09cd [diff] |
[nobug] adapt for 3.0.5 patches
diff --git a/tests/org.eclipse.wst.jsdt.web.core.tests/src/org/eclipse/wst/jsdt/web/core/tests/translation/TestHtmlTranslation.java b/tests/org.eclipse.wst.jsdt.web.core.tests/src/org/eclipse/wst/jsdt/web/core/tests/translation/TestHtmlTranslation.java index a1291af..8db5b7f 100644 --- a/tests/org.eclipse.wst.jsdt.web.core.tests/src/org/eclipse/wst/jsdt/web/core/tests/translation/TestHtmlTranslation.java +++ b/tests/org.eclipse.wst.jsdt.web.core.tests/src/org/eclipse/wst/jsdt/web/core/tests/translation/TestHtmlTranslation.java
@@ -41,7 +41,7 @@ JsTranslationAdapterFactory.setupAdapterFactory(structuredModel); JsTranslationAdapter translationAdapter = (JsTranslationAdapter) ((IDOMModel) structuredModel).getDocument().getAdapterFor(IJsTranslation.class); - IJsTranslation translation = translationAdapter.getJsTranslation(false); + IJsTranslation translation = translationAdapter.getJSPTranslation(false); assertTrue("expected function definition is missing", translation.getJsText().indexOf("function blah()") >= 0); // release model
diff --git a/tests/org.eclipse.wst.jsdt.web.ui.tests/src/org/eclipse/wst/jsdt/web/ui/tests/translation/JSTranslationEditorInput.java b/tests/org.eclipse.wst.jsdt.web.ui.tests/src/org/eclipse/wst/jsdt/web/ui/tests/translation/JSTranslationEditorInput.java index 85e47d2..5b3cca7 100644 --- a/tests/org.eclipse.wst.jsdt.web.ui.tests/src/org/eclipse/wst/jsdt/web/ui/tests/translation/JSTranslationEditorInput.java +++ b/tests/org.eclipse.wst.jsdt.web.ui.tests/src/org/eclipse/wst/jsdt/web/ui/tests/translation/JSTranslationEditorInput.java
@@ -55,7 +55,7 @@ * @see org.eclipse.core.resources.IStorage#getContents() */ public InputStream getContents() throws CoreException { - return new DocumentInputStream(new Document(getTranslationAdapter().getJsTranslation(false).getJsText())); + return new DocumentInputStream(new Document(getTranslationAdapter().getJSPTranslation(false).getJsText())); } /* @@ -64,7 +64,7 @@ * @see org.eclipse.core.resources.IStorage#getFullPath() */ public IPath getFullPath() { - return new Path(getTranslationAdapter().getJsTranslation(false).getJavaPath()); + return new Path(getTranslationAdapter().getJSPTranslation(false).getJavaPath()); } /*
diff --git a/tests/org.eclipse.wst.jsdt.web.ui.tests/src/org/eclipse/wst/jsdt/web/ui/tests/translation/ShowTranslationHandler.java b/tests/org.eclipse.wst.jsdt.web.ui.tests/src/org/eclipse/wst/jsdt/web/ui/tests/translation/ShowTranslationHandler.java index d2d9d43..2c8580d 100644 --- a/tests/org.eclipse.wst.jsdt.web.ui.tests/src/org/eclipse/wst/jsdt/web/ui/tests/translation/ShowTranslationHandler.java +++ b/tests/org.eclipse.wst.jsdt.web.ui.tests/src/org/eclipse/wst/jsdt/web/ui/tests/translation/ShowTranslationHandler.java
@@ -82,7 +82,7 @@ Job opener = new UIJob("Opening JavaScript Translation") { public IStatus runInUIThread(IProgressMonitor monitor) { JsTranslationAdapter translationAdapter = (JsTranslationAdapter) model.getDocument().getAdapterFor(IJsTranslation.class); - final IJsTranslation translation = translationAdapter.getJsTranslation(false); + final IJsTranslation translation = translationAdapter.getJSPTranslation(false); // create an IEditorInput for the Java editor final IStorageEditorInput input = new JSTranslationEditorInput(model);