Commits

Colin Gordon committed 161aba4

small class heirarchy tweak fixes 3 errors

Comments (0)

Files changed (2)

src/dk/contix/eclipse/hudson/views/.HudsonView.java.swp

Binary file modified.

src/dk/contix/eclipse/hudson/views/HudsonView.java

 
 	private Action scheduleAction;
 
-	private Action refreshAction;
+	private RefreshAction refreshAction;
 
 	private Action openBrowserAction;
 
 			}
 		});
 
-		refreshAction = new Action() {
+		refreshAction = new RefreshAction() {
 			public void run() {
 				org.eclipse.core.runtime.jobs.Job refresh = new org.eclipse.core.runtime.jobs.Job("Refreshing Hudson status") {
 					protected IStatus run(IProgressMonitor monitor) {
 		refreshAction.setImageDescriptor(Activator.getImageDescriptor("icons/refresh.png"));
 	}
 
+        private static abstract class RefreshAction extends Action {
+            @SafeEffect public abstract void run(); // Colin Gordon - this is to work around the ad-hoc-safe subclassing of Action
+        }
+
 	private void showSecurityTokenDialog(Job j) {
 		Preferences prefs = Activator.getDefault().getPluginPreferences();
 		String sc = prefs.getString(Activator.PREF_SECURITY_TOKEN + "_" + j.getName());