Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2011-11-03 15:33:05 +0000
committerTomasz Zarna2011-11-03 15:33:05 +0000
commit8bd7229015f8e34a5c3e23ca9b86504023141b51 (patch)
tree35ce4705153caaba802a24dcd83d1c410fcfa44b /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs
parent706840e080e4d3af321fb42e7a29ae466db00db4 (diff)
downloadeclipse.platform.team-8bd7229015f8e34a5c3e23ca9b86504023141b51.tar.gz
eclipse.platform.team-8bd7229015f8e34a5c3e23ca9b86504023141b51.tar.xz
eclipse.platform.team-8bd7229015f8e34a5c3e23ca9b86504023141b51.zip
bug 354658: 'History' does not dispose created PageSite instances whenI20111108-0800
it is closed
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java
index a863b099d..d75cc8333 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java
@@ -1212,7 +1212,7 @@ public class CVSHistoryPage extends HistoryPage implements IAdaptable, IHistoryC
// First, adapt to IResource and ensure mapped to CVS
IResource resource = (IResource)Utils.getAdapter(object, IResource.class);
if (resource instanceof IFile) {
- RepositoryProvider provider = RepositoryProvider.getProvider(((IResource)resource).getProject());
+ RepositoryProvider provider = RepositoryProvider.getProvider(resource.getProject());
if (provider instanceof CVSTeamProvider)
return CVSWorkspaceRoot.getCVSFileFor((IFile) resource);
return null;
@@ -1646,7 +1646,7 @@ public class CVSHistoryPage extends HistoryPage implements IAdaptable, IHistoryC
}
elementsToExpand = new Object[expandable.size()];
- elementsToExpand = (Object[]) expandable.toArray(new Object[expandable.size()]);
+ elementsToExpand = expandable.toArray(new Object[expandable.size()]);
}
private boolean sortRevisions() {
@@ -1800,8 +1800,7 @@ public class CVSHistoryPage extends HistoryPage implements IAdaptable, IHistoryC
}
public boolean isValidInput(Object object) {
- ICVSFile file = getCVSFile(object);
- return file != null;
+ return getCVSFile(object) != null;
}
public String getName() {

Back to the top