Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 372820
Collapse All | Expand All

(-)a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/InternalCompletionContext.java (-1 / +17 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2011 IBM Corporation and others.
2
 * Copyright (c) 2005, 2012 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 457-460 Link Here
457
	
457
	
458
		return this.extendedContext.getVisibleMethods();
458
		return this.extendedContext.getVisibleMethods();
459
	}
459
	}
460
	
461
	/**
462
	 * Return the assist scope for the current completion context.
463
	 *
464
	 * @return assist scope for the current completion context, or null if the extendedContext is null.
465
	 * @exception UnsupportedOperationException if the context is not an extended context
466
	 *
467
	 * @see #isExtended()
468
	 */
469
	public Scope getAssistScope() {
470
		if (!this.isExtended) throw new UnsupportedOperationException("Operation only supported in extended context"); //$NON-NLS-1$
471
	
472
		if (this.extendedContext == null) return null;
473
	
474
		return this.extendedContext.getAssistScope();
475
	}
460
}
476
}
(-)a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/InternalExtendedCompletionContext.java (-1 / +5 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2008, 2011 IBM Corporation and others.
2
 * Copyright (c) 2008, 2012 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 968-971 Link Here
968
		}
968
		}
969
		return this.visibleMethods;
969
		return this.visibleMethods;
970
	}
970
	}
971
	
972
	public Scope getAssistScope() {
973
		return this.assistScope;
974
	}
971
}
975
}

Return to bug 372820