package org.ccci.gto.android.common.support.v4.fragment;

import android.support.v4.app.Fragment;

import org.ccci.gto.android.common.support.v4.util.FragmentUtils;

public abstract class AbstractFragment extends Fragment {
    protected final <T> T findView(final Class<T> clazz, final int id) {
        return FragmentUtils.findView(this, clazz, id);
    }

    protected final <T> T getListener(final Class<T> clazz) {
        return FragmentUtils.getListener(this, clazz);
    }
}

@@ -353,16 +353,156 @@
 %0A    %7D%0A%0A
+    protected final %3CT%3E T getAncestorFragment(final Class%3CT%3E clazz) %7B%0A        return FragmentUtils.getAncestorFragment(this, clazz);%0A    %7D%0A%0A
     prot

add getAncestorFragment method to the AbstractFragment