Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 305568
Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java (-4 / +12 lines)
Lines 40-45 Link Here
40
import org.eclipse.jface.fieldassist.ContentProposalAdapter;
40
import org.eclipse.jface.fieldassist.ContentProposalAdapter;
41
import org.eclipse.jface.fieldassist.IContentProposalProvider;
41
import org.eclipse.jface.fieldassist.IContentProposalProvider;
42
import org.eclipse.jface.operation.IRunnableWithProgress;
42
import org.eclipse.jface.operation.IRunnableWithProgress;
43
import org.eclipse.jface.resource.JFaceResources;
43
import org.eclipse.jface.viewers.ILabelProvider;
44
import org.eclipse.jface.viewers.ILabelProvider;
44
import org.eclipse.jface.window.Window;
45
import org.eclipse.jface.window.Window;
45
import org.eclipse.mylyn.commons.core.CoreUtil;
46
import org.eclipse.mylyn.commons.core.CoreUtil;
Lines 97-102 Link Here
97
 * @author Mik Kersten (hardening of prototype)
98
 * @author Mik Kersten (hardening of prototype)
98
 * @author Frank Becker
99
 * @author Frank Becker
99
 */
100
 */
101
@SuppressWarnings("restriction")
100
public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements Listener {
102
public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements Listener {
101
103
102
	private static final int HEIGHT_ATTRIBUTE_COMBO = 70;
104
	private static final int HEIGHT_ATTRIBUTE_COMBO = 70;
Lines 431-437 Link Here
431
433
432
		moreOptionsExpandComposite = toolkit.createExpandableComposite(control, ExpandableComposite.COMPACT
434
		moreOptionsExpandComposite = toolkit.createExpandableComposite(control, ExpandableComposite.COMPACT
433
				| ExpandableComposite.TWISTIE | ExpandableComposite.TITLE_BAR);
435
				| ExpandableComposite.TWISTIE | ExpandableComposite.TITLE_BAR);
434
		moreOptionsExpandComposite.setFont(control.getFont());
436
		moreOptionsExpandComposite.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT));
435
		moreOptionsExpandComposite.setBackground(null);
437
		moreOptionsExpandComposite.setBackground(null);
436
		moreOptionsExpandComposite.setText(Messages.BugzillaSearchPage_More_Options);
438
		moreOptionsExpandComposite.setText(Messages.BugzillaSearchPage_More_Options);
437
		moreOptionsExpandComposite.setLayout(new GridLayout(3, false));
439
		moreOptionsExpandComposite.setLayout(new GridLayout(3, false));
Lines 512-518 Link Here
512
514
513
		new Label(basicComposite, SWT.NONE);
515
		new Label(basicComposite, SWT.NONE);
514
		Composite emailComposite = new Composite(basicComposite, SWT.NONE);
516
		Composite emailComposite = new Composite(basicComposite, SWT.NONE);
515
		emailComposite.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 2, 1));
517
		emailComposite.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));
516
		GridLayout emailLayout = new GridLayout();
518
		GridLayout emailLayout = new GridLayout();
517
		emailLayout.marginWidth = 0;
519
		emailLayout.marginWidth = 0;
518
		emailLayout.marginHeight = 0;
520
		emailLayout.marginHeight = 0;
Lines 699-705 Link Here
699
701
700
		new Label(advancedComposite, SWT.NONE);
702
		new Label(advancedComposite, SWT.NONE);
701
		Composite emailComposite2 = new Composite(advancedComposite, SWT.NONE);
703
		Composite emailComposite2 = new Composite(advancedComposite, SWT.NONE);
702
		emailComposite2.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 2, 1));
704
		emailComposite2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));
703
		GridLayout emailLayout2 = new GridLayout();
705
		GridLayout emailLayout2 = new GridLayout();
704
		emailLayout2.marginWidth = 0;
706
		emailLayout2.marginWidth = 0;
