Announcement Announcement Module
Collapse
No announcement yet.
ApplicationDialog and buttons Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ApplicationDialog and buttons

    Hi, I had a problem with ApplicationDialog class. I needed a dialog with 3 buttons instead of the 2 buttons ApplicationDialog provides.

    It solved the problem redefining a copy of the class and changing some methods of ApplicationDialog in an inherited class, but it would be easier if more methods of ApplicationDialog were protected instead of private.

    I am talking of methods like initStandardCommands(), executeCloseAction(), constructDialog()...

    Can it be contempled in the future releases of Spring RCP? It's an easy modification and helps a lot

    Thx in advance

  • #2
    You can override the getCommandGroupMembers() method of the ApplicationDialog class to return the list of yours commands.

    Code:
    protected Object[] getCommandGroupMembers() {
        return new AbstractCommand[] { this.comandoBuscar, 
                                                         this.comandoIdiomas,
                                                         this.comandoNuevo,  
                                                         this.comandoEliminar,
                                                         getFinishCommand(),
                                                         getCancelCommand() };
    }

    Comment

    Working...
    X