~ubuntu-branches/ubuntu/utopic/aspectj/utopic

« back to all changes in this revision

Viewing changes to org.aspectj/modules/ajde/src/org/aspectj/ajde/ui/swing/BuildProgressPanel.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch, Michael Koch, Thomas Girard, Mark Howard
  • Date: 2008-01-05 23:31:47 UTC
  • mfrom: (1.1.2 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080105233147-r425rd8nymruj6fk
Tags: 1.5.4-1
[ Michael Koch ]
* New upstream version. Closes: #459363
* Updated Standards-Version to 3.7.3.
* Added myself to Uploaders.

[ Thomas Girard ]
* Add Homepage: control field, and convert XS-Vcs-* to Vcs-*.

[ Mark Howard ]
* debian/watch: added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 * http://www.eclipse.org/legal/epl-v10.html 
9
9
 *  
10
10
 * Contributors: 
11
 
 *     Xerox/PARC     initial implementation 
 
11
 *     Xerox/PARC     initial implementation
 
12
 *     Helen Hawkins  Converted to new interface (bug 148190)  
12
13
 * ******************************************************************/
13
14
 
14
15
 
23
24
import javax.swing.JPanel;
24
25
import javax.swing.JProgressBar;
25
26
 
26
 
import org.aspectj.ajde.Ajde;
27
 
 
28
27
/**
29
28
 * @author  Mik Kersten
30
29
 */
31
 
class BuildProgressPanel extends JPanel {
 
30
public class BuildProgressPanel extends JPanel {
32
31
 
33
 
        private static final long serialVersionUID = -8045879840621749183L;
 
32
        //private static final long serialVersionUID = -8045879840621749183L;
34
33
        private static final int MAX_VAL = 100;
35
34
        //private JDialog dialog = null;
36
35
 
44
43
    JPanel jPanel1 = new JPanel();
45
44
    JProgressBar compile_progressBar = new JProgressBar();
46
45
 
 
46
    private boolean buildIsCancelled = false;
 
47
        
47
48
        /**
48
49
         * @param   maxVal          the value to which value to which the progress bar will
49
50
         *                          count up to (in seconds)
131
132
        }
132
133
 
133
134
        void cancel_button_actionPerformed(ActionEvent e) {
134
 
                Ajde.getDefault().getBuildManager().abortBuild();
 
135
                buildIsCancelled = true;
 
136
        }
 
137
        
 
138
        public boolean isCancelRequested() {
 
139
                return buildIsCancelled;
135
140
        }
136
141
}