´ÙÀ½ ½º´ÏÆêÀº 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´Â ÆÐŰÁö ¿±â ¹× ±âº» À¯Çü ¿±â ´ëÈ »óÀÚ¸¦ ÀÛ¼ºÇϱâ À§ÇÑ Ãß°¡ ¸Þ¼Òµå¸¦ Á¦°øÇÕ´Ï´Ù.