svn-gvsig-desktop / trunk / build / distribution / IzPack / src / lib / com / izforge / izpack / event / SimpleUninstallerListener.java @ 21757
History | View | Annotate | Download (2.99 KB)
1 |
/*
|
---|---|
2 |
* $Id: SimpleUninstallerListener.java 5819 2006-06-14 07:29:09Z cesar $
|
3 |
* IzPack
|
4 |
* Copyright (C) 2004 Klaus Bartz
|
5 |
*
|
6 |
* File : SimpleUninstallerListener.java
|
7 |
* Description : Simple custom action listener implementation
|
8 |
* for uninstall time.
|
9 |
* Author's email : klaus.bartz@coi.de
|
10 |
* Author's Website : http://www.coi.de/
|
11 |
*
|
12 |
* This program is free software; you can redistribute it and/or
|
13 |
* modify it under the terms of the GNU General Public License
|
14 |
* as published by the Free Software Foundation; either version 2
|
15 |
* of the License, or any later version.
|
16 |
*
|
17 |
* This program is distributed in the hope that it will be useful,
|
18 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
* GNU General Public License for more details.
|
21 |
*
|
22 |
* You should have received a copy of the GNU General Public License
|
23 |
* along with this program; if not, write to the Free Software
|
24 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
25 |
*/
|
26 |
|
27 |
package com.izforge.izpack.event; |
28 |
|
29 |
import java.io.File; |
30 |
import java.util.List; |
31 |
|
32 |
import com.izforge.izpack.util.AbstractUIProgressHandler; |
33 |
|
34 |
/**
|
35 |
* <p>This class implements all methods of interface
|
36 |
* UninstallerListener, but do not do enything.
|
37 |
* It can be used as base class to save implementation
|
38 |
* of unneeded methods.</p>
|
39 |
*
|
40 |
* @author Klaus Bartz
|
41 |
*
|
42 |
*/
|
43 |
public class SimpleUninstallerListener implements UninstallerListener |
44 |
{ |
45 |
|
46 |
/**
|
47 |
*
|
48 |
*/
|
49 |
public SimpleUninstallerListener()
|
50 |
{ |
51 |
super();
|
52 |
} |
53 |
|
54 |
/* (non-Javadoc)
|
55 |
* @see com.izforge.izpack.uninstaller.UninstallerListener#beforeDeletion(java.util.List, com.izforge.izpack.util.AbstractUIProgressHandler)
|
56 |
*/
|
57 |
public void beforeDeletion(List files, AbstractUIProgressHandler handler) |
58 |
throws Exception |
59 |
{ |
60 |
// Do nothing
|
61 |
; |
62 |
} |
63 |
|
64 |
/* (non-Javadoc)
|
65 |
* @see com.izforge.izpack.uninstaller.UninstallerListener#beforeDelete(java.io.File, com.izforge.izpack.util.AbstractUIProgressHandler)
|
66 |
*/
|
67 |
public void beforeDelete(File file, AbstractUIProgressHandler handler) |
68 |
throws Exception |
69 |
{ |
70 |
// Do nothing
|
71 |
; |
72 |
} |
73 |
|
74 |
/* (non-Javadoc)
|
75 |
* @see com.izforge.izpack.uninstaller.UninstallerListener#afterDelete(java.io.File, com.izforge.izpack.util.AbstractUIProgressHandler)
|
76 |
*/
|
77 |
public void afterDelete(File file, AbstractUIProgressHandler handler) |
78 |
throws Exception |
79 |
{ |
80 |
// Do nothing
|
81 |
; |
82 |
} |
83 |
|
84 |
/* (non-Javadoc)
|
85 |
* @see com.izforge.izpack.uninstaller.UninstallerListener#afterDeletion(java.util.List, com.izforge.izpack.util.AbstractUIProgressHandler)
|
86 |
*/
|
87 |
public void afterDeletion(List files, AbstractUIProgressHandler handler) |
88 |
throws Exception |
89 |
{ |
90 |
// Do nothing
|
91 |
; |
92 |
} |
93 |
|
94 |
/* (non-Javadoc)
|
95 |
* @see com.izforge.izpack.uninstaller.UninstallerListener#isFileListener()
|
96 |
*/
|
97 |
public boolean isFileListener() |
98 |
{ |
99 |
return false; |
100 |
} |
101 |
|
102 |
} |