Browse files

refresh cabal packages view when installing

  • Loading branch information...
1 parent 595ae6a commit 7190b2593962e7c03546eeec116e37e6bc581cd4 @JPMoresmau committed Feb 7, 2013
View
10 net.sf.eclipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/actions/CabalInstallAction.java
@@ -12,6 +12,7 @@
import net.sf.eclipsefp.haskell.debug.core.internal.launch.AbstractHaskellLaunchDelegate;
import net.sf.eclipsefp.haskell.ui.HaskellUIPlugin;
import net.sf.eclipsefp.haskell.ui.internal.util.UITexts;
+import net.sf.eclipsefp.haskell.ui.views.CabalPackagesView;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
@@ -86,7 +87,14 @@ public void run( final IAction arg0 ) {
}
protected Runnable getAfter(final IProject p){
- return null;
+ return new Runnable() {
+
+ @Override
+ public void run() {
+ /** refresh the cabal packages view **/
+ CabalPackagesView.refresh();
+ }
+ };
}
protected String getJobName(){

0 comments on commit 7190b25

Please sign in to comment.