private void buildMenuBar() {
this.menus = MenuFactory
.newTopLevelMenu( AppConstants.INSTANCE.Explore() )
.menus()
.menu( AppConstants.INSTANCE.Projects() )
.respondsWith(new Command() {
@Override
public void execute() {
placeManager.goTo("org.kie.guvnor.explorer");
}
})
.endMenu()
.menu( AppConstants.INSTANCE.IncomingChanges() )
.respondsWith( new Command() {
@Override
public void execute() {
//PlaceRequest p = new PathPlaceRequest("Inbox");
//p.addParameter("inboxname", InboxPresenter.INCOMING_ID);
placeManager.goTo( "Inbox" );
}
} )
.endMenu()
.menu( AppConstants.INSTANCE.RecentlyEdited() )
.respondsWith( new Command() {
@Override
public void execute() {
PlaceRequest p = new DefaultPlaceRequest( "Inbox" );
p.addParameter( "inboxname", InboxPresenter.RECENT_EDITED_ID );
placeManager.goTo( p );
}
} )
.endMenu()
.menu( AppConstants.INSTANCE.RecentlyOpened() )
.respondsWith( new Command() {
@Override
public void execute() {
PlaceRequest p = new DefaultPlaceRequest( "Inbox" );
p.addParameter( "inboxname", InboxPresenter.RECENT_VIEWED_ID );
placeManager.goTo( p );