コード例 #1
0
 @Nullable
 private Facet getSelectedFacet() {
   final Object selectedObject = myStructureConfigurable.getSelectedObject();
   if (selectedObject instanceof Facet) {
     return (Facet) selectedObject;
   }
   return null;
 }
コード例 #2
0
 @Nullable
 private Module getSelectedModule() {
   final Object selected = myStructureConfigurable.getSelectedObject();
   if (selected instanceof Module) {
     return (Module) selected;
   }
   if (selected instanceof Facet) {
     return ((Facet) selected).getModule();
   }
   return null;
 }