]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/Observer.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scenegraph.profile / src / org / simantics / scenegraph / profile / Observer.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
3  * in Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.scenegraph.profile;\r
13 \r
14 /**\r
15  * Diagram profile observer interface is a channel for {@link ProfileEntry} and\r
16  * {@link Style} to request style re-application, log exceptions and track the\r
17  * current state of the profile system for a particular diagram instance.\r
18  * \r
19  * TODO: add mechanism for partial style re-application\r
20  */\r
21 public interface Observer {\r
22 \r
23     /**\r
24      * Notifies this profile system instance that a profile subsystem is\r
25      * requesting for style re-application for the whole diagram.\r
26      */\r
27     void update();\r
28 \r
29     /**\r
30      * For logging exceptional situations that occur within profile entries or\r
31      * styles.\r
32      * \r
33      * @param throwable\r
34      */\r
35     void exception(Throwable throwable);\r
36 \r
37     /**\r
38      * @return <code>true</code> if this profile system instance has been shut\r
39      *         down, <code>false</code> otherwise\r
40      */\r
41     boolean isDisposed();\r
42 \r
43 }\r