warning added
authorEugene Zhuravlev <jeka@intellij.com>
Thu, 4 Mar 2010 16:56:54 +0000 (19:56 +0300)
committerEugene Zhuravlev <jeka@intellij.com>
Thu, 4 Mar 2010 16:58:31 +0000 (19:58 +0300)
java/compiler/impl/src/com/intellij/compiler/options/AnnotationProcessorsConfigurable.java

index 314e1a1dc6bedb362f1a62fc34d9779747013e89..ed1dcd60969eb987e82e27eba34accb2ad190234 100644 (file)
@@ -114,12 +114,20 @@ public class AnnotationProcessorsConfigurable implements Configurable{
     final JLabel noteMessage = new MultiLineLabel("Source files generated by annotation processors will be stored under the project output directory.\n" +
                                                   "To override this behaviour for certain modules you may specify the directory name in the table below.\n" +
                                                   "If specified, the directory will be created under corresponding module's content root.");
+    
+    final JLabel warning = new MultiLineLabel("WARNING!\n" +
+                                              "All source files located in the generated sources output directory WILL BE EXCLUDED from annotation processing.\n" +
+                                              "If option 'Clear output directory on rebuild' is enabled,\n" +
+                                              "the entire contents of directories specified in the table below WILL BE CLEARED on rebuild.");
+    warning.setFont(warning.getFont().deriveFont(Font.BOLD));
+
     mainPanel.add(myCbEnableProcessing, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 2, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 0, 0, 0), 0, 0));
     mainPanel.add(myRbClasspath, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(10, 0, 0, 0), 0, 0));
     mainPanel.add(myRbProcessorsPath, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 0, 0, 0), 0, 0));
     mainPanel.add(myProcessorPathField, new GridBagConstraints(1, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 0), 0, 0));
     mainPanel.add(processorTablePanel, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 2, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(10, 0, 0, 0), 0, 0));
     mainPanel.add(noteMessage, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(10, 5, 0, 0), 0, 0));
+    mainPanel.add(warning, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(10, 5, 0, 0), 0, 0));
     mainPanel.add(myModulesTable, new GridBagConstraints(0, GridBagConstraints.RELATIVE, 2, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(10, 0, 0, 0), 0, 0));