]> source.dussan.org Git - aspectj.git/commitdiff
this commit eliminates all bar 2 of the 60 odd compilation warnings in the ajde module
authoracolyer <acolyer>
Thu, 24 Nov 2005 15:25:48 +0000 (15:25 +0000)
committeracolyer <acolyer>
Thu, 24 Nov 2005 15:25:48 +0000 (15:25 +0000)
40 files changed:
ajde/src/org/aspectj/ajde/Ajde.java
ajde/src/org/aspectj/ajde/BuildOptionsAdapter.java
ajde/src/org/aspectj/ajde/internal/AspectJBuildManager.java
ajde/src/org/aspectj/ajde/internal/BuildNotifierAdapter.java
ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
ajde/src/org/aspectj/ajde/internal/LstBuildConfigFileParser.java
ajde/src/org/aspectj/ajde/ui/BuildConfigNode.java
ajde/src/org/aspectj/ajde/ui/IStructureViewNode.java
ajde/src/org/aspectj/ajde/ui/InvalidResourceException.java
ajde/src/org/aspectj/ajde/ui/StructureModelUtil.java
ajde/src/org/aspectj/ajde/ui/swing/AJButtonMenuCombo.java
ajde/src/org/aspectj/ajde/ui/swing/AjdeUIManager.java
ajde/src/org/aspectj/ajde/ui/swing/BrowserStructureViewToolPanel.java
ajde/src/org/aspectj/ajde/ui/swing/BrowserView.java
ajde/src/org/aspectj/ajde/ui/swing/BrowserViewPanel.java
ajde/src/org/aspectj/ajde/ui/swing/BrowserViewTreeListener.java
ajde/src/org/aspectj/ajde/ui/swing/BuildConfigPopupMenu.java
ajde/src/org/aspectj/ajde/ui/swing/BuildOptionsPanel.java
ajde/src/org/aspectj/ajde/ui/swing/BuildProgressPanel.java
ajde/src/org/aspectj/ajde/ui/swing/CompilerMessagesCellRenderer.java
ajde/src/org/aspectj/ajde/ui/swing/ErrorDialog.java
ajde/src/org/aspectj/ajde/ui/swing/MultiStructureViewPanel.java
ajde/src/org/aspectj/ajde/ui/swing/OptionsFrame.java
ajde/src/org/aspectj/ajde/ui/swing/PointcutWizard.java
ajde/src/org/aspectj/ajde/ui/swing/SimpleStructureViewToolPanel.java
ajde/src/org/aspectj/ajde/ui/swing/StructureTree.java
ajde/src/org/aspectj/ajde/ui/swing/StructureTreeManager.java
ajde/src/org/aspectj/ajde/ui/swing/StructureViewPanel.java
ajde/src/org/aspectj/ajde/ui/swing/SwingTreeViewNode.java
ajde/src/org/aspectj/ajde/ui/swing/SwingTreeViewNodeRenderer.java
ajde/src/org/aspectj/ajde/ui/swing/TreeViewBuildConfigEditor.java
ajde/src/org/aspectj/ajde/ui/swing/UpdateConfigurationDialog.java
ajde/testsrc/org/aspectj/ajde/AjdeTestCase.java
ajde/testsrc/org/aspectj/ajde/AsmRelationshipsTest.java
ajde/testsrc/org/aspectj/ajde/BuildOptionsTest.java
ajde/testsrc/org/aspectj/ajde/ExtensionTests.java
ajde/testsrc/org/aspectj/ajde/GenericsTest.java
ajde/testsrc/org/aspectj/ajde/ReweavableTestCase.java
ajde/testsrc/org/aspectj/ajde/ShowWeaveMessagesTestCase.java
ajde/testsrc/org/aspectj/ajde/internal/LstBuildConfigManagerTest.java

