示例#1
0
 /** Set the focus to the editor containing {@link AttributeNames#QUERY}, if possible. */
 @Override
 public boolean setFocus() {
   if (editors.containsKey(AttributeNames.QUERY)) {
     editors.get(AttributeNames.QUERY).setFocus();
     return true;
   } else return false;
 }
 /** @see org.eclipse.jface.preference.PreferencePage#applyData(java.lang.Object) */
 public void applyData(Object data) {
   if (data instanceof Map) {
     fPageData = (Map) data;
     if (link != null && fPageData.containsKey(NO_LINK)) {
       link.setVisible(!Boolean.TRUE.equals(((Map) data).get(NO_LINK)));
     }
   }
 }