diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java index ecaf40de521..be088b03e6b 100644 --- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java +++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLPrinter.java @@ -129,7 +129,7 @@ public static String read(Reader rd) { * @param bgRGB Background-Color * @param styleSheet Stylesheet */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void insertPageProlog(StringBuffer buffer, int position, RGB fgRGB, RGB bgRGB, String styleSheet) { runOp(buffer, (sb) -> CORE.insertPageProlog(sb, position, fromRGB(fgRGB), fromRGB(bgRGB), styleSheet)); } @@ -164,7 +164,7 @@ public static void insertStyles(StringBuilder buffer, String[] styles) { * * @deprecated As of 3.13, replaced by {@link #insertStyles(StringBuilder, String[])} */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void insertStyles(StringBuffer buffer, String[] styles) { runOp(buffer, (sb) -> CORE.insertStyles(sb, styles)); } @@ -186,7 +186,7 @@ public static void insertPageProlog(StringBuilder buffer, int position) { * * @deprecated migrate to new StringBuilder API */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void insertPageProlog(StringBuffer buffer, int position) { runOp(buffer, (sb) -> CORE.insertPageProlog(sb, position)); } @@ -199,7 +199,7 @@ public static void insertPageProlog(StringBuffer buffer, int position) { * * @deprecated migrate to new StringBuilder API */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void insertPageProlog(StringBuffer buffer, int position, URL styleSheetURL) { runOp(buffer, (sb) -> CORE.insertPageProlog(sb, position, styleSheetURL)); } @@ -234,7 +234,7 @@ public static void insertPageProlog(StringBuilder buffer, int position, String s * * @deprecated migrate to new StringBuilder API */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void insertPageProlog(StringBuffer buffer, int position, String styleSheet) { runOp(buffer, (sb) -> CORE.insertPageProlog(sb, position, styleSheet)); } @@ -254,7 +254,7 @@ public static void addPageProlog(StringBuilder buffer) { * * @deprecated migrate to new StringBuilder API */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void addPageProlog(StringBuffer buffer) { runOp(buffer, CORE::addPageProlog); } @@ -269,7 +269,7 @@ public static void addPageEpilog(StringBuilder buffer) { * * @deprecated migrate to new StringBuilder API */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void addPageEpilog(StringBuffer buffer) { runOp(buffer, CORE::addPageEpilog); } @@ -289,7 +289,7 @@ public static void startBulletList(StringBuilder buffer) { * * @deprecated migrate to new StringBuilder API */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void startBulletList(StringBuffer buffer) { runOp(buffer, CORE::startBulletList); } @@ -311,7 +311,7 @@ public static void endBulletList(StringBuilder buffer) { * * @deprecated migrate to new StringBuilder API */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void endBulletList(StringBuffer buffer) { runOp(buffer, CORE::endBulletList); } @@ -335,7 +335,7 @@ public static void addBullet(StringBuilder buffer, String bullet) { * * @deprecated migrate to new StringBuilder API */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void addBullet(StringBuffer buffer, String bullet) { runOp(buffer, (sb) -> CORE.addBullet(sb, bullet)); } @@ -361,7 +361,7 @@ public static void addSmallHeader(StringBuilder buffer, String header) { * * @deprecated migrate to new StringBuilder API */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void addSmallHeader(StringBuffer buffer, String header) { runOp(buffer, (sb) -> CORE.addSmallHeader(sb, header)); } @@ -383,7 +383,7 @@ public static void addParagraph(StringBuilder buffer, String paragraph) { * * @deprecated migrate to new StringBuilder API */ - @Deprecated + @Deprecated(forRemoval= true, since= "2025-12") public static void addParagraph(StringBuffer buffer, String paragraph) { runOp(buffer, (sb) -> CORE.addParagraph(sb, paragraph)); } @@ -391,9 +391,9 @@ public static void addParagraph(StringBuffer buffer, String paragraph) { /** * Appends a string and keeps its whitespace and newlines. *
- * Warning: This starts a new paragraph when rendered in a browser, but - * it doesn't starts a new paragraph when rendered with a {@link HTML2TextReader} - * (e.g. in a {@link DefaultInformationControl} that renders simple HTML). + * Warning: This starts a new paragraph when rendered in a browser, but it doesn't starts + * a new paragraph when rendered with a {@link HTML2TextReader} (e.g. in a + * {@link DefaultInformationControl} that renders simple HTML). * * @param buffer the output StringBuilder * @param preFormatted the string that should be rendered with whitespace preserved @@ -409,9 +409,9 @@ public static void addPreFormatted(StringBuilder buffer, String preFormatted) { /** * Appends a string and keeps its whitespace and newlines. *
- * Warning: This starts a new paragraph when rendered in a browser, but
- * it doesn't starts a new paragraph when rendered with a {@link HTML2TextReader}
- * (e.g. in a {@link DefaultInformationControl} that renders simple HTML).
+ * Warning: This starts a new paragraph when rendered in a browser, but it doesn't starts
+ * a new paragraph when rendered with a {@link HTML2TextReader} (e.g. in a
+ * {@link DefaultInformationControl} that renders simple HTML).
*
* @param buffer the output buffer
* @param preFormatted the string that should be rendered with whitespace preserved
@@ -422,7 +422,7 @@ public static void addPreFormatted(StringBuilder buffer, String preFormatted) {
* @see #convertToHTMLContentWithWhitespace(String)
* @since 3.7
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public static void addPreFormatted(StringBuffer buffer, String preFormatted) {
runOp(buffer, (sb) -> CORE.addPreFormatted(sb, preFormatted));
}
@@ -444,7 +444,7 @@ public static void addParagraph(StringBuilder buffer, Reader paragraphReader) {
*
* @deprecated migrate to new StringBuilder API
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public static void addParagraph(StringBuffer buffer, Reader paragraphReader) {
runOp(buffer, (sb) -> CORE.addParagraph(sb, paragraphReader));
}
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java
index a2f63a9e74a..0fe67b12efa 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java
@@ -382,7 +382,7 @@ protected IInformationControl doCreateInformationControl(Shell parent) {
*
* @deprecated use {@link #setInput(Object)}
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
@Override
public void setInformation(String content) {
content= addCSSToHTMLFragment(content);
@@ -390,8 +390,8 @@ public void setInformation(String content) {
}
/**
- * Adds a HTML header and CSS info if html is only an HTML fragment (has no
- * <html> section).
+ * Adds a HTML header and CSS info if html is only an HTML fragment
+ * (has no <html> section).
*
* @param html the html / text produced by a revision
* @return modified html
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultInformationControl.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultInformationControl.java
index 84e8853c5a9..1429165e9cb 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultInformationControl.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/DefaultInformationControl.java
@@ -232,7 +232,7 @@ public DefaultInformationControl(Shell parent, IInformationPresenter presenter)
* @param presenter the presenter to be used
* @deprecated As of 3.4, replaced by simpler constructors
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public DefaultInformationControl(Shell parent, int shellStyle, int style, IInformationPresenter presenter) {
this(parent, shellStyle, style, presenter, null);
}
@@ -269,7 +269,7 @@ public DefaultInformationControl(Shell parentShell, int shellStyle, final int st
* @param presenter the presenter to be used
* @deprecated As of 3.4, replaced by {@link #DefaultInformationControl(Shell, DefaultInformationControl.IInformationPresenter)}
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public DefaultInformationControl(Shell parent, int textStyles, IInformationPresenter presenter) {
this(parent, textStyles, presenter, null);
}
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
index ca86c49b3ab..a41a9a069f3 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
@@ -2008,7 +2008,7 @@ protected int getEmptySelectionChangedEventDelay() {
* {@link ITextViewerExtension2#prependAutoEditStrategy(IAutoEditStrategy, String)} and
* {@link ITextViewerExtension2#removeAutoEditStrategy(IAutoEditStrategy, String)} instead
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
@Override
public void setAutoIndentStrategy(IAutoIndentStrategy strategy, String contentType) {
setAutoEditStrategies(new IAutoEditStrategy[] { strategy }, contentType);
@@ -3212,7 +3212,7 @@ public void setTopIndex(int index) {
* @return the view port height in lines
* @deprecated as of 3.2
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
protected int getVisibleLinesInViewport() {
if (fTextWidget != null) {
Rectangle clArea= fTextWidget.getClientArea();
@@ -3429,7 +3429,7 @@ protected void internalRevealRange(int start, int end) {
* @return the width of the presentation of the given string
* @deprecated use getWidthInPixels(int, int) instead
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
final protected int getWidthInPixels(String text) {
GC gc= new GC(fTextWidget);
gc.setFont(fTextWidget.getFont());
@@ -4308,7 +4308,7 @@ protected void copyMarkedRegion(boolean delete) {
*
* @deprecated use StyledText.invokeAction instead
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
protected void deleteText() {
fTextWidget.invokeAction(ST.DELETE_NEXT);
}
@@ -4429,7 +4429,7 @@ private IRegion getTextBlockFromSelection(ITextSelection selection) throws BadLo
*
* @deprecated use shift(boolean, boolean, boolean) instead
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
protected void shift(boolean useDefaultPrefixes, boolean right) {
shift(useDefaultPrefixes, right, false);
}
@@ -4712,7 +4712,7 @@ protected boolean canPerformFind() {
* @return the model offset of the first match
* @deprecated as of 3.0 use {@link #findAndSelect(int, String, boolean, boolean, boolean, boolean)}
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
protected int findAndSelect(int startPosition, String findString, boolean forwardSearch, boolean caseSensitive, boolean wholeWord) {
try {
return findAndSelect(startPosition, findString, forwardSearch, caseSensitive, wholeWord, false);
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/IContentAssistProcessorExtension.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/IContentAssistProcessorExtension.java
index 2be67dc2e65..b5153c15b62 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/IContentAssistProcessorExtension.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/IContentAssistProcessorExtension.java
@@ -98,13 +98,13 @@ public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int
return processor.computeCompletionProposals(viewer, offset);
}
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
@Override
public char[] getCompletionProposalAutoActivationCharacters() {
return processor.getCompletionProposalAutoActivationCharacters();
}
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
@Override
public char[] getContextInformationAutoActivationCharacters() {
return processor.getContextInformationAutoActivationCharacters();
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/ContentFormatter.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/ContentFormatter.java
index 83c0a963a2b..3d9512c2201 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/ContentFormatter.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/formatter/ContentFormatter.java
@@ -323,7 +323,7 @@ public void setFormattingStrategy(IFormattingStrategy strategy, String contentTy
* @deprecated incompatible with an open set of document partitionings. The provided information is only used
* if this formatter can not compute the partition managing position categories.
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public void setPartitionManagingPositionCategories(String[] categories) {
fExternalPartitonManagingCategories= TextUtilities.copy(categories);
}
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/URLHyperlinkDetector.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/URLHyperlinkDetector.java
index 5fee530004a..34937de993f 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/URLHyperlinkDetector.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/URLHyperlinkDetector.java
@@ -47,7 +47,7 @@ public URLHyperlinkDetector() {
* @param textViewer the text viewer in which to detect the hyperlink
* @deprecated As of 3.2, replaced by {@link URLHyperlinkDetector}
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public URLHyperlinkDetector(ITextViewer textViewer) {
}
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/RuleBasedDamagerRepairer.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/RuleBasedDamagerRepairer.java
index 9397fd07611..00fb50b6ffd 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/RuleBasedDamagerRepairer.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/rules/RuleBasedDamagerRepairer.java
@@ -21,7 +21,7 @@
/**
* @deprecated use DefaultDamagerRepairer
*/
-@Deprecated
+@Deprecated(forRemoval= true, since= "2025-12")
public class RuleBasedDamagerRepairer extends DefaultDamagerRepairer {
/**
@@ -34,7 +34,7 @@ public class RuleBasedDamagerRepairer extends DefaultDamagerRepairer {
*
* @deprecated use RuleBasedDamagerRepairer(RuleBasedScanner) instead
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public RuleBasedDamagerRepairer(RuleBasedScanner scanner, TextAttribute defaultTextAttribute) {
super(scanner, defaultTextAttribute);
}
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationBarHoverManager.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationBarHoverManager.java
index 38a23782d87..3c365b35cf5 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationBarHoverManager.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationBarHoverManager.java
@@ -177,7 +177,7 @@ public void stop() {
* @param delayRestart true if restart should be delayed
* @deprecated As of 3.4, replaced by {@link #stop()}. Note that delayRestart was never honored.
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
protected void stop(boolean delayRestart) {
stop();
}
@@ -313,7 +313,7 @@ public void widgetDisposed(DisposeEvent e) {
* @param creator the information control creator
* @deprecated As of 2.1, replaced by {@link AnnotationBarHoverManager#AnnotationBarHoverManager(IVerticalRulerInfo, ISourceViewer, IAnnotationHover, IInformationControlCreator)}
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public AnnotationBarHoverManager(ISourceViewer sourceViewer, IVerticalRuler ruler, IAnnotationHover annotationHover, IInformationControlCreator creator) {
this(ruler, sourceViewer, annotationHover, creator);
}
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationColumn.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationColumn.java
index 50d164fed78..7cd9f91666f 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationColumn.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationColumn.java
@@ -21,7 +21,7 @@
* instead.
* @since 2.0
*/
-@Deprecated
+@Deprecated(forRemoval= true, since= "2025-12")
public final class AnnotationColumn extends AnnotationRulerColumn {
/**
@@ -32,7 +32,7 @@ public final class AnnotationColumn extends AnnotationRulerColumn {
* {@link org.eclipse.jface.text.source.AnnotationRulerColumn#AnnotationRulerColumn(int)}
* instead
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public AnnotationColumn(int width) {
super(width);
}
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationPainter.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationPainter.java
index 7e65b8f841b..959f92777b0 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationPainter.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationPainter.java
@@ -1141,7 +1141,7 @@ public void setAnnotationTypeColor(Object annotationType, Color color) {
* {@link #addTextStyleStrategy(Object, AnnotationPainter.ITextStyleStrategy)} and
* {@link UnderlineStrategy}
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public void addAnnotationType(Object annotationType) {
addAnnotationType(annotationType, SQUIGGLES);
}
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/ChangeRulerColumn.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/ChangeRulerColumn.java
index befc92e6c6f..fe9b77b16b6 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/ChangeRulerColumn.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/ChangeRulerColumn.java
@@ -152,7 +152,7 @@ public void textChanged(TextEvent event) {
*
* @deprecated since 3.2 use {@link #ChangeRulerColumn(ISharedTextColors)} instead
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public ChangeRulerColumn() {
fRevisionPainter= null;
fDiffPainter= new DiffPainter(this, null);
@@ -283,7 +283,7 @@ private void doubleBufferPaint(GC dest) {
* @deprecated as of 3.2 the number of lines in the viewport cannot be computed because
* StyledText supports variable line heights
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
protected int getVisibleLinesInViewport() {
// Hack to reduce amount of copied code.
return LineNumberRulerColumn.getVisibleLinesInViewport(fCachedTextWidget);
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java
index cc681382d3e..49e699709d0 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java
@@ -599,7 +599,7 @@ public void setLocationOfLastMouseButtonActivity(int x, int y) {
* @deprecated will be removed
* @since 2.0
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public void addMouseListener(MouseListener listener) {
if (fCanvas != null && !fCanvas.isDisposed()) {
fCanvas.addMouseListener(listener);
@@ -613,7 +613,7 @@ public void addMouseListener(MouseListener listener) {
* @deprecated will be removed
* @since 2.0
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
public void removeMouseListener(MouseListener listener) {
if (fCanvas != null && !fCanvas.isDisposed()) {
fCanvas.removeMouseListener(listener);
diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/templates/TemplateCompletionProcessor.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/templates/TemplateCompletionProcessor.java
index 57316607327..f7b96bb690c 100644
--- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/templates/TemplateCompletionProcessor.java
+++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/templates/TemplateCompletionProcessor.java
@@ -106,7 +106,7 @@ public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int
* @deprecated use the version specifying IRegion as third parameter
* @since 3.1
*/
- @Deprecated
+ @Deprecated(forRemoval= true, since= "2025-12")
protected ICompletionProposal createProposal(Template template, TemplateContext context, Region region, int relevance) {
return createProposal(template, context, (IRegion) region, relevance);
}