TavernerPOS - Source Code
Clone:
git clone http://www.librarysmith.co.uk/tavernerPOS
package com.floreantpos.actions;
import com.floreantpos.POSConstants;
import com.floreantpos.extension.FloorLayoutPlugin;
import com.floreantpos.main.Application;
import com.floreantpos.model.UserPermission;
public class ManageTableLayoutAction extends PosAction {
FloorLayoutPlugin floorLayoutPlugin;
public ManageTableLayoutAction() {
super(POSConstants.TABLE_MANAGE_BUTTON_TEXT, UserPermission.MANAGE_TABLE_LAYOUT); //$NON-NLS-1$
floorLayoutPlugin = Application.getPluginManager().getPlugin(FloorLayoutPlugin.class);
if(floorLayoutPlugin == null) {
setVisible(false);
}
}
@Override
public void execute() {
if(floorLayoutPlugin != null) {
floorLayoutPlugin.openTicketsAndTablesDisplay();
}
}
}
- Details
- Last Updated: Monday, 04 April 2016 02:04
- Hits: 36110449