Search in sources :

Example 1 with ContentsService

use of org.eclipse.egit.github.core.service.ContentsService in project Bitocle by mthli.

the class ContentTask method onPreExecute.

@Override
protected void onPreExecute() {
    mainFragment.setRefreshStatus(true);
    context = mainFragment.getContentView().getContext();
    refreshType = mainFragment.getRefreshType();
    GitHubClient gitHubClient = mainFragment.getGitHubClient();
    contentsService = new ContentsService(gitHubClient);
    String repoOwner = mainFragment.getRepoOwner();
    String repoName = mainFragment.getRepoName();
    repositoryId = RepositoryId.create(repoOwner, repoName);
    repoPath = mainFragment.getRepoPath();
    contentItemAdapter = mainFragment.getContentItemAdapter();
    contentItemList = mainFragment.getContentItemList();
    contentItemListBuffer = mainFragment.getContentItemListBuffer();
    mainFragment.setContentShown(false);
}
Also used : GitHubClient(org.eclipse.egit.github.core.client.GitHubClient) ContentsService(org.eclipse.egit.github.core.service.ContentsService)

Aggregations

GitHubClient (org.eclipse.egit.github.core.client.GitHubClient)1 ContentsService (org.eclipse.egit.github.core.service.ContentsService)1