public void checkForUpdates() { try { String response = getVersionData(); String[] split = response.split("#"); // $NON-NLS-1$ boolean newVersionAvailable = remoteIsNewer(split[1]); this.remoteVersion = split[0]; if (newVersionAvailable) { this.success = true; this.data = new MessageData("Help.UpdateCheck.Outdated", MessageType.INFORMATION); // $NON-NLS-1$ } else { this.success = true; this.data = new MessageData("Help.UpdateCheck.UpToDate", MessageType.INFORMATION); // $NON-NLS-1$ } } catch (IOException e) { this.success = false; this.data = new MessageData("Help.UpdateCheck.IOException", MessageType.ERROR); // $NON-NLS-1$ } catch (Exception e) { this.success = false; this.data = new MessageData( "Help.UpdateCheck.GeneralException", MessageType.ERROR); // $NON-NLS-1$ } control.announce().changeOccurred(); }
private void fireTrackDeleted(DbMp3Track track) { listeners.announce().trackRemoved(track); }
private void fireDeletionPerformed() { control.announce().changeOccurred(); }
public void fireExperiencedChanged(boolean isExperienced) { changeControl.announce().experiencedChanged(isExperienced); }
public void fireCasteChanged() { changeControl.announce().casteChanged(); }
public void fireCharacterChanged() { changeControl.announce().characterChanged(); }
private void fireLibraryChanged(String name) { ILibrary[] allLibraries = getAllLibraries(); ILibrary newLibrary = getLibraryByName(allLibraries, name); listenerControl.announce().librariesChanged(allLibraries, newLibrary); }
private void fireLearnConditionsChanged() { control.announce().changeOccurred(); }
@Override public void selectForChange(ExperiencePointEntry entry) { this.currentlySelectedEntry = entry; selectionAnnouncer.announce().selectionChanged(entry); }
private void fireChangeEvent() { control.announce().entriesAddedRemovedOrChanged(); }
private void fireModelChanged() { modelChangeControl.announce().changeOccurred(); }
@SuppressWarnings("unchecked") private ICollectionListener<IEquipmentItem> announce() { return equipmentItemControl.announce(); }