1 11 package org.eclipse.update.internal.ui; 12 13 import org.eclipse.jface.action.*; 14 import org.eclipse.update.internal.ui.wizards.*; 15 import org.eclipse.update.internal.ui.UpdateUI; 16 17 20 public class AddBookmarksAction extends Action { 21 22 public AddBookmarksAction() { 23 setText(UpdateUI.getString("AddBookmarksAction.add")); } 25 26 public void run() { 27 NewWebSiteDialog dialog = new NewWebSiteDialog(UpdateUI.getActiveWorkbenchShell()); 28 dialog.create(); 29 dialog.getShell().setText(UpdateUI.getString("AddBookmarksAction.new")); if (dialog.open() == NewWebSiteDialog.OK) { 31 UpdateUI.getDefault().getUpdateModel().saveBookmarks(); 32 } 33 } 34 } 35 | Popular Tags |