]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram/src/org/simantics/diagram/symbollibrary/ui/SymbolLibraryEventHandler.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / symbollibrary / ui / SymbolLibraryEventHandler.java
1 /*******************************************************************************
2  * Copyright (c) 2011 Association for Decentralized Information Management in
3  * 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.ui;
13
14 import org.simantics.diagram.symbollibrary.ISymbolGroup;
15 import org.simantics.g2d.gallery.GalleryViewer;
16 import org.simantics.scenegraph.g2d.events.Event;
17
18 /**
19  * @author Tuukka Lehtonen
20  */
21 public interface SymbolLibraryEventHandler {
22
23     /**
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
27      *        group
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
31      */
32     boolean handleEvent(Event event, ISymbolGroup group, GalleryViewer viewer);
33
34 }