package interactivefeaturelocator.perspective;

import interactivefeaturelocator.views.InteractiveDerivationView;
import interactivefeaturelocator.views.TraceView;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class IFLPerspectiveFactory implements IPerspectiveFactory {
	@Override
	public void createInitialLayout(IPageLayout layout) {
		// TODO Auto-generated method stub
		String eArea = layout.getEditorArea();
		System.out.println(eArea);
		
		IFolderLayout left = layout.createFolder("left_folder", IPageLayout.LEFT, (float)0.2f, eArea);
		left.addView(TraceView.ID);
		
		IFolderLayout top = layout.createFolder("top_folder", IPageLayout.TOP, (float)0.7f, eArea);
		top.addView(InteractiveDerivationView.ID);
	}

}
