@Override
		public boolean isEnabledForContext(ActionContext context) {
			Object contextObject = context.getContextObject();
			if (contextObject instanceof ToolButton) {
				return isEnabledForContext((ToolButton) contextObject);
			}
			return false;
		}
builds the gui for the new front end
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/FrontEndPlugin.java