use of org.talend.core.context.RepositoryContext in project tdi-studio-se by Talend.
the class LoginProjectPage method revertUpdateStatus.
private void revertUpdateStatus() {
Context ctx = CoreRuntimePlugin.getInstance().getContext();
RepositoryContext repositoryContext = (RepositoryContext) ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
repositoryContext.setNoUpdateWhenLogon(false);
}
use of org.talend.core.context.RepositoryContext in project tdi-studio-se by Talend.
the class DemosImportTest method recordOriginalProject.
@BeforeClass
public static void recordOriginalProject() throws PersistenceException, CoreException, LoginException {
Context ctx = CoreRuntimePlugin.getInstance().getContext();
RepositoryContext repositoryContext = (RepositoryContext) ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
originalProject = repositoryContext.getProject();
}
use of org.talend.core.context.RepositoryContext in project tdi-studio-se by Talend.
the class AddContextCommentValueMigrationTaskTest method afterAllTests.
@AfterClass
public static void afterAllTests() throws PersistenceException, CoreException {
removeTempProject();
Context ctx = CoreRuntimePlugin.getInstance().getContext();
RepositoryContext repositoryContext = (RepositoryContext) ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
repositoryContext.setProject(originalProject);
originalProject = null;
sampleProject = null;
}
use of org.talend.core.context.RepositoryContext in project tdi-studio-se by Talend.
the class AddContextCommentValueMigrationTaskTest method beforeAllTests.
@BeforeClass
public static void beforeAllTests() throws PersistenceException, LoginException, CoreException {
createTempProject();
Context ctx = CoreRuntimePlugin.getInstance().getContext();
RepositoryContext repositoryContext = (RepositoryContext) ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
originalProject = repositoryContext.getProject();
repositoryContext.setProject(sampleProject);
}
use of org.talend.core.context.RepositoryContext in project tdi-studio-se by Talend.
the class FixUnevenItemContextParametersMigrationTaskTest method beforeAllTests.
@BeforeClass
public static void beforeAllTests() throws PersistenceException, LoginException, CoreException {
createTempProject();
Context ctx = CoreRuntimePlugin.getInstance().getContext();
RepositoryContext repositoryContext = (RepositoryContext) ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
originalProject = repositoryContext.getProject();
repositoryContext.setProject(sampleProject);
}
Aggregations