¿¹Á¦

public class ClassA {

private Path path;

public void makePath( Device device ) {

path = new Path( device );

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



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



public class ClassA {

private Path path;

public void makePath( Device device ) {

path = new Path( device );

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