BookmarkBar.st
changeset 19084 9921dbc44880
parent 17918 a9043f7695ce
equal deleted inserted replaced
19083:090224c28f0d 19084:9921dbc44880
       
     1 "{ Encoding: utf8 }"
       
     2 
     1 "
     3 "
     2  Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague
     4  Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague
     3  Copyright (c) 2009-2010 eXept Software AG
     5  Copyright (c) 2009-2010 eXept Software AG
     4 
     6 
     5  Permission is hereby granted, free of charge, to any person
     7  Permission is hereby granted, free of charge, to any person
   367 
   369 
   368     self window isVisible ifFalse:[^self].
   370     self window isVisible ifFalse:[^self].
   369     menu := self bookmarksHolder value asMenu.
   371     menu := self bookmarksHolder value asMenu.
   370     menu hasItems ifFalse:[
   372     menu hasItems ifFalse:[
   371         item := MenuItem 
   373         item := MenuItem 
   372                     label: ('No bookmarks yet, click here or on star to add one' withColor: Color gray)
   374                     label: ('No bookmarks yet, click here or on star to add one' allGray)
   373                     itemValue: #bookmarkMenu
   375                     itemValue: #bookmarkMenu
   374                     enabled: self hasBookmarkHolder.
   376                     enabled: self hasBookmarkHolder.
   375         item isButton: true.
   377         item isButton: true.
   376         menu addItem: item.
   378         menu addItem: item.
   377     ].
   379     ].