Skip to content

Commit

Permalink
Default value for activate access annotation flag is all
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed May 4, 2020
1 parent b221ac3 commit d68fffc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions OMEdit/OMEditLIB/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -273,8 +273,12 @@ LibraryTreeItem::Access LibraryTreeItem::getAccess()
return LibraryTreeItem::packageDuplicate;
} else if (mpParentLibraryTreeItem && !mpParentLibraryTreeItem->isRootItem()) { // if there is no override for Access annotation then look in the parent class.
return mpParentLibraryTreeItem->getAccess();
} else { // if a class is encrypted and no Protection annotation is defined, the access annotation has the default value Access.documentation
return LibraryTreeItem::documentation;
} else {
if (isEncryptedClass) { // if a class is encrypted and no Protection annotation is defined, the access annotation has the default value Access.documentation
return LibraryTreeItem::documentation;
} else {
return LibraryTreeItem::all;
}
}
} else {
return LibraryTreeItem::all;
Expand Down

0 comments on commit d68fffc

Please sign in to comment.