Skip to content

Commit

Permalink
deprecate org.eclipse.ui.keys for removal
Browse files Browse the repository at this point in the history
(except IBindingService)

Those classes have been deprecated with Bug 82854 (memory issues),
replacing Objects with primitives.They are only used internal in
org.eclipse.ui.internal.keys and tests

https://bugs.eclipse.org/bugs/show_bug.cgi?id=82854
  • Loading branch information
EcljpseB0T authored and jukzi committed Feb 15, 2024
1 parent fc59f24 commit 7d3801b
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import java.util.SortedMap;
import java.util.TreeMap;

import org.eclipse.jface.bindings.keys.IKeyLookup;
import org.eclipse.jface.bindings.keys.KeyLookupFactory;

Expand All @@ -34,7 +33,7 @@
* org.eclipse.jface.bindings.keys.KeyLookupFactory
* @since 3.0
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public final class CharacterKey extends NaturalKey {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @deprecated Please use org.eclipse.jface.bindings.keys.IKeyFormatter
* @since 3.0
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public interface IKeyFormatter {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @since 3.0
* @noextend This class is not intended to be subclassed by clients.
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public abstract class Key implements Comparable {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @since 3.0
* @see org.eclipse.ui.keys.IKeyFormatter
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public final class KeyFormatterFactory {
private static final IKeyFormatter COMPACT_KEY_FORMATTER = new CompactKeyFormatter();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* @deprecated Please use org.eclipse.jface.bindings.keys.KeySequence
* @since 3.0
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public final class KeySequence implements Comparable {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* @see org.eclipse.ui.keys.ModifierKey
* @see org.eclipse.ui.keys.NaturalKey
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public final class KeyStroke implements Comparable {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @since 3.0
* @see org.eclipse.ui.keys.NaturalKey
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public final class ModifierKey extends Key {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @since 3.0
* @noextend This class is not intended to be subclassed by clients.
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public abstract class NaturalKey extends Key {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @deprecated Please use org.eclipse.jface.bindings.keys.ParseException
* @since 3.0
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public final class ParseException extends Exception {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* @deprecated Please use {@link org.eclipse.jface.bindings.keys.SWTKeySupport}
* @since 3.0
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public final class SWTKeySupport {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* org.eclipse.jface.bindings.keys.KeyLookupFactory
* @since 3.0
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public final class SpecialKey extends NaturalKey {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*
* @since 3.0
*/
@SuppressWarnings("removal")
public class Bug42035Test {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*
* @since 3.0
*/
@SuppressWarnings("removal")
public class Bug43800Test {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
*
* @since 3.0
*/
@SuppressWarnings("removal")
@RunWith(JUnit4.class)
@Ignore("Focus issues, see Commit c28efd634f53c9de7bb31b756ffc755b8faf0ffe")
public class MultiPageKeyBindingTest extends UITestCase {
Expand Down

0 comments on commit 7d3801b

Please sign in to comment.