1 12 package org.eclipse.team.internal.ccvs.core; 13 14 import java.util.Date ; 15 16 import org.eclipse.core.runtime.IProgressMonitor; 17 import org.eclipse.team.core.TeamException; 18 import org.eclipse.team.internal.ccvs.core.syncinfo.NotifyInfo; 19 import org.eclipse.team.internal.ccvs.core.syncinfo.ResourceSyncInfo; 20 21 28 public interface ICVSFile extends ICVSResource, ICVSStorage { 29 30 public static final int UPDATED = 1; 32 public static final int MERGED = 2; 33 public static final int UPDATE_EXISTING = 3; 34 public static final int CREATED = 4; 35 36 public static final int NO_NOTIFICATION = 0; 38 public static final int NOTIFY_ON_EDIT = 1; 39 public static final int NOTIFY_ON_UNEDIT = 2; 40 public static final int NOTIFY_ON_COMMIT = 4; 41 public static final int NOTIFY_ON_ALL = NOTIFY_ON_EDIT | NOTIFY_ON_UNEDIT | NOTIFY_ON_COMMIT; 42 43 public static final int UNKNOWN = 0; 45 public static final int CLEAN = 1; 46 public static final int DIRTY = 2; 47 48 56 public byte[] getSyncBytes() throws CVSException; 57 58 69 public void setSyncInfo(ResourceSyncInfo info, int modificationState) throws CVSException; 70 71 81 public void setSyncBytes(byte[] syncBytes, int modificationState) throws CVSException; 82 83 90 void setReadOnly(boolean readOnly) throws CVSException; 91 92 96 boolean isReadOnly() throws CVSException; 97 98 102 public void setExecutable(boolean executable) throws CVSException; 103 104 109 public boolean isExecutable() throws CVSException; 110 111 116 void copyTo(String filename) throws CVSException; 117 118 123 Date getTimeStamp(); 124 125 132 void setTimeStamp(Date date) throws CVSException; 133 134 139 boolean isModified(IProgressMonitor monitor) throws CVSException; 140 141 145 public ILogEntry[] getLogEntries(IProgressMonitor monitor) throws TeamException; 146 147 157 public void edit(int notifications, boolean notifyForWritable, IProgressMonitor monitor) throws CVSException; 158 159 165 public void unedit(IProgressMonitor monitor) throws CVSException; 166 167 173 public void checkedIn(String entryLine, boolean commit) throws CVSException; 174 175 180 public NotifyInfo getPendingNotification() throws CVSException; 181 182 187 public void notificationCompleted() throws CVSException; 188 189 197 public boolean isEdited() throws CVSException; 198 199 } 200 | Popular Tags |