I have the following code snippet:
Matcher matchDays = m_daysRegex.matcher(e.getKey()); if (matchDays.matches()){ ... }
Where e.getKey() is Mon-Fri.
Now I have already completed the first line and inserted the if statement. Using the viewport, I evaluate the expression matchDays.matches() , and then add some hours for the various matchDays methods. Then, using the same viewport, I evaluate the matchDays = m_daysRegex.matcher("Mon,Fri") and matchDays.matches() to see what happens. Unfortunately, the viewport does not update, and it does not have an explicit button for this: 
In the image above, notice how matchDays.group(0) displays "Mon, Fri," but matchDays.group(1) displays "Mon-Fri." This is because I manually updated the first, but everyone else still shows the old values. I have to manually update them all, which is annoying.
Am I doing something wrong? Is there a proper way to do this, so that the clock expressions are updated automatically? Or is there a way to refresh the entire viewport?
Thanks.
mark
source share