package org.mwc.asset.netasset2;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.mwc.asset.netasset2.connect.ConnectRCPView;
import org.mwc.asset.netasset2.part.PartRCPView;
import org.mwc.asset.netasset2.plot.PlotRCPView;
import org.mwc.asset.netasset2.sensor.SensorRCPView;
import org.mwc.asset.netasset2.time.TimeRCPView;

public class NetAssetPerspective implements IPerspectiveFactory
{

	public void createInitialLayout(IPageLayout layout)
	{
		layout.setEditorAreaVisible(false);
		layout.setFixed(true);

		// Get the editor area.
		String editorArea = layout.getEditorArea();

		// Top left: Resource Navigator view and Bookmarks view placeholder
		IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT,
				0.4f, editorArea);
		topLeft.addView(ConnectRCPView.ID);
		topLeft.addView(SensorRCPView.ID);


		// Top left: Resource Navigator view and Bookmarks view placeholder
		IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.6f,
				editorArea);
		right.addView(PlotRCPView.ID);

		// split the time one - so we can insert the track tote
		// Top left: Resource Navigator view and Bookmarks view placeholder
		IFolderLayout midLeft = layout.createFolder("midLeft", IPageLayout.BOTTOM,
				0.4f, "topLeft");
		midLeft.addView(TimeRCPView.ID);

		// Bottom left: Outline view and Property Sheet view
		IFolderLayout bottomLeft = layout.createFolder("bottomLeft",
				IPageLayout.BOTTOM, 0.3f, "midLeft");
		bottomLeft.addView(PartRCPView.ID);

	}

}

@@ -340,32 +340,87 @@
 .SensorRCPView;%0A
+import org.mwc.asset.netasset2.sensorV.SensorRCPView2;%0A
 import org.mwc.a
@@ -956,16 +956,54 @@
 ew.ID);%0A
+%09%09topLeft.addView(SensorRCPView2.ID);%0A
 %0A%0A%09%09// T

declare new sensor viewer