/** Removes the selected constraint. */ private void removeSelectedConstraint() { int index = tableViewer.getTable().getSelectionIndex(); if (index >= 0) { if (null != variableValue) { variableValue.removeElement(index); tableViewer.getTable().remove(index); setDirty(); } } }