|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2005 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2015 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 18-23
Link Here
|
| 18 |
import org.eclipse.debug.core.IStatusHandler; |
18 |
import org.eclipse.debug.core.IStatusHandler; |
| 19 |
import org.eclipse.debug.internal.ui.DebugUIPlugin; |
19 |
import org.eclipse.debug.internal.ui.DebugUIPlugin; |
| 20 |
import org.eclipse.debug.ui.sourcelookup.CommonSourceNotFoundEditor; |
20 |
import org.eclipse.debug.ui.sourcelookup.CommonSourceNotFoundEditor; |
|
|
21 |
import org.eclipse.jface.viewers.ILabelProvider; |
| 21 |
import org.eclipse.jface.window.Window; |
22 |
import org.eclipse.jface.window.Window; |
| 22 |
import org.eclipse.ui.dialogs.ElementListSelectionDialog; |
23 |
import org.eclipse.ui.dialogs.ElementListSelectionDialog; |
| 23 |
|
24 |
|
|
Lines 45-51
Link Here
|
| 45 |
} else if(sources.size() == 0) { |
46 |
} else if(sources.size() == 0) { |
| 46 |
return null; |
47 |
return null; |
| 47 |
} |
48 |
} |
| 48 |
ElementListSelectionDialog dialog = new ElementListSelectionDialog(DebugUIPlugin.getShell(), new SourceElementLabelProvider()); |
49 |
ElementListSelectionDialog dialog = new ElementListSelectionDialog(DebugUIPlugin.getShell(), getLabelProvider()); |
| 49 |
dialog.setMultipleSelection(false); |
50 |
dialog.setMultipleSelection(false); |
| 50 |
dialog.setTitle(SourceLookupUIMessages.ResolveDuplicatesHandler_0); |
51 |
dialog.setTitle(SourceLookupUIMessages.ResolveDuplicatesHandler_0); |
| 51 |
dialog.setMessage(SourceLookupUIMessages.ResolveDuplicatesHandler_1); |
52 |
dialog.setMessage(SourceLookupUIMessages.ResolveDuplicatesHandler_1); |
|
Lines 58-63
Link Here
|
| 58 |
} |
59 |
} |
| 59 |
|
60 |
|
| 60 |
/** |
61 |
/** |
|
|
62 |
* Different Label providers can be provided for different debugging components |
| 63 |
*/ |
| 64 |
public ILabelProvider getLabelProvider() { |
| 65 |
return new SourceElementLabelProvider(); |
| 66 |
} |
| 67 |
|
| 68 |
/** |
| 61 |
* Remove extra source not found editors, if any. |
69 |
* Remove extra source not found editors, if any. |
| 62 |
* If multiple source not found editors and no "real" source inputs, |
70 |
* If multiple source not found editors and no "real" source inputs, |
| 63 |
* return the first source not found editor. |
71 |
* return the first source not found editor. |