705
		emailLayout2.marginHeight = 0;
707
		emailLayout2.marginHeight = 0;
Lines 1123-1132 Link Here
1123
				moreOptionsExpandComposite.setExpanded(true);
1125
				moreOptionsExpandComposite.setExpanded(true);
1124
			}
1126
			}
1125
			setPageComplete(isPageComplete());
1127
			setPageComplete(isPageComplete());
1128
		}
1129
		if (visible) {
1130
			getControl().getShell().layout(false, true);
1126
			Point oldSize = getControl().getSize();
1131
			Point oldSize = getControl().getSize();
1127
			Point newSize = getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
1132
			Point newSize = getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
1133
			if (!moreOptionsExpandComposite.isExpanded()) {
1134
				// for some reason in not expanded state the width is a little to small
1135
				newSize.x += 36;
1136
			}
1128
			resizeDialogIfNeeded(oldSize, newSize);
1137
			resizeDialogIfNeeded(oldSize, newSize);
1129
1130
			if (getWizard() == null) {
1138
			if (getWizard() == null) {
1131
				// TODO: wierd check
1139
				// TODO: wierd check
1132
				summaryPattern.setFocus();
1140
				summaryPattern.setFocus();
(-)src/org/eclipse/mylyn/internal/bugzilla/ui/search/messages.properties (-7 / +7 lines)
Lines 13-22 Link Here
13
BugzillaSearchPage_any=any
13
BugzillaSearchPage_any=any
14
BugzillaSearchPage_any_word=any word
14
BugzillaSearchPage_any_word=any word
15
BugzillaSearchPage_Bugzilla_Query=Bugzilla Query
15
BugzillaSearchPage_Bugzilla_Query=Bugzilla Query
16
BugzillaSearchPage_cc=cc
16
BugzillaSearchPage_cc=CC
17
BugzillaSearchPage_Changed_in=Ch&anged in:
17
BugzillaSearchPage_Changed_in=Ch&anged in:
18
BugzillaSearchPage_Comment=&Comment:
18
BugzillaSearchPage_Comment=&Comment:
19
BugzillaSearchPage_commenter=commenter
19
BugzillaSearchPage_commenter=Commenter
20
BugzillaSearchPage_Component=Compo&nent:
20
BugzillaSearchPage_Component=Compo&nent:
21
BugzillaSearchPage_days=\ days.
21
BugzillaSearchPage_days=\ days.
22
BugzillaSearchPage_Email=&Email:
22
BugzillaSearchPage_Email=&Email:
Lines 33-54 Link Here
33
BugzillaSearchPage_notregexp=notregexp
33
BugzillaSearchPage_notregexp=notregexp
34
BugzillaSearchPage_Number_of_days_must_be_a_positive_integer=Number of days must be a positive integer. {0} is invalid.
34
BugzillaSearchPage_Number_of_days_must_be_a_positive_integer=Number of days must be a positive integer. {0} is invalid.
35
BugzillaSearchPage_Operating_System=&Operating System:
35
BugzillaSearchPage_Operating_System=&Operating System:
36
BugzillaSearchPage_owner=owner
36
BugzillaSearchPage_owner=Owner
37
BugzillaSearchPage_Product=&Product:
37
BugzillaSearchPage_Product=&Product:
38
BugzillaSearchPage_PROORITY=Priori&ty:
38
BugzillaSearchPage_PROORITY=Priori&ty:
39
BugzillaSearchPage_qacontact=qa
39
BugzillaSearchPage_qacontact=QA Contact
40
BugzillaSearchPage_Query_Title=&Query Title:
40
BugzillaSearchPage_Query_Title=&Query Title:
41
BugzillaSearchPage_regexp=regexp
41
BugzillaSearchPage_regexp=regexp
42
BugzillaSearchPage_reporter=reporter
42
BugzillaSearchPage_reporter=Reporter
43
BugzillaSearchPage_Resolution=&Resolution:
43
BugzillaSearchPage_Resolution=&Resolution:
44
BugzillaSearchPage_Select_=Select...
44
BugzillaSearchPage_Select_=Select...
45
BugzillaSearchPage_Select_the_Bugzilla_query_parameters=Select the Bugzilla query parameters.  Use the Update Attributes button to retrieve updated values from the repository.
45
BugzillaSearchPage_Select_the_Bugzilla_query_parameters=Select the Bugzilla query parameters.  Use the Update Attributes button to retrieve updated values from the repository.
46
BugzillaSearchPage_Severity=Se&verity:
46
BugzillaSearchPage_Severity=Se&verity:
47
BugzillaSearchPage_Status=Stat&us:
47
BugzillaSearchPage_Status=Stat&us:
48
BugzillaSearchPage_substring=substring
48
BugzillaSearchPage_substring=contains
49
BugzillaSearchPage_Summary=Summar&y:
49
BugzillaSearchPage_Summary=Summar&y:
50
BugzillaSearchPage_Update_Attributes_from_Repository=Up&date Attributes from Repository
50
BugzillaSearchPage_Update_Attributes_from_Repository=Up&date Attributes from Repository
51
BugzillaSearchPage_Updating_search_options_=Updating search options...
51
BugzillaSearchPage_Updating_search_options_=Updating search options...
52
BugzillaSearchPage_Version=Vers&ion:
52
BugzillaSearchPage_Version=Vers&ion:
53
BugzillaSearchPage_ClearFields=Clear Fields
53
BugzillaSearchPage_ClearFields=Clear Fields
54
BugzillaSearchPage_More_Options=more Options
54
BugzillaSearchPage_More_Options=More Options
(-)src/org/eclipse/mylyn/internal/tasks/ui/TaskSearchPage.java (-1 / +1 lines)
Lines 166-172 Link Here
166
		group.setLayoutData(gd);
166
		group.setLayoutData(gd);
167
167
168
		Label label = new Label(group, SWT.NONE);
168
		Label label = new Label(group, SWT.NONE);
169
		label.setText(Messages.TaskSearchPage_Select_Repository_);
169
		label.setText(Messages.TaskSearchPage_Repository);
170
170
171
		repositoryCombo = new Combo(group, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
171
		repositoryCombo = new Combo(group, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
172
		repositoryCombo.addSelectionListener(new SelectionAdapter() {
172
		repositoryCombo.addSelectionListener(new SelectionAdapter() {
(-)src/org/eclipse/mylyn/internal/tasks/ui/Messages.java (-1 / +1 lines)
Lines 91-97 Link Here
91
91
92
	public static String TaskSearchPage_Repository_Search;
92
	public static String TaskSearchPage_Repository_Search;
93
93
94
	public static String TaskSearchPage_Select_Repository_;
94
	public static String TaskSearchPage_Repository;
95
95
96
	public static String TaskSearchPage_Task_Key_ID;
96
	public static String TaskSearchPage_Task_Key_ID;
97
97
(-)src/org/eclipse/mylyn/internal/tasks/ui/messages.properties (-1 / +1 lines)
Lines 58-64 Link Here
58
58
59
TaskSearchPage_No_task_found_matching_key_=No task found matching key: 
59
TaskSearchPage_No_task_found_matching_key_=No task found matching key: 
60
TaskSearchPage_Repository_Search=Repository Search
60
TaskSearchPage_Repository_Search=Repository Search
61
TaskSearchPage_Select_Repository_=Se&lect Repository: 
61
TaskSearchPage_Repository=Repository: 
62
TaskSearchPage_Task_Key_ID=Task Key/ID: 
62
TaskSearchPage_Task_Key_ID=Task Key/ID: 
63
TaskSearchPage_Task_Search=Task Search
63
TaskSearchPage_Task_Search=Task Search
64
64

Return to bug 305568