} if (selectedElements.size() == 1 || identicalTypes(selectedElements, project)) {
} else if (selectedElements.size() == 1 || identicalTypes(selectedElements, project)) {
    public void refresh(DialogExplorerActionContext context) throws JavaModelException {        super.setContext(context);        if (context == null) // can happen when disposing            return;        List selectedElements= context.getSelectedElements();        IJavaProject project= context.getJavaProject();                int type= MULTI;        if (selectedElements.size() == 0) {            type= NULL_SELECTION;                        if (type == fLastType)                return;        }        if (selectedElements.size() == 1 || identicalTypes(selectedElements, project)) {            type= getType(selectedElements.get(0), project);        }                internalSetContext(selectedElements, project, type);    }