¿¹Á¦

public class ClassA {

private TextLayout textLayout;

public void makeTextLayout( Device device ) {

textLayout = new TextLayout( device );

if ( !textLayout.isDisposed() ) {
//do something...
}
}
}



¼Ö·ç¼Ç
ÀÚ¿ø ´©¼ö¸¦ ÇÇÇÏ·Á¸é ¸ðµç org.eclipse.swt.graphics.TextLayout¿¡¼­ dispose()°¡ È£ÃâµÇ´ÂÁö È®ÀÎÇϽʽÿÀ.



public class ClassA {

private TextLayout textLayout;

public void makeTextLayout( Device device ) {

textLayout = new TextLayout( device );

if ( !textLayout.isDisposed() ) {
//do something...
}
textLayout.dispose();
}
}