일요일, 6월 08, 2008

Take time to thinking: eclipse에서 font 사용 및 분석기

Take time to thinking: eclipse에서 font 사용 및 분석기

위의 link 그림 rcp 화면처럼 하려면, display를 수정해줘야 합니다.
아래처럼 display를 가져오게 되는데, 그 display 객체를 수정해주어야 겠습니다.

혹은
org.eclipse.ui.internal.Workbench의
/**
* Creates the Display to be used by the workbench.
*
* @return the display
*/
public static Display createDisplay() {
// setup the application name used by SWT to lookup resources on some
// platforms
String applicationName = WorkbenchPlugin.getDefault().getAppName();
if (applicationName != null) {
Display.setAppName(applicationName);
}

// create the display
Display newDisplay = Display.getCurrent();
if(newDisplay == null) {
if (Policy.DEBUG_SWT_GRAPHICS || Policy.DEBUG_SWT_DEBUG) {
DeviceData data = new DeviceData();
if (Policy.DEBUG_SWT_GRAPHICS) {
data.tracking = true;
}
if (Policy.DEBUG_SWT_DEBUG) {
data.debug = true;
}
newDisplay = new Display(data);
} else {
newDisplay = new Display();
}
}

// workaround for 1GEZ9UR and 1GF07HN
newDisplay.setWarnings(false);

// Set the priority higher than normal so as to be higher
// than the JobManager.
Thread.currentThread().setPriority(
Math.min(Thread.MAX_PRIORITY, Thread.NORM_PRIORITY + 1));

initializeImages();

return newDisplay;
}
클래스를 손봐주어야한다.

댓글 없음:

댓글 쓰기