Use balloon to show announcements and update notifications

This commit is contained in:
bancika
2017-04-25 12:09:10 +02:00
parent 283232630c
commit dda588b28f
12 changed files with 35 additions and 12 deletions
Binary file not shown.
@@ -50,8 +50,7 @@ public class AnnouncementProvider {
}
}
if (!hasUnread)
return "";
sb.append("<br><font size='small'>Click OK to dismiss and mark these announcements as read.</font>");
return "";
sb.append("</html>");
return sb.toString();
}
@@ -88,7 +88,7 @@ public interface ISelectionProcessor {
*
* @param xOffset
* @param yOffset
* @param affectStuckComponents
* @param includeStuckComponents
*/
void nudgeSelection(Size xOffset, Size yOffset, boolean affectStuckComponents);
void nudgeSelection(Size xOffset, Size yOffset, boolean includeStuckComponents);
}
@@ -856,11 +856,11 @@ public class Presenter implements IPlugInPort {
}
@Override
public void nudgeSelection(Size xOffset, Size yOffset, boolean affectStuckComponents) {
public void nudgeSelection(Size xOffset, Size yOffset, boolean includeStuckComponents) {
if (selectedComponents == null || selectedComponents.isEmpty())
return;
LOG.debug(String.format("nudgeSelection(%s, %s)", xOffset, yOffset));
LOG.debug(String.format("nudgeSelection(%s, %s, %s)", xOffset, yOffset, includeStuckComponents));
Map<IDIYComponent<?>, Set<Integer>> controlPointMap = new HashMap<IDIYComponent<?>, Set<Integer>>();
// If there aren't any control points, try to add all the selected
// components with all their control points. That will allow the
@@ -878,7 +878,7 @@ public class Presenter implements IPlugInPort {
return;
}
if (affectStuckComponents) {
if (includeStuckComponents) {
includeStuckComponents(controlPointMap);
}