Something went wrong. Try again.
Completely reimplimented in zig (eventually)
Something went wrong. Try again.
Java
at main
1234567891011121314151617181920212223package com.microchip.mplab.ipelib.device;
import com.microchip.mplab.ipelib.tools.IPENotifier;import com.microchip.mplab.mdbcore.memory.MemoryEvent;import com.microchip.mplab.mdbcore.memory.MemoryEvent.EVENTS;import com.microchip.mplab.util.observers.Observer;
public class MemoryObserver implements Observer { public void Update(Object what) { if (what instanceof MemoryEvent) { MemoryEvent e = (MemoryEvent)what; EVENTS evt = e.EventType(); if (evt == EVENTS.MEMORY_CHANGED) { IPENotifier.getIPENotifierController().setMemoryChangedNotification(); }
if (evt == EVENTS.MODEL_CHANGED) { IPENotifier.getIPENotifierController().setMemoryChangedNotification(); } } }}