Skip to content

Commit 8998df3

Browse files
SougandhSakurtakov
authored andcommitted
Mark and Remove few deprecated methods and constants
This commit marks unused deprecated methods and constants for removal and removes deprecated internal methods and fields
1 parent 401d483 commit 8998df3

File tree

10 files changed

+9
-102
lines changed

10 files changed

+9
-102
lines changed

debug/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/InputStreamMonitor.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,6 @@ public InputStreamMonitor(OutputStream stream, Charset charset) {
8686
fCharset = charset;
8787
}
8888

89-
/**
90-
* Creates an input stream monitor which writes to system in via the given
91-
* output stream.
92-
*
93-
* @param stream output stream
94-
* @param encoding stream encoding or <code>null</code> for system default
95-
* @deprecated use {@link #InputStreamMonitor(OutputStream, Charset)}
96-
* instead
97-
*/
98-
@Deprecated
99-
public InputStreamMonitor(OutputStream stream, String encoding) {
100-
this(stream, Charset.forName(encoding));
101-
}
102-
10389
/**
10490
* Appends the given text to the stream, or queues the text to be written at
10591
* a later time if the stream is blocked.

debug/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/OutputStreamMonitor.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,6 @@ public OutputStreamMonitor(InputStream stream, Charset charset) {
106106
setBuffered(true);
107107
}
108108

109-
/**
110-
* Creates an output stream monitor on the given stream (connected to system
111-
* out or err).
112-
*
113-
* @param stream input stream to read from
114-
* @param encoding stream encoding or <code>null</code> for system default
115-
* @deprecated use {@link #OutputStreamMonitor(InputStream, Charset)}
116-
* instead
117-
*/
118-
@Deprecated
119-
public OutputStreamMonitor(InputStream stream, String encoding) {
120-
this(stream, Charset.forName(encoding));
121-
}
122-
123109
@Override
124110
public synchronized void addListener(IStreamListener listener) {
125111
fListeners.add(listener);

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -356,16 +356,6 @@ public interface IInternalDebugUIConstants {
356356
*/
357357
String MEMENTO_BREAKPOINT_WORKING_SET_NAME = DebugUIPlugin.getUniqueIdentifier() + ".MEMENTO_BREAKPOINT_WORKING_SET_NAME"; //$NON-NLS-1$
358358

359-
/**
360-
* Breakpoint working set identifier.
361-
*
362-
* @since 3.1
363-
* @deprecated There is an API equivalent constant that should be used, see
364-
* {@link IDebugUIConstants#BREAKPOINT_WORKINGSET_ID}
365-
*/
366-
@Deprecated String ID_BREAKPOINT_WORKINGSET = "org.eclipse.debug.ui.breakpointWorkingSet"; //$NON-NLS-1$
367-
368-
369359
/**
370360
* Address at the beginning of a page in a table rendering.
371361
* @since 3.1

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contextlaunching/ContextRunner.java

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,6 @@ public static ContextRunner getDefault() {
7474
*/
7575
private final LaunchingResourceManager fLRM = DebugUIPlugin.getDefault().getLaunchingResourceManager();
7676

77-
/**
78-
* Performs the context launching given the object context and the mode to
79-
* launch in.
80-
*
81-
* @param group the launch group to launch using
82-
* @deprecated use launch(ILaunchGroup, boolean)
83-
*/
84-
@Deprecated
85-
public void launch(ILaunchGroup group) {
86-
launch(group, false);
87-
}
88-
8977
/**
9078
* Performs the context launching given the object context and the mode to
9179
* launch in.
@@ -100,19 +88,6 @@ public void launch(ILaunchGroup group, boolean isShift) {
10088
selectAndLaunch(resource, group, selection, isShift);
10189
}
10290

103-
/**
104-
* This method launches the last configuration that was launched, if any.
105-
*
106-
* @param group the launch group to launch with
107-
* @return true if there was a last launch and it was launched, false
108-
* otherwise
109-
* @deprecated use launchLast(ILaunchGroup, boolean)
110-
*/
111-
@Deprecated
112-
protected boolean launchLast(ILaunchGroup group) {
113-
return launchLast(group, false);
114-
}
115-
11691
/**
11792
* This method launches the last configuration that was launched, if any.
11893
*
@@ -134,21 +109,6 @@ protected boolean launchLast(ILaunchGroup group, boolean isShift) {
134109
return false;
135110
}
136111

137-
/**
138-
* Prompts the user to select a way of launching the current resource, where
139-
* a 'way' is defined as a launch shortcut.
140-
*
141-
* @param resource the resource context
142-
* @param group the launch group to launch with
143-
* @param selection the current selection
144-
* @deprecated use selectAndLaunch(IResource, ILaunchGroup,
145-
* IStructuredSelection, boolean)
146-
*/
147-
@Deprecated
148-
protected void selectAndLaunch(IResource resource, ILaunchGroup group, IStructuredSelection selection) {
149-
selectAndLaunch(resource, group, selection, false);
150-
}
151-
152112
/**
153113
* Prompts the user to select a way of launching the current resource, where
154114
* a 'way' is defined as a launch shortcut.

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/IDebugPreferenceConstants.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@ public interface IDebugPreferenceConstants {
4040
String CONSOLE_SYS_IN_COLOR= "org.eclipse.debug.ui.inColor"; //$NON-NLS-1$
4141
String CONSOLE_BAKGROUND_COLOR= "org.eclipse.debug.ui.consoleBackground"; //$NON-NLS-1$
4242

43-
/**
44-
* @deprecated use IDebugUIConstants.PREF_MEMORY_HISTORY_UNKNOWN_COLOR instead
45-
*/
46-
@Deprecated String MEMORY_VIEW_UNBUFFERED_LINE_COLOR = IDebugUIConstants.PLUGIN_ID + ".MemoryViewLineColor"; //$NON-NLS-1$
47-
48-
/**
49-
* @deprecated use IDebugUIConstants.PREF_MEMORY_HISTORY_KNOWN_COLOR instead
50-
*/
51-
@Deprecated String MEMORY_VIEW_BUFFERED_LINE_COLOR = IDebugUIConstants.PLUGIN_ID + ".MemoryViewBufferedLineColor"; //$NON-NLS-1$
52-
5343
/**
5444
* (boolean) Whether or not the text in the console will wrap
5545
*/
@@ -130,14 +120,6 @@ public interface IDebugPreferenceConstants {
130120
String VARIABLES_DETAIL_PANE_HIDDEN = "Variables.detail.orientation.hidden"; //$NON-NLS-1$
131121
String VARIABLES_DETAIL_PANE_AUTO = "Variables.detail.orientation.auto"; //$NON-NLS-1$
132122

133-
/**
134-
* Memento for the last selected launch config in the
135-
* launch config dialog.
136-
*
137-
* @deprecated no longer supported
138-
*/
139-
@Deprecated String PREF_LAST_LAUNCH_CONFIGURATION_SELECTION = IDebugUIConstants.PLUGIN_ID + ".lastLaunchConfigSelection"; //$NON-NLS-1$
140-
141123
/**
142124
* The maximum size of the launch history list
143125
*/

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ protected void createContextMenu(Control menuControl) {
572572
*
573573
* @deprecated
574574
*/
575-
@Deprecated
575+
@Deprecated(forRemoval = true, since = "2025-09")
576576
@Override
577577
public IMenuManager getContextMenuManager() {
578578
if (fContextMenuManagers != null) {

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/DebugUITools.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ public static boolean saveAndBuildBeforeLaunch() {
763763
* saving of resources that are only involved in the current launch,
764764
* no longer the entire workspace
765765
*/
766-
@Deprecated
766+
@Deprecated(forRemoval = true, since = "2025-09")
767767
public static boolean saveBeforeLaunch() {
768768
return DebugUIPlugin.preLaunchSave();
769769
}

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/IDebugUIConstants.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ public interface IDebugUIConstants {
199199
* @since 2.0
200200
* @deprecated no longer used
201201
*/
202-
@Deprecated String PREF_SHOW_TYPE_NAMES = PLUGIN_ID + ".show_type_names"; //$NON-NLS-1$
202+
@Deprecated(forRemoval = true, since = "2025-09")
203+
String PREF_SHOW_TYPE_NAMES = PLUGIN_ID + ".show_type_names"; //$NON-NLS-1$
203204

204205
/**
205206
* Boolean preference controlling whether the debugger shows the detail pane
@@ -209,7 +210,8 @@ public interface IDebugUIConstants {
209210
* @since 2.0
210211
* @deprecated no longer used
211212
*/
212-
@Deprecated String PREF_SHOW_DETAIL_PANE = PLUGIN_ID + ".show_detail_pane"; //$NON-NLS-1$
213+
@Deprecated(forRemoval = true, since = "2025-09")
214+
String PREF_SHOW_DETAIL_PANE = PLUGIN_ID + ".show_detail_pane"; //$NON-NLS-1$
213215

214216
/**
215217
* Boolean preference controlling whether the debugger will force activate the active

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/ILaunchConfigurationDialog.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public interface ILaunchConfigurationDialog extends IRunnableContext {
3838
* @deprecated the launch dialog no longer supports launching without
3939
* opening - this constant will never be returned by the dialog
4040
*/
41-
@Deprecated int LAUNCHED_BEFORE_OPENING = 2;
41+
@Deprecated(forRemoval = true, since = "2025-09")
42+
int LAUNCHED_BEFORE_OPENING = 2;
4243

4344
/**
4445
* Adjusts the enable state of this dialog's buttons

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/AbstractLaunchHistoryAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ public void init(IWorkbenchWindow window) {
530530
* for clients of the debug platform. Instead, use <code>getHistory()</code>,
531531
* <code>getFavorites()</code>, and <code>getLastLaunch()</code>.
532532
*/
533-
@Deprecated
533+
@Deprecated(forRemoval = true, since = "2025-09")
534534
protected LaunchHistory getLaunchHistory() {
535535
return getLaunchConfigurationManager().getLaunchHistory(getLaunchGroupIdentifier());
536536
}

0 commit comments

Comments
 (0)