Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 6b117ecbeaa635f8625ef44d3faaec96bafdf13d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*****************************************************************************
 * Copyright (c) 2008 CEA LIST.
 *
 *
 * 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:
 *  Cedric Dumoulin  Cedric.dumoulin@lifl.fr - Initial API and implementation
 *
 *****************************************************************************/
package org.eclipse.papyrus.infra.ui.editorsfactory;

import org.eclipse.swt.graphics.Image;

/**
 * Registry used to get Icons associated to an editor.
 *
 * @author cedric dumoulin
 */
public interface IPageIconsRegistry {

	/**
	 * Get the icon associated to the editor used to render the model. Model
	 * represent the top level object of a model editor.
	 *
	 * @param model
	 *            the model representing the Editor. This is usually the EObject
	 *            used to reconstruct the editor.
	 * @return the icon representing the editor
	 */
	public Image getEditorIcon(Object model);

	/**
	 * Dispose this registry
	 */
	public void dispose();
}

Back to the top