Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-03-10 11:34:15 +0000
committerJean Michel-Lemieux2004-03-10 11:34:15 +0000
commit25715522fcf5c8dabfc16b3b7874d546c8ee6512 (patch)
treeb5a4d266878ad465a122e562102ba4086e229b5e
parent695cfb4db0b2fa048f5b485c385f560f772f2828 (diff)
downloadeclipse.platform.team-25715522fcf5c8dabfc16b3b7874d546c8ee6512.tar.gz
eclipse.platform.team-25715522fcf5c8dabfc16b3b7874d546c8ee6512.tar.xz
eclipse.platform.team-25715522fcf5c8dabfc16b3b7874d546c8ee6512.zip
Added hack to allow description to show in the view. This is until the ui team adds API for this. Basically anything in the title between ( brackets is added to the title description.
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java4
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/messages.properties2
2 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
index 40597fc31..c3b6e13ba 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
@@ -681,6 +681,7 @@ public class HistoryView extends ViewPart {
// has completed.
tableViewer.setInput(remoteFile);
setTitle(Policy.bind("HistoryView.titleWithArgument", remoteFile.getName())); //$NON-NLS-1$
+ setTitleToolTip(resource.getFullPath().toString());
}
} catch (TeamException e) {
CVSUIPlugin.openError(getViewSite().getShell(), null, null, e);
@@ -690,6 +691,7 @@ public class HistoryView extends ViewPart {
this.file = null;
tableViewer.setInput(null);
setTitle(Policy.bind("HistoryView.title")); //$NON-NLS-1$
+ setTitleToolTip(""); //$NON-NLS-1$
}
}
@@ -744,6 +746,7 @@ public class HistoryView extends ViewPart {
if (remoteFile == null) {
tableViewer.setInput(null);
setTitle(Policy.bind("HistoryView.title")); //$NON-NLS-1$
+ setTitleToolTip(""); //$NON-NLS-1$
return;
}
ICVSFile existingFile = historyTableProvider.getICVSFile();
@@ -752,6 +755,7 @@ public class HistoryView extends ViewPart {
historyTableProvider.setFile(remoteFile);
tableViewer.setInput(remoteFile);
setTitle(Policy.bind("HistoryView.titleWithArgument", remoteFile.getName())); //$NON-NLS-1$
+ setTitleToolTip(remoteFile.getRepositoryRelativePath());
} catch (TeamException e) {
CVSUIPlugin.openError(getViewSite().getShell(), null, null, e);
}
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/messages.properties b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/messages.properties
index ca27c5ca2..660e25e87 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/messages.properties
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/messages.properties
@@ -383,7 +383,7 @@ HistoryView.selectAll=Select &All
HistoryView.showComment=Show Comment Viewer
HistoryView.showTags=Show Tag Viewer
HistoryView.title=CVS Resource History
-HistoryView.titleWithArgument=CVS Resource History - {0}
+HistoryView.titleWithArgument=CVS Resource History ({0})
HistoryView.overwriteTitle=Overwrite local changes?
HistoryView.overwriteMsg=You have local changes. Do you want to overwrite them?
HistoryView.fetchHistoryJob=Fetching CVS revision history

Back to the top