Exemplo n.º 1
0
 @Override
 protected void updateExtraButtons() {
   if (abstractRepositoryQueryPage != null) {
     if (refreshButton != null) {
       abstractRepositoryQueryPage.setExtraButtonState(refreshButton);
     }
     if (clearButton != null) {
       abstractRepositoryQueryPage.setExtraButtonState(clearButton);
     }
   }
 }
Exemplo n.º 2
0
 @Override
 protected boolean handleExtraButtonPressed(int buttonId) {
   if (abstractRepositoryQueryPage != null) {
     abstractRepositoryQueryPage.handleExtraButtonPressed(buttonId);
   }
   return false;
 }
Exemplo n.º 3
0
 @Override
 protected void createExtraButtons(Composite composite) {
   if (abstractRepositoryQueryPage != null) {
     if (abstractRepositoryQueryPage.needsRefresh()) {
       refreshButton =
           createButton(
               composite,
               REFRESH_BUTTON_ID,
               Messages.QueryWizardDialog_Update_Attributes_from_Repository,
               false);
       refreshButton.setVisible(false);
       setButtonLayoutData(refreshButton);
     }
     if (abstractRepositoryQueryPage.needsClear()) {
       clearButton =
           createButton(
               composite, CLEAR_BUTTON_ID, Messages.QueryWizardDialog_Clear_Fields, false);
       clearButton.setVisible(false);
       setButtonLayoutData(clearButton);
     }
   }
 }