protected IProject getSelectedProject() { final int idx = projectDropDown.getSelectionIndex(); if (idx == -1) return null; String projN = getProjectNames().get(idx); IProject proj = ResourcesPlugin.getWorkspace().getRoot().getProject(projN); return proj; }
/** @return the product name, or null if the base product is selected. */ protected String getSelectedProductName() { final int index = productDropDown.getSelectionIndex(); if (index <= 0) /* base is at index 0 */ return null; return productDropDown.getItem(index); }
protected String getSelectedProjectName() { return projectDropDown.getItem(projectDropDown.getSelectionIndex()); }