Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 87f1cde5d2ba267126910eecdc878971b0cd357c (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
/*****************************************************************************
 * 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.extension.diagrameditor;

import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
import org.eclipse.papyrus.infra.ui.editorsfactory.IEditorFactory;

/**
 * This interface should be implemented by Editor Factories that can be declared
 * as Eclipse extension. It extends the {@link IEditorFactory} by adding methods
 * to initialize the factory with multieditor ServiceRegistry and associated
 * editor data.
 *
 * @author C�dric Dumoulin
 *
 */
public interface IPluggableEditorFactory extends IEditorFactory {

	/**
	 * Initialize the factory with useful Classes.
	 *
	 * @param serviceRegistry
	 *            Service registry that will be provided to created editor.
	 * @param editorDescriptor
	 *            Descriptor containing data from the Eclipse Extension.
	 */
	public void init(ServicesRegistry serviceRegistry, EditorDescriptor editorDescriptor);
}

Back to the top