コード例 #1
0
 public void propertyChange(PropertyChangeEvent event) {
   if (event.getProperty() == PreferenceConstants.EDITOR_EVALUTE_TEMPORARY_PROBLEMS) {
     this.status = CJDTConfigSettings.isAnalyzeAnnotationsEnabled();
     if (this.action != null) {
       this.action.setChecked(this.status);
     }
   }
 }
コード例 #2
0
 public void run(IAction action) {
   CJDTConfigSettings.setAnalyzeAnnotations(!this.status);
   this.status = CJDTConfigSettings.isAnalyzeAnnotationsEnabled();
   action.setChecked(this.status);
   this.action = action;
 }
コード例 #3
0
 public void init(IWorkbenchWindow window) {
   this.status = CJDTConfigSettings.isAnalyzeAnnotationsEnabled();
   JavaPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(this);
 }