Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 103030 Details for
Bug 233621
autoselect component when only one available
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
clipboard.txt (text/plain), 2.44 KB, created by
Frank Becker
on 2008-05-31 16:38:19 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Frank Becker
Created:
2008-05-31 16:38:19 EDT
Size:
2.44 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.bugzilla.ui >Index: src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java,v >retrieving revision 1.91 >diff -u -r1.91 BugzillaProductPage.java >--- src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java 28 May 2008 22:38:16 -0000 1.91 >+++ src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java 31 May 2008 20:37:25 -0000 >@@ -61,6 +61,7 @@ > import org.eclipse.swt.widgets.Button; > import org.eclipse.swt.widgets.Composite; > import org.eclipse.swt.widgets.Display; >+import org.eclipse.swt.widgets.TreeItem; > import org.eclipse.ui.IWorkbenchWindow; > import org.eclipse.ui.PlatformUI; > import org.eclipse.ui.dialogs.FilteredTree; >@@ -125,6 +126,33 @@ > > } > >+ private class ComponentFilter extends PatternFilter { >+ >+ @Override >+ public void setPattern(String patternString) { >+ // ignore >+ super.setPattern(patternString); >+ // HACK: waiting on delayed refresh of filtered tree after setting the new pattern >+ new UIJob("") { >+ @Override >+ public IStatus runInUIThread(IProgressMonitor monitor) { >+ if (BugzillaProductPage.this.getControl() != null >+ && BugzillaProductPage.this.getControl().isDisposed()) { >+ return Status.OK_STATUS; >+ } >+ final TreeViewer productViewer = productList.getViewer(); >+ if (productViewer.getTree().getItemCount() == 1) { >+ TreeItem aq = productViewer.getTree().getItem(0); >+ String qq = aq.getText(); >+ productViewer.setSelection(new StructuredSelection(qq)); >+ } >+ return Status.OK_STATUS; >+ } >+ }.schedule(300L); >+ >+ } >+ } >+ > public void createControl(Composite parent) { > // create the composite to hold the widgets > Composite composite = new Composite(parent, SWT.NULL); >@@ -133,7 +161,7 @@ > composite.setLayout(new GridLayout()); > > // create the list of bug reports >- productList = new FilteredTree(composite, SWT.SINGLE | SWT.BORDER, new PatternFilter()); >+ productList = new FilteredTree(composite, SWT.SINGLE | SWT.BORDER, new ComponentFilter()); > productList.setLayoutData(GridDataFactory.swtDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).hint( > SWT.DEFAULT, 200).create()); > final TreeViewer productViewer = productList.getViewer();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233621
: 103030 |
103031