Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2013 itemis AG (http://www.itemis.eu) 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 http://www.eclipse.org/legal/epl-v10.html /
 
 package org.eclipse.xtext.ui.shared.contribution;
 

A registry for shared contributions. Each contribution is loaded only once. That is, it is effectively a singleton.

The contributions are registered by the extension point org.eclipse.xtext.ui.shared.sharedStateContributingModule.

See SharedStateContribution for a list of contribution types that are used by the framework.

Author(s):
Sebastian Zarnekow - Initial contribution and API
Since:
2.5
public interface ISharedStateContributionRegistry {

Returns all contribution handles. The result is never null but possibly empty.
Initialize and return all known contributions. The result is never null but possibly empty.
	<T> ImmutableList<? extends T> getContributedInstances(Class<T> type);

Initialize and return the single known contribution for the given type. Throws an java.lang.IllegalStateException if there is no such contribution or more than one contribution for that type.
Returns providers for all known contribution for the given type. The result is never null but possibly empty.
	<T> ImmutableList<? extends Provider<? extends T>> getLazyContributedInstances(Class<T> type);

Return a provider the single known contribution for the given type. Throws an java.lang.IllegalStateException if there is no such contribution or more than one contribution for that type.
New to GrepCode? Check out our FAQ X