Skip to content

Commit 2b7b5cf

Browse files
committed
Mark IFileTypeInfo and related APIs for removal
No "old" implementation left but rather new API retrofited for the old one.
1 parent 2177bdf commit 2b7b5cf

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

team/bundles/org.eclipse.team.core/src/org/eclipse/team/core/IFileTypeInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2017 IBM Corporation and others.
2+
* Copyright (c) 2000, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -21,7 +21,7 @@
2121
* @deprecated Use the <code>IFileContentManager</code> API instead.
2222
* @noimplement This interface is not intended to be implemented by clients.
2323
*/
24-
@Deprecated
24+
@Deprecated(forRemoval = true, since = "2025-03")
2525
public interface IFileTypeInfo {
2626
/**
2727
* Returns the string specifying the file extension

team/bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2017 IBM Corporation and others.
2+
* Copyright (c) 2000, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -52,9 +52,9 @@
5252
import org.eclipse.team.internal.core.Messages;
5353
import org.eclipse.team.internal.core.Policy;
5454
import org.eclipse.team.internal.core.StorageMergerRegistry;
55-
import org.eclipse.team.internal.core.WildcardStringMatcher;
5655
import org.eclipse.team.internal.core.TeamPlugin;
5756
import org.eclipse.team.internal.core.TeamResourceChangeListener;
57+
import org.eclipse.team.internal.core.WildcardStringMatcher;
5858
import org.eclipse.team.internal.core.importing.BundleImporterExtension;
5959

6060
/**
@@ -186,7 +186,7 @@ public static boolean isIgnored(IFile file) {
186186
* @return all known file types
187187
* @deprecated Use <code>getFileContentManager().getExtensionMappings()</code> instead.
188188
*/
189-
@Deprecated
189+
@Deprecated(forRemoval = true, since = "2025-03")
190190
public static IFileTypeInfo[] getAllTypes() {
191191
final IStringMapping [] mappings= fFileContentManager.getExtensionMappings();
192192
final IFileTypeInfo [] infos= new IFileTypeInfo[mappings.length];
@@ -366,9 +366,7 @@ private static void initializePluginIgnores(SortedMap<String, Boolean> pIgnore,
366366
}
367367
}
368368

369-
Iterator<String> it = pIgnore.keySet().iterator();
370-
while (it.hasNext()) {
371-
String pattern = it.next();
369+
for (String pattern : pIgnore.keySet()) {
372370
if (!gIgnore.containsKey(pattern)) {
373371
gIgnore.put(pattern, pIgnore.get(pattern));
374372
}
@@ -531,7 +529,7 @@ public static IIgnoreInfo[] getDefaultIgnores() {
531529
* @since 3.0
532530
* @deprecated Use Team.getFileContentManager().getDefaultExtensionMappings() instead.
533531
*/
534-
@Deprecated
532+
@Deprecated(forRemoval = true, since = "2025-03")
535533
public static IFileTypeInfo[] getDefaultTypes() {
536534
return asFileTypeInfo(getFileContentManager().getDefaultExtensionMappings());
537535
}

0 commit comments

Comments
 (0)