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 65187 Details for
Bug 166640
The selected post filter needs to be better indicated
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]
Proposed fix
bug166640_postfiler_fix-patch (text/plain), 4.08 KB, created by
Ruslan Scherbakov
on 2007-04-27 06:20:04 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Ruslan Scherbakov
Created:
2007-04-27 06:20:04 EDT
Size:
4.08 KB
patch
obsolete
>Index: src/org/eclipse/hyades/trace/views/adapter/internal/ExecutionStatisticTab.java >=================================================================== >RCS file: /cvsroot/tptp/trace/org.eclipse.hyades.trace.views/src/org/eclipse/hyades/trace/views/adapter/internal/ExecutionStatisticTab.java,v >retrieving revision 1.7 >diff -u -r1.7 ExecutionStatisticTab.java >--- src/org/eclipse/hyades/trace/views/adapter/internal/ExecutionStatisticTab.java 14 Nov 2006 22:57:05 -0000 1.7 >+++ src/org/eclipse/hyades/trace/views/adapter/internal/ExecutionStatisticTab.java 27 Apr 2007 10:13:26 -0000 >@@ -12,14 +12,24 @@ > import org.eclipse.hyades.trace.views.internal.ExecutionStatisticView; > import org.eclipse.hyades.trace.views.internal.MultiLevelStatisticView; > import org.eclipse.hyades.trace.views.internal.TraceUIPlugin; >+import org.eclipse.hyades.ui.filters.internal.actions.FiltersEditorAction; >+import org.eclipse.hyades.ui.util.GridUtil; > import org.eclipse.hyades.ui.util.HyadesFormToolkit; > import org.eclipse.jface.action.IAction; > import org.eclipse.jface.action.IMenuManager; >+import org.eclipse.osgi.util.NLS; > import org.eclipse.swt.SWT; >+import org.eclipse.swt.events.SelectionEvent; >+import org.eclipse.swt.events.SelectionListener; >+import org.eclipse.swt.graphics.Font; >+import org.eclipse.swt.graphics.FontData; > import org.eclipse.swt.layout.GridData; > import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.Composite; > import org.eclipse.swt.widgets.Control; >+import org.eclipse.swt.widgets.Link; >+import org.eclipse.tptp.platform.common.ui.trace.internal.CommonUITraceMessages; >+import org.eclipse.ui.forms.IFormColors; > import org.eclipse.ui.forms.widgets.Form; > > public class ExecutionStatisticTab extends ExecutionStatisticTabItem { >@@ -29,6 +39,7 @@ > protected MultiLevelStatisticView _view; > protected HyadesFormToolkit _toolkit; > protected Form _form; >+ protected Link _info; > > public ExecutionStatisticTab(ExecutionStatisticPage2 page) { > super(page); >@@ -44,9 +55,28 @@ > _form.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); > _form.getBody().setLayout(gridLayout); > _form.getBody().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); >- >- _view = new ExecutionStatisticView(_form.getBody(), _page); > >+ _info = new Link(_form.getBody(), SWT.WRAP | _toolkit.getOrientation()); >+ _info.setBackground(_toolkit.getColors().getBackground()); >+ _info.setForeground(_toolkit.getColors().getColor(IFormColors.TITLE)); >+ Font font = _info.getFont(); >+ FontData fd = font.getFontData()[0]; >+ font = new Font(null, new FontData(fd.getName(), fd.getHeight(), fd.getStyle() | SWT.BOLD)); >+ _info.setFont(font); >+ _info.addSelectionListener(new SelectionListener() { >+ public void widgetDefaultSelected(SelectionEvent e) { >+ } >+ >+ public void widgetSelected(SelectionEvent e) { >+ if (_page != null && _page.getViewer() != null) { >+ FiltersEditorAction feAction = new FiltersEditorAction(_page.getViewer().getFilterInformationManager()); >+ feAction.run(); >+ } >+ } >+ }); >+ _info.setLayoutData(GridUtil.createHorizontalFill()); >+ >+ _view = new ExecutionStatisticView(_form.getBody(), _page); > _page.setContextMenu(_view.getTree(), _view.getTreeViewer()); > } > >@@ -58,6 +88,7 @@ > if (_view != null) { > _view.updateButtons(); > _view.refresh(); >+ _info.setText(NLS.bind(CommonUITraceMessages.CHOOSE_FILTER_MSG, getCurrentFilterName())); > } > } > >@@ -109,9 +140,21 @@ > public void update(boolean newPage) { > if (_view != null) { > _view.update(); >+ _info.setText(NLS.bind(CommonUITraceMessages.CHOOSE_FILTER_MSG, getCurrentFilterName())); > } > } > >+ public String getCurrentFilterName() { >+ ExecutionStatisticViewer2 viewer = _page.getViewer(); >+ viewer.getCurrentFilter().getName(); >+ String filterName; >+ if (viewer.getCurrentFilter() != null) >+ filterName = viewer.getCurrentFilter().getName(); >+ else >+ filterName = CommonUITraceMessages.ST_FLTAPN; >+ return filterName; >+ } >+ > public String getViewTitle() { > return _title; > }
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 166640
:
54974
|
54975
|
65186
|
65187
|
93091
|
93094