[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] ViewPart toolbar
|
I want to add a Filter action to my view part. Have the going but the
problem is the button shows up UNDER the tab area. I want it to show up
in the tab area next to the min / max button and not in a wasted space solo.
public void createPartControl(Composite parent) {
Action filterAction = new Action("Filter") {
public void run() {
handleFilter();
}
};
filterAction.setToolTipText("Filter Audit log");
filterAction.setImageDescriptor(TopologyImages.IMAGE_FILTER);
filterAction.setDisabledImageDescriptor(TopologyImages.IMAGE_FILTER_DISABLED);
getViewSite().getActionBars().getToolBarManager().add(filterAction);
Here is the code. I am sure it is the last line that needs to be
modifies but I just don't know what to do on it.