View Javadoc
1   /*
2    * Copyright (c) 2020 bahlef.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the Eclipse Public License v2.0
5    * which accompanies this distribution, and is available at
6    * http://www.eclipse.org/legal/epl-v20.html
7    * Contributors:
8    * bahlef - initial API and implementation and/or initial documentation
9    */
10  
11  package de.funfried.netbeans.plugins.external.formatter;
12  
13  import javax.swing.text.BadLocationException;
14  
15  /**
16   *
17   * @author bahlef
18   */
19  public interface FormatJob {
20  	/**
21  	 * Executes the formatting of this {@link FormatJob}.
22  	 *
23  	 * @throws BadLocationException if something goes wrong while applying the formatted code
24  	 */
25  	void format() throws BadLocationException;
26  }