blob: b7b834351cff468fd1c793d4b6ba0b538eb0705a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2012 Tasktop Technologies and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.context.core;
import java.util.List;
import java.util.Set;
import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
/**
* @author Mik Kersten
* @since 3.0
*/
public final class ContextCore {
public static final String CONTENT_TYPE_RESOURCE = "resource"; //$NON-NLS-1$
/**
* @since 3.0
*/
public static IInteractionContextManager getContextManager() {
return ContextCorePlugin.getContextManager();
}
public static IInteractionContextScaling getCommonContextScaling() {
return ContextCorePlugin.getDefault().getCommonContextScaling();
}
/**
* @return null if there are no bridges loaded, null bridge otherwise
*/
public static AbstractContextStructureBridge getStructureBridge(Object object) {
return ContextCorePlugin.getDefault().getStructureBridge(object);
}
public static AbstractContextStructureBridge getStructureBridge(String contentType) {
return ContextCorePlugin.getDefault().getStructureBridge(contentType);
}
public static Set<String> getContentTypes() {
return ContextCorePlugin.getDefault().getContentTypes();
}
public static Set<String> getChildContentTypes(String contentType) {
return ContextCorePlugin.getDefault().getChildContentTypes(contentType);
}
public static IContextStore getContextStore() {
return ContextCorePlugin.getContextStore();
}
/**
* Returns a list of all {@link IContextContributor} registered with Mylyn context. Please refer to the
* org.eclipse.mylyn.context.core.contributor extension point.
*
* @since 3.9
*/
public static List<IContextContributor> getContextContributor() {
return ContextCorePlugin.getDefault().getContextContributor();
}
}