Actions in the Run menu such as Toggle Break Point, Toggle Line Break Point etc.. will be enabled when a .java file is opened and will be disabled for any other type of files. similarly the step over, step into etc will be enabled when we are debugging a java program and will be disabled otherwise.
So i wanted to know how enabling and disabling of these actions are being controlled.
thanks.