1 /* 2 * This file is a part of CAST project. 3 * (c) Copyright 2007, AGH University of Science & Technology 4 * https://caribou.iisg.agh.edu.pl/trac/cast 5 * 6 * Licensed under the Eclipse Public License, Version 1.0 (the "License"). 7 * You may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * http://www.eclipse.org/legal/epl-v10.html 10 */ 11 /* 12 * File: IObservablePersistenceProvider.java 13 * Created: 2009-08-12 14 * Author: tmilos 15 * $Id$ 16 */ 17 18 package pl.edu.agh.cast.data.persistence; 19 20 import pl.edu.agh.cast.data.model.property.IPropertyChangeProvider; 21 22 /** 23 * Interface of observable persistence provider. This provider may notify about new/removed data sets. 24 * 25 * @author AGH CAST Team 26 */ 27 public interface IObservablePersistenceProvider extends IPersistenceProvider, IPropertyChangeProvider { 28 29 /** 30 * Enumeration of persistence provider events. 31 * 32 * @author AGH CAST Team 33 */ 34 @SuppressWarnings("nls") 35 public static final class Events { 36 37 /** 38 * The name of "new data set saved" event. 39 */ 40 public static final String NEW_DATA_SET_EVENT = "PersistenceProvider.NEW_DATA_SET"; 41 42 /** 43 * The name of "multiple new data sets saved" event. 44 */ 45 public static final String NEW_DATA_SETS_EVENT = "PersistenceProvider.NEW_DATA_SETS"; 46 47 /** 48 * The name of "diagram (presentation + visual data set) save event" event. 49 */ 50 public static final String DIAGRAM_SAVED_EVENT = "PersistenceProvider.DIAGRAM_SAVED_EVENT"; 51 52 /** 53 * The name of "provider initialized" event. 54 */ 55 public static final String INITIALIZED_EVENT = "PersistenceProvider.INITIALIZED"; 56 57 /** 58 * The name of "provider destroyed" event. 59 */ 60 public static final String DESTORYED_EVENT = "PersistenceProvider.DESTORYED"; 61 62 } 63 64 }