Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2004-02-13 20:23:31 +0000
committerDoug Schaefer2004-02-13 20:23:31 +0000
commitc7241a4d1a2b349995391ece481e9305cd30072c (patch)
treea445c9c54caf929364b52e7f7f64d94f03703f84 /core/org.eclipse.cdt.ui.tests
parent1300bda0b8130dfa079a4adcaddbd5dc24b454db (diff)
downloadorg.eclipse.cdt-c7241a4d1a2b349995391ece481e9305cd30072c.tar.gz
org.eclipse.cdt-c7241a4d1a2b349995391ece481e9305cd30072c.tar.xz
org.eclipse.cdt-c7241a4d1a2b349995391ece481e9305cd30072c.zip
Fixed up the test suites to use getInstallURL and
asLocalURL to find the location of the test plugins.
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r--core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsBaseTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsBaseTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsBaseTest.java
index 1743bc57ed..61a257debb 100644
--- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsBaseTest.java
+++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist/CompletionProposalsBaseTest.java
@@ -38,7 +38,7 @@ import org.eclipse.core.resources.IProjectDescription;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.text.Document;
import org.eclipse.jface.text.contentassist.ICompletionProposal;
@@ -75,7 +75,7 @@ public abstract class CompletionProposalsBaseTest extends TestCase{
protected void setUp() throws Exception {
monitor = new NullProgressMonitor();
- String pluginRoot=org.eclipse.core.runtime.Platform.getPlugin(pluginName).find(new Path("/")).getFile();
+ String pluginRoot = Platform.asLocalURL(Platform.getPlugin(pluginName).getDescriptor().getInstallURL()).getFile();
fCProject= CProjectHelper.createCProject(projectName, projectType);
fHeaderFile = fCProject.getProject().getFile(getHeaderFileName());

Back to the top