Java ƯÁ¤ ÇÁ·ÒÇÁÅÍ ´ëÈ­ »óÀÚ ÀÛ¼º

JDT UI Ç÷¯±×ÀÎÀº JDT »ç¿ëÀÚ ÀÎÅÍÆäÀ̽º¸¦ ÇÁ·Î±×·¡¹ÖÇÏ¿© È£ÃâÇÒ ¼ö ÀÖ´Â À¯Æ¿¸®Æ¼ Ŭ·¡½º JavaUI¸¦ Á¦°øÇÕ´Ï´Ù.

´ÙÀ½ ½º´ÏÆêÀº À¯Çü ÇÁ·ÒÇÁÅÍ ´ëÈ­ »óÀÚ¸¦ ¿±´Ï´Ù.

public IType selectType() throws JavaModelException {
    SelectionDialog dialog=

        JavaUI.createTypeDialog(parent, new ProgressMonitorDialog(parent),
            SearchEngine.createWorkspaceScope(), IJavaElementSearchConstants.CONSIDER_TYPES,
            false);
    dialog.setTitle("My Dialog Title");
    dialog.setMessage("My Dialog Message");
    if (dialog.open() == IDialogConstants.CANCEL_ID)
        return null;
        
    Object[] types= dialog.getResult();
    if (types == null || types.length == 0)

        return null;
    return (IType)types[0];      

}


À¯Çü ÇÁ·ÒÇÁÅÍ ´ëÈ­ »óÀÚ¸¦ ÀÛ¼ºÇÏ´Â ¸Þ¼Òµå ¿Ü¿¡, Ŭ·¡½º JavaUI´Â ÆÐŰÁö ¹× ±âº» À¯Çü ÇÁ·ÒÇÁÅÍ ´ëÈ­ »óÀÚ¸¦ ÀÛ¼ºÇÏ´Â Ãß°¡ ¸Þ¼Òµåµµ Á¦°øÇÕ´Ï´Ù.

Copyright IBM Corporation and others 2000, 2002. All Rights Reserved.