Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 /** @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);
 }
Esempio n. 3
0
 protected String getSelectedProjectName() {
   return projectDropDown.getItem(projectDropDown.getSelectionIndex());
 }