[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: ViewPart toolbar

Never mind. I screwed the image up in Gimp and it was NOT 16x16 during some testing. Once I resized it to 16x16 it works just fine.

Kevin Peck wrote:
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.