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(); } } }
public void doWork() { ContextValueDialog dialog = new ContextValueDialog(new Shell(), null, vEditor.getFile()); if (IDialogConstants.OK_ID == dialog.open()) { reloadContextValues(); } }