Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7928313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:41:52+00:00 2026-06-03T19:41:52+00:00

I am facing some issues in eclipse rcp for setting the dropdown for a

  • 0

I am facing some issues in eclipse rcp for setting the dropdown for a particular cell.
My requrement is to set the dropdown in the first row of the table. And that dropdown should be able to remove also.
One more thing that drop should be able to filter the contents in the table. So My question is that

1) Is it possible to add the dropdown only to the particular cell or row?
2) Can that filter act as a filter for the table?
3) How do I remove once I add the dropdown to the table cell?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:41:53+00:00Added an answer on June 3, 2026 at 7:41 pm

    Yes this is entirely possible. I suggest you start by reading Building and delivering a table editor with SWT/JFace, this tutorial contains everything you need to know.

    As a rough outline, you will need to make the first item in your content model different from your data items – it will store the filter values. Then setup editing support on your TableViewerColumns something like (this is just a starter – this code will not work on its own):

    tableViewerColumn.setEditingSupport(new EditingSupport(tableViewer)
    {
        @Override
        protected boolean canEdit(Object element) {
            if(object instanceof FilterDataObject) // your model object you are using to store the filter selections
            {
                return true;
            }
        }
    
        @Override
        protected CellEditor getCellEditor(Object element) 
        {               
            final ComboBoxCellEditor editor = new ComboBoxCellEditor(table, getPossibleFilterValues(), SWT.READ_ONLY);              
            ((CCombo)editor.getControl()).addModifyListener(new ModifyListener()
            {
                public void modifyText(ModifyEvent e) 
                {
                    IStructuredSelection sel = (IStructuredSelection)m_tableViewer.getSelection();
                    FilterDataObject filterValue = (FilterDataObject)sel.getFirstElement();
                    // .. update the filter on your TableViewer
                }               
            });             
            return editor;
        }
    
        @Override
        protected Object getValue(Object element) 
        {
            if(object instanceof FilterDataObject) 
            {               
                // get the filter value
            }
            else
            {
                // get your data model's value for this column
            }
        }
    
        @Override
        protected void setValue(Object element, Object value) 
        {
            if(object instanceof FilterDataObject) 
            {
                // update your FilterDataObject
            }
        }       
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been facing some serious issues while executing this particular JSP page. CODE
I'm facing some issues with a rapidly growing table at increasing speed (currently 4mio
I am facing some issues while serializing objects (I am using JBoss Drools, and
Well, since I am facing some issues with OAuth implementation, I decided to go
I'm working using scriptaculous library. However I'm facing some issues with inclusion of the
I am facing some issues in Spring JPA. I successfully configured the Spring JPA
I'm facing some issues with Apache mod_proxy_balancer regarding sticky sessions. We've developped a restful
We're currently facing some issues during Unit Testing. Our class is multithreading some function
I am facing some issues when I write images to the database using JPA.
I have to create one expandable /collapseable panel in jQuery, and facing some issues.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.