1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Bug 324888 Need to subclass CSourceHover

This commit is contained in:
Vivian Kong 2010-09-14 14:33:03 +00:00
parent 96b0cc259d
commit 3a89b51a37

View file

@ -96,7 +96,7 @@ public class CSourceHover extends AbstractCEditorTextHover {
private static final boolean DEBUG = false; private static final boolean DEBUG = false;
private static class SingletonRule implements ISchedulingRule { protected static class SingletonRule implements ISchedulingRule {
public static final ISchedulingRule INSTANCE = new SingletonRule(); public static final ISchedulingRule INSTANCE = new SingletonRule();
public boolean contains(ISchedulingRule rule) { public boolean contains(ISchedulingRule rule) {
return rule == this; return rule == this;
@ -109,7 +109,7 @@ public class CSourceHover extends AbstractCEditorTextHover {
/** /**
* Computes the source location for a given identifier. * Computes the source location for a given identifier.
*/ */
private static class ComputeSourceRunnable implements ASTRunnable { protected static class ComputeSourceRunnable implements ASTRunnable {
private final ITranslationUnit fTU; private final ITranslationUnit fTU;
private final IRegion fTextRegion; private final IRegion fTextRegion;
@ -725,7 +725,7 @@ public class CSourceHover extends AbstractCEditorTextHover {
return source.substring(i); return source.substring(i);
} }
private String searchInIndex(final ITranslationUnit tUnit, IRegion textRegion) { protected String searchInIndex(final ITranslationUnit tUnit, IRegion textRegion) {
final ComputeSourceRunnable computer= new ComputeSourceRunnable(tUnit, textRegion); final ComputeSourceRunnable computer= new ComputeSourceRunnable(tUnit, textRegion);
Job job= new Job(CHoverMessages.CSourceHover_jobTitle) { Job job= new Job(CHoverMessages.CSourceHover_jobTitle) {
@Override @Override