Permalink
Browse files

After finishing editing a template descriptor (which deselects that

descriptor), disable the Edit and Remove buttons.
  • Loading branch information...
katesherwood committed Jun 6, 2012
1 parent 39eb50c commit 17f7c1af911979c9f029274960fd6f3b18137533
@@ -249,6 +249,10 @@ public void widgetSelected(SelectionEvent e) {
}
model.addNameUrlPairInEncodedString(new NameUrlPair(name, urlString));
tableViewer.refresh();
+ // the tableViewer refresh deselects the line, so
+ // disable the buttons
+ editButton.setEnabled(false);
+ removeButton.setEnabled(false);
}
catch (URISyntaxException e1) {
errorText.setText("Error! The URL " + urlString + " was malformed. Ignoring.");

0 comments on commit 17f7c1a

Please sign in to comment.