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 93091 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]
patch for the org.eclipse.hyades.trace.views
166640_1.txt (text/plain), 4.70 KB, created by
Igor Alelekov
on 2008-03-21 03:24:16 EDT
(
hide
)
Description:
patch for the org.eclipse.hyades.trace.views
Filename:
MIME Type:
Creator:
Igor Alelekov
Created:
2008-03-21 03:24:16 EDT
Size:
4.70 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.hyades.trace.views >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 21 Mar 2008 07:15:13 -0000 >@@ -1,5 +1,5 @@ > /********************************************************************** >- * Copyright (c) 2006 Intel Corporation. >+ * Copyright (c) 2006,2008 Intel Corporation. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -9,10 +9,13 @@ > **********************************************************************/ > package org.eclipse.hyades.trace.views.adapter.internal; > >+import org.eclipse.hyades.models.hierarchy.extensions.SimpleSearchQuery; > 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.HyadesFormToolkit; >+import org.eclipse.hyades.ui.util.GridUtil; > import org.eclipse.jface.action.IAction; > import org.eclipse.jface.action.IMenuManager; > import org.eclipse.swt.SWT; >@@ -20,15 +23,23 @@ > 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.swt.events.SelectionEvent; >+import org.eclipse.swt.events.SelectionListener; >+import org.eclipse.swt.graphics.Font; >+import org.eclipse.swt.graphics.FontData; >+import org.eclipse.tptp.platform.common.ui.trace.internal.CommonUITraceMessages; >+import org.eclipse.ui.forms.IFormColors; > import org.eclipse.ui.forms.widgets.Form; >+import org.eclipse.osgi.util.NLS; > > public class ExecutionStatisticTab extends ExecutionStatisticTabItem { >- > protected static final String _title = TraceUIPlugin.getString("2"); > > protected MultiLevelStatisticView _view; > protected HyadesFormToolkit _toolkit; > protected Form _form; >+ protected Link _info; > > public ExecutionStatisticTab(ExecutionStatisticPage2 page) { > super(page); >@@ -45,9 +56,29 @@ > _form.getBody().setLayout(gridLayout); > _form.getBody().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); > >+ _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(), true); >+ feAction.run(); >+ } >+ } >+ }); >+ _info.setLayoutData(GridUtil.createHorizontalFill()); >+ > _view = new ExecutionStatisticView(_form.getBody(), _page); > > _page.setContextMenu(_view.getTree(), _view.getTreeViewer()); >+ _view.getControl().setFocus(); > } > > public Control getControl() { >@@ -58,6 +89,7 @@ > if (_view != null) { > _view.updateButtons(); > _view.refresh(); >+ _info.setText(NLS.bind(CommonUITraceMessages.CHOOSE_FILTER_MSG, getCurrentFilterName())); > } > } > >@@ -109,9 +141,22 @@ > public void update(boolean newPage) { > if (_view != null) { > _view.update(); >+ _info.setText(NLS.bind(CommonUITraceMessages.CHOOSE_FILTER_MSG, getCurrentFilterName())); > } > } > >+ public String getCurrentFilterName() { >+ String filterName; >+ >+ SimpleSearchQuery filter = _page.getViewer().getCurrentFilter(); >+ if (filter != null) >+ filterName = filter.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