mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Update UI tests to get rid of warnings.
This commit is contained in:
parent
1a5a30c950
commit
a099af8eeb
3 changed files with 4 additions and 11 deletions
|
@ -18,10 +18,10 @@
|
|||
<import plugin="org.eclipse.swt"/>
|
||||
<import plugin="org.eclipse.ui"/>
|
||||
<import plugin="org.junit"/>
|
||||
<import plugin="org.eclipse.core.runtime.compatibility"/>
|
||||
<import plugin="org.eclipse.cdt.core"/>
|
||||
<import plugin="org.eclipse.cdt.core.tests"/>
|
||||
<import plugin="org.eclipse.help"/>
|
||||
<import plugin="org.eclipse.core.runtime"/>
|
||||
</requires>
|
||||
|
||||
<extension
|
||||
|
|
|
@ -6,14 +6,12 @@ package org.eclipse.cdt.testplugin;
|
|||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
import org.eclipse.core.resources.IWorkspace;
|
||||
import org.eclipse.core.resources.IWorkspaceDescription;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.IPluginDescriptor;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.eclipse.core.runtime.Plugin;
|
||||
|
||||
|
@ -22,8 +20,8 @@ public class CTestPlugin extends Plugin {
|
|||
|
||||
private static CTestPlugin fgDefault;
|
||||
|
||||
public CTestPlugin(IPluginDescriptor descriptor) {
|
||||
super(descriptor);
|
||||
public CTestPlugin() {
|
||||
super();
|
||||
fgDefault= this;
|
||||
}
|
||||
|
||||
|
@ -45,14 +43,10 @@ public class CTestPlugin extends Plugin {
|
|||
|
||||
public File getFileInPlugin(IPath path) {
|
||||
try {
|
||||
URL installURL= new URL(getDescriptor().getInstallURL(), path.toString());
|
||||
URL localURL= Platform.asLocalURL(installURL);
|
||||
return new File(localURL.getFile());
|
||||
return new File(Platform.asLocalURL(find(path)).getFile());
|
||||
} catch (IOException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -9,7 +9,6 @@ import junit.framework.Test;
|
|||
import junit.framework.TestSuite;
|
||||
|
||||
import org.eclipse.cdt.ui.tests.text.contentassist.CompletionFailedTest_MemberReference_Arrow_Prefix2;
|
||||
import org.eclipse.cdt.ui.tests.text.contentassist.CompletionTest_VariableType_NestedPrefix;
|
||||
import org.eclipse.cdt.ui.tests.text.contentassist.CompletionTest_ArgumentType_NoPrefix;
|
||||
import org.eclipse.cdt.ui.tests.text.contentassist.CompletionTest_ArgumentType_NoPrefix2;
|
||||
import org.eclipse.cdt.ui.tests.text.contentassist.CompletionTest_ArgumentType_Prefix;
|
||||
|
|
Loading…
Add table
Reference in a new issue