public class AnnotationVisibilityMenuContributor extends AbstractSubmenuContributor
MenuContributor
it can be easily attached to a PopupMenuTool
which
is able to display context menus on a ViewComponent
.
This class uses I18n resources which are part of this demo resources. For using this class developers have to ensure the availability of these resources.
Modifier and Type | Field and Description |
---|---|
protected static ResourceBundle |
BUNDLE
This bundle provides the I18n resources located at the com.levigo.jadice.demo.resources package.
|
log
Constructor and Description |
---|
AnnotationVisibilityMenuContributor() |
Modifier and Type | Method and Description |
---|---|
protected void |
doContribute(ContributionContext context,
MenuBuilder menuBuilder) |
protected AnnotationProfile |
getAnnotationProfile(EventObject event)
Provides a suitable annotation profile for the given event.
|
contribute, setTargetSubmenu, setTargetSubmenu
protected static final ResourceBundle BUNDLE
protected void doContribute(ContributionContext context, MenuBuilder menuBuilder)
doContribute
in class AbstractSubmenuContributor
protected AnnotationProfile getAnnotationProfile(EventObject event)
The lookup strategy for the profile is the following:
AnnotationProfile.getDefaultProfile()
is returned.Copyright © 2024 levigo holding gmbh. All rights reserved.