Java Code Examples for org.eclipse.ui.IPageLayout#setFixed()

The following examples show how to use org.eclipse.ui.IPageLayout#setFixed() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BriefePerspektive.java    From elexis-3-core with Eclipse Public License 1.0 6 votes vote down vote up
public void createInitialLayout(IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	
	IFolderLayout left = layout.createFolder("Links.folder", IPageLayout.LEFT, 0.3f, IPageLayout.ID_EDITOR_AREA);
	IFolderLayout main = layout.createFolder("Haupt.Folder", IPageLayout.LEFT, 0.7f, IPageLayout.ID_EDITOR_AREA);
	left.addView(BriefAuswahl.ID);
	main.addView(TextView.ID);
	main.addView(TextTemplateView.ID);

	layout.addPerspectiveShortcut(ID);
	layout.addShowViewShortcut(UiResourceConstants.PatientDetailView2_ID);
	layout.addShowViewShortcut(KonsDetailView.ID);
	layout.addShowViewShortcut(BriefAuswahl.ID);
	layout.addShowViewShortcut(TextView.ID);
	
}
 
Example 2
Source File: AbrechnungsPerspektive.java    From elexis-3-core with Eclipse Public License 1.0 6 votes vote down vote up
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);
}
 
Example 3
Source File: RcpPerspective.java    From olca-app with Mozilla Public License 2.0 5 votes vote down vote up
@Override
public void createInitialLayout(final IPageLayout layout) {
	String editorArea = layout.getEditorArea();
	layout.setEditorAreaVisible(true);
	layout.setFixed(false);
	IFolderLayout naviFolder = layout.createFolder("Navigation", IPageLayout.LEFT, 0.31f, editorArea);
	naviFolder.addView(Navigator.ID);
	IViewLayout naviLayout = layout.getViewLayout(Navigator.ID);
	naviLayout.setCloseable(false);
	naviLayout.setMoveable(false);
	// outline place holder
	layout.addPlaceholder(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.8f, editorArea);
}
 
Example 4
Source File: AdressPerspektive.java    From elexis-3-core with Eclipse Public License 1.0 5 votes vote down vote up
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);
}
 
Example 5
Source File: LeistungPerspektive.java    From elexis-3-core with Eclipse Public License 1.0 5 votes vote down vote up
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);
	
}
 
Example 6
Source File: BBSPerspective.java    From elexis-3-core with Eclipse Public License 1.0 5 votes vote down vote up
public void createInitialLayout(IPageLayout layout){
	String editorArea = layout.getEditorArea();
	layout.setEditorAreaVisible(false);
	layout.setFixed(true);
	layout.addView(BBSView.ID,  IPageLayout.RIGHT, 0.9f, editorArea);

	
}
 
Example 7
Source File: BestellPerspektive.java    From elexis-3-core with Eclipse Public License 1.0 5 votes vote down vote up
public void createInitialLayout(IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	
	layout.addView(ArtikelSelektor.ID, SWT.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA);
	IFolderLayout ifl =
		layout.createFolder("iflRight", SWT.RIGHT, 0.6f, IPageLayout.ID_EDITOR_AREA);
	ifl.addView(BestellView.ID);
}
 
Example 8
Source File: ArtikelPerspektive.java    From elexis-3-core with Eclipse Public License 1.0 5 votes vote down vote up
public void createInitialLayout(IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	
	IFolderLayout ifr = layout.createFolder("folder", IPageLayout.LEFT, 0.5f, IPageLayout.ID_EDITOR_AREA);
	ifr.addView(ArtikelView.ID);
	ifr.addView(KompendiumView.ID);
}
 
