/*
  * (non-Javadoc) Method declared on PreferencePage
  */
 public boolean performOk() {
   storeValues();
   try {
     IEclipsePreferences preferences = InstanceScope.INSTANCE.getNode(PLUGIN_ID);
     preferences.flush();
     BuildsView buildsView =
         (BuildsView)
             PerformancesView.getWorkbenchView(
                 "org.eclipse.test.internal.performance.results.ui.BuildsView");
     if (buildsView != null) {
       buildsView.resetView();
     }
   } catch (BackingStoreException e) {
     e.printStackTrace();
     return false;
   }
   return true;
 }
 private void addActions(Menu menu) { // add repository action
   Presentation selectedPresentation = view.getContentProvider().getPresentation();
   for (final Presentation presentation : Presentation.values()) {
     Action action =
         new Action() {
           @Override
           public void run() {
             view.getContentProvider().setPresentation(presentation);
           }
         };
     action.setText(presentation.toString());
     action.setChecked(presentation == selectedPresentation);
     ActionContributionItem item = new ActionContributionItem(action);
     item.fill(menu, -1);
   }
 }