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
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.scenegraph.profile;
\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
19 * TODO: add mechanism for partial style re-application
\r
21 public interface Observer {
\r
24 * Notifies this profile system instance that a profile subsystem is
\r
25 * requesting for style re-application for the whole diagram.
\r
30 * For logging exceptional situations that occur within profile entries or
\r
35 void exception(Throwable throwable);
\r
38 * @return <code>true</code> if this profile system instance has been shut
\r
39 * down, <code>false</code> otherwise
\r
41 boolean isDisposed();
\r