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
|
||||
Partial fix for PR 69439: content assist confusion
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
|||
|
||||
ResourceWorkingSetFilter workingSetFilter = new ResourceWorkingSetFilter();
|
||||
|
||||
private boolean dragDetected;
|
||||
protected boolean dragDetected;
|
||||
private Listener dragDetectListener;
|
||||
|
||||
// Persistance tags.
|
||||
|
@ -673,12 +673,10 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
|||
IPath path = ((IResource) element).getFullPath();
|
||||
if (path.isRoot()) {
|
||||
return "CVIEW"; //$NON-NLS-1$
|
||||
} else {
|
||||
return path.makeRelative().toString();
|
||||
}
|
||||
} else {
|
||||
return ((ILabelProvider) viewer.getLabelProvider()).getText(element);
|
||||
return path.makeRelative().toString();
|
||||
}
|
||||
return ((ILabelProvider) viewer.getLabelProvider()).getText(element);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -725,7 +723,8 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
|||
}
|
||||
}
|
||||
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$
|
||||
}
|
||||
|
@ -748,12 +747,12 @@ public class CView extends ViewPart implements ISetSelectionTarget, IPropertyCha
|
|||
Object input = getViewer().getInput();
|
||||
String viewName = getConfigurationElement().getAttribute("name"); //$NON-NLS-1$
|
||||
if (input == null || (input instanceof ICModel)) {
|
||||
setTitle(viewName);
|
||||
setPartName(viewName);
|
||||
setTitleToolTip(""); //$NON-NLS-1$
|
||||
} else {
|
||||
ILabelProvider labelProvider = (ILabelProvider) getViewer().getLabelProvider();
|
||||
String inputText = labelProvider.getText(input);
|
||||
setTitle(inputText);
|
||||
setPartName(inputText);
|
||||
setTitleToolTip(getToolTipText(input));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,3 +56,5 @@ ShowLibrariesAction.hideReferenced.tooltip=Hide Referenced Libs
|
|||
ShowLibrariesAction.showReferenced.tooltip=Show Referenced Libs
|
||||
LibraryRefContainer.Libraries=Libraries
|
||||
IncludeRefContainer.Includes=Includes
|
||||
|
||||
CView.statusLine = {0} items selected
|
Loading…
Add table
Reference in a new issue