Perspective Ãß°¡

¸®Ä¡ Ŭ¶óÀÌ¾ðÆ® ÀÀ¿ëÇÁ·Î±×·¥ÀÌ Workbench¸¦ »ç¿ëÀÚ Á¤ÀÇÇϱâ À§ÇÑ 1Â÷ ¼ö´ÜÀ¸·ÎWorkbenchAdvisor¸¦ »ç¿ëÇÏ´Â °æ¿ì Workbench â¿¡ Ç¥½ÃµÇ´Â Perspective¸¦ Á¦°øÇØ¾ß ÇÕ´Ï´Ù. ÀÌ Perspective´Â ÀÀ¿ëÇÁ·Î±×·¥ÀÇ Workbench ¾îµå¹ÙÀÌÀú Ŭ·¡½º¿¡¼­ ½Äº°µÇ¾î¾ß ÇÕ´Ï´Ù. ´ÙÀ½ Ç׸ñÀÌ BrowserAdvisor Ŭ·¡½º¿¡ ÁöÁ¤µË´Ï´Ù.

	public String getInitialWindowPerspectiveId() {
		return BrowserApp.BROWSER_PERSPECTIVE_ID;
	}
BrowserApp´Â ´ÙÀ½À» Á¤ÀÇÇÕ´Ï´Ù.
	public static final String PLUGIN_ID = "org.eclipse.ui.examples.rcp.browser";
	public static final String BROWSER_PERSPECTIVE_ID = PLUGIN_ID + ".browserPerspective";
ÇØ´ç Perspective´Â ´ÙÀ½°ú °°ÀÌ ºê¶ó¿ìÀú Ç÷¯±×ÀÎÀÇ Manifest¿¡ Á¤Àǵ˴ϴÙ.
      <extension
         point="org.eclipse.ui.perspectives">
      <perspective
            id="org.eclipse.ui.examples.rcp.browser.browserPerspective"
            name="%perspectives.browser.name"
            class="org.eclipse.ui.examples.rcp.browser.BrowserPerspectiveFactory"
            fixed="true"/>
   </extension>
BrowserPerspectiveFactory´Â º¸±â¸¦ ÀûÀýÈ÷ ·¹À̾ƿôÇØ¾ß ÇÕ´Ï´Ù.
	public void createInitialLayout(IPageLayout layout) {
		layout.addView(BrowserApp.BROWSER_VIEW_ID, IPageLayout.RIGHT, .25f, IPageLayout.ID_EDITOR_AREA);
		layout.addPlaceholder(BrowserApp.HISTORY_VIEW_ID, IPageLayout.LEFT, .3f, IPageLayout.ID_EDITOR_AREA);
		IViewLayout historyLayout = layout.getViewLayout(BrowserApp.HISTORY_VIEW_ID);
		historyLayout.setCloseable(true);
		layout.setEditorAreaVisible(false);
	}
ºê¶ó¿ìÀú Perspective´Â µÎ °³ÀÇ º¸±â(Çϳª´Â °¡½ÃÀûÀÎ º¸±âÀÌ°í ´Ù¸¥ Çϳª¿¡ ´ëÇÑ À§Ä¡ Ç¥½Ã±â°¡ ÀÖÀ½)¸¦ Á¤ÀÇÇÏ°í ÆíÁý±â ¿µ¿ªÀ» ¼û±é´Ï´Ù. Perspective ¹× ÇØ´ç ·¹À̾ƿô¿¡ ´ëÇÑ Àüü ¼³¸íÀº Perspectives¸¦ ÂüÁ¶ÇϽʽÿÀ.

¹ýÀû ÁÖÀÇ»çÇ×