I have a method that accepts only a String.
public void setVerticalAlignment(String align) {
...
gd.verticalAlignment = align; // accepts only int.
...
}
But gd.verticalAlignment only accepts an int.
Usually this is set by something like gd.verticalAlignment = SWT.TOP where SWT.TOP is a static int.
is it possible to call this method with something like setVerticalAlignment("SWT.TOP")?
setVerticalAlignment(String align)tosetVerticalAlignment(int align)and call callobj.setVerticalAlignment(SWT.TOP).