diff options
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewerConfiguration.java')
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewerConfiguration.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewerConfiguration.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewerConfiguration.java index 54e96502d42..f4e82d829a3 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewerConfiguration.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/SourceViewerConfiguration.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Angelo Zerr <angelo.zerr@gmail.com> - [CodeMining] Add CodeMining support in SourceViewer - Bug 527515 *******************************************************************************/ package org.eclipse.jface.text.source; @@ -29,6 +30,7 @@ import org.eclipse.jface.text.ITextHover; import org.eclipse.jface.text.ITextViewerExtension2; import org.eclipse.jface.text.IUndoManager; import org.eclipse.jface.text.TextViewerUndoManager; +import org.eclipse.jface.text.codemining.ICodeMiningProvider; import org.eclipse.jface.text.contentassist.IContentAssistant; import org.eclipse.jface.text.formatter.IContentFormatter; import org.eclipse.jface.text.hyperlink.DefaultHyperlinkPresenter; @@ -417,4 +419,17 @@ public class SourceViewerConfiguration { public int getHyperlinkStateMask(ISourceViewer sourceViewer) { return SWT.MOD1; } + + /** + * Returns the code mining providers which be used to draw code minings in the given source + * viewer. This implementation always returns <code>null</code>. + * + * @param sourceViewer the source viewer to be configured by this configuration + * @return an array with code mining providers or <code>null</code> if no code mining support + * should be installed + * @since 3.13 + */ + public ICodeMiningProvider[] getCodeMiningProviders(ISourceViewer sourceViewer) { + return null; + } } |