Lines 83-88
Link Here
|
83 |
import org.netbeans.modules.editor.indent.api.IndentUtils; |
83 |
import org.netbeans.modules.editor.indent.api.IndentUtils; |
84 |
import org.netbeans.modules.editor.indent.api.Reformat; |
84 |
import org.netbeans.modules.editor.indent.api.Reformat; |
85 |
import org.netbeans.modules.options.editor.spi.PreviewProvider; |
85 |
import org.netbeans.modules.options.editor.spi.PreviewProvider; |
|
|
86 |
import org.netbeans.spi.options.OptionsPanelController; |
86 |
import org.openide.awt.Mnemonics; |
87 |
import org.openide.awt.Mnemonics; |
87 |
import org.openide.filesystems.FileObject; |
88 |
import org.openide.filesystems.FileObject; |
88 |
import org.openide.text.CloneableEditorSupport; |
89 |
import org.openide.text.CloneableEditorSupport; |
Lines 96-101
Link Here
|
96 |
* |
97 |
* |
97 |
* @author Jan Jancura |
98 |
* @author Jan Jancura |
98 |
*/ |
99 |
*/ |
|
|
100 |
@OptionsPanelController.KeywordPanel(keywords={"indentation", "extra", "stuff"}, location="Editor", index=1, id="Formating") |
99 |
public class IndentationPanel extends JPanel implements ChangeListener, ActionListener, PreferenceChangeListener { |
101 |
public class IndentationPanel extends JPanel implements ChangeListener, ActionListener, PreferenceChangeListener { |
100 |
|
102 |
|
101 |
private static final Logger LOG = Logger.getLogger(IndentationPanel.class.getName()); |
103 |
private static final Logger LOG = Logger.getLogger(IndentationPanel.class.getName()); |
Lines 107-112
Link Here
|
107 |
private final PreviewProvider preview; |
109 |
private final PreviewProvider preview; |
108 |
private final boolean showOverrideGlobalOptions; |
110 |
private final boolean showOverrideGlobalOptions; |
109 |
|
111 |
|
|
|
112 |
private IndentationPanel() { |
113 |
this.mimePath = null; |
114 |
this.prefsFactory = null; |
115 |
this.prefs = null; |
116 |
this.allLangPrefs = null; |
117 |
this.preview = null; |
118 |
this.showOverrideGlobalOptions = false; |
119 |
} |
120 |
|
110 |
/** |
121 |
/** |
111 |
* Creates new form IndentationPanel. |
122 |
* Creates new form IndentationPanel. |
112 |
*/ |
123 |
*/ |