1 11 package org.eclipse.update.internal.ui.wizards; 12 13 import java.net.*; 14 15 import org.eclipse.swt.widgets.*; 16 import org.eclipse.update.internal.ui.*; 17 import org.eclipse.update.internal.ui.model.*; 18 19 20 public class NewWebSiteDialog extends NewUpdateSiteDialog { 21 22 public NewWebSiteDialog(Shell parentShell) { 23 super(parentShell); 24 } 25 26 protected void update() { 27 try { 28 UpdateModel model = UpdateUI.getDefault().getUpdateModel(); 29 SiteBookmark bookmark = new SiteBookmark(name.getText(), new URL(url.getText()), true); 30 model.addBookmark(bookmark); 31 } catch (MalformedURLException e) { 32 } 33 } 34 35 } 36 | Popular Tags |