]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram/src/org/simantics/diagram/symbollibrary/ISymbolManager.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / symbollibrary / ISymbolManager.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.symbollibrary;
13
14 import java.util.Collection;
15
16 import org.simantics.project.IProject;
17 import org.simantics.project.IProjectService;
18 import org.simantics.utils.datastructures.disposable.IDisposable;
19 import org.simantics.utils.datastructures.hints.IHintContext.Key;
20 import org.simantics.utils.datastructures.hints.IHintContext.KeyOf;
21
22 public interface ISymbolManager extends IDisposable, IProjectService {
23
24     /**
25      * A key for storing an ISymbolManager in an IHintContext. This is used with
26      * {@link IProject}.
27      */
28     Key KEY_SYMBOL_MANAGER = new KeyOf(ISymbolManager.class);
29
30     /**
31      * A key for storing a collection of {@link ISymbolGroup} instances in a
32      * IHintContext. This is used with IProject. Its value is managed by an
33      * ISymbolManager.
34      */
35     Key KEY_SYMBOL_GROUPS = new KeyOf(Collection.class, "SYMBOL_GROUPS");
36
37     void addEntryPoints(Collection<ISymbolGroup> eps);
38
39     void removeEntryPoints(Collection<ISymbolGroup> eps);
40
41 }