mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
2004-07-09 Alain Magloire
Pr reported by Alex C. Follow the other views lead and for multiple selection show the number of selections. * src/org/eclipse/cdt/interanal/ui/cview/CView.java * src/org/eclipse/cdt/interanal/ui/cview/CViewMessages.properties
This commit is contained in:
parent
b8324eb1a0
commit
1dfc3821c4
3 changed files with 17 additions and 8 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2004-07-09 Alain Magloire
|
||||||
|
Pr reported by Alex C.
|
||||||
|
Follow the other views lead and for multiple selection
|
||||||
|
show the number of selections.
|
||||||
|
|
||||||
|
* src/org/eclipse/cdt/interanal/ui/cview/CView.java
|
||||||
|
* src/org/eclipse/cdt/interanal/ui/cview/CViewMessages.properties
|
||||||
|
|
||||||
2004-07-08 Hoda Amer
|
2004-07-08 Hoda Amer
|
||||||
Partial fix for PR 69439: content assist confusion
|
Partial fix for PR 69439: content assist confusion
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
||||||
|
|
||||||
ResourceWorkingSetFilter workingSetFilter = new ResourceWorkingSetFilter();
|
ResourceWorkingSetFilter workingSetFilter = new ResourceWorkingSetFilter();
|
||||||
|
|
||||||
private boolean dragDetected;
|
protected boolean dragDetected;
|
||||||
private Listener dragDetectListener;
|
private Listener dragDetectListener;
|
||||||
|
|
||||||
// Persistance tags.
|
// Persistance tags.
|
||||||
|
@ -673,13 +673,11 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
||||||
IPath path = ((IResource) element).getFullPath();
|
IPath path = ((IResource) element).getFullPath();
|
||||||
if (path.isRoot()) {
|
if (path.isRoot()) {
|
||||||
return "CVIEW"; //$NON-NLS-1$
|
return "CVIEW"; //$NON-NLS-1$
|
||||||
} else {
|
}
|
||||||
return path.makeRelative().toString();
|
return path.makeRelative().toString();
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
return ((ILabelProvider) viewer.getLabelProvider()).getText(element);
|
return ((ILabelProvider) viewer.getLabelProvider()).getText(element);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the message to show in the status line.
|
* Returns the message to show in the status line.
|
||||||
|
@ -725,7 +723,8 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (selection.size() > 1) {
|
if (selection.size() > 1) {
|
||||||
return "StatusLine"; //$NON-NLS-1$
|
return CViewMessages.getFormattedString("CView.statusLine", //$NON-NLS-1$
|
||||||
|
new String[] { Integer.toString(selection.size())});
|
||||||
}
|
}
|
||||||
return "";//$NON-NLS-1$
|
return "";//$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
@ -748,12 +747,12 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
||||||
Object input = getViewer().getInput();
|
Object input = getViewer().getInput();
|
||||||
String viewName = getConfigurationElement().getAttribute("name"); //$NON-NLS-1$
|
String viewName = getConfigurationElement().getAttribute("name"); //$NON-NLS-1$
|
||||||
if (input == null || (input instanceof ICModel)) {
|
if (input == null || (input instanceof ICModel)) {
|
||||||
setTitle(viewName);
|
setPartName(viewName);
|
||||||
setTitleToolTip(""); //$NON-NLS-1$
|
setTitleToolTip(""); //$NON-NLS-1$
|
||||||
} else {
|
} else {
|
||||||
ILabelProvider labelProvider = (ILabelProvider) getViewer().getLabelProvider();
|
ILabelProvider labelProvider = (ILabelProvider) getViewer().getLabelProvider();
|
||||||
String inputText = labelProvider.getText(input);
|
String inputText = labelProvider.getText(input);
|
||||||
setTitle(inputText);
|
setPartName(inputText);
|
||||||
setTitleToolTip(getToolTipText(input));
|
setTitleToolTip(getToolTipText(input));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,3 +56,5 @@ ShowLibrariesAction.hideReferenced.tooltip=Hide Referenced Libs
|
||||||
ShowLibrariesAction.showReferenced.tooltip=Show Referenced Libs
|
ShowLibrariesAction.showReferenced.tooltip=Show Referenced Libs
|
||||||
LibraryRefContainer.Libraries=Libraries
|
LibraryRefContainer.Libraries=Libraries
|
||||||
IncludeRefContainer.Includes=Includes
|
IncludeRefContainer.Includes=Includes
|
||||||
|
|
||||||
|
CView.statusLine = {0} items selected
|
Loading…
Add table
Reference in a new issue