コード例 #1
0
 public void doWork() {
   int index = contextValuesTable.getSelectionIndex();
   if (index >= 0) {
     String key = contextValuesTable.getSelection()[0].getText(0);
     ContextValue value =
         ConfigurationManager.getInstance(vEditor.getFile().getProject())
             .getContextValue(key, vEditor.getFile(), false);
     ContextValueDialog dialog = new ContextValueDialog(new Shell(), value, vEditor.getFile());
     if (IDialogConstants.OK_ID == dialog.open()) {
       reloadContextValues();
     }
   }
 }
コード例 #2
0
 public void doWork() {
   ContextValueDialog dialog = new ContextValueDialog(new Shell(), null, vEditor.getFile());
   if (IDialogConstants.OK_ID == dialog.open()) {
     reloadContextValues();
   }
 }