import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.ui.statushandlers.StatusManager;
-import org.eclipse.ui.themes.ITheme;
import net.haspamelodica.swt.helper.zoomablecanvas.helper.ZoomableCanvasUserInput;
import net.mograsim.logic.core.timeline.Timeline;
userInput.buttonZoom = 2;
userInput.enableUserInput();
- ITheme currentTheme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme();
- update(currentTheme);
- currentTheme.getColorRegistry().addListener(e -> update(currentTheme));
-
// initialize executer
exec = new LogicExecuter(timeline);
exec.startLiveExecution();
}
- private void update(ITheme currentTheme)
- {
- ui.setBackground(currentTheme.getColorRegistry().get("net.mograsim.plugin.sim_backgound"));
- ui.setForeground(currentTheme.getColorRegistry().get("net.mograsim.plugin.sim_text_color"));
- }
-
@Override
public void setFocus()
{