]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/EditorAdapterDescriptor.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.ui / src / org / simantics / ui / workbench / editor / EditorAdapterDescriptor.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.ui.workbench.editor;
13
14 import java.util.Collection;
15
16 public interface EditorAdapterDescriptor {
17
18     /**
19      * @return the id of this editor adapter
20      */
21     String getId();
22
23     /**
24      * @return <code>null</code> if no group id is defined
25      */
26     String getGroupId();
27
28     /**
29      * @return the adapter itself
30      */
31     EditorAdapter getAdapter();
32
33     /**
34      * @return
35      */
36     Collection<String> getInContexts();
37
38     /**
39      * @param activeContextIds
40      * @return <code>true</code> if this 
41      */
42     boolean isActive(Collection<?> activeContextIds);
43
44 }