public HaveABreakGadgetPresenter() { // for serialisation
}
@Override
public void internalRunPlugin() {
final Display view = new HaveABreakGadgetView();
final IPlatform platform = PlatformProvider.platform();
platform.scheduleRepeating(new Command() {
@Override
public void execute() {
view.getLabel().setText(getTimeString());
}
}, UPDATE_INTERVAL);
platform.attachToHeader(view.asWidget());
}