Exemplo 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;
 }
Exemplo 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);
 }
Exemplo n.º 3
0
 protected String getSelectedProjectName() {
   return projectDropDown.getItem(projectDropDown.getSelectionIndex());
 }