mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Use balloon to show announcements and update notifications
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user