Change notification for org.eclipse.ui.forms.SectionPart

Posted on 2007-10-15
Last Modified: 2013-12-15
Working with org.eclipse.ui.forms.SectionPart, how do I catch changes for any control?
I have many buttons and text boxes in the part, if any (it doesn't matter which) is modified I need to set the dirty flag, how do I do this without attaching a listener to each control?
Question by:Fridman

    Accepted Solution

    As I was afraid, there is no option but to add listeners to all controls. I created listeners for Button, Combo and Text, looped over all section children (getChildern, returns Control[]), and accordign to tye (instanceof...) added the required listener.
    LVL 1

    Expert Comment

    Closed, 500 points refunded.
    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Title # Comments Views Activity
    why to use string 10 53
    isEverywhere  challenge 19 48
    delphi parse string to params 3 44
    groovy example issue 10 32
    Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now