// Path: traction/src/main/java/traction/mvc/controllers/FragmentController.java
// public class FragmentController
// extends Fragment
// {
// 	/**
// 	 * Helper to implement Controller logic.
// 	 */
// 	protected final ControllerHelper View = new ControllerHelper(this);
// 
// 	@Override
// 	public void onCreate(Bundle savedInstanceState)
// 	{	
// 		super.onCreate(savedInstanceState);
// 		setRetainInstance(true);
// 	}
// 	
// 	@Override
// 	public View onCreateView(LayoutInflater notUsed, ViewGroup container, Bundle savedInstanceState) 
// 	{
// 		View v = View.inflateView(View.getContentView(), container, container != null);
//         IViewBinding vb = ViewFactory.getViewBinding(v);
//         if (vb != null) {
//             View.ensureMenuInflator(vb.getBindingInventory());
//         }
//         return v;
// 	}
// 	
// 	@Override
// 	public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
// 	{
//         View.onCreateOptionsMenu(menu);
// 	}
// 
// 	@Override
// 	public void onDestroyView() 
// 	{		
// 		super.onDestroyView();	
// 		ViewFactory.DetachContext(getView());
// 	}
// 
//     @Override
//     public void onAttach(Activity activity)
//     {
//         super.onAttach(activity);
//         View.registerFragmentToActivity(this, activity);
//     }
// 
//     @Override
//     public void onDetach()
//     {
//         super.onDetach();
//         View.unregisterFragmentFromActivity(this, getActivity());
//     }
// 
//     @Override
//     public void onStart()
//     {
//         super.onStart();
//         View.connectFragmentViewToParentView(this);
//     }
// }
// 
// Path: Demo/src/main/java/ni3po42/android/tractiondemo/models/TestScope.java
// public interface TestScope
// {
//     String getATextField();
//     void setATextField(String str);
// }


import android.os.Bundle;
import traction.mvc.controllers.FragmentController;
import ni3po42.android.tractiondemo.R;
import ni3po42.android.tractiondemo.models.TestScope;
package ni3po42.android.tractiondemo.controllers;




public class ScopeExampleController
    extends FragmentController
{

    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        View.setContentView(R.layout.scopedview);
    }

    @Override
    public void onStart()
    {
        super.onStart();

// Path: traction/src/main/java/traction/mvc/controllers/FragmentController.java
// public class FragmentController
// extends Fragment
// {
// 	/**
// 	 * Helper to implement Controller logic.
// 	 */
// 	protected final ControllerHelper View = new ControllerHelper(this);
// 
// 	@Override
// 	public void onCreate(Bundle savedInstanceState)
// 	{	
// 		super.onCreate(savedInstanceState);
// 		setRetainInstance(true);
// 	}
// 	
// 	@Override
// 	public View onCreateView(LayoutInflater notUsed, ViewGroup container, Bundle savedInstanceState) 
// 	{
// 		View v = View.inflateView(View.getContentView(), container, container != null);
//         IViewBinding vb = ViewFactory.getViewBinding(v);
//         if (vb != null) {
//             View.ensureMenuInflator(vb.getBindingInventory());
//         }
//         return v;
// 	}
// 	
// 	@Override
// 	public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
// 	{
//         View.onCreateOptionsMenu(menu);
// 	}
// 
// 	@Override
// 	public void onDestroyView() 
// 	{		
// 		super.onDestroyView();	
// 		ViewFactory.DetachContext(getView());
// 	}
// 
//     @Override
//     public void onAttach(Activity activity)
//     {
//         super.onAttach(activity);
//         View.registerFragmentToActivity(this, activity);
//     }
// 
//     @Override
//     public void onDetach()
//     {
//         super.onDetach();
//         View.unregisterFragmentFromActivity(this, getActivity());
//     }
// 
//     @Override
//     public void onStart()
//     {
//         super.onStart();
//         View.connectFragmentViewToParentView(this);
//     }
// }
// 
// Path: Demo/src/main/java/ni3po42/android/tractiondemo/models/TestScope.java
// public interface TestScope
// {
//     String getATextField();
//     void setATextField(String str);
// }


// Path: Demo/src/main/java/ni3po42/android/tractiondemo/controllers/ScopeExampleController.java
import android.os.Bundle;
import traction.mvc.controllers.FragmentController;
import ni3po42.android.tractiondemo.R;
import ni3po42.android.tractiondemo.models.TestScope;

package ni3po42.android.tractiondemo.controllers;




public class ScopeExampleController
    extends FragmentController
{

    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        View.setContentView(R.layout.scopedview);
    }

    @Override
    public void onStart()
    {
        super.onStart();

        TestScope scope = View.getScope();