Skip to content

Commit 933b741

Browse files
deepika-uvogella
authored andcommitted
This pr marks several unused deprecated methods, constants for removal.
1 parent d9dbf78 commit 933b741

File tree

14 files changed

+47
-47
lines changed

14 files changed

+47
-47
lines changed

bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static String read(Reader rd) {
129129
* @param bgRGB Background-Color
130130
* @param styleSheet Stylesheet
131131
*/
132-
@Deprecated
132+
@Deprecated(forRemoval= true, since= "2025-12")
133133
public static void insertPageProlog(StringBuffer buffer, int position, RGB fgRGB, RGB bgRGB, String styleSheet) {
134134
runOp(buffer, (sb) -> CORE.insertPageProlog(sb, position, fromRGB(fgRGB), fromRGB(bgRGB), styleSheet));
135135
}
@@ -164,7 +164,7 @@ public static void insertStyles(StringBuilder buffer, String[] styles) {
164164
*
165165
* @deprecated As of 3.13, replaced by {@link #insertStyles(StringBuilder, String[])}
166166
*/
167-
@Deprecated
167+
@Deprecated(forRemoval= true, since= "2025-12")
168168
public static void insertStyles(StringBuffer buffer, String[] styles) {
169169
runOp(buffer, (sb) -> CORE.insertStyles(sb, styles));
170170
}
@@ -186,7 +186,7 @@ public static void insertPageProlog(StringBuilder buffer, int position) {
186186
*
187187
* @deprecated migrate to new StringBuilder API
188188
*/
189-
@Deprecated
189+
@Deprecated(forRemoval= true, since= "2025-12")
190190
public static void insertPageProlog(StringBuffer buffer, int position) {
191191
runOp(buffer, (sb) -> CORE.insertPageProlog(sb, position));
192192
}
@@ -199,7 +199,7 @@ public static void insertPageProlog(StringBuffer buffer, int position) {
199199
*
200200
* @deprecated migrate to new StringBuilder API
201201
*/
202-
@Deprecated
202+
@Deprecated(forRemoval= true, since= "2025-12")
203203
public static void insertPageProlog(StringBuffer buffer, int position, URL styleSheetURL) {
204204
runOp(buffer, (sb) -> CORE.insertPageProlog(sb, position, styleSheetURL));
205205
}
@@ -234,7 +234,7 @@ public static void insertPageProlog(StringBuilder buffer, int position, String s
234234
*
235235
* @deprecated migrate to new StringBuilder API
236236
*/
237-
@Deprecated
237+
@Deprecated(forRemoval= true, since= "2025-12")
238238
public static void insertPageProlog(StringBuffer buffer, int position, String styleSheet) {
239239
runOp(buffer, (sb) -> CORE.insertPageProlog(sb, position, styleSheet));
240240
}
@@ -254,7 +254,7 @@ public static void addPageProlog(StringBuilder buffer) {
254254
*
255255
* @deprecated migrate to new StringBuilder API
256256
*/
257-
@Deprecated
257+
@Deprecated(forRemoval= true, since= "2025-12")
258258
public static void addPageProlog(StringBuffer buffer) {
259259
runOp(buffer, CORE::addPageProlog);
260260
}
@@ -269,7 +269,7 @@ public static void addPageEpilog(StringBuilder buffer) {
269269
*
270270
* @deprecated migrate to new StringBuilder API
271271
*/
272-
@Deprecated
272+
@Deprecated(forRemoval= true, since= "2025-12")
273273
public static void addPageEpilog(StringBuffer buffer) {
274274
runOp(buffer, CORE::addPageEpilog);
275275
}
@@ -289,7 +289,7 @@ public static void startBulletList(StringBuilder buffer) {
289289
*
290290
* @deprecated migrate to new StringBuilder API
291291
*/
292-
@Deprecated
292+
@Deprecated(forRemoval= true, since= "2025-12")
293293
public static void startBulletList(StringBuffer buffer) {
294294
runOp(buffer, CORE::startBulletList);
295295
}
@@ -311,7 +311,7 @@ public static void endBulletList(StringBuilder buffer) {
311311
*
312312
* @deprecated migrate to new StringBuilder API
313313
*/
314-
@Deprecated
314+
@Deprecated(forRemoval= true, since= "2025-12")
315315
public static void endBulletList(StringBuffer buffer) {
316316
runOp(buffer, CORE::endBulletList);
317317
}
@@ -335,7 +335,7 @@ public static void addBullet(StringBuilder buffer, String bullet) {
335335
*
336336
* @deprecated migrate to new StringBuilder API
337337
*/
338-
@Deprecated
338+
@Deprecated(forRemoval= true, since= "2025-12")
339339
public static void addBullet(StringBuffer buffer, String bullet) {
340340
runOp(buffer, (sb) -> CORE.addBullet(sb, bullet));
341341
}
@@ -361,7 +361,7 @@ public static void addSmallHeader(StringBuilder buffer, String header) {
361361
*
362362
* @deprecated migrate to new StringBuilder API
363363
*/
364-
@Deprecated
364+
@Deprecated(forRemoval= true, since= "2025-12")
365365
public static void addSmallHeader(StringBuffer buffer, String header) {
366366
runOp(buffer, (sb) -> CORE.addSmallHeader(sb, header));
367367
}
@@ -383,17 +383,17 @@ public static void addParagraph(StringBuilder buffer, String paragraph) {
383383
*
384384
* @deprecated migrate to new StringBuilder API
385385
*/
386-
@Deprecated
386+
@Deprecated(forRemoval= true, since= "2025-12")
387387
public static void addParagraph(StringBuffer buffer, String paragraph) {
388388
runOp(buffer, (sb) -> CORE.addParagraph(sb, paragraph));
389389
}
390390

391391
/**
392392
* Appends a string and keeps its whitespace and newlines.
393393
* <p>
394-
* <b>Warning:</b> This starts a new paragraph when rendered in a browser, but
395-
* it doesn't starts a new paragraph when rendered with a {@link HTML2TextReader}
396-
* (e.g. in a {@link DefaultInformationControl} that renders simple HTML).
394+
* <b>Warning:</b> This starts a new paragraph when rendered in a browser, but it doesn't starts
395+
* a new paragraph when rendered with a {@link HTML2TextReader} (e.g. in a
396+
* {@link DefaultInformationControl} that renders simple HTML).
397397
*
398398
* @param buffer the output StringBuilder
399399
* @param preFormatted the string that should be rendered with whitespace preserved
@@ -409,9 +409,9 @@ public static void addPreFormatted(StringBuilder buffer, String preFormatted) {
409409
/**
410410
* Appends a string and keeps its whitespace and newlines.
411411
* <p>
412-
* <b>Warning:</b> This starts a new paragraph when rendered in a browser, but
413-
* it doesn't starts a new paragraph when rendered with a {@link HTML2TextReader}
414-
* (e.g. in a {@link DefaultInformationControl} that renders simple HTML).
412+
* <b>Warning:</b> This starts a new paragraph when rendered in a browser, but it doesn't starts
413+
* a new paragraph when rendered with a {@link HTML2TextReader} (e.g. in a
414+
* {@link DefaultInformationControl} that renders simple HTML).
415415
*
416416
* @param buffer the output buffer
417417
* @param preFormatted the string that should be rendered with whitespace preserved
@@ -422,7 +422,7 @@ public static void addPreFormatted(StringBuilder buffer, String preFormatted) {
422422
* @see #convertToHTMLContentWithWhitespace(String)
423423
* @since 3.7
424424
*/
425-
@Deprecated
425+
@Deprecated(forRemoval= true, since= "2025-12")
426426
public static void addPreFormatted(StringBuffer buffer, String preFormatted) {
427427
runOp(buffer, (sb) -> CORE.addPreFormatted(sb, preFormatted));
428428
}
@@ -444,7 +444,7 @@ public static void addParagraph(StringBuilder buffer, Reader paragraphReader) {
444444
*
445445
* @deprecated migrate to new StringBuilder API
446446
*/
447-
@Deprecated
447+
@Deprecated(forRemoval= true, since= "2025-12")
448448
public static void addParagraph(StringBuffer buffer, Reader paragraphReader) {
449449
runOp(buffer, (sb) -> CORE.addParagraph(sb, paragraphReader));
450450
}

bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,16 +382,16 @@ protected IInformationControl doCreateInformationControl(Shell parent) {
382382
*
383383
* @deprecated use {@link #setInput(Object)}
384384
*/
385-
@Deprecated
385+
@Deprecated(forRemoval= true, since= "2025-12")
386386
@Override
387387
public void setInformation(String content) {
388388
content= addCSSToHTMLFragment(content);
389389
super.setInformation(content);
390390
}
391391

392392
/**
393-
* Adds a HTML header and CSS info if <code>html</code> is only an HTML fragment (has no
394-
* &lt;html&gt; section).
393+
* Adds a HTML header and CSS info if <code>html</code> is only an HTML fragment
394+
* (has no &lt;html&gt; section).
395395
*
396396
* @param html the html / text produced by a revision
397397
* @return modified html

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultInformationControl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public DefaultInformationControl(Shell parent, IInformationPresenter presenter)
232232
* @param presenter the presenter to be used
233233
* @deprecated As of 3.4, replaced by simpler constructors
234234
*/
235-
@Deprecated
235+
@Deprecated(forRemoval= true, since= "2025-12")
236236
public DefaultInformationControl(Shell parent, int shellStyle, int style, IInformationPresenter presenter) {
237237
this(parent, shellStyle, style, presenter, null);
238238
}
@@ -269,7 +269,7 @@ public DefaultInformationControl(Shell parentShell, int shellStyle, final int st
269269
* @param presenter the presenter to be used
270270
* @deprecated As of 3.4, replaced by {@link #DefaultInformationControl(Shell, DefaultInformationControl.IInformationPresenter)}
271271
*/
272-
@Deprecated
272+
@Deprecated(forRemoval= true, since= "2025-12")
273273
public DefaultInformationControl(Shell parent, int textStyles, IInformationPresenter presenter) {
274274
this(parent, textStyles, presenter, null);
275275
}

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,7 +2008,7 @@ protected int getEmptySelectionChangedEventDelay() {
20082008
* {@link ITextViewerExtension2#prependAutoEditStrategy(IAutoEditStrategy, String)} and
20092009
* {@link ITextViewerExtension2#removeAutoEditStrategy(IAutoEditStrategy, String)} instead
20102010
*/
2011-
@Deprecated
2011+
@Deprecated(forRemoval= true, since= "2025-12")
20122012
@Override
20132013
public void setAutoIndentStrategy(IAutoIndentStrategy strategy, String contentType) {
20142014
setAutoEditStrategies(new IAutoEditStrategy[] { strategy }, contentType);
@@ -3212,7 +3212,7 @@ public void setTopIndex(int index) {
32123212
* @return the view port height in lines
32133213
* @deprecated as of 3.2
32143214
*/
3215-
@Deprecated
3215+
@Deprecated(forRemoval= true, since= "2025-12")
32163216
protected int getVisibleLinesInViewport() {
32173217
if (fTextWidget != null) {
32183218
Rectangle clArea= fTextWidget.getClientArea();
@@ -3429,7 +3429,7 @@ protected void internalRevealRange(int start, int end) {
34293429
* @return the width of the presentation of the given string
34303430
* @deprecated use <code>getWidthInPixels(int, int)</code> instead
34313431
*/
3432-
@Deprecated
3432+
@Deprecated(forRemoval= true, since= "2025-12")
34333433
final protected int getWidthInPixels(String text) {
34343434
GC gc= new GC(fTextWidget);
34353435
gc.setFont(fTextWidget.getFont());
@@ -4308,7 +4308,7 @@ protected void copyMarkedRegion(boolean delete) {
43084308
*
43094309
* @deprecated use <code>StyledText.invokeAction</code> instead
43104310
*/
4311-
@Deprecated
4311+
@Deprecated(forRemoval= true, since= "2025-12")
43124312
protected void deleteText() {
43134313
fTextWidget.invokeAction(ST.DELETE_NEXT);
43144314
}
@@ -4429,7 +4429,7 @@ private IRegion getTextBlockFromSelection(ITextSelection selection) throws BadLo
44294429
*
44304430
* @deprecated use shift(boolean, boolean, boolean) instead
44314431
*/
4432-
@Deprecated
4432+
@Deprecated(forRemoval= true, since= "2025-12")
44334433
protected void shift(boolean useDefaultPrefixes, boolean right) {
44344434
shift(useDefaultPrefixes, right, false);
44354435
}
@@ -4712,7 +4712,7 @@ protected boolean canPerformFind() {
47124712
* @return the model offset of the first match
47134713
* @deprecated as of 3.0 use {@link #findAndSelect(int, String, boolean, boolean, boolean, boolean)}
47144714
*/
4715-
@Deprecated
4715+
@Deprecated(forRemoval= true, since= "2025-12")
47164716
protected int findAndSelect(int startPosition, String findString, boolean forwardSearch, boolean caseSensitive, boolean wholeWord) {
47174717
try {
47184718
return findAndSelect(startPosition, findString, forwardSearch, caseSensitive, wholeWord, false);

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/IContentAssistProcessorExtension.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int
9898
return processor.computeCompletionProposals(viewer, offset);
9999
}
100100

101-
@Deprecated
101+
@Deprecated(forRemoval= true, since= "2025-12")
102102
@Override
103103
public char[] getCompletionProposalAutoActivationCharacters() {
104104
return processor.getCompletionProposalAutoActivationCharacters();
105105
}
106106

107-
@Deprecated
107+
@Deprecated(forRemoval= true, since= "2025-12")
108108
@Override
109109
public char[] getContextInformationAutoActivationCharacters() {
110110
return processor.getContextInformationAutoActivationCharacters();

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/ContentFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public void setFormattingStrategy(IFormattingStrategy strategy, String contentTy
323323
* @deprecated incompatible with an open set of document partitionings. The provided information is only used
324324
* if this formatter can not compute the partition managing position categories.
325325
*/
326-
@Deprecated
326+
@Deprecated(forRemoval= true, since= "2025-12")
327327
public void setPartitionManagingPositionCategories(String[] categories) {
328328
fExternalPartitonManagingCategories= TextUtilities.copy(categories);
329329
}

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/URLHyperlinkDetector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public URLHyperlinkDetector() {
4747
* @param textViewer the text viewer in which to detect the hyperlink
4848
* @deprecated As of 3.2, replaced by {@link URLHyperlinkDetector}
4949
*/
50-
@Deprecated
50+
@Deprecated(forRemoval= true, since= "2025-12")
5151
public URLHyperlinkDetector(ITextViewer textViewer) {
5252
}
5353

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/RuleBasedDamagerRepairer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* @deprecated use <code>DefaultDamagerRepairer</code>
2323
*/
24-
@Deprecated
24+
@Deprecated(forRemoval= true, since= "2025-12")
2525
public class RuleBasedDamagerRepairer extends DefaultDamagerRepairer {
2626

2727
/**
@@ -34,7 +34,7 @@ public class RuleBasedDamagerRepairer extends DefaultDamagerRepairer {
3434
*
3535
* @deprecated use RuleBasedDamagerRepairer(RuleBasedScanner) instead
3636
*/
37-
@Deprecated
37+
@Deprecated(forRemoval= true, since= "2025-12")
3838
public RuleBasedDamagerRepairer(RuleBasedScanner scanner, TextAttribute defaultTextAttribute) {
3939
super(scanner, defaultTextAttribute);
4040
}

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationBarHoverManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public void stop() {
177177
* @param delayRestart <code>true</code> if restart should be delayed
178178
* @deprecated As of 3.4, replaced by {@link #stop()}. Note that <code>delayRestart</code> was never honored.
179179
*/
180-
@Deprecated
180+
@Deprecated(forRemoval= true, since= "2025-12")
181181
protected void stop(boolean delayRestart) {
182182
stop();
183183
}
@@ -313,7 +313,7 @@ public void widgetDisposed(DisposeEvent e) {
313313
* @param creator the information control creator
314314
* @deprecated As of 2.1, replaced by {@link AnnotationBarHoverManager#AnnotationBarHoverManager(IVerticalRulerInfo, ISourceViewer, IAnnotationHover, IInformationControlCreator)}
315315
*/
316-
@Deprecated
316+
@Deprecated(forRemoval= true, since= "2025-12")
317317
public AnnotationBarHoverManager(ISourceViewer sourceViewer, IVerticalRuler ruler, IAnnotationHover annotationHover, IInformationControlCreator creator) {
318318
this(ruler, sourceViewer, annotationHover, creator);
319319
}

bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationColumn.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* instead.
2222
* @since 2.0
2323
*/
24-
@Deprecated
24+
@Deprecated(forRemoval= true, since= "2025-12")
2525
public final class AnnotationColumn extends AnnotationRulerColumn {
2626

2727
/**
@@ -32,7 +32,7 @@ public final class AnnotationColumn extends AnnotationRulerColumn {
3232
* {@link org.eclipse.jface.text.source.AnnotationRulerColumn#AnnotationRulerColumn(int)}
3333
* instead
3434
*/
35-
@Deprecated
35+
@Deprecated(forRemoval= true, since= "2025-12")
3636
public AnnotationColumn(int width) {
3737
super(width);
3838
}

0 commit comments

Comments
 (0)