Search in sources :

Example 31 with Context

use of org.talend.core.context.Context in project tmdm-studio-se by Talend.

the class MDMLockDecorator method isEditableAsReadOnly.

private void isEditableAsReadOnly() {
    Context ctx = CoreRuntimePlugin.getInstance().getContext();
    RepositoryContext rc = (RepositoryContext) ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
    editableAsReadOnly = rc.isEditableAsReadOnly();
}
Also used : Context(org.talend.core.context.Context) RepositoryContext(org.talend.core.context.RepositoryContext) RepositoryContext(org.talend.core.context.RepositoryContext)

Aggregations

Context (org.talend.core.context.Context)31 RepositoryContext (org.talend.core.context.RepositoryContext)28 PersistenceException (org.talend.commons.exception.PersistenceException)8 Project (org.talend.core.model.general.Project)6 AnalysisContext (org.talend.dataquality.analysis.AnalysisContext)6 IProxyRepositoryFactory (org.talend.repository.model.IProxyRepositoryFactory)6 BeforeClass (org.junit.BeforeClass)4 AfterClass (org.junit.AfterClass)3 IRepositoryViewObject (org.talend.core.model.repository.IRepositoryViewObject)3 ProxyRepositoryFactory (org.talend.core.repository.model.ProxyRepositoryFactory)3 InvocationTargetException (java.lang.reflect.InvocationTargetException)2 HashMap (java.util.HashMap)2 List (java.util.List)2 CoreException (org.eclipse.core.runtime.CoreException)2 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)2 EList (org.eclipse.emf.common.util.EList)2 ActionContext (org.eclipse.ui.actions.ActionContext)2 ConnectionBean (org.talend.core.model.general.ConnectionBean)2 ConnectionItem (org.talend.core.model.properties.ConnectionItem)2 Item (org.talend.core.model.properties.Item)2