package abapci;

import java.util.Map;

import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorPart;

import abapci.Exception.AbapCiColoredProjectFileParseException;
import abapci.abapgit.GitEditorIdentifier;
import abapci.ci.presenter.ContinuousIntegrationPresenter;
import abapci.coloredProject.general.IStatusBarWidget;
import abapci.coloredProject.general.WorkspaceColorConfiguration;
import abapci.coloredProject.presenter.ColoredProjectsPresenter;

public class AbapCiPluginHelper {

	public ColoredProjectsPresenter getColoredProjectsPresenter() {
		return AbapCiPlugin.getDefault().getColoredProjectsPresenter();
	}

	public IStatusBarWidget getStatusBarWidget() {
		return AbapCiPlugin.getDefault().getStatusBarWidget();
	}

	public IPreferenceStore getPreferenceStore() {
		return AbapCiPlugin.getDefault().getPreferenceStore();
	}

	public void resetWorkspaceColorConfiguration() throws AbapCiColoredProjectFileParseException {
		AbapCiPlugin.resetWorkspaceColorConfiguration();

	}

	public WorkspaceColorConfiguration getWorkspaceColorConfiguration() {
		// TODO Auto-generated method stub
		return AbapCiPlugin.getWorkspaceColorConfiguration();
	}

	public ContinuousIntegrationPresenter getContinousIntegrationPresenter() {
		// TODO Auto-generated method stub
		return AbapCiPlugin.getContinuousIntegrationPresenter();
	}

	public void addGitEditor(GitEditorIdentifier identifier, IEditorPart newEditor) {
		AbapCiPlugin.addGitEditor(identifier, newEditor);
	}

	public IEditorPart getParticularOrGeneralGitEditor(GitEditorIdentifier identifier) {
		return AbapCiPlugin.getParticularOrGeneralGitEditor(identifier);
	}

	public Map<GitEditorIdentifier, IEditorPart> getGitEditors() {
		return AbapCiPlugin.getGitEditors();

	}

	public ImageDescriptor getImageDescriptor(String imageString) {
		return AbapCiPlugin.getImageDescriptor(imageString);
	}

}
