|
Lines 14-19
Link Here
|
| 14 |
import java.util.ArrayList; |
14 |
import java.util.ArrayList; |
| 15 |
import java.util.List; |
15 |
import java.util.List; |
| 16 |
|
16 |
|
|
|
17 |
import org.eclipse.core.resources.IProjectDescription; |
| 17 |
import org.eclipse.core.resources.IResource; |
18 |
import org.eclipse.core.resources.IResource; |
| 18 |
import org.eclipse.core.runtime.*; |
19 |
import org.eclipse.core.runtime.*; |
| 19 |
import org.eclipse.osgi.util.NLS; |
20 |
import org.eclipse.osgi.util.NLS; |
|
Lines 50-55
Link Here
|
| 50 |
protected FolderSyncInfo folderInfo; |
51 |
protected FolderSyncInfo folderInfo; |
| 51 |
private ICVSRemoteResource[] children; |
52 |
private ICVSRemoteResource[] children; |
| 52 |
private ICVSRepositoryLocation repository; |
53 |
private ICVSRepositoryLocation repository; |
|
|
54 |
private String projectName; |
| 53 |
|
55 |
|
| 54 |
public static RemoteFolder fromBytes(IResource local, byte[] bytes) throws CVSException { |
56 |
public static RemoteFolder fromBytes(IResource local, byte[] bytes) throws CVSException { |
| 55 |
Assert.isNotNull(bytes); |
57 |
Assert.isNotNull(bytes); |
|
Lines 585-588
Link Here
|
| 585 |
// This should not get called for folders |
587 |
// This should not get called for folders |
| 586 |
} |
588 |
} |
| 587 |
|
589 |
|
|
|
590 |
/* (non-Javadoc) |
| 591 |
* @see org.eclipse.team.internal.ccvs.core.ICVSRemoteFolder#hasProjectDescription() |
| 592 |
*/ |
| 593 |
public boolean hasProjectName() { |
| 594 |
return projectName == null ? false : true; |
| 595 |
} |
| 596 |
|
| 597 |
/* (non-Javadoc) |
| 598 |
* @see org.eclipse.team.internal.ccvs.core.ICVSRemoteFolder#setProjectDescription(org.eclipse.core.resources.IProjectDescription) |
| 599 |
*/ |
| 600 |
public void setProjectName(String name) { |
| 601 |
this.projectName = name; |
| 602 |
} |
| 603 |
|
| 604 |
/* (non-Javadoc) |
| 605 |
* @see org.eclipse.team.internal.ccvs.core.ICVSRemoteFolder#getProjectName() |
| 606 |
*/ |
| 607 |
public String getProjectName() { |
| 608 |
if (projectName == null || projectName.equals("")) { //$NON-NLS-1$ |
| 609 |
return null; |
| 610 |
} |
| 611 |
return projectName; |
| 612 |
} |
| 588 |
} |
613 |
} |