Skip to main content
summaryrefslogblamecommitdiffstats
blob: 08d6a538882fee6326fe75ca92dfbdcbbcdd41cd (plain) (tree)

























































                                                                                                                            
/*******************************************************************************
 * Copyright (c) 2015 Tasktop Technologies and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Tasktop Technologies - initial API and implementation
 *******************************************************************************/

package org.eclipse.mylyn.internal.tasks.ui;

import java.util.Collection;

import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.swt.graphics.Image;

public interface IBrandManager {

	public Image getBrandingIcon(TaskRepository repository);

	public ImageDescriptor getOverlayIcon(TaskRepository repository);

	public ImageDescriptor getOverlayIcon(ITask task);

	/**
	 * Returns the branding icon for the given connector kind and brand. Returns the default icon for the repository
	 * type if the brand is <code>null</code> or is unknown to the connector.
	 */
	public Image getBrandingIcon(String connectorKind, @Nullable String brand);

	/**
	 * Returns the overlay icon for the given connector kind and brand. Returns the default icon for the repository type
	 * if the brand is <code>null</code> or is unknown to the connector.
	 */
	public ImageDescriptor getOverlayIcon(String connectorKind, @Nullable String brand);

	/**
	 * Returns the connector label for the given connector and brand. Returns the default label for the connector if the
	 * brand is <code>null</code> or is unknown to the connector.
	 */
	public String getConnectorLabel(AbstractRepositoryConnector connector, @Nullable String brand);

	/**
	 * Returns the brands known to the given connector.
	 */
	public Collection<String> getBrands(String connectorKind);

	public Image getDefaultBrandingIcon(String connectorKind);

	public ImageDescriptor getDefaultOverlayIcon(String connectorKind);

}

Back to the top