try { if (isEditorAvailable()) { if (comboBoxIndex == 0) { return setElementPosition(SelectionConverter.getElementAtOffset(fEditor)); } else if (comboBoxIndex == 1) return asFirstMethod(allFields); else return atMethodPosition(allFields, comboBoxIndex-1); } else { if (comboBoxIndex == 0) return asFirstMethod(allFields); else { return atMethodPosition(allFields, comboBoxIndex); } } } catch (JavaModelException e) { } return null;
if (comboBoxIndex == 0) return asFirstMethod(allFields); else return atMethodPosition(allFields, comboBoxIndex);
	private IJavaElement calculateElementPosition(int comboBoxIndex, IField[][] allFields) {				try {			if (isEditorAvailable()) {				if (comboBoxIndex == 0) {			// at cursor position					return setElementPosition(SelectionConverter.getElementAtOffset(fEditor));						}				else if (comboBoxIndex == 1)	 	// as first method					return asFirstMethod(allFields);				else								// method position					return atMethodPosition(allFields, comboBoxIndex-1);			}			else {									// run from a view part				if (comboBoxIndex == 0)				// as first method					return asFirstMethod(allFields);				else {								// method position					return atMethodPosition(allFields, comboBoxIndex);							}			}		}		catch (JavaModelException e) {		}		return null;	}