/*
 *  Copyright 2015 LG CNS.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License"); 
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License. 
 *
 */
package scouter.client;

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

import scouter.client.stack.views.StackAnalyzerView;
import scouter.client.stack.views.XMLEditorView;

public class PerspectiveStackAnalyzer implements IPerspectiveFactory  {
	
	public static final String ID = PerspectiveStackAnalyzer.class.getName();
	
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		
		IFolderLayout mainLayout = layout.createFolder("perspective.stack.main", IPageLayout.LEFT, 1.0f, editorArea);
		mainLayout.addView(StackAnalyzerView.ID);
		layout.getViewLayout(StackAnalyzerView.ID).setCloseable(false); 
		layout.addPerspectiveShortcut(getId());
	}
	
	public static String getId() {
		return ID;
	}
}

@@ -766,86 +766,237 @@
 ent.
-stack.views.StackAnalyzerView;%0Aimport scouter.client.stack.views.XMLEditorView
+group.view.GroupNavigationView;%0Aimport scouter.client.stack.views.StackAnalyzerView;%0Aimport scouter.client.views.ObjectDailyListView;%0Aimport scouter.client.views.ObjectNavigationView;%0Aimport scouter.client.views.WorkspaceExplorer
 ;%0A%0Ap
@@ -1287,16 +1287,502 @@
 se);%0A%09%09%0A
+%09%09IFolderLayout agentLayout = layout.createFolder(IConstants.LAYOUT_WASSERVICE_OBJECT_NAVIGATION, IPageLayout.LEFT, 0.20f, editorArea);%0A%09%09agentLayout.addPlaceholder(ObjectNavigationView.ID + %22:*%22);%0A%09%09agentLayout.addPlaceholder(ObjectDailyListView.ID + %22:*%22);%0A%09%09agentLayout.addPlaceholder(WorkspaceExplorer.ID);%0A%09%09agentLayout.addPlaceholder(GroupNavigationView.ID);%0A%09%09agentLayout.addView(ObjectNavigationView.ID);%0A%09%09layout.getViewLayout(ObjectNavigationView.ID).setCloseable(false); %0A%09%09%0A
 %09%09IFolde
@@ -1921,32 +1921,32 @@
 alyzerView.ID);%0A
-
 %09%09layout.getView
@@ -1995,16 +1995,20 @@
 false); 
+%0A%0A%09%09
 %0A%09%09layou

add object view to stack anlyser perspective