~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/InteractiveHeaderChooser.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2013-10-03 20:30:16 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131003203016-d4ug6l0xgosasumq
Tags: 8.2.1-1
* New upstream release.
* Updated autotools documentation sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 * Dialog-based header chooser.
31
31
 */
32
32
public class InteractiveHeaderChooser implements IHeaderChooser {
 
33
        private final String title;
33
34
        private final Shell shell;
34
 
        Map<Collection<IPath>, IPath> userChoiceCache;
 
35
        private final Map<Collection<IPath>, IPath> userChoiceCache;
35
36
 
36
 
        public InteractiveHeaderChooser(Shell shell) {
 
37
        public InteractiveHeaderChooser(String title, Shell shell) {
 
38
                this.title = title;
37
39
                this.shell = shell;
38
40
                userChoiceCache = new HashMap<Collection<IPath>, IPath>();
39
41
        }
62
64
                                        ElementListSelectionDialog dialog =
63
65
                                                        new ElementListSelectionDialog(shell, new LabelProvider());
64
66
                                        dialog.setElements(elemArray);
65
 
                                        dialog.setTitle(CEditorMessages.OrganizeIncludes_label);
 
67
                                        dialog.setTitle(title);
66
68
                                        dialog.setMessage(NLS.bind(CEditorMessages.OrganizeIncludes_choose_header, bindingName));
67
69
                                        if (dialog.open() == Window.OK) {
68
70
                                                selectedElement[0] = (IPath) dialog.getFirstResult();