Example 9
Source File: Perspective.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example 10
Source File: Perspective.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example 11
Source File: SimulationPerspective.java    From gama with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void createInitialLayout(final IPageLayout lay) {

	lay.setFixed(false);
	lay.setEditorAreaVisible(false);
	final String editor = lay.getEditorArea();

	final IFolderLayout navigAndParam = lay.createFolder("navigAndParam", IPageLayout.LEFT, 0.3f, editor);
	navigAndParam.addView(IGui.PARAMETER_VIEW_ID);
	navigAndParam.addView(IGui.NAVIGATOR_VIEW_ID);
	navigAndParam.addPlaceholder(IGui.ERROR_VIEW_ID);
	navigAndParam.addPlaceholder(IGui.TEST_VIEW_ID);

	final IFolderLayout consoleFolder = lay.createFolder("consoles", IPageLayout.BOTTOM, 0.70f, "navigAndParam");

	consoleFolder.addView(IGui.INTERACTIVE_CONSOLE_VIEW_ID);
	consoleFolder.addView(IGui.CONSOLE_VIEW_ID);

	final IPlaceholderFolderLayout displays =
			lay.createPlaceholderFolder("displays", IPageLayout.TOP, 0.7f, editor);
	displays.addPlaceholder(IGui.LAYER_VIEW_ID + ":*");
	displays.addPlaceholder(IGui.GL_LAYER_VIEW_ID + ":*");
	displays.addPlaceholder(IGui.GL_LAYER_VIEW_ID2 + ":*");

	final IPlaceholderFolderLayout inspect =
			lay.createPlaceholderFolder("inspect", IPageLayout.RIGHT, 0.6f, "displays");
	inspect.addPlaceholder(IGui.AGENT_VIEW_ID);
	inspect.addPlaceholder(IGui.TABLE_VIEW_ID + ":*");

	final IPlaceholderFolderLayout monitor =
			lay.createPlaceholderFolder("monitor", IPageLayout.BOTTOM, 0.50f, "inspect");
	monitor.addPlaceholder(IGui.MONITOR_VIEW_ID);

}
 
Example 12
Source File: PatientPerspektive.java    From elexis-3-core with Eclipse Public License 1.0 4 votes vote down vote up
public void createInitialLayout(final IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	IFolderLayout left =
		layout.createFolder("Links.folder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA);
	IFolderLayout main =
		layout.createFolder("Haupt.Folder", IPageLayout.RIGHT, 0.3f, "Links.folder"); //$NON-NLS-1$
	IFolderLayout leftbottom =
		layout.createFolder("links.unten", IPageLayout.BOTTOM, 0.7f, "Links.folder");
	IFolderLayout right =
		layout.createFolder("Rechts.folder", IPageLayout.RIGHT, 0.7f, "Haupt.Folder");
	
	main.addView(UiResourceConstants.PatientDetailView2_ID);
	left.addView(UiResourceConstants.PatientenListeView_ID);
	leftbottom.addView(FaelleView.ID);
	left.addView(PatHeuteView.ID);
	main.addView(KonsDetailView.ID);
	
	main.addView(UiResourceConstants.LaborView_ID);
	main.addView(RezepteView.ID);
	main.addView(AUF2.ID);
	
	right.addView(KonsListe.ID);
	
	main.addPlaceholder(FallDetailView.ID);
	main.addPlaceholder(TextView.ID);
	main.addPlaceholder(KompendiumView.ID);

	layout.addPerspectiveShortcut(UiResourceConstants.PatientPerspektive_ID);
	layout.addShowViewShortcut(UiResourceConstants.PatientDetailView2_ID);
	layout.addShowViewShortcut(UiResourceConstants.PatientenListeView_ID);
	// layout.addShowViewShortcut(FallListeView.ID);
	layout.addPerspectiveShortcut(FaelleView.ID);
	layout.addShowViewShortcut(KonsListe.ID);
	layout.addShowViewShortcut(PatHeuteView.ID);
	layout.addShowViewShortcut(KonsDetailView.ID);
	layout.addShowViewShortcut(RezepteView.ID);
	layout.addShowViewShortcut(FallDetailView.ID);
	
	UiDesk.asyncExec(new Runnable() {
		public void run(){
			
			ElexisFastViewUtil.addToFastView(UiResourceConstants.PatientPerspektive_ID,
				LeistungenView.ID);
			ElexisFastViewUtil.addToFastView(UiResourceConstants.PatientPerspektive_ID,
				DiagnosenView.ID);
			
		}
	});
	
}
 
Example 13
Source File: Perspective.java    From codeexamples-eclipse with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(false);
	layout.setFixed(true);
	
}
 
Example 14
Source File: ReminderPerspektive.java    From elexis-3-core with Eclipse Public License 1.0 4 votes vote down vote up
public void createInitialLayout(IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	layout.addView(ReminderView.ID, IPageLayout.LEFT, 0.8f, IPageLayout.ID_EDITOR_AREA);
}
 
Example 15
Source File: Perspective.java    From slr-toolkit with Eclipse Public License 1.0 4 votes vote down vote up
public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(true);
	layout.setFixed(false);
}
 
Example 16
Source File: Perspective.java    From orion.server with Eclipse Public License 1.0 4 votes vote down vote up
public void createInitialLayout(IPageLayout layout) {
	layout.addStandaloneView(OrionConsoleView.ID, true, IPageLayout.LEFT, 0.5f, "org.eclipse.ui.editorss");
	layout.setEditorAreaVisible(false);
	layout.setFixed(true);
}
 
Example 17
Source File: Perspective.java    From MergeProcessor with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(false);
	layout.setFixed(true);
}