1 /*******************************************************************************
2 * Copyright (c) 2011 Association for Decentralized Information Management in
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.ui;
14 import org.simantics.diagram.symbollibrary.ISymbolGroup;
15 import org.simantics.g2d.gallery.GalleryViewer;
16 import org.simantics.scenegraph.g2d.events.Event;
19 * @author Tuukka Lehtonen
21 public interface SymbolLibraryEventHandler {
24 * @param event the event that occurred
25 * @param group the symbol group within which the event occurred or
26 * <code>null</code> if event occurred outside of an existing symbol
28 * @param viewer the viewer of for the group or <code>null</code> if viewer
29 * is not yet initialized
30 * @return <code>true</code> if the handler consumes the event
32 boolean handleEvent(Event event, ISymbolGroup group, GalleryViewer viewer);