@Inject public MapDisplayPart( @Preference(nodePath = Activator.ID, value = Preferences.CALL) final String call, @Preference(nodePath = Activator.ID, value = Preferences.GRID) final String grid) { my_call = call; my_location = Maidenhead.fromGrid(grid); }
/** * Mark a call on map * * <p>Called via {@link IEventBroker} mechanism and injection * * @param callinfo {@link CallInfo} to highlight on map */ @Inject @Optional public void markCall(@UIEventTopic(Activator.TOPIC) final CallInfo callinfo) { final List<Object> markers = new ArrayList<>(); if (my_location != null && my_call != null) { markers.add(my_location); markers.add(my_call); } final String grid = callinfo.getGrid(); if (!grid.isEmpty()) { final Maidenhead location = Maidenhead.fromGrid(grid); markers.add(location); markers.add(callinfo.getCall()); } mark(markers); }