mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 09:45:39 +02:00
Cosmetics.
This commit is contained in:
parent
0391ede740
commit
6b9291e199
1 changed files with 4 additions and 4 deletions
|
@ -118,9 +118,9 @@ public class AddSourceContainerDialog extends TitleAreaDialog {
|
||||||
* @param types the complete list of source container types
|
* @param types the complete list of source container types
|
||||||
* @return the list of source container types that have browsers
|
* @return the list of source container types that have browsers
|
||||||
*/
|
*/
|
||||||
private ISourceContainerType[] filterTypes(ISourceContainerType[] types){
|
private ISourceContainerType[] filterTypes(ISourceContainerType[] types) {
|
||||||
ArrayList<ISourceContainerType> validTypes = new ArrayList<ISourceContainerType>();
|
ArrayList<ISourceContainerType> validTypes = new ArrayList<ISourceContainerType>();
|
||||||
for (int i=0; i < types.length; i++) {
|
for (int i = 0; i < types.length; i++) {
|
||||||
ISourceContainerType type = types[i];
|
ISourceContainerType type = types[i];
|
||||||
if (fDirector.supportsSourceContainerType(type)) {
|
if (fDirector.supportsSourceContainerType(type)) {
|
||||||
ISourceContainerBrowser sourceContainerBrowser = DebugUITools.getSourceContainerBrowser(type.getId());
|
ISourceContainerBrowser sourceContainerBrowser = DebugUITools.getSourceContainerBrowser(type.getId());
|
||||||
|
@ -136,8 +136,8 @@ public class AddSourceContainerDialog extends TitleAreaDialog {
|
||||||
* @see org.eclipse.jface.dialogs.Dialog#okPressed()
|
* @see org.eclipse.jface.dialogs.Dialog#okPressed()
|
||||||
*/
|
*/
|
||||||
protected void okPressed() {
|
protected void okPressed() {
|
||||||
//single selection dialog, so take first item in array
|
// Single selection dialog, so take first item in array
|
||||||
//there will always be a selected item since we set it with viewer.setSelection
|
// there will always be a selected item since we set it with viewer.setSelection
|
||||||
ISourceContainerType type = (ISourceContainerType) ((StructuredSelection) fViewer.getSelection()).getFirstElement();
|
ISourceContainerType type = (ISourceContainerType) ((StructuredSelection) fViewer.getSelection()).getFirstElement();
|
||||||
ISourceContainerBrowser browser = DebugUITools.getSourceContainerBrowser(type.getId());
|
ISourceContainerBrowser browser = DebugUITools.getSourceContainerBrowser(type.getId());
|
||||||
if (browser != null) {
|
if (browser != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue