Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-05-03 20:52:57 +0000
committerjames2002-05-03 20:52:57 +0000
commit63af1571666285aba95744991b64cc29ff69ae30 (patch)
tree8819819f7f4f33354d1fd98a96b94a983fd45a69
parent7eabaf2b35c0f97e8fcc02e45466924043708362 (diff)
downloadeclipse.platform.team-63af1571666285aba95744991b64cc29ff69ae30.tar.gz
eclipse.platform.team-63af1571666285aba95744991b64cc29ff69ae30.tar.xz
eclipse.platform.team-63af1571666285aba95744991b64cc29ff69ae30.zip
Remove history tracking selection feature
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java6
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java1
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java21
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/ICVSUIConstants.java1
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/messages.properties1
5 files changed, 1 insertions, 29 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java
index 060aa4fad..7b0ae0e11 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSPreferencesPage.java
@@ -64,7 +64,6 @@ public class CVSPreferencesPage extends PreferencePage implements IWorkbenchPref
private Combo compressionLevelCombo;
private Combo ksubstCombo;
private List ksubstOptions;
- private Button historyTracksSelectionButton;
private Button considerContentsInCompare;
private Button promptOnFileDelete;
private Button promptOnFolderDelete;
@@ -210,8 +209,6 @@ public class CVSPreferencesPage extends PreferencePage implements IWorkbenchPref
pruneEmptyDirectoriesField = createCheckBox(composite, Policy.bind("CVSPreferencePage.pruneEmptyDirectories")); //$NON-NLS-1$
- historyTracksSelectionButton = createCheckBox(composite, Policy.bind("CVSPreferencePage.historyTracksSelection")); //$NON-NLS-1$
-
considerContentsInCompare = createCheckBox(composite, Policy.bind("CVSPreferencePage.considerContentsInCompare")); //$NON-NLS-1$
considerContentsInCompare.setToolTipText(Policy.bind("CVSPreferencePage.considerContentsInCompareTooltip")); //$NON-NLS-1$
@@ -293,7 +290,6 @@ public class CVSPreferencesPage extends PreferencePage implements IWorkbenchPref
ksubstCombo.add(option.getLongDisplayText());
}
ksubstCombo.select(getKSubstComboIndexFor(store.getString(ICVSUIConstants.PREF_TEXT_KSUBST)));
- historyTracksSelectionButton.setSelection(store.getBoolean(ICVSUIConstants.PREF_HISTORY_TRACKS_SELECTION));
considerContentsInCompare.setSelection(store.getBoolean(ICVSUIConstants.PREF_CONSIDER_CONTENTS));
promptOnFileDelete.setSelection(store.getBoolean(ICVSUIConstants.PREF_PROMPT_ON_FILE_DELETE));
promptOnFolderDelete.setSelection(store.getBoolean(ICVSUIConstants.PREF_PROMPT_ON_FOLDER_DELETE));
@@ -326,7 +322,6 @@ public class CVSPreferencesPage extends PreferencePage implements IWorkbenchPref
store.setValue(ICVSUIConstants.PREF_QUIETNESS, quietnessCombo.getSelectionIndex());
store.setValue(ICVSUIConstants.PREF_COMPRESSION_LEVEL, compressionLevelCombo.getSelectionIndex());
store.setValue(ICVSUIConstants.PREF_TEXT_KSUBST, ((KSubstOption) ksubstOptions.get(ksubstCombo.getSelectionIndex())).toMode());
- store.setValue(ICVSUIConstants.PREF_HISTORY_TRACKS_SELECTION, historyTracksSelectionButton.getSelection());
store.setValue(ICVSUIConstants.PREF_CONSIDER_CONTENTS, considerContentsInCompare.getSelection());
store.setValue(ICVSUIConstants.PREF_PROMPT_ON_FILE_DELETE, promptOnFileDelete.getSelection());
store.setValue(ICVSUIConstants.PREF_PROMPT_ON_FOLDER_DELETE, promptOnFolderDelete.getSelection());
@@ -380,7 +375,6 @@ public class CVSPreferencesPage extends PreferencePage implements IWorkbenchPref
quietnessCombo.select(store.getDefaultInt(ICVSUIConstants.PREF_QUIETNESS));
compressionLevelCombo.select(store.getDefaultInt(ICVSUIConstants.PREF_COMPRESSION_LEVEL));
ksubstCombo.select(getKSubstComboIndexFor(store.getDefaultString(ICVSUIConstants.PREF_TEXT_KSUBST)));
- historyTracksSelectionButton.setSelection(store.getDefaultBoolean(ICVSUIConstants.PREF_HISTORY_TRACKS_SELECTION));
promptOnFileDelete.setSelection(store.getDefaultBoolean(ICVSUIConstants.PREF_PROMPT_ON_FILE_DELETE));
promptOnFolderDelete.setSelection(store.getDefaultBoolean(ICVSUIConstants.PREF_PROMPT_ON_FOLDER_DELETE));
showMarkers.setSelection(store.getDefaultBoolean(ICVSUIConstants.PREF_SHOW_MARKERS));
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java
index 3e1963151..d6973e23f 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java
@@ -244,7 +244,6 @@ public class CVSUIPlugin extends AbstractUIPlugin {
store.setDefault(ICVSUIConstants.PREF_TIMEOUT, CVSProviderPlugin.DEFAULT_TIMEOUT);
store.setDefault(ICVSUIConstants.PREF_SHOW_MODULES, false);
store.setDefault(ICVSUIConstants.PREF_CONSIDER_CONTENTS, false);
- store.setDefault(ICVSUIConstants.PREF_HISTORY_TRACKS_SELECTION, false);
store.setDefault(ICVSUIConstants.PREF_PROMPT_ON_FILE_DELETE, true);
store.setDefault(ICVSUIConstants.PREF_PROMPT_ON_FOLDER_DELETE, true);
store.setDefault(ICVSUIConstants.PREF_SHOW_MARKERS, true);
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 505660ca0..cc1b716d2 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
@@ -89,7 +89,7 @@ import org.eclipse.ui.texteditor.ITextEditorActionConstants;
/**
* The history view allows browsing of an array of resource revisions
*/
-public class HistoryView extends ViewPart implements ISelectionListener {
+public class HistoryView extends ViewPart {
private IFile file;
// cached for efficiency
private ILogEntry[] entries;
@@ -367,7 +367,6 @@ public class HistoryView extends ViewPart implements ISelectionListener {
textViewer = createText(innerSashForm);
sashForm.setWeights(new int[] { 70, 30 });
innerSashForm.setWeights(new int[] { 50, 50 });
- getSite().getPage().getWorkbenchWindow().getSelectionService().addSelectionListener(this);
contributeActions();
setViewerVisibility();
// set F1 help
@@ -520,7 +519,6 @@ public class HistoryView extends ViewPart implements ISelectionListener {
return result;
}
public void dispose() {
- getSite().getPage().getWorkbenchWindow().getSelectionService().removeSelectionListener(this);
if (branchImage != null) {
branchImage.dispose();
branchImage = null;
@@ -613,23 +611,6 @@ public class HistoryView extends ViewPart implements ISelectionListener {
return null;
}
}
- public void selectionChanged(IWorkbenchPart part, ISelection selection) {
- if (CVSUIPlugin.getPlugin().getPreferenceStore().getBoolean(ICVSUIConstants.PREF_HISTORY_TRACKS_SELECTION)) {
- if (selection == null) return;
- if (!(selection instanceof IStructuredSelection)) return;
- IStructuredSelection ss = (IStructuredSelection)selection;
- if (ss.size() != 1) {
- showHistory((IResource)null);
- return;
- }
- Object first = ss.getFirstElement();
- if (first instanceof IResource) {
- showHistory((IResource)first);
- } else if (first instanceof ICVSRemoteFile) {
- showHistory((ICVSRemoteFile)first, null /* no current revision */);
- }
- }
- }
/** (Non-javadoc)
* Method declared on IWorkbenchPart
*/
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/ICVSUIConstants.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/ICVSUIConstants.java
index ea39c95ea..a63cd7ed4 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/ICVSUIConstants.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/ICVSUIConstants.java
@@ -44,7 +44,6 @@ public interface ICVSUIConstants {
public final String PREF_TIMEOUT = "pref_timeout"; //$NON-NLS-1$
public final String PREF_QUIETNESS = "pref_quietness"; //$NON-NLS-1$
public final String PREF_SHOW_MODULES = "pref_show_modules"; //$NON-NLS-1$
- public final String PREF_HISTORY_TRACKS_SELECTION = "pref_history_tracks_selection"; //$NON-NLS-1$
public final String PREF_CVS_RSH = "pref_cvs_rsh"; //$NON-NLS-1$
public final String PREF_CVS_SERVER = "pref_cvs_server"; //$NON-NLS-1$
public final String PREF_CONSIDER_CONTENTS = "pref_consider_contents"; //$NON-NLS-1$
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 7ecfc927b..3a1985258 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
@@ -163,7 +163,6 @@ CVSPreferencePage.reallyquiet=Very quiet
CVSPreferencePage.silentWarningTitle="Very Quiet" mode is dangerous
CVSPreferencePage.silentWarningMessage= In "Very Quiet" mode, some cvs servers may not communicate important information about errors that have occured. You may want to consider using "Somewhat quiet" mode instead.
CVSPreferencePage.showModules=&Show modules from CVSROOT/modules in repository view
-CVSPreferencePage.historyTracksSelection=Link &History view to current selection
CVSPreferencePage.considerContentsInCompare=&Consider file contents instead of timestamp information when comparing CVS files
CVSPreferencePage.considerContentsInCompareTooltip=The fastest method of comparing CVS files is to consider the timestamps.\nHowever, in some cases a more accurate comparison can be achieved\nby comparing the content of files. This setting applies to all\nCVS compare editors and the Synchronize view.
CVSPreferencePage.promptOnFileDelete=&Prompt for confirmation on deletion of managed files

Back to the top