]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram/src/org/simantics/diagram/symbolcontribution/ISymbolProvider.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / symbolcontribution / ISymbolProvider.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.diagram.symbolcontribution;
13
14 import java.util.Collection;
15
16 import org.simantics.diagram.symbollibrary.ISymbolGroup;
17
18 /**
19  * An <code>ISymbolProvider</code> must be equals-comparable, i.e.
20  * equals/hashCode need to be re-implemented. ISymbolProviders are considered to
21  * be same if they provide the same <em>set</em> of symbol groups.
22  * 
23  * @author Hannu Niemist&ouml;
24  */
25 public interface ISymbolProvider {
26     Collection<ISymbolGroup> getSymbolGroups();
27     void setListener(Runnable listener);
28     void dispose();
29 }