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
2 changes: 1 addition & 1 deletion bundles/org.eclipse.jface.text/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.jface.text
Bundle-Version: 3.30.100.qualifier
Bundle-Version: 3.31.0.qualifier
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import static org.eclipse.jface.internal.text.codemining.CodeMiningLineHeaderAnnotation.hasAtLeastOneResolvedMiningNotEmpty;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.function.Consumer;

Expand Down Expand Up @@ -144,4 +145,12 @@ public Consumer<MouseEvent> getAction(MouseEvent e) {
public boolean isInVisibleLines() {
return super.isInVisibleLines();
}

/**
* @since 3.31
*/
@Override
public List<ICodeMining> getMinings() {
return Collections.unmodifiableList(fMinings);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package org.eclipse.jface.internal.text.codemining;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.function.Consumer;

Expand Down Expand Up @@ -216,4 +217,12 @@ public boolean isInVisibleLines() {
public final boolean isAfterPosition() {
return afterPosition;
}

/**
* @since 3.31
*/
@Override
public List<ICodeMining> getMinings() {
return Collections.unmodifiableList(fMinings);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package org.eclipse.jface.internal.text.codemining;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.function.Consumer;
import java.util.stream.Stream;
Expand Down Expand Up @@ -290,4 +291,12 @@ public Consumer<MouseEvent> getAction(MouseEvent e) {
public boolean isInVisibleLines() {
return super.isInVisibleLines();
}

/**
* @since 3.31
*/
@Override
public List<ICodeMining> getMinings() {
return Collections.unmodifiableList(fMinings);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*/
package org.eclipse.jface.text.source.inlined;

import java.util.Collections;
import java.util.List;
import java.util.function.Consumer;

import org.eclipse.swt.SWT;
Expand All @@ -26,6 +28,7 @@
import org.eclipse.jface.text.ITextViewerExtension5;
import org.eclipse.jface.text.Position;
import org.eclipse.jface.text.Region;
import org.eclipse.jface.text.codemining.ICodeMining;
import org.eclipse.jface.text.source.Annotation;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.jface.text.source.projection.ProjectionViewer;
Expand Down Expand Up @@ -300,6 +303,17 @@ void setLocation(int x, int y) {
this.fY= y;
}

/**
* Returns the list of code minings associated with this annotation, or an empty list if this
* annotation has no associated minings.
*
* @return an unmodifiable list of code minings, never <code>null</code>
* @since 3.31
*/
public List<ICodeMining> getMinings() {
return Collections.emptyList();
}

/**
* Returns <code>true</code> if the point specified by the arguments is inside the annotation
* specified by the receiver, and <code>false</code> otherwise.
Expand Down
Loading