|
1 | 1 | /*******************************************************************************
|
2 |
| - * Copyright (c) 2004, 2012 IBM Corporation and others. |
| 2 | + * Copyright (c) 2004, 2025 IBM Corporation and others. |
3 | 3 | *
|
4 | 4 | * This program and the accompanying materials
|
5 | 5 | * are made available under the terms of the Eclipse Public License 2.0
|
|
24 | 24 | import org.eclipse.ant.internal.ui.editor.text.XMLTextHover;
|
25 | 25 | import org.eclipse.ant.tests.ui.editor.performance.EditorTestHelper;
|
26 | 26 | import org.eclipse.ant.tests.ui.testplugin.AbstractAntUITest;
|
27 |
| -import org.eclipse.ant.tests.ui.testplugin.ProjectCreationDecorator; |
28 | 27 | import org.eclipse.core.resources.IFile;
|
29 | 28 | import org.eclipse.jface.text.BadLocationException;
|
30 | 29 | import org.eclipse.jface.text.IDocument;
|
@@ -359,11 +358,10 @@ public void testOpenImportViaClasspath() throws PartInitException {
|
359 | 358 | */
|
360 | 359 | @Test
|
361 | 360 | public void testOpenImportWithByteOrderMark() throws PartInitException {
|
362 |
| - if (ProjectCreationDecorator.isJ2SE15Compatible()) { |
363 |
| - IFile file = getIFile("importWithByteOrderMark.xml"); //$NON-NLS-1$ |
364 |
| - AntEditor editor = (AntEditor) EditorTestHelper.openInEditor(file, "org.eclipse.ant.ui.internal.editor.AntEditor", true); //$NON-NLS-1$ |
365 |
| - assertNotNull("Should have imported target", editor.getAntModel().getTargetNode("build")); //$NON-NLS-1$ //$NON-NLS-2$ |
366 |
| - } |
| 361 | + IFile file = getIFile("importWithByteOrderMark.xml"); //$NON-NLS-1$ |
| 362 | + AntEditor editor = (AntEditor) EditorTestHelper.openInEditor(file, |
| 363 | + "org.eclipse.ant.ui.internal.editor.AntEditor", true); //$NON-NLS-1$ |
| 364 | + assertNotNull("Should have imported target", editor.getAntModel().getTargetNode("build")); //$NON-NLS-1$ //$NON-NLS-2$ |
367 | 365 | }
|
368 | 366 |
|
369 | 367 | private int getOffsetWithinLine(AntEditor editor, int lineNumber, int offsetInLine) throws BadLocationException {
|
|
0 commit comments