index 06a382e1dabbb32037f65214fe38aed19ae19325..992623a8ddf3c026279c1597fff21b22c26907f7 100644 (file)
@@ -255,7 +255,7 @@ public class Ajde {
         final StringBuffer command = new StringBuffer();
         LangUtil.ProcessController controller
             = new LangUtil.ProcessController() {
-                protected void doCompleting(Throwable thrown, int result) {
+                public void doCompleting(Throwable thrown, int result) {
                     LangUtil.ProcessController.Thrown any = getThrown(); 
                     if (!any.thrown && (null == thrown) && (0 == result)) {
                         return; // no errors
index 7ac61377a899516e2c03b6aceff858cec488c2b8..3c3a58abfb64325d19a3e1fea2688a209cf13b43 100644 (file)
@@ -55,29 +55,29 @@ public interface BuildOptionsAdapter {
         */
        public Map getJavaOptionsMap();  
        
-       /**
-        * Use javac to generate .class files.  The default is "false".
-        * From -usejavac
-        * @deprecated Not supported from AspectJ 1.1 onwards
-        */
-       public boolean getUseJavacMode();
-       
-       /**
-        * Only relevant with Use Javac or Preprocess modes.  Specify where to place
-        * intermediate .java files.  The default is "workingdir".
-        * From -workingdir
-        * @deprecated Not supported from AspectJ 1.1 onwards
-        */
-       public String getWorkingOutputPath();
-       
-       /**
-        * Generate regular Java code into the Working OutputPath.  Don't try to generate
-        * any .class files.  The default is "false".
-        * From -source
-        * @deprecated Not supported from AspectJ 1.1 onwards
-        */
-       public boolean getPreprocessMode();
-       
+//     /**
+//      * Use javac to generate .class files.  The default is "false".
+//      * From -usejavac
+//      * @deprecated Not supported from AspectJ 1.1 onwards
+//      */
+//     public boolean getUseJavacMode();
+//     
+//     /**
+//      * Only relevant with Use Javac or Preprocess modes.  Specify where to place
+//      * intermediate .java files.  The default is "workingdir".
+//      * From -workingdir
+//      * @deprecated Not supported from AspectJ 1.1 onwards
+//      */
+//     public String getWorkingOutputPath();
+       
+//     /**
+//      * Generate regular Java code into the Working OutputPath.  Don't try to generate
+//      * any .class files.  The default is "false".
+//      * From -source
+//      * @deprecated Not supported from AspectJ 1.1 onwards
+//      */
+//     public boolean getPreprocessMode();
+//     
        /**
         * Specify character encoding used by source files.  The default is the current
         * JVM's default.
@@ -85,12 +85,12 @@ public interface BuildOptionsAdapter {
         */
        public String getCharacterEncoding();
        
-       /**
-        * Support assertions as defined in JLS-1.4.  The default is "false".
-        * @deprecated Use getComplianceLevel instead
-        */
-       public boolean getSourceOnePointFourMode();
-       
+//     /**
+//      * Support assertions as defined in JLS-1.4.  The default is "false".
+//      * @deprecated Use getComplianceLevel instead
+//      */
+//     public boolean getSourceOnePointFourMode();
+//     
 
     /**
      * Run compiles incrementally.
@@ -98,29 +98,29 @@ public interface BuildOptionsAdapter {
      */
     public boolean getIncrementalMode();
 
-       /**
-        * Be extra-lenient in interpreting the Java specification.  The default is "false", 
-        * i.e. "regular" mode.
-        * From -lenient
-        * @deprecated Not supported from AspectJ 1.1 onwards
-        */
-       public boolean getLenientSpecMode();
-       
-       /**
-        * Be extra-strict in interpreting the Java specification.  The default is "false", 
-        * i.e. "regular" mode.
-        * From -strict
-        * @deprecated Not supported from AspectJ 1.1 onwards
-        */
-       public boolean getStrictSpecMode();
-       
-       /**
-        * Make the use of some features from pre-1.0 versions of AspectJ be warnings to ease
-        * porting of old code.  The default is "false".
-        * From -porting
-        * @deprecated Not supported from AspectJ 1.1 onwards
-        */
-       public boolean getPortingMode();
+//     /**
+//      * Be extra-lenient in interpreting the Java specification.  The default is "false", 
+//      * i.e. "regular" mode.
+//      * From -lenient
+//      * @deprecated Not supported from AspectJ 1.1 onwards
+//      */
+//     public boolean getLenientSpecMode();
+       
+//     /**
+//      * Be extra-strict in interpreting the Java specification.  The default is "false", 
+//      * i.e. "regular" mode.
+//      * From -strict
+//      * @deprecated Not supported from AspectJ 1.1 onwards
+//      */
+//     public boolean getStrictSpecMode();
+//     
+//     /**
+//      * Make the use of some features from pre-1.0 versions of AspectJ be warnings to ease
+//      * porting of old code.  The default is "false".
+//      * From -porting
+//      * @deprecated Not supported from AspectJ 1.1 onwards
+//      */
+//     public boolean getPortingMode();
        
        /**
         * The non-standard, typically prefaced with -X when used with a command line compiler.
index 19422611e78c6747609e16b26dc0e07be02f0359..ba99b95da829816234f756d41232d5b2cca3c026 100644 (file)
@@ -224,14 +224,14 @@ public class AspectJBuildManager implements BuildManager {
                                + "\n-> -warn:" + formatSet(buildOptions.getWarnings())
                                + "\n-> noImportError: " + buildOptions.getNoImportError()
                                + "\n-> preserveAllLocals:" + buildOptions.getPreserveAllLocals()
-                               + "\n-> non-standard options: " + buildOptions.getNonStandardOptions()
-                               + "\n-> [ignored-deprecated in AspectJ1.1] porting mode: " + buildOptions.getPortingMode()
-                               + "\n-> [ignored-deprecated in AspectJ1.1] source 1.4 mode: " + buildOptions.getSourceOnePointFourMode()
-                               + "\n-> [ignored-deprecated in AspectJ1.1] strict spec mode: " + buildOptions.getStrictSpecMode()
-                               + "\n-> [ignored-deprecated in AspectJ1.1] lenient spec mode: " + buildOptions.getLenientSpecMode()
-                               + "\n-> [ignored-deprecated in AspectJ1.1] use javac mode: " + buildOptions.getUseJavacMode()
-                               + "\n-> [ignored-deprecated in AspectJ1.1] preprocess mode: " + buildOptions.getPreprocessMode()
-                               + "\n-> [ignored-deprecated in AspectJ1.1] working dir: " + buildOptions.getWorkingOutputPath();
+                               + "\n-> non-standard options: " + buildOptions.getNonStandardOptions();
+//                             + "\n-> [ignored-deprecated in AspectJ1.1] porting mode: " + buildOptions.getPortingMode()
+//                             + "\n-> [ignored-deprecated in AspectJ1.1] source 1.4 mode: " + buildOptions.getSourceOnePointFourMode()
+//                             + "\n-> [ignored-deprecated in AspectJ1.1] strict spec mode: " + buildOptions.getStrictSpecMode()
+//                             + "\n-> [ignored-deprecated in AspectJ1.1] lenient spec mode: " + buildOptions.getLenientSpecMode()
+//                             + "\n-> [ignored-deprecated in AspectJ1.1] use javac mode: " + buildOptions.getUseJavacMode()
+//                             + "\n-> [ignored-deprecated in AspectJ1.1] preprocess mode: " + buildOptions.getPreprocessMode()
+//                             + "\n-> [ignored-deprecated in AspectJ1.1] working dir: " + buildOptions.getWorkingOutputPath();
                }
                
                private String formatSet( Set options ) {
index 37a25f404c065364141729a37b8b5a7d1b63b933..3409e2ef8d18fc7dca3642509ee0140c037b6a63 100644 (file)
@@ -21,14 +21,14 @@ import org.aspectj.bridge.IProgressListener;
 public class BuildNotifierAdapter implements IProgressListener {
 
     private BuildProgressMonitor progressMonitor;
-    private AjBuildManager buildManager;
+//    private AjBuildManager buildManager;
 //    private int numCompilationUnitPasses = 1;
 //    private int completedPasses = 0;
        private boolean cancelRequested = false;
 
        public BuildNotifierAdapter(BuildProgressMonitor progressMonitor, AjBuildManager buildManager) {
                this.progressMonitor = progressMonitor;
-               this.buildManager = buildManager;
+//             this.buildManager = buildManager;
        }
   
        public void begin() {
index 3de0117372006c58b6b51191d4f3f8f5653eda8d..8a1d318c8986f296c0d8c2ab106fa672d1365763 100644 (file)
@@ -259,8 +259,7 @@ public class CompilerAdapter {
         if (options.getSourceCompatibilityLevel() != null && options.getSourceCompatibilityLevel().equals(CompilerOptions.VERSION_1_5)) {
                    optionsToSet.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_5);
                    optionsToSet.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5); 
-               } else if (options.getSourceOnePointFourMode() 
-                       || options.getSourceCompatibilityLevel() != null && options.getSourceCompatibilityLevel().equals(CompilerOptions.VERSION_1_4)) {
+               } else if (options.getSourceCompatibilityLevel() != null && options.getSourceCompatibilityLevel().equals(CompilerOptions.VERSION_1_4)) {
                    optionsToSet.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_4);    
                        optionsToSet.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_4);
                } 
index 187dda1c0767af7fcd7965c1ff54033d4d4659e6..f5aff5f79a90e3fe8f363547c5594f4309fe2e5b 100644 (file)
@@ -28,10 +28,10 @@ public class LstBuildConfigFileParser extends ConfigParser {
        private List importedFiles = new ArrayList();
        private List problemEntries = new ArrayList();
 
-       private String currFilePath;
+//     private String currFilePath;
 
        public LstBuildConfigFileParser(String currFilePath) {
-               this.currFilePath = currFilePath;               
+//             this.currFilePath = currFilePath;               
        }  
 
     protected void showWarning(String message) {
index cea5fe9e15326442f80e6c81ff0b0cb1d1b4815b..a4c3e98ad52f3347a0c7e0274392b2a877755429 100644 (file)
@@ -176,6 +176,8 @@ public class BuildConfigNode {
         */
        public static class Kind implements Serializable {
                
+               private static final long serialVersionUID = 3924996793884978885L;
+               
                public static final Kind FILE_JAVA = new Kind("Java source file");
                public static final Kind FILE_ASPECTJ = new Kind("AspectJ source file");
                public static final Kind FILE_LST = new Kind("build configuration file");
index f0a7ccac52f29963bd6cfe17ba3c2e9045875a98..d6982a45ffe2e0e144cb6557ba9ec3fda7e2e844 100644 (file)
@@ -57,6 +57,8 @@ public interface IStructureViewNode {
         */
        public static class Kind implements Serializable {
                
+               private static final long serialVersionUID = 6730849292562214877L;
+               
                public static final Kind DECLARATION = new Kind("declaration");
                public static final Kind RELATIONSHIP = new Kind("relationship");
                public static final Kind LINK = new Kind("link");
index e7807bec2278e5e4013433bca5200d5424771482..feb046acbb09ce2d0dd8f0832b7616f22405bdca 100644 (file)
@@ -22,6 +22,8 @@ package org.aspectj.ajde.ui;
  */
 public class InvalidResourceException extends Exception {
 
+       private static final long serialVersionUID = -5290919159396792978L;
+
        /**
         * Constructor for InvalidResourceException.
         */
index 61ba5f9ee6356e39a5336a45358b75e659b3bc8f..975bd7a43705b4b3eb9884e65f3583ecfb9c1ec2 100644 (file)
@@ -37,6 +37,9 @@ import org.aspectj.asm.IProgramElement;
 public class StructureModelUtil {
        
        public static class ModelIncorrectException extends Exception {
+
+               private static final long serialVersionUID = 8920868549577870993L;
+
                public ModelIncorrectException(String s) {
                        super(s);
                }
index 0531c175862765bd546f6da87b1b5bab4b283136..c27fdd53f174147af2255b59b85393b2453647e1 100644 (file)
@@ -29,10 +29,12 @@ import javax.swing.JPopupMenu;
 
 public class AJButtonMenuCombo extends JPanel {
        
-    private JButton mainButton;
+       private static final long serialVersionUID = -4866207530403336160L;
+
+       private JButton mainButton;
     private JButton popupButton;
     private JPopupMenu menu;
-    private boolean depressable = false;
+//    private boolean depressable = false;
     private boolean isPressed = false;
     
        public AJButtonMenuCombo(String name, 
@@ -42,7 +44,7 @@ public class AJButtonMenuCombo extends JPanel {
                boolean depressable) {
                        
                this.menu = menu;
-               this.depressable = depressable;
+//             this.depressable = depressable;
                mainButton = new JButton();
                mainButton.setIcon(icon);
         mainButton.setBorder(AjdeWidgetStyles.DEFAULT_BORDER);
index fc4f43470ffae6aea21ef2948d0b4d78674ac80d..d53db5e78794591ad042fee08864fa21ae5ffd12 100644 (file)
@@ -37,7 +37,7 @@ public class AjdeUIManager {
        private BrowserViewManager viewManager = null;
 //     private BuildProgressMonitor buildProgressMonitor = null;
 //     private ErrorHandler errorHandler = null;
-       private UserPreferencesAdapter userPreferencesAdapter = null;
+//     private UserPreferencesAdapter userPreferencesAdapter = null;
        private AjcBuildOptions buildOptionsAdapter = null;
        private IdeUIAdapter ideUIAdapter = null;
        private TreeViewBuildConfigEditor buildConfigEditor = null;
@@ -88,7 +88,7 @@ public class AjdeUIManager {
                        this.iconRegistry = iconRegistry;
                        //ConfigurationManager configManager = new LstConfigurationManager();
                        this.ideUIAdapter = ideUIAdapter;
-                       this.userPreferencesAdapter = userPreferencesAdapter;
+//                     this.userPreferencesAdapter = userPreferencesAdapter;
                        this.buildOptionsAdapter = new AjcBuildOptions(userPreferencesAdapter);
                        this.buildConfigEditor = new TreeViewBuildConfigEditor();
                        this.rootFrame = rootFrame;
@@ -149,7 +149,7 @@ public class AjdeUIManager {
                int x = (rootFrame.getWidth()/2) + rootFrame.getX() - optionsFrame.getWidth()/2;
                int y = (rootFrame.getHeight()/2) + rootFrame.getY() - optionsFrame.getHeight()/2;
                optionsFrame.setLocation(x, y);
-               optionsFrame.show();
+               optionsFrame.setVisible(true);
        }
        
        public AjcBuildOptions getBuildOptions() {
index a2e0fb492e3f054ba85c469ad94ca847d8e7eaf6..c8767db56830c7df598b657e8de496f6d221291b 100644 (file)
@@ -27,6 +27,8 @@ import org.aspectj.asm.*;
 
 public class BrowserStructureViewToolPanel extends JPanel {
 
+       private static final long serialVersionUID = 7960528108612681776L;
+
        private StructureView currentView;
        private StructureViewPanel viewPanel;
     protected BorderLayout borderLayout1 = new BorderLayout();
@@ -155,6 +157,9 @@ public class BrowserStructureViewToolPanel extends JPanel {
        }
 
        private class RadioSelectionMenuButton extends JRadioButtonMenuItem {
+
+               private static final long serialVersionUID = -879644981405801807L;
+
                public RadioSelectionMenuButton(StructureViewProperties.Granularity granularity, ButtonGroup group) {
                        super(granularity.toString());
                        super.setFont(AjdeWidgetStyles.DEFAULT_LABEL_FONT);
@@ -178,6 +183,8 @@ public class BrowserStructureViewToolPanel extends JPanel {
 
        private class CheckBoxSelectionMenuButton extends JCheckBoxMenuItem {
 
+               private static final long serialVersionUID = -4555502313984854787L;
+
                public CheckBoxSelectionMenuButton(String name) {
                        super(name);
                        this.setFont(AjdeWidgetStyles.DEFAULT_LABEL_FONT);
index acabee5009932c775c3542b9af6676119916b6dc..ec3da333b9ad1767a80c0cca67d9bee7e57d9ffd 100644 (file)
@@ -43,7 +43,8 @@ import org.aspectj.asm.IProgramElement;
  * @author Mik Kersten
  */
 class BrowserView extends JPanel {
-    private BrowserViewPanel masterView;
+       private static final long serialVersionUID = 1L;
+//     private BrowserViewPanel masterView;
     private BrowserViewPanel slaveView;
     private boolean slaveViewVisible = false;
     private String lastSelectedConfig = "";
@@ -69,7 +70,7 @@ class BrowserView extends JPanel {
 
     public BrowserView(BrowserViewPanel masterView, BrowserViewPanel slaveView, IconRegistry icons) {
         try {
-            this.masterView = masterView;
//           this.masterView = masterView;
             this.slaveView = slaveView;
             this.icons = icons;
             configs_comboBox = new JComboBox(Ajde.getDefault().getProjectProperties().getBuildConfigFiles().toArray());
@@ -248,7 +249,10 @@ class BrowserView extends JPanel {
 //    }
 
     static class ConfigsCellRenderer extends JLabel implements ListCellRenderer {
-        public ConfigsCellRenderer() {
+
+               private static final long serialVersionUID = 8795959045339903340L;
+
+               public ConfigsCellRenderer() {
             setOpaque(true);
         }
 
index 098ca30493a2b43cb426b9c228328beda55c5e01..685307cd258681018364cc0e98b5d39ba0bbad2c 100644 (file)
@@ -24,8 +24,6 @@ import javax.swing.JPanel;
 import javax.swing.JScrollPane;
 import javax.swing.JSlider;
 import javax.swing.JToolBar;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
 
 import org.aspectj.ajde.Ajde;
 import org.aspectj.ajde.ui.GlobalStructureView;
@@ -42,9 +40,11 @@ import org.aspectj.ajde.ui.StructureViewRenderer;
  */
 public class BrowserViewPanel extends JPanel implements StructureViewRenderer {
 
-    private StructureTreeManager treeManager;
+       private static final long serialVersionUID = 2201330630036486567L;
+
+       private StructureTreeManager treeManager;
     //private StructureView structureView = null;
-    private int depthSliderVal = 0;
+    //private int depthSliderVal = 0;
     private JComboBox view_comboBox = null;
 
     private BorderLayout borderLayout1 = new BorderLayout();
@@ -118,14 +118,14 @@ public class BrowserViewPanel extends JPanel implements StructureViewRenderer {
         depth_slider.setSnapToTicks(true);
         depth_slider.setPaintTrack(true);
         depth_slider.setPaintTicks(true);
-        this.depth_slider.addChangeListener(
-            new ChangeListener() {
-                public void stateChanged(ChangeEvent e) {
-                    depthSliderVal = depth_slider.getValue();
-                    //AjdeUIManager.getDefault().getViewManager().updateView();
-                }
-            });
-        depthSliderVal = depth_slider.getValue();
+//        this.depth_slider.addChangeListener(
+//            new ChangeListener() {
+//                public void stateChanged(ChangeEvent e) {
+//                    depthSliderVal = depth_slider.getValue();
+//                    //AjdeUIManager.getDefault().getViewManager().updateView();
+//                }
+//            });
+//        depthSliderVal = depth_slider.getValue();
     }
 
     private void view_comboBox_actionPerformed(ActionEvent e) {
index ecc403fd6f1c6b5a106403b618fdd5f82ea586b8..7e4238fe593050f6d3aa41d8d7afd8025479858b 100644 (file)
@@ -110,7 +110,10 @@ class BrowserViewTreeListener implements TreeSelectionListener, MouseListener {
             JMenuItem showSourcesItem = new JMenuItem("Display sources", AjdeUIManager.getDefault().getIconRegistry().getStructureSwingIcon(IProgramElement.Kind.CODE));
             showSourcesItem.setFont(new java.awt.Font("Dialog", 0, 11));
             showSourcesItem.addActionListener(new AbstractAction() {
-                public void actionPerformed(ActionEvent e) {
+                
+                               private static final long serialVersionUID = 1L;
+
+                               public void actionPerformed(ActionEvent e) {
                     //AjdeUIManager.getDefault().getViewManager().showSourcesNodes(signatures);
                     // USED THE FOLLOWING FROM: BrowserViewManager:
 //                                     public void showSourcesNodes(java.util.List nodes) {
@@ -139,7 +142,10 @@ class BrowserViewTreeListener implements TreeSelectionListener, MouseListener {
             JMenuItem generatePCD = new JMenuItem("Pointcut Wizard (alpha)...", AjdeUIManager.getDefault().getIconRegistry().getStructureSwingIcon(IProgramElement.Kind.POINTCUT));
             generatePCD.setFont(new java.awt.Font("Dialog", 0, 11));
             generatePCD.addActionListener(new AbstractAction() {
-                public void actionPerformed(ActionEvent e) {
+                
+                               private static final long serialVersionUID = 1L;
+
+                               public void actionPerformed(ActionEvent e) {
                     AjdeUIManager.getDefault().getViewManager().extractAndInsertSignatures(signatures, true);
                 }
             });
index 0749dbb2e920cb2ab6a213e9882989eca4b11e10..f5b7ae95c7f92ceec801346ee4764008500e44ad 100644 (file)
@@ -28,6 +28,8 @@ import org.aspectj.asm.IProgramElement;
 
 public class BuildConfigPopupMenu extends JPopupMenu {
 
+       private static final long serialVersionUID = -6730132748667530482L;
+
        public BuildConfigPopupMenu(final AbstractAction action) {
                java.util.List configFiles = Ajde.getDefault().getProjectProperties().getBuildConfigFiles();
                for (Iterator it = configFiles.iterator(); it.hasNext(); ) {
index ded795586c4467c92f597224eb4b92367a272b57..46eef334c96aba9ee7bb01be76d1cd7f9911eb31 100644 (file)
@@ -34,12 +34,14 @@ public class BuildOptionsPanel extends OptionsPanel {
 //             + "AspectJ compiler.  The Document Outline View will fail to refresh correctly when\n"
 //             + "incremental mode is enabled.  Submit any other bugs at http://eclipse.org/aspectj";
 
+       private static final long serialVersionUID = 5891996016897166802L;
+
        protected static final BuildOptionsPanel INSTANCE = new BuildOptionsPanel();
 
 //     private ButtonGroup compilerMode_buttonGroup = new ButtonGroup();
        private TitledBorder titledBorder1;
-       private Border border3;
-       private Border border4;
+//     private Border border3;
+//     private Border border4;
 //     private TitledBorder titledBorder2;
 //     private Border border5;
        private Border border1;
@@ -55,7 +57,7 @@ public class BuildOptionsPanel extends OptionsPanel {
        private BorderLayout borderLayout8 = new BorderLayout();
        private Box options_box1 = Box.createVerticalBox();
        private BorderLayout borderLayout5 = new BorderLayout();
-       private JTextField workingDir_field = new JTextField();
+//     private JTextField workingDir_field = new JTextField();
        private JPanel jPanel2 = new JPanel();
        private JPanel jPanel1 = new JPanel();
        private JPanel build_panel = new JPanel();
@@ -76,8 +78,8 @@ public class BuildOptionsPanel extends OptionsPanel {
   JCheckBox oneFive_checkBox = new JCheckBox();
   Box options_box = Box.createVerticalBox();
   //JCheckBox incremental_checkBox = new JCheckBox();
-  JCheckBox useJavac_checkBox = new JCheckBox();
-  JCheckBox preprocess_checkBox = new JCheckBox();
+//  JCheckBox useJavac_checkBox = new JCheckBox();
+//  JCheckBox preprocess_checkBox = new JCheckBox();
   JLabel spacer_label1 = new JLabel();
 
        public BuildOptionsPanel() {
@@ -89,10 +91,10 @@ public class BuildOptionsPanel extends OptionsPanel {
 //                     compilerMode_buttonGroup.add(strict_radioButton);
 //                     compilerMode_buttonGroup.add(lenient_radioButton);
 
-                       preprocess_checkBox.setEnabled(false);
-                       useJavac_checkBox.setEnabled(false);
-                       workingDir_field.setEnabled(false);
-                       workingDir_label.setEnabled(false);
+//                     preprocess_checkBox.setEnabled(false);
+//                     useJavac_checkBox.setEnabled(false);
+//                     workingDir_field.setEnabled(false);
+//                     workingDir_label.setEnabled(false);
                } catch (Exception e) {
                        Ajde.getDefault().getErrorHandler().handleError("Could not initialize GUI.", e);
                }
@@ -109,12 +111,12 @@ public class BuildOptionsPanel extends OptionsPanel {
                                Ajde.getDefault().getBuildManager().getBuildOptions().getSourceCompatibilityLevel().equals(CompilerOptions.VERSION_1_4)
                                );
                }
-               preprocess_checkBox.setSelected(
-                       Ajde.getDefault().getBuildManager().getBuildOptions().getPreprocessMode()
-               );
-               useJavac_checkBox.setSelected(
-                       Ajde.getDefault().getBuildManager().getBuildOptions().getUseJavacMode()
-               );
+//             preprocess_checkBox.setSelected(
+//                     Ajde.getDefault().getBuildManager().getBuildOptions().getPreprocessMode()
+//             );
+//             useJavac_checkBox.setSelected(
+//                     Ajde.getDefault().getBuildManager().getBuildOptions().getUseJavacMode()
+//             );
 //             incremental_checkBox.setSelected(
 //                     Ajde.getDefault().getBuildManager().getBuildOptions().getIncrementalMode()
 //             );
@@ -122,9 +124,9 @@ public class BuildOptionsPanel extends OptionsPanel {
                nonStandard_field.setText(
                        Ajde.getDefault().getBuildManager().getBuildOptions().getNonStandardOptions()
                );
-               workingDir_field.setText(
-                       Ajde.getDefault().getBuildManager().getBuildOptions().getWorkingOutputPath()
-               );
+//             workingDir_field.setText(
+//                     Ajde.getDefault().getBuildManager().getBuildOptions().getWorkingOutputPath()
+//             );
 
 //             if (Ajde.getDefault().getBuildManager().getBuildOptions().getStrictSpecMode()) {
 //                     strict_radioButton.setSelected(true);
@@ -139,17 +141,17 @@ public class BuildOptionsPanel extends OptionsPanel {
            if (oneFive_checkBox.isSelected()) {
                AjdeUIManager.getDefault().getBuildOptions().setSourceCompatibilityLevel(CompilerOptions.VERSION_1_5); 
            } else if (assertions_checkBox.isSelected()) {
-               AjdeUIManager.getDefault().getBuildOptions().setSourceOnePointFourMode(true);
+//             AjdeUIManager.getDefault().getBuildOptions().setSourceOnePointFourMode(true);
                AjdeUIManager.getDefault().getBuildOptions().setSourceCompatibilityLevel(CompilerOptions.VERSION_1_4); 
            } else { 
                AjdeUIManager.getDefault().getBuildOptions().setSourceCompatibilityLevel(CompilerOptions.VERSION_1_3); 
            }
-               AjdeUIManager.getDefault().getBuildOptions().setPreprocessMode(
-                       preprocess_checkBox.isSelected()
-               );
-               AjdeUIManager.getDefault().getBuildOptions().setUseJavacMode(
-                       useJavac_checkBox.isSelected()
-               );
+//             AjdeUIManager.getDefault().getBuildOptions().setPreprocessMode(
+//                     preprocess_checkBox.isSelected()
+//             );
+//             AjdeUIManager.getDefault().getBuildOptions().setUseJavacMode(
+//                     useJavac_checkBox.isSelected()
+//             );
 //             AjdeUIManager.getDefault().getBuildOptions().setIncrementalMode(
 //                     incremental_checkBox.isSelected()
 //             );
@@ -157,9 +159,9 @@ public class BuildOptionsPanel extends OptionsPanel {
                AjdeUIManager.getDefault().getBuildOptions().setNonStandardOptions(
                        nonStandard_field.getText()
                );
-               AjdeUIManager.getDefault().getBuildOptions().setWorkingDir(
-                       workingDir_field.getText()
-               );
+//             AjdeUIManager.getDefault().getBuildOptions().setWorkingDir(
+//                     workingDir_field.getText()
+//             );
 
 //             AjdeUIManager.getDefault().getBuildOptions().setStrictSpecMode(strict_radioButton.isSelected());
 //             AjdeUIManager.getDefault().getBuildOptions().setLenientSpecMode(lenient_radioButton.isSelected());
@@ -174,14 +176,12 @@ public class BuildOptionsPanel extends OptionsPanel {
                        new TitledBorder(
                                BorderFactory.createEtchedBorder(Color.white, new Color(156, 156, 158)),
                                "ajc Options");
-               border3 =
-                       BorderFactory.createCompoundBorder(
+               BorderFactory.createCompoundBorder(
                                new TitledBorder(
                                        BorderFactory.createEtchedBorder(Color.white, new Color(156, 156, 158)),
                                        "ajc Options"),
                                BorderFactory.createEmptyBorder(5, 5, 5, 5));
-               border4 =
-                       BorderFactory.createEtchedBorder(Color.white, new Color(156, 156, 158));
+               BorderFactory.createEtchedBorder(Color.white, new Color(156, 156, 158));
 //             titledBorder2 =
 //                     new TitledBorder(
 //                             BorderFactory.createEtchedBorder(Color.white, new Color(156, 156, 158)),
@@ -215,9 +215,9 @@ public class BuildOptionsPanel extends OptionsPanel {
 //             lenient_radioButton.setText(
 //                     "Be lenient in interpreting the Java specification");
 //             lenient_radioButton.setFont(new java.awt.Font("Dialog", 0, 11));
-               workingDir_field.setFont(new java.awt.Font("SansSerif", 0, 11));
-               workingDir_field.setMinimumSize(new Dimension(200, 21));
-               workingDir_field.setPreferredSize(new Dimension(350, 21));
+//             workingDir_field.setFont(new java.awt.Font("SansSerif", 0, 11));
+//             workingDir_field.setMinimumSize(new Dimension(200, 21));
+//             workingDir_field.setPreferredSize(new Dimension(350, 21));
                jPanel2.setLayout(borderLayout3);
                jPanel1.setLayout(borderLayout2);
                build_panel.setLayout(borderLayout4);
@@ -246,23 +246,23 @@ public class BuildOptionsPanel extends OptionsPanel {
 //    incremental_checkBox.setText("Incremental compile");
 //    incremental_checkBox.setToolTipText("Only recompile necessary sources.");
 //    incremental_checkBox.setFont(new java.awt.Font("Dialog", 0, 11));
-    useJavac_checkBox.setText("Use javac to generate .class files");
-    useJavac_checkBox.setFont(new java.awt.Font("Dialog", 0, 11));
-    preprocess_checkBox.setFont(new java.awt.Font("Dialog", 0, 11));
-    preprocess_checkBox.setToolTipText("");
-    preprocess_checkBox.setText("Only preprocess and generate .java source files");
+//    useJavac_checkBox.setText("Use javac to generate .class files");
+//    useJavac_checkBox.setFont(new java.awt.Font("Dialog", 0, 11));
+//    preprocess_checkBox.setFont(new java.awt.Font("Dialog", 0, 11));
+//    preprocess_checkBox.setToolTipText("");
+//    preprocess_checkBox.setText("Only preprocess and generate .java source files");
     spacer_label1.setText("   ");
-    this.add(jPanel3, BorderLayout.NORTH);
-               jPanel2.add(workingDir_label, BorderLayout.CENTER);
-               jPanel2.add(workingDir_field, BorderLayout.EAST);
+//    this.add(jPanel3, BorderLayout.NORTH);
+//             jPanel2.add(workingDir_label, BorderLayout.CENTER);
+//             jPanel2.add(workingDir_field, BorderLayout.EAST);
     compileOptions_panel.add(options_box2, BorderLayout.CENTER);
     //options_box2.add(incrementalNote, null);
     options_box2.add(spacer_label1, null);
     compileOptions_panel.add(options_box, BorderLayout.NORTH);
     options_box.add(assertions_checkBox, null);
     options_box.add(oneFive_checkBox, null); 
-    options_box.add(preprocess_checkBox, null);
-    options_box.add(useJavac_checkBox, null);
+//    options_box.add(preprocess_checkBox, null);
+//    options_box.add(useJavac_checkBox, null);
     //options_box.add(incremental_checkBox, null);
     options_box.add(spacer_label, null);
                fields_box.add(jPanel1, null);
index 12894135787b07ee56c04bfd4762d0751570bb6d..7431d8008d7b002b2949d515fe8a783591ebfe45 100644 (file)
@@ -30,6 +30,7 @@ import org.aspectj.ajde.Ajde;
  */
 class BuildProgressPanel extends JPanel {
 
+       private static final long serialVersionUID = -8045879840621749183L;
        private static final int MAX_VAL = 100;
        //private JDialog dialog = null;
 
index be0ec13764a1ef2c0b5a5b2ca7edf84b5ede120d..84c5207bf8121fd1abc3e72bd028fab632326408 100644 (file)
@@ -28,6 +28,8 @@ import org.aspectj.util.LangUtil;
  */
 public class CompilerMessagesCellRenderer extends JLabel implements ListCellRenderer {
 
+       private static final long serialVersionUID = -4406791252357837712L;
+
        public Component getListCellRendererComponent(
                JList list,
                Object value,
index 4d39dada67ae16602d61e3671de635f723bf5f4e..e9851ce953c1f9e08261ad6b7d5f4debe328bfec 100644 (file)
@@ -30,7 +30,8 @@ import javax.swing.JTextArea;
 import javax.swing.border.Border;
 
 public class ErrorDialog extends JDialog {
-    JPanel top_panel = new JPanel();
+       private static final long serialVersionUID = 5646564514289861666L;
+       JPanel top_panel = new JPanel();
     BorderLayout borderLayout2 = new BorderLayout();
     JPanel button_panel = new JPanel();
     JButton close_button = new JButton();
index 3d973bd24f45bb5e798045c47dd3573c3f0b3768..15d612a2039c640e108005ef9d63ddad193333f5 100644 (file)
@@ -25,7 +25,9 @@ import org.aspectj.ajde.Ajde;
  * @author  Mik Kersten
  */
 public class MultiStructureViewPanel extends JPanel {
-    JSplitPane views_splitPane;
+       private static final long serialVersionUID = -4409192026967597082L;
+       JSplitPane views_splitPane;
     BorderLayout borderLayout1 = new BorderLayout();
 
        public MultiStructureViewPanel(StructureViewPanel topPanel, StructureViewPanel bottomPanel) {
index d05889bc0b38fc8276a57baa0e43705b23f0e7ca..cbfea13b65ed99d6ef025eaca65a4654353a05e3 100644 (file)
@@ -46,7 +46,9 @@ import org.aspectj.bridge.Version;
  */
 public class OptionsFrame extends JFrame {
 
-    // XXX using \n b/c JTextArea.setLineWrap(true) lineates inside words.
+       private static final long serialVersionUID = -859222442871124487L;
+
+       // XXX using \n b/c JTextArea.setLineWrap(true) lineates inside words.
     private static final String ABOUT_TEXT =
         "\nThe AspectJ compiler and core tools are produced by the\n" +
         "AspectJ project.\n\n" +
@@ -70,19 +72,19 @@ public class OptionsFrame extends JFrame {
     private TitledBorder titledBorder1;
     private TitledBorder titledBorder2;
     private TitledBorder titledBorder3;
-    private Border border1;
+//    private Border border1;
     private TitledBorder titledBorder4;
     private TitledBorder titledBorder5;
-    private Border border2;
+//    private Border border2;
     private TitledBorder titledBorder6;
 //    private Box temp_box = Box.createVerticalBox();
-    private Border border3;
+//    private Border border3;
     private TitledBorder titledBorder7;
     private Border border4;
     private TitledBorder titledBorder8;
     private Border border5;
     private TitledBorder titledBorder9;
-    private Border border6;
+//    private Border border6;
     private TitledBorder titledBorder10;
 //    private ButtonGroup views_buttonGroup = new ButtonGroup();
     private Border border7;
@@ -184,18 +186,18 @@ public class OptionsFrame extends JFrame {
         titledBorder1 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158)),"Sorting");
         titledBorder2 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),"Associations (navigeable relations between sturcture nodes)");
         titledBorder3 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158)),"Member Filtering (nodes to exclude from view)");
-        border1 = BorderFactory.createLineBorder(Color.black,2);
+        BorderFactory.createLineBorder(Color.black,2);
         titledBorder4 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),"Compile Options");
         titledBorder5 = new TitledBorder("");
-        border2 = BorderFactory.createLineBorder(Color.black,2);
+        BorderFactory.createLineBorder(Color.black,2);
         titledBorder6 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),"Run Options");
-        border3 = BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158));
+        BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158));
         titledBorder7 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158)),"Granularity (all nodes below selected level will be hidden)");
         border4 = BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158));
         titledBorder8 = new TitledBorder(border4,"Member Visibility");
         border5 = BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158));
         titledBorder9 = new TitledBorder(border5,"Member Modifiers");
-        border6 = BorderFactory.createEmptyBorder();
+        BorderFactory.createEmptyBorder();
         titledBorder10 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),"Structure View Properties");
         border7 = BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158));
         titledBorder11 = new TitledBorder(border7,"Member Kinds");
index e6acc197970bc22a26b3d162a9203a1c4106c5d5..12aa183a5aefded25fd3d7721a77dcf75c0594b6 100644 (file)
@@ -27,8 +27,9 @@ import org.aspectj.ajde.ui.*;
  * @author Mik Kersten
  */
 class PointcutWizard extends JFrame {
-    private BrowserViewPanel typeTreeView = null;
-    private java.util.List signatures = null;
+       private static final long serialVersionUID = -9058319919402871975L;
+//     private BrowserViewPanel typeTreeView = null;
+//    private java.util.List signatures = null;
 
     JPanel jPanel1 = new JPanel();
     JPanel jPanel2 = new JPanel();
@@ -49,10 +50,10 @@ class PointcutWizard extends JFrame {
     JPanel jPanel5 = new JPanel();
 
     public PointcutWizard(java.util.List signatures) {
-        this.signatures = signatures;
//       this.signatures = signatures;
         ArrayList views = new ArrayList();
         views.add(StructureViewProperties.Hierarchy.INHERITANCE);
-        typeTreeView = new BrowserViewPanel(AjdeUIManager.getDefault().getIconRegistry(), views, StructureViewProperties.Hierarchy.INHERITANCE);
+//        typeTreeView = new BrowserViewPanel(AjdeUIManager.getDefault().getIconRegistry(), views, StructureViewProperties.Hierarchy.INHERITANCE);
         
         throw new RuntimeException("unimplemented, can't get the current file");
         //typeTreeView.updateTree(Ajde.getDefault().getEditorManager().getCurrFile());
index f5b3fb555436b9cf19b4d1628084c235a6f59436..b2fc1878b6ee5d57a787b12649f6b340bb173078 100644 (file)
@@ -28,6 +28,7 @@ import org.aspectj.asm.*;
 
 public class SimpleStructureViewToolPanel extends JPanel {
 
+       private static final long serialVersionUID = -7573973278642540506L;
        private StructureView currentView;
        private JButton separator_button = new JButton();
        private boolean hideNonAJEnabled = false;
index b3c318792bfccc2e09868f9a7d42000461f8ef0a..9ba2ae6db9e67a8bf2f4ff35b11ec201c27241f0 100644 (file)
@@ -25,7 +25,9 @@ import org.aspectj.ajde.Ajde;
  */
 class StructureTree extends JTree {
 
-    public static final Font DEFAULT_FONT = new java.awt.Font("Dialog", 0, 11);
+       private static final long serialVersionUID = -5599178058976534562L;
+
+       public static final Font DEFAULT_FONT = new java.awt.Font("Dialog", 0, 11);
 
     private String rootFilePath = null;
 
index 643f92cb32c3a7f300c06a14dfa9493b12d91a4f..7b3459819ce6923848a5f554e7a412e13c350cd8 100644 (file)
@@ -165,7 +165,10 @@ class StructureTreeManager {
     }
 
     private class StructureTreeModel extends DefaultTreeModel implements TreeModel {
-        public StructureTreeModel(TreeNode newRoot) {
+        
+               private static final long serialVersionUID = 1L;
+
+               public StructureTreeModel(TreeNode newRoot) {
             super(newRoot);
         }
 
index acaf8dd4ed769528dcead61c439231b7014fc547..4f7bdb43b6001d8af62ea12efd54e5d298151e64 100644 (file)
@@ -32,9 +32,10 @@ import org.aspectj.asm.IProgramElement;
  */
 public class StructureViewPanel extends JPanel implements StructureViewRenderer {
 
-    protected StructureTreeManager treeManager = new StructureTreeManager();
+       private static final long serialVersionUID = 7549744200612883786L;
+       protected StructureTreeManager treeManager = new StructureTreeManager();
     protected StructureView currentView = null;
-       private java.util.List structureViews = null;
+//     private java.util.List structureViews = null;
 
     protected Border border1;
     protected Border border2;
@@ -50,7 +51,7 @@ public class StructureViewPanel extends JPanel implements StructureViewRenderer
        }
 
        public StructureViewPanel(java.util.List structureViews) {
-               this.structureViews = structureViews;
+//             this.structureViews = structureViews;
 
                for (Iterator it = structureViews.iterator(); it.hasNext(); ) {
                        initView((StructureView)it.next());
index cfa899f11f26cfc0a1540f79cf740947f6a59453..60f73869f3f5a52c879a7f29dfa2a02883827b19 100644 (file)
@@ -27,6 +27,7 @@ import org.aspectj.asm.*;
  */
 public class SwingTreeViewNode extends DefaultMutableTreeNode implements IStructureViewNode {
 
+       private static final long serialVersionUID = 4957761341510335532L;
        private String relationshipName;
        private IProgramElement programElement;
        private AbstractIcon icon;
index 06e3003359c6850b4f754407bed887f3c0e08da8..a24696ad279405e535a9e22337599e17bd0ecf91 100644 (file)
@@ -28,7 +28,9 @@ import org.aspectj.bridge.*;
  */
 class SwingTreeViewNodeRenderer extends DefaultTreeCellRenderer {
 
-    public Component getTreeCellRendererComponent(JTree tree,
+       private static final long serialVersionUID = -4561164526650924465L;
+
+       public Component getTreeCellRendererComponent(JTree tree,
                                                     Object treeNode,
                                                     boolean sel,
                                                     boolean expanded,
index 6ce78720060573a693b38345b0504a858258aa17..a1d5a276f7ab77002b43888caafe2ef4e1cc7436 100644 (file)
@@ -23,7 +23,6 @@ import java.awt.Font;
 import java.awt.event.ActionEvent;
 import java.awt.event.MouseAdapter;
 import java.awt.event.MouseEvent;
-import java.io.File;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Iterator;
@@ -55,13 +54,14 @@ import org.aspectj.asm.IProgramElement;
  */
 public class TreeViewBuildConfigEditor extends JPanel implements BuildConfigEditor {
 
+       private static final long serialVersionUID = 8071799814661969685L;
        private ConfigTreeNode root;
 //     private ConfigTreeNode currNode;
        private BuildConfigModel model = null;
        
     private static java.util.List selectedEntries = new ArrayList();
-    private String configFile = null;
-    private File sourcePath = null;
+//    private String configFile = null;
+//    private File sourcePath = null;
     //private BuildConfigModelBuilder configTreeBuilder = new BuildConfigModelBuilder();
     
     BorderLayout borderLayout1 = new BorderLayout();
@@ -80,8 +80,8 @@ public class TreeViewBuildConfigEditor extends JPanel implements BuildConfigEdit
                 Ajde.getDefault().getErrorHandler().handleError("No structure is selected for editing.");
                 return;
             }
-            this.configFile = configFile;
-            sourcePath = new File(new File(configFile).getParent());
//           this.configFile = configFile;
//           sourcePath = new File(new File(configFile).getParent());
             jbInit();
             jLabel1.setText(" Build configuration: " + configFile);
 
@@ -151,7 +151,9 @@ public class TreeViewBuildConfigEditor extends JPanel implements BuildConfigEdit
     }
 
     private class ConfigTreeNode extends DefaultMutableTreeNode {
-        public JCheckBox checkBox = null;
+       
+               private static final long serialVersionUID = 1L;
+               public JCheckBox checkBox = null;
         public BuildConfigNode modelNode;
 
         public ConfigTreeNode(BuildConfigNode modelNode) {
@@ -213,7 +215,9 @@ public class TreeViewBuildConfigEditor extends JPanel implements BuildConfigEdit
     }
 
     static class ConfigTreeCellRenderer extends DefaultTreeCellRenderer {
-        public Component getTreeCellRendererComponent(JTree tree,
+               private static final long serialVersionUID = -3120665318910899066L;
+
+               public Component getTreeCellRendererComponent(JTree tree,
                                                       Object value,
                                                       boolean sel,
                                                       boolean expanded,
index 9ae4702956b8ac07da5369792ff69f723054de0f..806c231d388a79caa85c0894472cd4ff6e39d7df 100644 (file)
@@ -49,9 +49,10 @@ import org.aspectj.ajde.Ajde;
  * @author Mik Kersten
  */
 public class UpdateConfigurationDialog extends JFrame {
-    private Vector buildConfigFiles;
-    private Vector filesToUpdate;
-    private boolean addToConfiguration;
+       private static final long serialVersionUID = 5885112642841314728L;
+//     private Vector buildConfigFiles;
+//    private Vector filesToUpdate;
+//    private boolean addToConfiguration;
 
     private String message1 = " Project has been updated.";
     private String message2 = " File list below.";
@@ -79,9 +80,9 @@ public class UpdateConfigurationDialog extends JFrame {
 
     public UpdateConfigurationDialog(Vector filesToUpdate, Vector buildConfigFiles, boolean addToConfiguration, Component parentComponent) {
         try {
-            this.buildConfigFiles = buildConfigFiles;
-            this.filesToUpdate = filesToUpdate;
-            this.addToConfiguration = addToConfiguration;
+//            this.buildConfigFiles = buildConfigFiles;
+//            this.filesToUpdate = filesToUpdate;
+//            this.addToConfiguration = addToConfiguration;
 
             updatedFilesList.setListData(filesToUpdate);
             String action = "removed from";
@@ -174,7 +175,9 @@ public class UpdateConfigurationDialog extends JFrame {
 }
 
 class CheckListCellRenderer extends JCheckBox implements ListCellRenderer {
-    public CheckListCellRenderer() {
+       private static final long serialVersionUID = -9183012434083509581L;
+
+       public CheckListCellRenderer() {
         super();
         setOpaque(true);
     }
index feaac5e7249160000c19e7c7ed476447f011e21c..9dfbe6cf89cb11d6e5e61cdfe9f8cb861da25398 100644 (file)
@@ -21,7 +21,7 @@ import junit.framework.TestCase;
 
 public class AjdeTestCase extends TestCase {
 
-       private static final String TEST_DATA_PATH = AjdeTests.testDataPath(null);
+//     private static final String TEST_DATA_PATH = AjdeTests.testDataPath(null);
 
        protected NullIdeManager ideManager = NullIdeManager.getIdeManager();
        protected TestBuildListener testerBuildListener = new TestBuildListener();
index a5f0d5f60b6f298d709644dae5599bb6b2e1f4ac..ce89a6c6a47f13e2a684b6ad77c689f01f2798d0 100644 (file)
@@ -62,7 +62,7 @@ public class AsmRelationshipsTest extends AjdeTestCase {
                                "declare parents: implements Serializable"/*Point"*/);
                
                assertNotNull(dp);
-               List relations = manager.getRelationshipMap().get(dp);
+               /*List relations = */manager.getRelationshipMap().get(dp);
                                
                List rels = AsmManager.getDefault().getRelationshipMap().get(dp);
                assertTrue(rels.size()>0);
index 072596daa308f7cff576bb1a5ad00cf6f8254c03..e0eaa9f3d0b33b061b67f64f5e850757d03096ea 100644 (file)
@@ -48,10 +48,10 @@ public class BuildOptionsTest extends AjdeTestCase {
                assertTrue("character encoding", buildOptions.getCharacterEncoding().equals("mumble"));
        }
        
-       public void testPortingMode() {
-               buildOptions.setPortingMode(true);
-               assertTrue("porting mode", buildOptions.getPortingMode());
-       }
+//     public void testPortingMode() {
+//             buildOptions.setPortingMode(true);
+//             assertTrue("porting mode", buildOptions.getPortingMode());
+//     }
 
        public void testVerboseMode() {
                buildOptions.setVerboseMode(true);
@@ -153,7 +153,7 @@ public class BuildOptionsTest extends AjdeTestCase {
        protected void tearDown() throws Exception {
                super.tearDown();
                buildOptions.setCharacterEncoding("");
-               buildOptions.setPortingMode(true);
+//             buildOptions.setPortingMode(true);
        }
 }
 
index be80a571605ca89e8919c537ada193aa7108e432..db0e37cbdb132729b3b1f10c6f8aafc95f7b8f38 100644 (file)
@@ -12,7 +12,7 @@ package org.aspectj.ajde;
 
 import java.util.Iterator;
 import java.util.List;
-import java.util.Properties;
+//import java.util.Properties;
 import java.io.File;
 
 import org.aspectj.asm.AsmManager;
@@ -58,8 +58,8 @@ public class ExtensionTests extends AjcTestCase {
        public void testInnerClassesInASM() {
                String[] args = new String[] {"InnerClasses.java","-emacssym"};
                CompilationResult result = ajc(baseDir,args);
-               List l = result.getWarningMessages();
-               Properties p = AsmManager.ModelInfo.summarizeModel().getProperties();
+               /*List l = */result.getWarningMessages();
+               /*Properties p = */AsmManager.ModelInfo.summarizeModel().getProperties();
                if (debugTests) System.out.println("Structure Model for InnerClasses.java:");
                walkit(AsmManager.getDefault().getHierarchy().getRoot(),0);
                foundNode = null;
index 8eab9614dfdb83ec9c2c3af9f688d60a30f1ebc3..b95dec1bdd1f39035e5ae3c2329c3622aae55bc4 100644 (file)
  *******************************************************************************/
 package org.aspectj.ajde;
 
-import org.aspectj.asm.AsmManager;
+//import org.aspectj.asm.AsmManager;
 
 /**
  * @author Mik Kersten
  */
 public class GenericsTest extends AjdeTestCase {
     
-    private AsmManager manager = null;
+    //private AsmManager manager = null;
     // TODO-path
-       private static final String CONFIG_FILE_PATH = "../bug-83565/build.lst";
+       //private static final String CONFIG_FILE_PATH = "../bug-83565/build.lst";
  
        public void testBuild() {       
 //         assertTrue("build success", doSynchronousBuild(CONFIG_FILE_PATH));  
@@ -27,7 +27,7 @@ public class GenericsTest extends AjdeTestCase {
        
        protected void setUp() throws Exception {
                super.setUp("examples");
-               manager = AsmManager.getDefault();
+               //manager = AsmManager.getDefault();
        }
     
 }
index f678afae619151d0efebde99c65b1f3270b3694c..55c33dd12d704692756ff340f6c8d345b9892e80 100644 (file)
@@ -36,10 +36,10 @@ public class ReweavableTestCase extends AjdeTestCase {
        public static final String outjarName = "/bin/output.jar";
 
 
-       private static int nonreweavesize_CalculatePI;
-       private static int nonreweavesize_Logger;
-       private static int reweavablesize_CalculatePI;
-       private static int reweavablesize_Logger;
+//     private static int nonreweavesize_CalculatePI;
+//     private static int nonreweavesize_Logger;
+//     private static int reweavablesize_CalculatePI;
+//     private static int reweavablesize_Logger;
                        
        /**
         * Constructor for JarResourceCopyTestCase.
@@ -90,8 +90,8 @@ public class ReweavableTestCase extends AjdeTestCase {
                if (debugTests) System.out.println("CalculatePI.class is of size: "+fCalc.length());
                if (debugTests) System.out.println("Logger.class is of size: "+fLog.length());
                if (debugTests) System.out.println("\n\n\n");
-               nonreweavesize_CalculatePI = (int)fCalc.length();
-               nonreweavesize_Logger = (int)fLog.length();
+               /*nonreweavesize_CalculatePI = (int)*/fCalc.length();
+               /*nonreweavesize_Logger = (int)*/fLog.length();
        }
 
 
@@ -134,8 +134,8 @@ public class ReweavableTestCase extends AjdeTestCase {
 //             assertTrue("Reweavable version should be larger than non-reweavable version of Logger",
 //               fLog.length()>nonreweavesize_Logger);
 
-               reweavablesize_CalculatePI = (int)fCalc.length();
-               reweavablesize_Logger = (int)fLog.length();
+               /*reweavablesize_CalculatePI = (int)*/fCalc.length();
+               /*reweavablesize_Logger = (int)*/fLog.length();
                
                if (debugTests) System.out.println("\n\n\n");
        }
index e651813034726d6ec603e1fc1c0d1da15a454c51..826c9a6ee5e94b7a47751d1311aaeb63e00aa9f5 100644 (file)
@@ -201,7 +201,7 @@ public class ShowWeaveMessagesTestCase extends AjdeTestCase {
                aspectpath.add(openFile("AspectAdvice.jar"));
                ideManager.getProjectProperties().setAspectPath(aspectpath);
                assertTrue("Build failed", doSynchronousBuild("Empty.lst"));
-        List l = ideManager.getCompilationSourceLineTasks();
+        /*List l = */ideManager.getCompilationSourceLineTasks();
         verifyWeavingMessages("advice.binary",true);
        }
        
@@ -214,7 +214,7 @@ public class ShowWeaveMessagesTestCase extends AjdeTestCase {
                aspectpath.add(openFile("AspectITD.jar"));
                ideManager.getProjectProperties().setAspectPath(aspectpath);
                assertTrue("Build failed", doSynchronousBuild("Empty.lst"));
-               List l = ideManager.getCompilationSourceLineTasks();
+               /*List l = */ideManager.getCompilationSourceLineTasks();
                verifyWeavingMessages("itd",false);
        }
 
@@ -260,7 +260,7 @@ public class ShowWeaveMessagesTestCase extends AjdeTestCase {
                aspectpath.add(openFile("AspectAdvice_nodebug.jar"));
                ideManager.getProjectProperties().setAspectPath(aspectpath);
                assertTrue("Build failed", doSynchronousBuild("Empty.lst"));
-               List l = ideManager.getCompilationSourceLineTasks();
+               /*List l = */ideManager.getCompilationSourceLineTasks();
                verifyWeavingMessages("advice.binary.nodebug",true);
        }
        
@@ -273,7 +273,7 @@ public class ShowWeaveMessagesTestCase extends AjdeTestCase {
                aspectpath.add(openFile("AspectITD_nodebug.jar"));
                ideManager.getProjectProperties().setAspectPath(aspectpath);
                assertTrue("Build failed", doSynchronousBuild("Empty.lst"));
-               List l = ideManager.getCompilationSourceLineTasks();
+               /*List l = */ideManager.getCompilationSourceLineTasks();
                verifyWeavingMessages("itd.nodebug",true);
        }
        
index 493bc80e6947e24264b53ab824e30dd98fd91904..aca06e87e9bf8be7427bcea4785d7bb89360b53c 100644 (file)
@@ -118,51 +118,51 @@ public class LstBuildConfigManagerTest extends AjdeTestCase {
 //     private static final String BAD_PATHS_FILE = "C:/Dev/aspectj/tests/ajde/examples/figures-coverage/test-error.lst";
 //     private static final String INCLUDES_FILE = "C:/Dev/aspectj/tests/ajde/examples/spacewar/spacewar/demo.lst";
 
-       private static final String WILDCARDS_FILE_CONTENTS;
-       private static final String BAD_PATHS_FILE_CONTENTS;
-       private static final String INCLUDES_FILE_CONTENTS;
+//     private static final String WILDCARDS_FILE_CONTENTS;
+//     private static final String BAD_PATHS_FILE_CONTENTS;
+//     private static final String INCLUDES_FILE_CONTENTS;
        
        static {
-               WILDCARDS_FILE_CONTENTS = 
-                       "figures/Debug.java;" +
-                       "figures/Figure.java;" +
-                       "figures/FigureElement.java;" +
-                       "figures/Main.java;" +
-                       "figures/composites/Line.java;" +
-                       "figures/composites/Square.java;" +
-                       "figures/primitives/planar/Point.java;" +
-                       "figures/primitives/solid/SolidPoint.java;";
-
-               BAD_PATHS_FILE_CONTENTS = WILDCARDS_FILE_CONTENTS;
-
-        // TODO-path
-               INCLUDES_FILE_CONTENTS =
-                       "../coordination/Condition.java;" +
-                       "../coordination/CoordinationAction.java;" +
-                       "../coordination/Coordinator.java;" +
-                       "../coordination/Exclusion.java;" +
-                       "../coordination/MethodState.java;" +
-                       "../coordination/Mutex.java;" +
-                       "../coordination/Selfex.java;" +
-                       "../coordination/TimeoutException.java;" +
-                       "Bullet.java;" +
-                       "Display.java;" +
-                       "Display1.java;" +
-                       "Display2.java;" +
-                       "EnergyPacket.java;" +
-                       "EnergyPacketProducer.java;" +
-                       "EnsureShipIsAlive.java;" +
-                       "Game.java;" +
-                       "GameSynchronization.java;" +
-                       "Pilot.java;" +
-                       "Player.java;" +
-                       "Registry.java;" +
-                       "RegistrySynchronization.java;" +
-                       "Robot.java;" +
-                       "SWFrame.java;" +
-                       "Ship.java;" +
-                       "SpaceObject.java;" +
-                       "Timer.java;";
+//             WILDCARDS_FILE_CONTENTS = 
+//                     "figures/Debug.java;" +
+//                     "figures/Figure.java;" +
+//                     "figures/FigureElement.java;" +
+//                     "figures/Main.java;" +
+//                     "figures/composites/Line.java;" +
+//                     "figures/composites/Square.java;" +
+//                     "figures/primitives/planar/Point.java;" +
+//                     "figures/primitives/solid/SolidPoint.java;";
+
+//             BAD_PATHS_FILE_CONTENTS = WILDCARDS_FILE_CONTENTS;
+//
+//        // TODO-path
+//             INCLUDES_FILE_CONTENTS =
+//                     "../coordination/Condition.java;" +
+//                     "../coordination/CoordinationAction.java;" +
+//                     "../coordination/Coordinator.java;" +
+//                     "../coordination/Exclusion.java;" +
+//                     "../coordination/MethodState.java;" +
+//                     "../coordination/Mutex.java;" +
+//                     "../coordination/Selfex.java;" +
+//                     "../coordination/TimeoutException.java;" +
+//                     "Bullet.java;" +
+//                     "Display.java;" +
+//                     "Display1.java;" +
+//                     "Display2.java;" +
+//                     "EnergyPacket.java;" +
+//                     "EnergyPacketProducer.java;" +
+//                     "EnsureShipIsAlive.java;" +
+//                     "Game.java;" +
+//                     "GameSynchronization.java;" +
+//                     "Pilot.java;" +
+//                     "Player.java;" +
+//                     "Registry.java;" +
+//                     "RegistrySynchronization.java;" +
+//                     "Robot.java;" +
+//                     "SWFrame.java;" +
+//                     "Ship.java;" +
+//                     "SpaceObject.java;" +
+//                     "Timer.java;";
        }
 }