public final class DefaultResources
extends java.lang.Object
The core implementation includes default Resource
instances along with respective ResourceNamesSupplier
as well as default ResourceService
, ResourceProvider
and ResourceManager
.
The default implementations of resources as well as resource provider, manager and service are still available by this class even if the respective resources are unregistered from the core or the services are switched or stopped.
public static ResourceProvider createResourceProvider()
ResourceProviders.builder()
factory method.
Its direct parent and the only predecessor in the resource provider
hierarchy is the system resource provider.ResourceProvider
,
ResourceProviders.builder()
,
ResourceProviders.superResourceProvider()
public static ResourceManager createResourceManager()
ResourceManagers.create()
factory method.ResourceManager
,
ResourceManagers.create()
public static ResourceService createResourceService()
ResourceServices.builder()
factory method.
It contains the default resource provider and manager.ResourceService
,
ResourceServices.builder()
,
createResourceProvider()
,
createResourceManager()
public static ResourceNamesSupplier createResourceNamesSupplier()
ResourceProvider
obtained by this
Services.getResourceService().getResourceProvider()
method call at supplying.ResourceNamesSupplier
,
createResourceProvider()
public static <L extends Listener> void registerTo(java.lang.Iterable<Resource<? super L>> resources, L listener)
public static <L extends Listener> void unregisterFrom(Resource<L> resource, L listener)
public static <L extends Listener> void unregisterFrom(java.lang.Iterable<Resource<? super L>> resources, L listener)
public static Resource<CommandListener> getCommandResource()
public static Resource<CommandCategoryListener> getCommandCategoryResource()
public static Resource<CommandContextListener> getCommandContextResource()
public static Resource<CommandContextManagerListener> getCommandContextManagerResource()
public static Resource<CommandExecutionListener> getCommandExecutionResource()
public static Resource<CommandHandlerListener> getCommandHandlerResource()
public static Resource<CommandManagerListener> getCommandManagerResource()
public static Resource<CompletionListener> getCompletionResource()
public static Resource<DebugEventsListener> getDebugEventsResource()
public static Resource<DocumentListener> getDocumentResource()
public static Resource<EditorListener> getEditorResource()
public static Resource<FileBufferListener> getFileBufferResource()
public static Resource<GitConfigurationListener> getGitConfigurationResource()
public static Resource<GitIndexListener> getGitIndexResource()
public static Resource<GitReferenceListener> getGitReferenceResource()
public static Resource<GitRepositoryListener> getGitRepositoryResource()
public static Resource<JavaElementListener> getJavaElementResource()
public static Resource<LaunchListener> getLaunchResource()
public static Resource<LaunchesListener> getLaunchesResource()
public static Resource<LaunchConfigurationListener> getLaunchConfigurationResource()
public static Resource<MarkSelectionListener> getMarkSelectionResource()
public static Resource<OperationHistoryListener> getOperationHistoryResource()
public static Resource<PageListener> getPageResource()
public static Resource<PartListener> getPartResource()
public static Resource<PerspectiveListener> getPerspectiveResource()
public static Resource<RefactoringExecutionListener> getRefactoringExecutionResource()
public static Resource<RefactoringHistoryListener> getRefactoringHistoryResource()
public static Resource<ResourceListener> getResourceResource()
public static Resource<SearchQueryListener> getSearchQueryResource()
public static Resource<SearchResultListener> getSearchResultResource()
public static Resource<SelectionListener> getSelectionResource()
public static Resource<StructuredSelectionListener> getStructuredSelectionResource()
public static Resource<TestRunListener> getTestRunResource()
public static Resource<TextListener> getTextResource()
public static Resource<TextInputListener> getTextInputResource()
public static Resource<TextPresentationListener> getTextPresentationResource()
public static Resource<TextSelectionListener> getTextSelectionResource()
public static Resource<ViewListener> getViewResource()
public static Resource<ViewportListener> getViewportResource()
public static Resource<WindowListener> getWindowResource()
public static Resource<WorkbenchListener> getWorkbenchResource()