File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed
tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2004, 2011 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
@@ -164,10 +164,6 @@ public void doSetUp() throws Exception {
164
164
file1 = FileUtil .createFile ("DragTest1.txt" , project ); //$NON-NLS-1$
165
165
file2 = FileUtil .createFile ("DragTest2.txt" , project ); //$NON-NLS-1$
166
166
file3 = FileUtil .createFile ("DragTest3.txt" , project ); //$NON-NLS-1$
167
-
168
- // Disable animations since they occur concurrently and can interferre
169
- // with locating drop targets
170
- setPreference (PrefUtil .getAPIPreferenceStore (), IWorkbenchPreferenceConstants .ENABLE_ANIMATIONS , false );
171
167
}
172
168
173
169
page .resetPerspective ();
Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2004, 2021 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
13
13
*******************************************************************************/
14
14
package org .eclipse .ui .tests .dnd ;
15
15
16
+ import org .eclipse .core .runtime .FileLocator ;
16
17
import org .eclipse .core .runtime .IPath ;
17
- import org .eclipse .core .runtime .Platform ;
18
18
import org .eclipse .swt .SWT ;
19
19
import org .eclipse .swt .widgets .Composite ;
20
20
import org .eclipse .swt .widgets .Shell ;
@@ -58,7 +58,7 @@ public static Test suite() {
58
58
}
59
59
60
60
public DragTestSuite () {
61
- super (Platform .find (TestPlugin .getDefault ().getBundle (), IPath .fromOSString ("data/dragtests.xml" )));
61
+ super (FileLocator .find (TestPlugin .getDefault ().getBundle (), IPath .fromOSString ("data/dragtests.xml" )));
62
62
63
63
String resNav = IPageLayout .ID_PROJECT_EXPLORER ;
64
64
String probView = IPageLayout .ID_PROBLEM_VIEW ;
Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2004, 2006 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
16
16
import java .io .IOException ;
17
17
import java .net .URL ;
18
18
19
- import org .eclipse .core .runtime .Platform ;
19
+ import org .eclipse .core .runtime .FileLocator ;
20
20
import org .eclipse .ui .tests .TestPlugin ;
21
21
import org .osgi .framework .Bundle ;
22
22
import org .osgi .framework .BundleException ;
@@ -32,7 +32,7 @@ public static final Bundle installPlugin(String pluginName)
32
32
"TestPlugin default reference is null" );
33
33
}
34
34
String pluginLocation = null ;
35
- URL dataURL = Platform .resolve (plugin .getBundle ().getEntry (pluginName ));
35
+ URL dataURL = FileLocator .resolve (plugin .getBundle ().getEntry (pluginName ));
36
36
pluginLocation = "reference:" + dataURL .toExternalForm ();
37
37
return TestInstallUtil .installBundle (pluginLocation );
38
38
}
You can’t perform that action at this time.
0 commit comments