Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-04-10 10:34:59 +0000
committerfbecker2010-04-10 10:34:59 +0000
commiteb74fdefa86061aa0344a02ce44563a05b46aee7 (patch)
tree3acbb4d0928ebbe3871683d7eba82123a7d7ae14 /org.eclipse.mylyn.bugzilla.ui
parent72cc4665b6317f9b9d68a8e2b1706ac7844f4741 (diff)
downloadorg.eclipse.mylyn.tasks-eb74fdefa86061aa0344a02ce44563a05b46aee7.tar.gz
org.eclipse.mylyn.tasks-eb74fdefa86061aa0344a02ce44563a05b46aee7.tar.xz
org.eclipse.mylyn.tasks-eb74fdefa86061aa0344a02ce44563a05b46aee7.zip
ASSIGNED - bug 305568: fix Bugzilla query page nits
https://bugs.eclipse.org/bugs/show_bug.cgi?id=305568
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java16
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/messages.properties14
2 files changed, 19 insertions, 11 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
index 6a3164890..be1eab319 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
@@ -40,6 +40,7 @@ import org.eclipse.jface.fieldassist.ComboContentAdapter;
import org.eclipse.jface.fieldassist.ContentProposalAdapter;
import org.eclipse.jface.fieldassist.IContentProposalProvider;
import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.window.Window;
import org.eclipse.mylyn.commons.core.CoreUtil;
@@ -97,6 +98,7 @@ import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds;
* @author Mik Kersten (hardening of prototype)
* @author Frank Becker
*/
+@SuppressWarnings("restriction")
public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements Listener {
private static final int HEIGHT_ATTRIBUTE_COMBO = 70;
@@ -431,7 +433,7 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
moreOptionsExpandComposite = toolkit.createExpandableComposite(control, ExpandableComposite.COMPACT
| ExpandableComposite.TWISTIE | ExpandableComposite.TITLE_BAR);
- moreOptionsExpandComposite.setFont(control.getFont());
+ moreOptionsExpandComposite.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DIALOG_FONT));
moreOptionsExpandComposite.setBackground(null);
moreOptionsExpandComposite.setText(Messages.BugzillaSearchPage_More_Options);
moreOptionsExpandComposite.setLayout(new GridLayout(3, false));
@@ -512,7 +514,7 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
new Label(basicComposite, SWT.NONE);
Composite emailComposite = new Composite(basicComposite, SWT.NONE);
- emailComposite.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 2, 1));
+ emailComposite.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));
GridLayout emailLayout = new GridLayout();
emailLayout.marginWidth = 0;
emailLayout.marginHeight = 0;
@@ -699,7 +701,7 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
new Label(advancedComposite, SWT.NONE);
Composite emailComposite2 = new Composite(advancedComposite, SWT.NONE);
- emailComposite2.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 2, 1));
+ emailComposite2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));
GridLayout emailLayout2 = new GridLayout();
emailLayout2.marginWidth = 0;
emailLayout2.marginHeight = 0;
@@ -1123,10 +1125,16 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
moreOptionsExpandComposite.setExpanded(true);
}
setPageComplete(isPageComplete());
+ }
+ if (visible) {
+ getControl().getShell().layout(false, true);
Point oldSize = getControl().getSize();
Point newSize = getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
+ if (!moreOptionsExpandComposite.isExpanded()) {
+ // for some reason in not expanded state the width is a little to small
+ newSize.x += 36;
+ }
resizeDialogIfNeeded(oldSize, newSize);
-
if (getWizard() == null) {
// TODO: wierd check
summaryPattern.setFocus();
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/messages.properties b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/messages.properties
index fd854ae1f..9399fdba1 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/messages.properties
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/messages.properties
@@ -13,10 +13,10 @@ BugzillaSearchPage_all_words=all words
BugzillaSearchPage_any=any
BugzillaSearchPage_any_word=any word
BugzillaSearchPage_Bugzilla_Query=Bugzilla Query
-BugzillaSearchPage_cc=cc
+BugzillaSearchPage_cc=CC
BugzillaSearchPage_Changed_in=Ch&anged in:
BugzillaSearchPage_Comment=&Comment:
-BugzillaSearchPage_commenter=commenter
+BugzillaSearchPage_commenter=Commenter
BugzillaSearchPage_Component=Compo&nent:
BugzillaSearchPage_days=\ days.
BugzillaSearchPage_Email=&Email:
@@ -33,22 +33,22 @@ BugzillaSearchPage_none=none
BugzillaSearchPage_notregexp=notregexp
BugzillaSearchPage_Number_of_days_must_be_a_positive_integer=Number of days must be a positive integer. {0} is invalid.
BugzillaSearchPage_Operating_System=&Operating System:
-BugzillaSearchPage_owner=owner
+BugzillaSearchPage_owner=Owner
BugzillaSearchPage_Product=&Product:
BugzillaSearchPage_PROORITY=Priori&ty:
-BugzillaSearchPage_qacontact=qa
+BugzillaSearchPage_qacontact=QA Contact
BugzillaSearchPage_Query_Title=&Query Title:
BugzillaSearchPage_regexp=regexp
-BugzillaSearchPage_reporter=reporter
+BugzillaSearchPage_reporter=Reporter
BugzillaSearchPage_Resolution=&Resolution:
BugzillaSearchPage_Select_=Select...
BugzillaSearchPage_Select_the_Bugzilla_query_parameters=Select the Bugzilla query parameters. Use the Update Attributes button to retrieve updated values from the repository.
BugzillaSearchPage_Severity=Se&verity:
BugzillaSearchPage_Status=Stat&us:
-BugzillaSearchPage_substring=substring
+BugzillaSearchPage_substring=contains
BugzillaSearchPage_Summary=Summar&y:
BugzillaSearchPage_Update_Attributes_from_Repository=Up&date Attributes from Repository
BugzillaSearchPage_Updating_search_options_=Updating search options...
BugzillaSearchPage_Version=Vers&ion:
BugzillaSearchPage_ClearFields=Clear Fields
-BugzillaSearchPage_More_Options=more Options
+BugzillaSearchPage_More_Options=More Options

Back to the top