Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2010-09-26 18:50:42 +0000
committerStephan Herrmann2010-09-26 18:50:42 +0000
commitec84977d5a6f1a71a6d907fab4c78f3c0ef0d7d4 (patch)
treea45812a773670bc2d8ecb3a2a348ee3643c83fc6 /testplugins/org.eclipse.jdt.ui.tests
parentc4b0a0535cdeefc96d5c9330a5f7e94c338440cc (diff)
downloadorg.eclipse.objectteams-ec84977d5a6f1a71a6d907fab4c78f3c0ef0d7d4.tar.gz
org.eclipse.objectteams-ec84977d5a6f1a71a6d907fab4c78f3c0ef0d7d4.tar.xz
org.eclipse.objectteams-ec84977d5a6f1a71a6d907fab4c78f3c0ef0d7d4.zip
more/copy methods to otdt.ui.tests to reduce our adaptations in jdt.ui.tests
Diffstat (limited to 'testplugins/org.eclipse.jdt.ui.tests')
-rw-r--r--testplugins/org.eclipse.jdt.ui.tests/test plugin/org/eclipse/jdt/testplugin/JavaProjectHelper.java5
-rw-r--r--testplugins/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java17
2 files changed, 0 insertions, 22 deletions
diff --git a/testplugins/org.eclipse.jdt.ui.tests/test plugin/org/eclipse/jdt/testplugin/JavaProjectHelper.java b/testplugins/org.eclipse.jdt.ui.tests/test plugin/org/eclipse/jdt/testplugin/JavaProjectHelper.java
index 08dfdcaf3..84d5fb3ba 100644
--- a/testplugins/org.eclipse.jdt.ui.tests/test plugin/org/eclipse/jdt/testplugin/JavaProjectHelper.java
+++ b/testplugins/org.eclipse.jdt.ui.tests/test plugin/org/eclipse/jdt/testplugin/JavaProjectHelper.java
@@ -732,12 +732,7 @@ public class JavaProjectHelper {
};
}
-//{ObjectTeams: expose to sub-classes
-/* orig:
private static void addNatureToProject(IProject proj, String natureId, IProgressMonitor monitor) throws CoreException {
- :giro */
- protected static void addNatureToProject(IProject proj, String natureId, IProgressMonitor monitor) throws CoreException {
-// SH}
IProjectDescription description = proj.getDescription();
String[] prevNatures= description.getNatureIds();
String[] newNatures= new String[prevNatures.length + 1];
diff --git a/testplugins/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java b/testplugins/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java
index dc7013917..1124c4775 100644
--- a/testplugins/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java
+++ b/testplugins/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java
@@ -200,23 +200,6 @@ public class QuickFixTest extends TestCase {
return collectCorrections(cu, astRoot, nProblems, null);
}
-//{ObjectTeams: variant to test against non-first problem:
- protected static final ArrayList collectCorrections(ICompilationUnit cu, CompilationUnit astRoot, int nProblems, int iProblem, AssistContext context) throws CoreException {
- IProblem[] problems= astRoot.getProblems();
- if (problems.length != nProblems) {
- StringBuffer buf= new StringBuffer("Wrong number of problems, is: ");
- buf.append(problems.length).append(", expected: ").append(nProblems).append('\n');
- for (int i= 0; i < problems.length; i++) {
- buf.append(problems[i]);
- buf.append('[').append(problems[i].getSourceStart()).append(" ,").append(problems[i].getSourceEnd()).append(']');
- buf.append('\n');
- }
- assertTrue(buf.toString(), false);
-
- }
- return collectCorrections(cu, problems[iProblem], context);
- }
-// SH}
protected static final ArrayList collectCorrections(ICompilationUnit cu, CompilationUnit astRoot, int nProblems, AssistContext context) throws CoreException {
IProblem[] problems= astRoot.getProblems();
assertNumberOfProblems(nProblems, problems);

Back to the top