Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNitin Dahyabhai2015-11-04 00:29:34 +0000
committerNitin Dahyabhai2015-11-04 00:29:34 +0000
commit58378b59a284aa3738b08783cb7959a090554eab (patch)
tree1feb3240bc3f869429bc040aaba4a30a0bd6c3e4 /tests/org.eclipse.wst.jsdt.web.ui.tests/src
parenta2601a7c8087ac79b9e1e9575631a276614ee41b (diff)
downloadwebtools.sourceediting-58378b59a284aa3738b08783cb7959a090554eab.tar.gz
webtools.sourceediting-58378b59a284aa3738b08783cb7959a090554eab.tar.xz
webtools.sourceediting-58378b59a284aa3738b08783cb7959a090554eab.zip
[465975] JSPJavaTranslatorCoreTest Junit failure in WTP builds
Additional test plug-in version increment
Diffstat (limited to 'tests/org.eclipse.wst.jsdt.web.ui.tests/src')
-rw-r--r--tests/org.eclipse.wst.jsdt.web.ui.tests/src/org/eclipse/wst/jsdt/web/ui/tests/translation/JSTranslationEditorInput.java8
1 files changed, 4 insertions, 4 deletions
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 4abf0eed93..16102b3b4f 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 IBM Corporation and others.
+ * Copyright (c) 2008, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -63,7 +63,7 @@ public class JSTranslationEditorInput implements IStorageEditorInput {
* @see org.eclipse.core.resources.IStorage#getFullPath()
*/
public IPath getFullPath() {
- return new Path(fTranslation.getJavaPath());
+ return new Path(fBaseLocation + ".js"); //$NON-NLS-1$
}
/*
@@ -72,7 +72,7 @@ public class JSTranslationEditorInput implements IStorageEditorInput {
* @see org.eclipse.core.resources.IStorage#getName()
*/
public String getName() {
- return new Path(fBaseLocation).lastSegment() + ".js";
+ return new Path(fBaseLocation + ".js").lastSegment(); //$NON-NLS-1$
}
/*
@@ -81,7 +81,7 @@ public class JSTranslationEditorInput implements IStorageEditorInput {
* @see org.eclipse.core.resources.IStorage#isReadOnly()
*/
public boolean isReadOnly() {
- return false;
+ return true;
}
}

Back to the top