1 11 package org.eclipse.platform.internal; 12 13 import java.util.Properties ; 14 15 import org.eclipse.swt.widgets.Shell; 16 import org.eclipse.ui.PlatformUI; 17 import org.eclipse.ui.intro.IIntroSite; 18 import org.eclipse.ui.intro.config.IIntroAction; 19 import org.eclipse.update.ui.UpdateManagerUI; 20 21 public class LaunchUpdateIntroAction implements IIntroAction { 22 23 public LaunchUpdateIntroAction() { 24 } 25 26 public void run(IIntroSite site, Properties params) { 27 28 Runnable r = new Runnable () { 29 public void run() { 30 Shell currentShell = PlatformUI.getWorkbench() 31 .getActiveWorkbenchWindow().getShell(); 32 UpdateManagerUI.openInstaller(currentShell); 33 } 34 }; 35 36 Shell currentShell = PlatformUI.getWorkbench() 37 .getActiveWorkbenchWindow().getShell(); 38 currentShell.getDisplay().asyncExec(r); 39 } 40 } 41 | Popular Tags |