org.eclipse.ui.IPageLayout#setEditorAreaVisible ( )源码实例Demo

下面列出了org.eclipse.ui.IPageLayout#setEditorAreaVisible ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: elexis-3-core   文件: AbrechnungsPerspektive.java
public void createInitialLayout(IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	IFolderLayout fld = layout.createFolder("AbrechnungsFolder", IPageLayout.LEFT, 0.6f, IPageLayout.ID_EDITOR_AREA);
	IFolderLayout frd = layout.createFolder("Detailfolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA);
	fld.addView(PatHeuteView.ID);
	fld.addView(KonsZumVerrechnenView.ID);
	fld.addView(RechnungsListeView.ID);
	frd.addView(RnDetailView.ID);
	frd.addView(KonsDetailView.ID);
	frd.addPlaceholder(FallDetailView.ID);
	frd.addPlaceholder(UiResourceConstants.PatientDetailView2_ID);
	layout.addShowViewShortcut(PatHeuteView.ID);
	layout.addShowViewShortcut(KonsZumVerrechnenView.ID);
	layout.addShowViewShortcut(RnDetailView.ID);
	layout.addShowViewShortcut(KonsDetailView.ID);
	layout.addShowViewShortcut(RechnungsListeView.ID);
}
 
源代码2 项目: tracecompass   文件: GdbPerspectiveFactory.java
@Override
public void createInitialLayout(IPageLayout layout) {

    layout.setEditorAreaVisible(true);

    // Create the project folder
    IFolderLayout projectFolder = layout.createFolder(ProjectFolder, IPageLayout.LEFT, 0.15f, EditorArea);
    projectFolder.addView(PROJECT_VIEW_ID);

    // Create the console folder
    IFolderLayout consoleFolder = layout.createFolder(ConsoleFolder, IPageLayout.BOTTOM, 0.50f, ProjectFolder);
    consoleFolder.addView(CONSOLE_VIEW_ID);

    // Create the debug folder
    IFolderLayout debugFolder = layout.createFolder(DebugFolder, IPageLayout.TOP, 0.50f, EditorArea);
    debugFolder.addView(DEBUG_VIEW_ID);

    // Create the middle right folder
    IFolderLayout traceControlFolder = layout.createFolder(TraceControlFolder, IPageLayout.RIGHT, 0.50f, DebugFolder);
    traceControlFolder.addView(TRACE_CONTROL_VIEW_ID);

    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
源代码3 项目: dawnsci   文件: ExamplePerspective.java
/**
 * Creates the initial layout for a page.
 */
public void createInitialLayout(IPageLayout layout) {
	
	layout.setEditorAreaVisible(false);
	addFastViews(layout);
	addViewShortcuts(layout);
	addPerspectiveShortcuts(layout);
	{
		IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.LEFT, 0.5f, IPageLayout.ID_EDITOR_AREA);
		folderLayout.addView("org.dawnsci.plotting.examples.xyExample");
		folderLayout.addView("org.dawnsci.plotting.examples.xyUpdateExample");
		folderLayout.addView("org.dawnsci.plotting.examples.axisExample");
		folderLayout.addView("org.dawnsci.plotting.examples.barExample");
		folderLayout.addView("org.dawnsci.plotting.examples.imageExample");
		folderLayout.addView("org.dawnsci.plotting.examples.sectorExample");
		folderLayout.addView("org.dawnsci.plotting.examples.surfaceExample");
		folderLayout.addView("org.dawnsci.plotting.examples.vectorExample");
		folderLayout.addView("org.dawnsci.plotting.examples.compositeExample");
		folderLayout.addView("org.dawnsci.plotting.examples.volumeExample");
		folderLayout.addView("org.dawnsci.plotting.examples.plane3DExample");
	}
}
 
源代码4 项目: neoscada   文件: Perspective.java
@Override
public void createInitialLayout ( final IPageLayout layout )
{
    layout.setEditorAreaVisible ( false );
    layout.addView ( "org.eclipse.scada.core.ui.connection.ConnectionView", IPageLayout.LEFT, 0.25f, IPageLayout.ID_EDITOR_AREA );
    final IFolderLayout folder = layout.createFolder ( "org.eclipse.scada.hmi.app.adminclient", IPageLayout.RIGHT, 0.4f, IPageLayout.ID_EDITOR_AREA ); //$NON-NLS-1$
    folder.addPlaceholder ( "*" );
}
 
源代码5 项目: elexis-3-core   文件: AdressPerspektive.java
public void createInitialLayout(IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	
	IFolderLayout oben =
		layout.createFolder("oben", IPageLayout.TOP, 0.5f, IPageLayout.ID_EDITOR_AREA);
	IFolderLayout details =
		layout.createFolder("details", IPageLayout.TOP, 1.0f, IPageLayout.ID_EDITOR_AREA);
	oben.addView(KontakteView.ID);
	details.addView(KontaktDetailView.ID);
}
 
源代码6 项目: APICloud-Studio   文件: SVNPerspective.java
/**
 * Defines the initial layout for a page.  
 */
public void defineLayout(IPageLayout layout) {
	String editorArea = layout.getEditorArea();
	IFolderLayout top =
		layout.createFolder("top", IPageLayout.LEFT, 0.40f, editorArea);	//$NON-NLS-1$
	top.addView(RepositoriesView.VIEW_ID);
	layout.addView(ISVNUIConstants.HISTORY_VIEW_ID, IPageLayout.BOTTOM, 0.70f, editorArea);
	layout.setEditorAreaVisible(true);
}
 
/**
 * Creates the initial layout for a page.
 */
public void createInitialLayout(IPageLayout layout){
	layout.setEditorAreaVisible(false);
	addFastViews(layout);
	addViewShortcuts(layout);
	addPerspectiveShortcuts(layout);
	
	layout.addView(BestellView.ID, IPageLayout.RIGHT, 0.5f, IPageLayout.ID_EDITOR_AREA);
	layout.addView(ArtikelSelektor.ID, IPageLayout.TOP, 0.5f, IPageLayout.ID_EDITOR_AREA);
	layout.addView(StockView.ID, IPageLayout.BOTTOM, 0.5f, IPageLayout.ID_EDITOR_AREA);
}
 
@Override
public void createInitialLayout(@Nullable IPageLayout layout) {

    if (layout == null) {
        return;
    }

    // Editor area
    layout.setEditorAreaVisible(true);

    // Create the top left folder
    IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topLeftFolder.addView(PROJECT_VIEW_ID);

    // Create the middle right folder
    IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, 0.40f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    middleRightFolder.addView(PROPERTIES_VIEW_ID);
    middleRightFolder.addView(HISTOGRAM_VIEW_ID);
    middleRightFolder.addView(STATISTICS_VIEW_ID);
    middleRightFolder.addView(COLOR_VIEW_ID);

    // Create the bottom right folder
    IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$
    bottomRightFolder.addView(FILTER_VIEW_ID);
    bottomRightFolder.addView(BOOKMARKS_VIEW_ID);
    bottomRightFolder.addView(STREAM_LIST_VIEW_ID);

    // Populate menus, etc
    layout.addPerspectiveShortcut(ID);
    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
源代码9 项目: elexis-3-core   文件: LeistungPerspektive.java
public void createInitialLayout(IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	layout.addPlaceholder(LeistungenView.ID, IPageLayout.LEFT, 0.3f,
		IPageLayout.ID_EDITOR_AREA);
	layout.addView(CodeDetailView.ID, IPageLayout.LEFT, 0.8f, IPageLayout.ID_EDITOR_AREA);
	layout.addShowViewShortcut(CodeDetailView.ID);
	
}
 
源代码10 项目: tracecompass   文件: TmfAlignTimeAxisTest.java
@Override
public void createInitialLayout(IPageLayout layout) {
    if (layout == null) {
        return;
    }

    // Editor area
    layout.setEditorAreaVisible(true);

    // Editor area
    layout.setEditorAreaVisible(true);

    // Create the top left folder
    IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topLeftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);

    // Create the top right folder
    IFolderLayout topRightFolder = layout.createFolder("topRightFolder", IPageLayout.BOTTOM, EDITOR_AREA_RATIO, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topRightFolder.addView(HistogramView.ID);

    // Create the middle right folder
    IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, 0.50f, "topRightFolder"); //$NON-NLS-1$
    middleRightFolder.addView(TimeGraphViewStub.ID);

    // Create the bottom right folder
    IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$
    bottomRightFolder.addView(TimeChartView.ID);

    // Populate menus, etc
    layout.addPerspectiveShortcut(ID);
    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
源代码11 项目: tracecompass   文件: TmfAlignTimeAxisTest.java
@Override
public void createInitialLayout(IPageLayout layout) {
    if (layout == null) {
        return;
    }

    // Editor area
    layout.setEditorAreaVisible(true);

    // Editor area
    layout.setEditorAreaVisible(true);

    // Create the top left folder
    IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topLeftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);

    // Create the middle right folder
    IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, EDITOR_AREA_RATIO, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    middleRightFolder.addView(HistogramView.ID);
    middleRightFolder.addView(TimeChartView.ID);

    // Create the bottom right folder
    IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$
    bottomRightFolder.addView(TimeGraphViewStub.ID);

    // Populate menus, etc
    layout.addPerspectiveShortcut(ID);
    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
源代码12 项目: tracecompass   文件: TmfAlignTimeAxisTest.java
@Override
public void createInitialLayout(IPageLayout layout) {
    if (layout == null) {
        return;
    }

    // Editor area
    layout.setEditorAreaVisible(true);

    // Editor area
    layout.setEditorAreaVisible(true);

    // Create the top left folder
    IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topLeftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);

    IFolderLayout bottomLeftFolder = layout.createFolder("bottomLeftFolder", IPageLayout.BOTTOM, 0.5f, "topLeftFolder"); //$NON-NLS-1$
    bottomLeftFolder.addView(TimeGraphViewStub.ID);

    // Create the middle right folder
    IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, EDITOR_AREA_RATIO, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    middleRightFolder.addView(HistogramView.ID);

    // Create the bottom right folder
    IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$
    bottomRightFolder.addView(TimeChartView.ID);

    // Populate menus, etc
    layout.addPerspectiveShortcut(ID);
    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
源代码13 项目: tracecompass   文件: TracingPerspectiveFactory.java
@Override
public void createInitialLayout(IPageLayout layout) {

    // Editor area
    layout.setEditorAreaVisible(true);

    // Create the top left folder
    IFolderLayout topLeftFolder = layout.createFolder(
            "topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topLeftFolder.addView(PROJECT_VIEW_ID);

    // Create the middle right folder
    IFolderLayout middleRightFolder = layout.createFolder(
            "middleRightFolder", IPageLayout.BOTTOM, 0.50f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    middleRightFolder.addView(STATISTICS_VIEW_ID);

    // Create the bottom right folder
    IFolderLayout bottomRightFolder = layout.createFolder(
            "bottomRightFolder", IPageLayout.BOTTOM, 0.55f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$
    bottomRightFolder.addView(HISTOGRAM_VIEW_ID);
    bottomRightFolder.addView(PROPERTIES_VIEW_ID);
    bottomRightFolder.addView(BOOKMARKS_VIEW_ID);

    // Populate menus, etc
    layout.addPerspectiveShortcut(ID);
    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
@Override
public void createInitialLayout(IPageLayout layout) {

    layout.setEditorAreaVisible(true);

    // Create the top left folder
    IFolderLayout topLeftFolder = layout.createFolder(
            "topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topLeftFolder.addView(PROJECT_VIEW_ID);

    // Create the top right folder
    IFolderLayout topFolders[] = new IFolderLayout[3];
    topFolders[0] = layout.createFolder(
            "topFolder1", IPageLayout.TOP, 1.0f/5.0f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topFolders[0].addView(CPU_VIEW_ID);
    // Create the top right folder
    topFolders[1] = layout.createFolder(
            "topFolder2", IPageLayout.TOP, 1.0f/4.0f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topFolders[1].addView(DISK_VIEW_ID);
    // Create the top right folder
    topFolders[2] = layout.createFolder(
            "topFolders3", IPageLayout.TOP, 1.0f/3.0f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topFolders[2].addView(MEMORY_VIEW_ID);

    // Create the bottom right folder
    IFolderLayout bottomRightFolder = layout.createFolder(
            "bottomRightFolder", IPageLayout.BOTTOM, 0.50f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    bottomRightFolder.addView(HISTOGRAM_VIEW_ID);
    bottomRightFolder.addView(BOOKMARKS_VIEW_ID);

    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
源代码15 项目: tracecompass   文件: PerspectiveFactory.java
@Override
public void createInitialLayout(IPageLayout layout) {

    layout.setEditorAreaVisible(true);

    addFastViews(layout);
    addViewShortcuts(layout);
    addPerspectiveShortcuts(layout);

    // Create the top left folder
    IFolderLayout topLeftFolder = layout.createFolder(
            "topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topLeftFolder.addView(PROJECT_VIEW_ID);

    // Create the bottom left folder
    IFolderLayout bottomLeftFolder = layout.createFolder(
            "bottomLeftFolder", IPageLayout.BOTTOM, 0.70f, "topLeftFolder"); //$NON-NLS-1$ //$NON-NLS-2$
    bottomLeftFolder.addView(CONTROL_VIEW_ID);

    // Create the top right folder
    IFolderLayout topRightFolder = layout.createFolder(
            "topRightFolder", IPageLayout.TOP, 0.40f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topRightFolder.addView(RESOURCES_VIEW_ID);
    topRightFolder.addView(CONTROLFLOW_VIEW_ID);
    topRightFolder.addView(STATISTICS_VIEW_ID);

    // Create the bottom right folder
    IFolderLayout bottomRightFolder = layout.createFolder(
            "bottomRightFolder", IPageLayout.BOTTOM, 0.50f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    bottomRightFolder.addView(HISTOGRAM_VIEW_ID);
    bottomRightFolder.addView(PROPERTIES_VIEW_ID);
    bottomRightFolder.addView(BOOKMARKS_VIEW_ID);

    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
源代码16 项目: tmxeditor8   文件: Perspective.java
public void createInitialLayout(IPageLayout layout) {
	String editorArea = layout.getEditorArea();
	layout.setEditorAreaVisible(false);
	layout.setFixed(true);
	
	layout.addStandaloneView(View.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
}
 
源代码17 项目: elexis-3-core   文件: BBSPerspective.java
public void createInitialLayout(IPageLayout layout){
	String editorArea = layout.getEditorArea();
	layout.setEditorAreaVisible(false);
	layout.setFixed(true);
	layout.addView(BBSView.ID,  IPageLayout.RIGHT, 0.9f, editorArea);

	
}
 
源代码18 项目: nebula   文件: ExamplesPerspective.java
@Override
public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(false);
	layout.addStandaloneView("org.eclipse.nebula.examples.view", false, IPageLayout.LEFT, 1,
			layout.getEditorArea());
}
 
源代码19 项目: neoscada   文件: Perspective.java
@Override
public void createInitialLayout ( final IPageLayout layout )
{
    layout.setEditorAreaVisible ( false );
}
 
源代码20 项目: jbt   文件: Perspective.java
public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(true);

	layout.addView(NodesNavigator.ID, IPageLayout.LEFT, 0.3f, layout.getEditorArea());

	IFolderLayout rightFolderLayout = layout.createFolder(RIGHT_FOLDER_ID, IPageLayout.RIGHT,
			0.6f, layout.getEditorArea());
	
	IFolderLayout bottomRightFolderLayout=layout.createFolder(BOTTOM_RIGHT_FOLDER_ID, IPageLayout.BOTTOM, 0.5f, RIGHT_FOLDER_ID);
	
	rightFolderLayout.addView(NodeInfo.ID);
	bottomRightFolderLayout.addView(NodesSearcher.ID);
}