Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down Expand Up @@ -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));
}
Expand All @@ -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));
}
Expand All @@ -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));
}
Expand Down Expand Up @@ -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));
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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));
}
Expand All @@ -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));
}
Expand All @@ -383,17 +383,17 @@ 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));
}

/**
* Appends a string and keeps its whitespace and newlines.
* <p>
* <b>Warning:</b> 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).
* <b>Warning:</b> 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
Expand All @@ -409,9 +409,9 @@ public static void addPreFormatted(StringBuilder buffer, String preFormatted) {
/**
* Appends a string and keeps its whitespace and newlines.
* <p>
* <b>Warning:</b> 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).
* <b>Warning:</b> 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
Expand All @@ -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));
}
Expand All @@ -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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,16 +382,16 @@ 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);
super.setInformation(content);
}

/**
* Adds a HTML header and CSS info if <code>html</code> is only an HTML fragment (has no
* &lt;html&gt; section).
* Adds a HTML header and CSS info if <code>html</code> is only an HTML fragment
* (has no &lt;html&gt; section).
*
* @param html the html / text produced by a revision
* @return modified html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -3429,7 +3429,7 @@ protected void internalRevealRange(int start, int end) {
* @return the width of the presentation of the given string
* @deprecated use <code>getWidthInPixels(int, int)</code> instead
*/
@Deprecated
@Deprecated(forRemoval= true, since= "2025-12")
final protected int getWidthInPixels(String text) {
GC gc= new GC(fTextWidget);
gc.setFont(fTextWidget.getFont());
Expand Down Expand Up @@ -4308,7 +4308,7 @@ protected void copyMarkedRegion(boolean delete) {
*
* @deprecated use <code>StyledText.invokeAction</code> instead
*/
@Deprecated
@Deprecated(forRemoval= true, since= "2025-12")
protected void deleteText() {
fTextWidget.invokeAction(ST.DELETE_NEXT);
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* @deprecated use <code>DefaultDamagerRepairer</code>
*/
@Deprecated
@Deprecated(forRemoval= true, since= "2025-12")
public class RuleBasedDamagerRepairer extends DefaultDamagerRepairer {

/**
Expand All @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void stop() {
* @param delayRestart <code>true</code> if restart should be delayed
* @deprecated As of 3.4, replaced by {@link #stop()}. Note that <code>delayRestart</code> was never honored.
*/
@Deprecated
@Deprecated(forRemoval= true, since= "2025-12")
protected void stop(boolean delayRestart) {
stop();
}
Expand Down Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* instead.
* @since 2.0
*/
@Deprecated
@Deprecated(forRemoval= true, since= "2025-12")
public final class AnnotationColumn extends AnnotationRulerColumn {

/**
Expand All @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int
* @deprecated use the version specifying <code>IRegion</code> 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);
}
Expand Down
Loading