1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
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
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.diagram.symbollibrary;
14 import java.util.Collection;
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;
22 public interface ISymbolManager extends IDisposable, IProjectService {
25 * A key for storing an ISymbolManager in an IHintContext. This is used with
28 Key KEY_SYMBOL_MANAGER = new KeyOf(ISymbolManager.class);
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
35 Key KEY_SYMBOL_GROUPS = new KeyOf(Collection.class, "SYMBOL_GROUPS");
37 void addEntryPoints(Collection<ISymbolGroup> eps);
39 void removeEntryPoints(Collection<ISymbolGroup> eps);