KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > core > DefaultMoveDeleteHook


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.team.internal.core;
12
13  
14 import org.eclipse.core.resources.IFile;
15 import org.eclipse.core.resources.IFolder;
16 import org.eclipse.core.resources.IProject;
17 import org.eclipse.core.resources.IProjectDescription;
18 import org.eclipse.core.resources.team.IMoveDeleteHook;
19 import org.eclipse.core.resources.team.IResourceTree;
20 import org.eclipse.core.runtime.IProgressMonitor;
21
22 /**
23  * Internal class which provides the default behavior for resource deletions and moves.
24  *
25  */

26
27 public class DefaultMoveDeleteHook implements IMoveDeleteHook {
28
29     /**
30      * @see IMoveDeleteHook#deleteFile(IResourceTree, IFile, int, IProgressMonitor)
31      */

32     public boolean deleteFile(
33         IResourceTree tree,
34         IFile file,
35         int updateFlags,
36         IProgressMonitor monitor) {
37         return false;
38     }
39
40     /**
41      * @see IMoveDeleteHook#deleteFolder(IResourceTree, IFolder, int, IProgressMonitor)
42      */

43     public boolean deleteFolder(
44         IResourceTree tree,
45         IFolder folder,
46         int updateFlags,
47         IProgressMonitor monitor) {
48         return false;
49     }
50
51     /**
52      * @see IMoveDeleteHook#deleteProject(IResourceTree, IProject, int, IProgressMonitor)
53      */

54     public boolean deleteProject(
55         IResourceTree tree,
56         IProject project,
57         int updateFlags,
58         IProgressMonitor monitor) {
59         return false;
60     }
61
62     /**
63      * @see IMoveDeleteHook#moveFile(IResourceTree, IFile, IFile, int, IProgressMonitor)
64      */

65     public boolean moveFile(
66         IResourceTree tree,
67         IFile source,
68         IFile destination,
69         int updateFlags,
70         IProgressMonitor monitor) {
71         return false;
72     }
73
74     /**
75      * @see IMoveDeleteHook#moveFolder(IResourceTree, IFolder, IFolder, int, IProgressMonitor)
76      */

77     public boolean moveFolder(
78         IResourceTree tree,
79         IFolder source,
80         IFolder destination,
81         int updateFlags,
82         IProgressMonitor monitor) {
83         return false;
84     }
85
86     /**
87      * @see IMoveDeleteHook#moveProject(IResourceTree, IProject, IProjectDescription, int, IProgressMonitor)
88      */

89     public boolean moveProject(
90         IResourceTree tree,
91         IProject source,
92         IProjectDescription description,
93         int updateFlags,
94         IProgressMonitor monitor) {
95         return false;
96     }
97
98 }
99
Popular Tags