public void addBookmark(final CCodeBookmark bookmark){
  Preconditions.checkNotNull(bookmark,"IE00328: Bookmark argument can not be null");
  Preconditions.checkArgument(!m_bookmarks.contains(bookmark),"IE00329: Bookmark can not be added more than once");
  m_bookmarks.add(bookmark);
  for (  final ICodeBookmarkManagerListener listener : m_listeners) {
    try {
      listener.addedBookmark(this,bookmark);
    }
 catch (    final Exception exception) {
      CUtilityFunctions.logException(exception);
    }
  }
}

public void addBookmark ( final CCodeBookmark bookmark ) { Preconditions . checkNotNull ( bookmark , "IE00328: Bookmark argument can not be null" ) ; Preconditions . checkArgument ( ! m_bookmarks . contains ( bookmark ) , "IE00329: Bookmark can not be added more than once" ) ; m_bookmarks . add ( bookmark ) ; for ( final ICodeBookmarkManagerListener listener : m_listeners ) { try { listener . addedBookmark ( this , bookmark ) ; } catch ( final Exception exception ) { CUtilityFunctions . logException ( exception ) ; } } }
adds a new code bookmark to the code bookmark manager .
