}
}
X x = new X();
mgr.addPropertyChangeListener( x );
grp.addItem( x, true );
DialogBuilder b = new DialogBuilder( NodeJSProject.class ).setModal( true ).setContent( ep ).setValidationGroup( grp ).setTitle( NbBundle.getMessage( NodeJSProject.class, "CHOOSE_NO_MAIN_FILE" ) ).setDialogType( DialogType.QUESTION );
if (b.showDialog( NotifyDescriptor.OK_OPTION ) && mgr.getSelectedNodes().length == 1) {
Node n = mgr.getSelectedNodes()[0];
FileObject fo = n.getLookup().lookup( DataObject.class ).getPrimaryFile();
return fo;
}
return null;