KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > configuration > ILocalSystemInfoListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.update.configuration;
12  
13
14
15 /**
16  * Local system change listener interface.
17  * <p>
18  * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
19  * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
20  * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
21  * (repeatedly) as the API evolves.
22  * </p>
23  * @see LocalSystemInfo#addInfoListener(ILocalSystemInfoListener)
24  * @see LocalSystemInfo#removeInfoListener(ILocalSystemInfoListener)
25  * @see LocalSystemInfo#fireSystemInfoChanged(IVolume,int)
26  * @since 2.0
27  */

28 public interface ILocalSystemInfoListener {
29     
30     /**
31      * Volume change notification.
32      * Called each time there are relevant volume changes
33      * detected. This specifically includes changes to the
34      * file system structure as a result of removable drive/ media
35      * operations (eg. CD insertion), and changes to volume
36      * mount structure.
37      * @param volume volume of the changed file
38      * system structure. Any current paths beyond
39      * the specified 'root' file of the volume are assumed to be invalidated.
40      * @param changeType type of the change that occured.
41      * @see LocalSystemInfo#VOLUME_ADDED
42      * @see LocalSystemInfo#VOLUME_REMOVED
43      * @see LocalSystemInfo#VOLUME_CHANGED
44      * @since 2.0
45      * <p>
46      * <b>Note:</b> This method is part of an interim API that is still under development and expected to
47      * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
48      * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
49      * (repeatedly) as the API evolves.
50      * </p>
51      */

52     public void systemInfoChanged(IVolume volume, int changeType);
53 }
54
Popular Tags