|
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(); |