Eclipse

Section에 ToolBar 넣기

_침묵_ 2009. 1. 5. 21:14


그림에서 처럼 Section에 ToolBar를 넣고, 액션을 추가할 수 있습니다.
이미 되어 있는 화면이 눈 앞에 있으니 당연하겠죠 -_-;;

저 부분은 org.eclipse.pde.ui 플러그인에 있습니다.
org.eclipse.pde.internal.ui.editor.plugin.ExtensionsSection 이죠.


군더더기 없이 젤 중요한건 마지막 라인이죠.


setTextClient() 문서를 보면, 인자로 Control이 들어갑니다.

void org.eclipse.ui.forms.widgets.ExpandableComposite.setTextClient(Control textClient)

Sets the text client control. Text client is a control that is a child of the expandable composite and is placed to the right of the text. It can be used to place small image hyperlinks. If more than one control is needed, use Composite to hold them. Care should be taken that the height of the control is comparable to the height of the text.

Parameters:

textClient the textClient to set or null if not needed any more.

이걸로 뭐든 추가할 수 있음을 알 수 있습니다.

'Eclipse' 카테고리의 다른 글

SWT Text에 입력 프롬프트 넣기  (2) 2009.04.29
SWTChart 0.3.0  (0) 2008.12.20
SWT Ribbon Control  (0) 2008.11.30