private void makeActions() { fAddAction = new Action(PDEUIMessages.RequiresSection_add) { @Override public void run() { handleAdd(); } }; fAddAction.setEnabled(isEditable()); fGoToAction = new Action(PDEUIMessages.ImportPackageSection_goToPackage) { @Override public void run() { handleGoToPackage(fPackageViewer.getSelection()); } }; fRemoveAction = new Action(PDEUIMessages.RequiresSection_delete) { @Override public void run() { handleRemove(); } }; fRemoveAction.setEnabled(isEditable()); fPropertiesAction = new Action(PDEUIMessages.ExportPackageSection_propertyAction) { @Override public void run() { handleOpenProperties(); } }; }
private void calculateUses() { final IProject proj = getPage().getPDEEditor().getCommonProject(); Action action = new CalculateUsesAction(proj, (IBundlePluginModelBase) getPage().getModel()); action.run(); }