package com.parsa_plm.jointelementinspector.fragments;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class PagerAdapter extends FragmentPagerAdapter {
    private int mNumOfTabs;

    public PagerAdapter(FragmentManager fm, int NumOfTabs) {
        super(fm);
        this.mNumOfTabs = NumOfTabs;
    }

    @Override
    public Fragment getItem(int position) {

        switch (position) {
            case 0:
                return new OverviewTabFragment();
            case 1:
                return new VisualViewerFragment();
            case 2:
                return new DocumentTabFragment();
            case 3:
                return new PhotoTabFragment();
            default:
                return null;
        }
    }

    @Override
    public int getCount() {
        return mNumOfTabs;
    }
}

@@ -394,24 +394,65 @@
 Tabs;%0A    %7D%0A
+    // 20170113: add visual viewer for 3d
 %0A    @Overri

add visual viewer fragment for 3d viewer