if (list.size() == 0
|| list.get(0) instanceof IProject
|| (list.get(0) instanceof IAdaptable && ((IAdaptable) list
.get(0)).getAdapter(IResource.class) instanceof IProject)) {
action = new PHPMoveProjectAction(fShell);
action.selectionChanged(selection);
} else if (selectedResources != null) {
action = new MoveResourceAction(fShell);
if (list.size() == 1) {
Object object = list.get(0);
if (object instanceof ElementImplForPhp