private void buildButtonPanel() {
		buttonPanel = new JPanel(new FlowLayout());

		JButton deletedButton = new JButton("Remove Selected Patterns");
		deletedButton.addActionListener(e -> {
			List<PatternInfoRowObject> selected = filterTable.getSelectedRowObjects();
			plugin.removePatterns(selected);
			updateClipboard();
		});
		buttonPanel.add(deletedButton);

		JButton sendToAnalyzerButton = new JButton("Create Functions from Selection");
		sendToAnalyzerButton.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				Program currentProgram = plugin.getCurrentProgram();
				if (currentProgram == null) {
					Msg.showWarn(this, getParent(), "Open Program", "Please open a program");
					return;
				}
				List<PatternInfoRowObject> selected = patternInfoTable.getLastSelectedObjects();
				ArrayList<Pattern> patternList = getPatternList(selected);
				if (patternList.isEmpty()) {
					return;
				}
				if (onlyPrePatterns) {
					Msg.showWarn(this, getParent(), "No Post Pattern",
						"Selected patterns must contain at least one post pattern");
					return;
				}
				//should we required at least one pre-pattern as well?
				FunctionStartAnalyzer funcStartAnalyzer = new FunctionStartAnalyzer();
				for (Pattern pattern : patternList) {
					MatchAction[] actions = getMatchActions(funcStartAnalyzer, pattern);
					pattern.setMatchActions(actions);
				}
				SequenceSearchState root = SequenceSearchState.buildStateMachine(patternList);
				funcStartAnalyzer.setExplicitState(root);
				AutoAnalysisManager autoManager =
					AutoAnalysisManager.getAnalysisManager(currentProgram);
				autoManager.scheduleOneTimeAnalysis(funcStartAnalyzer,
					currentProgram.getMemory().getExecuteSet());
			}
		});

		buttonPanel.add(sendToAnalyzerButton);

		JButton exportButton = new JButton("Export Selected to Pattern File");
		exportButton.addActionListener(new ExportPatternFileActionListener(this, getParent()));

		buttonPanel.add(exportButton);

		JButton importButton = new JButton("Import Patterns From File");
		importButton.addActionListener(new ImportPatternFileActionListener(plugin, this));
		buttonPanel.add(importButton);
	}
Class for building the pattern clipboard
@param plugin
Ghidra/Features/BytePatterns/src/main/java/ghidra/bitpatterns/gui/ClipboardPanel.java