Revision 1328

View differences:

org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.main/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2
    <modelVersion>4.0.0</modelVersion>
3
    <artifactId>org.gvsig.tools.main</artifactId>
4
    <packaging>jar</packaging>
5
    <name>org.gvsig.tools.main</name>
6
    <parent>
7
        <groupId>org.gvsig</groupId>
8
        <artifactId>org.gvsig.tools</artifactId>
9
        <version>3.0.70</version>
10
    </parent>
11
    <dependencies>
12
        <dependency>
13
            <groupId>org.gvsig</groupId>
14
            <artifactId>org.gvsig.tools.lib</artifactId>
15
        </dependency>
16
        <dependency>
17
            <groupId>org.gvsig</groupId>
18
            <artifactId>org.gvsig.tools.swing.api</artifactId>
19
        </dependency>
20
       <dependency>
21
            <groupId>org.gvsig</groupId>
22
            <artifactId>org.gvsig.tools.swing.impl</artifactId>
23
            <scope>runtime</scope>
24
        </dependency>
25
   </dependencies>
26
</project>
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.main/src/main/resources/log4j.xml
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!--
3

  
4
    gvSIG. Desktop Geographic Information System.
5

  
6
    Copyright (C) 2007-2013 gvSIG Association.
7

  
8
    This program is free software; you can redistribute it and/or
9
    modify it under the terms of the GNU General Public License
10
    as published by the Free Software Foundation; either version 2
11
    of the License, or (at your option) any later version.
12

  
13
    This program is distributed in the hope that it will be useful,
14
    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
    GNU General Public License for more details.
17

  
18
    You should have received a copy of the GNU General Public License
19
    along with this program; if not, write to the Free Software
20
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
    MA  02110-1301, USA.
22

  
23
    For any additional information, do not hesitate to contact us
24
    at info AT gvsig.com, or visit our website www.gvsig.com.
25

  
26
-->
27
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
28

  
29
<!-- 
30
Log4J configuration file for unit tests execution.
31
 -->
32
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
33

  
34
	<!-- Appender configuration to show logging messages through the console -->
35
	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
36
		<layout class="org.apache.log4j.PatternLayout">
37
			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
38
		</layout>
39
	</appender>
40

  
41
	<!-- 
42
	Activate logging messages of DEBUG level of higher only for the
43
	org.gvsig.tools packages.
44
	You can put full classes names or packages instead, to configure
45
	logging for all the classes and subpackages of the package.
46
	-->
47
	<category name="org.gvsig.tools">
48
		<priority value="DEBUG" />
49
	</category>
50

  
51
	<!-- 
52
	By default, show only logging messages of INFO level or higher, 
53
	through the previously configured CONSOLE appender. 
54
	-->
55
	<root>
56
		<priority value="INFO" />
57
		<appender-ref ref="CONSOLE" />
58
	</root>
59
</log4j:configuration>
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.main/src/main/java/org/gvsig/tools/main/MainAction.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
/*
25
 * AUTHORS (In addition to CIT):
26
 * 2010 {}  {{Task}}
27
 */
28
package org.gvsig.tools.main;
29

  
30
import java.awt.event.ActionEvent;
31

  
32
import javax.swing.AbstractAction;
33
import javax.swing.Icon;
34
import javax.swing.JComponent;
35
import javax.swing.JTabbedPane;
36

  
37
/**
38
 * @author 2010- C?sar Ordi?ana - gvSIG team
39
 */
40
public abstract class MainAction extends AbstractAction {
41

  
42
    private static final long serialVersionUID = 7286136693329716214L;
43
    private final JTabbedPane tabbedPane;
44

  
45
    /**
46
     * @see AbstractAction#AbstractAction()
47
     */
48
    public MainAction(JTabbedPane tabbedPane) {
49
        super(); 
50
        this.tabbedPane = tabbedPane;
51
    }
52

  
53
    /**
54
     * @see AbstractAction#AbstractAction(String)
55
     */
56
    public MainAction(String name, JTabbedPane tabbedPane) {
57
        super(name);
58
        this.tabbedPane = tabbedPane;
59
    }
60

  
61
    /**
62
     * @see AbstractAction#AbstractAction(String, Icon)
63
     */
64
    public MainAction(String name, Icon icon, JTabbedPane tabbedPane) {
65
        super(name, icon);
66
        this.tabbedPane = tabbedPane;
67
    }
68

  
69
    public void actionPerformed(ActionEvent e) {
70
        String title = getComponentTitle();
71
        int index = tabbedPane.indexOfTab(title);
72
        if (index <= -1) {
73
            tabbedPane.addTab(title, createComponent());
74
            index = tabbedPane.indexOfTab(title);
75
        }
76
        tabbedPane.setSelectedIndex(index);
77
    }
78

  
79
    protected abstract JComponent createComponent();
80

  
81
    protected abstract String getComponentTitle();
82

  
83
}
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.main/src/main/java/org/gvsig/tools/main/Main.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.tools.main;
25

  
26
import java.awt.BorderLayout;
27
import java.awt.Dimension;
28
import java.awt.event.ActionEvent;
29
import java.awt.event.ActionListener;
30

  
31
import javax.swing.JButton;
32
import javax.swing.JFrame;
33
import javax.swing.JMenu;
34
import javax.swing.JMenuBar;
35
import javax.swing.JMenuItem;
36
import javax.swing.JTabbedPane;
37
import javax.swing.JToolBar;
38
import javax.swing.WindowConstants;
39

  
40
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer;
41
import org.gvsig.tools.main.taskstatus.JTaskStatusAction;
42
import org.gvsig.tools.main.usability.UsabilityAction;
43
import org.gvsig.tools.main.window.ModalAction;
44

  
45
/**
46
 * @author 2010- C?sar Ordi?ana - gvSIG team
47
 */
48
public class Main {
49

  
50
    private JTabbedPane tabbedPane;
51
    private JMenuBar menuBar;
52
    private JToolBar toolBar; 
53

  
54
    public static void main(String args[]) {
55
        new DefaultLibrariesInitializer().fullInitialize();
56
        Main main = new Main();
57
        main.show();
58
    }
59

  
60
    public void show() {
61

  
62
        final JFrame frame = new JFrame("Tools swing components test app");
63
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
64

  
65
        // Add a tabbed pane as a content pane
66
        tabbedPane = new JTabbedPane();
67
        tabbedPane.setTabPlacement(JTabbedPane.BOTTOM);
68
        frame.getContentPane().add(tabbedPane);
69

  
70
        // Create application actions
71
        MainAction[] actions = createActions();
72

  
73
        // Create the menu bar.
74
        menuBar = new JMenuBar();
75

  
76
        // Build the menu.
77
        JMenu menuFile = new JMenu("File");
78
        JMenuItem menuItemExit = new JMenuItem("Exit");
79
        menuItemExit.addActionListener(new ActionListener() {
80

  
81
            public void actionPerformed(ActionEvent e) {
82
                frame.dispose();
83
                System.exit(0);
84
            }
85
        });
86
        menuFile.add(menuItemExit);
87
        menuBar.add(menuFile);
88

  
89
        // Add all actions to the menu bar
90
        JMenu menuDemo = new JMenu("Tools components");
91
        for (int i = 0; i < actions.length; i++) {
92
            menuDemo.add(new JMenuItem(actions[i]));
93
        }
94
        menuBar.add(menuDemo);
95

  
96
        // Build the toolbar
97
        toolBar = new JToolBar("Main toolbar");
98

  
99
        // Add all actions to the toolbar
100
        for (int i = 0; i < actions.length; i++) {
101
            toolBar.add(new JButton(actions[i]));
102
        }
103

  
104
        frame.setPreferredSize(new Dimension(800, 600));
105

  
106
        frame.setJMenuBar(menuBar);
107
        frame.add(toolBar, BorderLayout.PAGE_START);
108

  
109
        // Display the window.
110
        frame.pack();
111
        frame.setVisible(true);
112
    }
113

  
114
    private MainAction[] createActions() {
115
        return new MainAction[] { 
116
            new UsabilityAction(tabbedPane),
117
            new JTaskStatusAction(tabbedPane),
118
            new ModalAction(tabbedPane)
119
        };
120
    }
121

  
122
}
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.main/src/main/java/org/gvsig/tools/main/usability/UsabilityAction.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
/*
25
 * AUTHORS (In addition to CIT):
26
 * 2010 {}  {{Task}}
27
 */
28
package org.gvsig.tools.main.usability;
29

  
30
import java.awt.Component;
31

  
32
import javax.swing.BoxLayout;
33
import javax.swing.JButton;
34
import javax.swing.JComponent;
35
import javax.swing.JPanel;
36
import javax.swing.JSpinner;
37
import javax.swing.JTabbedPane;
38
import javax.swing.JTextArea;
39

  
40
import org.gvsig.tools.dataTypes.DataTypes;
41
import org.gvsig.tools.main.MainAction;
42
import org.gvsig.tools.swing.api.ToolsSwingLocator;
43
import org.gvsig.tools.swing.api.usability.UsabilitySwingManager;
44

  
45
/**
46
 * Shows the panel of usability components.
47
 * 
48
 * @author 2010- C?sar Ordi?ana - gvSIG team 
49
 */
50
public class UsabilityAction extends MainAction {
51

  
52
    private static final long serialVersionUID = 6471916708466720365L;
53

  
54
    private static final UsabilitySwingManager manager =
55
        ToolsSwingLocator.getUsabilitySwingManager();
56

  
57
    /**
58
     * @see MainAction#MainAction(JTabbedPane)
59
     */
60
    public UsabilityAction(JTabbedPane tabbedPane) {
61
        super("Usability", tabbedPane);
62
        putValue(SHORT_DESCRIPTION, "Usability components");
63
    }
64

  
65
    @Override
66
    protected JComponent createComponent() {
67
        JTabbedPane tabbedPane = new JTabbedPane();
68
        tabbedPane.setTabPlacement(JTabbedPane.RIGHT);
69

  
70
        tabbedPane.addTab("JButton", createJButtonComponent());
71
        tabbedPane.addTab("JTextArea", createJTextAreaComponent());
72
        tabbedPane.addTab("JNullSpinner", createJNullSpinnerComponent());
73
        return tabbedPane;
74
    }
75

  
76
    @Override
77
    protected String getComponentTitle() {
78
        return "Usability";
79
    }
80

  
81
    private Component createJButtonComponent() {
82
        // Create the container panel
83
        JPanel panel = new JPanel();
84
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
85
        // panel.setLayout(new GridLayout(18, 1));
86
        // panel.setLayout(new );
87
        JButton button = manager.createJButton("+");
88
        panel.add(button); 
89
        button = manager.createJButton("-");
90
        panel.add(button);
91
        button = manager.createJToolButton("+");
92
        panel.add(button); 
93
        button = manager.createJToolButton("-");
94
        panel.add(button);
95
        // Create buttons with different sizes
96
        StringBuffer text = new StringBuffer("012");
97
        for (int i = 4; i < 22; i++) {
98
            text.append(String.valueOf(i % 10));
99
            button = manager.createJButton(text.toString());
100
            panel.add(button);
101
        }
102

  
103
        return panel;
104
    }
105

  
106
    private Component createJTextAreaComponent() {
107
        // Create the container panel
108
        JPanel panel = new JPanel();
109
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
110
        // panel.setLayout(new GridLayout(18, 1));
111
        // panel.setLayout(new );
112
        JTextArea ta = manager.createJTextArea("");       
113
        ta = manager.createJTextArea("test");
114
        panel.add(ta); 
115
        ta = manager.createJTextArea("test longer");
116
        panel.add(ta);
117
        ta = manager.createJTextArea("test much longer");
118
        panel.add(ta); 
119
        ta = manager.createJTextArea("test");
120
        panel.add(ta); 
121
        ta = manager.createJTextArea("test size = 150", 150);
122
        panel.add(ta); 
123
        ta = manager.createJTextArea("test too long", -1);
124
        panel.add(ta);
125
        // Create buttons with different sizes
126
        StringBuffer text = new StringBuffer("012");
127
        for (int i = 4; i < 22; i++) {
128
            text.append(String.valueOf(i % 10));
129
            ta = manager.createJTextArea(text.toString());
130
            panel.add(ta);
131
        }
132
   
133
        
134
        return panel;
135
    }
136

  
137
    private Component createJNullSpinnerComponent() {
138
        // Create the container panel
139
        JPanel panel = new JPanel();
140
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
141
        // panel.setLayout(new GridLayout(18, 1));
142
        // panel.setLayout(new );
143
        JSpinner spinner = manager.createJNullSpinner(DataTypes.FLOAT, "1.05", -1);
144
        panel.add(spinner);
145
        // Create buttons with different sizes
146
        StringBuffer text = new StringBuffer("01287.");
147
        for (int i = 4; i < 22; i++) {
148
            text.append(String.valueOf(i % 10));
149
            spinner = manager.createJNullSpinner(DataTypes.FLOAT, text.toString(), -1);
150
            panel.add(spinner);
151
        }
152

  
153
        return panel;
154
    }
155

  
156
}
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.main/src/main/java/org/gvsig/tools/main/taskstatus/JTaskStatusAction.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.tools.main.taskstatus;
25

  
26
import java.awt.Color;
27
import java.awt.FlowLayout;
28

  
29
import javax.swing.JComponent;
30
import javax.swing.JPanel;
31
import javax.swing.JTabbedPane;
32

  
33
import org.gvsig.tools.main.MainAction;
34
import org.gvsig.tools.swing.api.ToolsSwingLocator;
35
import org.gvsig.tools.swing.api.task.JTaskStatus;
36
import org.gvsig.tools.swing.api.task.JTasksStatus;
37
import org.gvsig.tools.swing.api.task.TaskStatusSwingManager;
38
import org.gvsig.tools.task.AbstractMonitorableTask;
39

  
40
public class JTaskStatusAction extends MainAction {
41

  
42
	/**
43
	 * 
44
	 */
45
	private static final long serialVersionUID = -5408828606365712614L;
46

  
47
	public JTaskStatusAction(JTabbedPane tabbedPane) {
48
		super("Task status", tabbedPane);
49
        putValue(SHORT_DESCRIPTION, "Task status");
50
	}
51

  
52
	private class MiTask extends AbstractMonitorableTask {
53
		
54
		private int max;
55
		private int sleepInterval;
56
		
57
		public MiTask(String tittle, int max, int sleepInterval) {
58
			super(tittle);
59
			this.max = max;
60
			this.sleepInterval = sleepInterval;
61
		}
62
		public MiTask(String tittle, int max) {
63
			this(tittle, max, 100);
64
		}
65
		public void run() {
66
			this.taskStatus.setRangeOfValues(0, this.max);
67
			for(int i=0; i<this.max; i++ ) {
68
				this.taskStatus.setCurValue(i);
69
				try {
70
					Thread.sleep(sleepInterval);
71
				} catch (InterruptedException e) {
72
					// Ignore
73
				}
74
				if( this.taskStatus.isCancellationRequested() ) {
75
					this.taskStatus.cancel();
76
					break;
77
				}
78
			}
79
			if( this.taskStatus.isRunning() ) {
80
				this.taskStatus.terminate();
81
			}
82
		}
83
	}
84
	
85
	protected JComponent createComponent() {
86
		TaskStatusSwingManager manager = ToolsSwingLocator.getTaskStatusSwingManager();
87
		JPanel panel = new JPanel();
88
		panel.setLayout( new FlowLayout());
89
		JTasksStatus tasks = manager.createJTasksStatus();
90
		tasks.setBackground(Color.BLUE.brighter());
91
		panel.add( tasks );
92
		JTaskStatus taskStatusPanel = manager.createJTaskStatus();
93
		panel.add( taskStatusPanel );
94
		
95
		MiTask task1 = new MiTask("Task1",100);
96
		task1.start();
97
		MiTask task2 = new MiTask("Task2",300);
98
		task2.start();
99
		MiTask task3 = new MiTask("Task3",1000);
100
		task3.start();
101
		MiTask task4 = new MiTask("Task4",50,5000);
102
		task4.start();
103

  
104
		taskStatusPanel.bind(task1.getTaskStatus());
105
		return panel;
106
	}
107

  
108
	protected String getComponentTitle() {
109
		return "Task status";
110
	}
111

  
112
}
0 113

  
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.main/src/main/java/org/gvsig/tools/main/window/ModalAction.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
/*
25
 * AUTHORS (In addition to CIT):
26
 * 2010 {}  {{Task}}
27
 */
28
package org.gvsig.tools.main.window;
29

  
30
import java.awt.Dimension;
31
import java.awt.FlowLayout;
32
import java.awt.event.ActionEvent;
33
import java.beans.PropertyChangeListener;
34

  
35
import javax.swing.Action;
36
import javax.swing.JButton;
37
import javax.swing.JComponent;
38
import javax.swing.JPanel;
39
import javax.swing.JTabbedPane;
40
import javax.swing.JTextArea;
41
import javax.swing.JTextField;
42

  
43
import org.gvsig.tools.main.MainAction;
44
import org.gvsig.tools.swing.api.ToolsSwingLocator;
45
import org.gvsig.tools.swing.api.windowmanager.WindowManager;
46

  
47
/**
48
 * Shows the panel of usability components.
49
 * 
50
 * @author 2010- C?sar Ordi?ana - gvSIG team 
51
 */
52
public class ModalAction extends MainAction {
53

  
54

  
55
    private static final WindowManager manager =
56
        ToolsSwingLocator.getWindowManager();
57

  
58
    /**
59
     * @see MainAction#MainAction(JTabbedPane)
60
     */
61
    public ModalAction(JTabbedPane tabbedPane) {
62
        super("Modal", tabbedPane);
63
        putValue(SHORT_DESCRIPTION, "Modal components");
64
    }
65

  
66
    @Override
67
    protected JComponent createComponent() {
68
        JPanel panel = new JPanel();
69
        panel.setLayout(new FlowLayout());
70
        JButton button = new JButton(new Action() {
71
			
72
			public void actionPerformed(ActionEvent arg0) {
73
				JTextField jtext = new JTextField();
74
				jtext.setPreferredSize(new Dimension(300, 30));
75
				
76
				JPanel auxpanel = new JPanel();
77
				auxpanel.add(jtext);
78
				WindowManager wm = ToolsSwingLocator.getWindowManager();
79
				wm.showWindow(auxpanel, "HOLA", WindowManager.MODE.DIALOG);
80
				System.out.println("Value = "+jtext.getText());
81
			}
82
			
83
			public void setEnabled(boolean b) {
84
				// TODO Auto-generated method stub
85
				
86
			}
87
			
88
			public void removePropertyChangeListener(PropertyChangeListener listener) {
89
				// TODO Auto-generated method stub
90
				
91
			}
92
			
93
			public void putValue(String key, Object value) {
94
				// TODO Auto-generated method stub
95
				
96
			}
97
			
98
			public boolean isEnabled() {
99
				return true;
100
			}
101
			
102
			public Object getValue(String key) {
103
				// TODO Auto-generated method stub
104
				return null;
105
			}
106
			
107
			public void addPropertyChangeListener(PropertyChangeListener listener) {
108
				// TODO Auto-generated method stub
109
				
110
			}
111
		});
112
        button.setText("Show modal window");
113
        panel.add(button);
114

  
115
        return panel;
116
    }
117

  
118
    @Override
119
    protected String getComponentTitle() {
120
        return "Modal";
121
    }
122

  
123
}
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.main/src/main/java/org/gvsig/tools/main/README.txt
1
====
2
    gvSIG. Desktop Geographic Information System.
3

  
4
    Copyright (C) 2007-2013 gvSIG Association.
5

  
6
    This program is free software; you can redistribute it and/or
7
    modify it under the terms of the GNU General Public License
8
    as published by the Free Software Foundation; either version 2
9
    of the License, or (at your option) any later version.
10

  
11
    This program is distributed in the hope that it will be useful,
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
    GNU General Public License for more details.
15

  
16
    You should have received a copy of the GNU General Public License
17
    along with this program; if not, write to the Free Software
18
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
    MA  02110-1301, USA.
20

  
21
    For any additional information, do not hesitate to contact us
22
    at info AT gvsig.com, or visit our website www.gvsig.com.
23
====
24

  
25
To add a new tab to the application, perform the following steps:
26

  
27
- Create a new class extending the MainAction class, implementing the methods:
28

  
29
  - createComponent(): create your demo panel
30
  
31
  - getComponentTitle(): return the name of the panel
32
  
33
- Add your new action class to the list of actions in the Main.createActions()
34
  method. 
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.main/src/test/java/org/gvsig/tools/main/AppTest.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.tools.main;
25

  
26
import junit.framework.Test;
27
import junit.framework.TestCase;
28
import junit.framework.TestSuite;
29

  
30
/**
31
 * Unit test for simple App.
32
 */
33
public class AppTest extends TestCase {
34

  
35
    /**
36
     * @return the suite of tests being tested
37
     */
38
    public static Test suite() {
39
        return new TestSuite(AppTest.class);
40
    }
41

  
42
    /**
43
     * Create the test case
44
     * 
45
     * @param testName
46
     *            name of the test case
47
     */
48
    public AppTest(String testName) {
49
        super(testName);
50
    }
51

  
52
    /**
53
     * Rigourous Test :-)
54
     */
55
    public void testApp() {
56
        assertTrue(true);
57
    }
58
}
0 59

  
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.lib/pom.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2

  
3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4

  
5
    <modelVersion>4.0.0</modelVersion>
6
    <artifactId>org.gvsig.tools.lib</artifactId>
7
    <packaging>jar</packaging>
8
    <name>org.gvsig.tools.lib</name>
9
    <description>Tools related to application framework architecture
10
	and implementations of design patterns</description>
11
    <parent>
12
        <groupId>org.gvsig</groupId>
13
        <artifactId>org.gvsig.tools</artifactId>
14
        <version>3.0.70</version>
15
    </parent>
16
    <dependencies>
17
            <dependency>
18
                <groupId>org.apache.commons</groupId>
19
                <artifactId>commons-lang3</artifactId>
20
            <scope>compile</scope>
21
            </dependency>
22

  
23
        <dependency>
24
            <groupId>easymock</groupId>
25
            <artifactId>easymock</artifactId>
26
            <scope>test</scope>
27
        </dependency>
28
        <dependency>
29
            <groupId>net.sf.kxml</groupId>
30
            <artifactId>kxml2</artifactId>
31
        </dependency>
32
        <dependency>
33
            <groupId>commons-io</groupId>
34
            <artifactId>commons-io</artifactId>
35
        </dependency>
36
    </dependencies>
37
    <build>
38
        <plugins>
39

  
40
            <plugin>
41
                <groupId>org.apache.maven.plugins</groupId>
42
                <artifactId>maven-jar-plugin</artifactId>
43
                <configuration>
44
                </configuration>
45
                <executions>
46
                    <!-- Generates a jar file only with the test classes -->
47
                    <execution>
48
                        <goals>
49
                            <goal>test-jar</goal>
50
                        </goals>
51
                    </execution>
52
                </executions>
53
            </plugin>
54
            <plugin>
55
                <groupId>org.codehaus.mojo</groupId>
56
                <artifactId>animal-sniffer-maven-plugin</artifactId>
57
                <executions>
58
                    <execution>
59
                        <id>check-java-api</id>
60
                        <phase>test</phase>
61
                        <goals>
62
                            <goal>check</goal>
63
                        </goals>
64
                        <configuration>
65
                            <signature>
66
                                <groupId>org.codehaus.mojo.signature</groupId>
67
                                <artifactId>java15</artifactId>
68
                                <version>1.0</version>
69
                            </signature>
70
                        </configuration>
71
                    </execution>
72
                </executions>
73
            </plugin>
74
        </plugins>
75
    </build>
76
</project>
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.lib/README.txt
1
====
2
    gvSIG. Desktop Geographic Information System.
3

  
4
    Copyright (C) 2007-2013 gvSIG Association.
5

  
6
    This program is free software; you can redistribute it and/or
7
    modify it under the terms of the GNU General Public License
8
    as published by the Free Software Foundation; either version 2
9
    of the License, or (at your option) any later version.
10

  
11
    This program is distributed in the hope that it will be useful,
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
    GNU General Public License for more details.
15

  
16
    You should have received a copy of the GNU General Public License
17
    along with this program; if not, write to the Free Software
18
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
    MA  02110-1301, USA.
20

  
21
    For any additional information, do not hesitate to contact us
22
    at info AT gvsig.com, or visit our website www.gvsig.com.
23
====
24

  
25
The project structure of this project is the following:
26

  
27
Project
28
|-pom.xml:   		Maven 2 configuration file.
29
`-src
30
  |-main:    		Project source code, resources and configuration
31
  | |-java:  		Java source code
32
  | |-resources:	Resources needed by the code (resource bundles, images, etc.)   
33
  | `-javadoc:		Javadoc common resources	
34
  `-test:    		Unit tests source code, resources and configuration
35
    |-java:  		Unit tests java source code
36
    `-resources:	Resources needed by the test code (resource bundles, images, etc.)   
37

  
38
Look at the main folders for a README.txt file with more information on the 
39
contents of each folder.
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.lib/src/main/java/org/gvsig/installer/lib/api/Version.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.installer.lib.api;
25

  
26
import org.gvsig.tools.lang.Cloneable;
27

  
28

  
29
/**
30
 * 
31
 * Este interface se mantiene aqui por compatibilidad con versiones anteriores.
32
 * 
33
 * @see #org.gvsig.tools.packageutils.Version
34
 * @deprecated use #org.gvsig.tools.packageutils.Version
35
 * 
36
 */
37
public interface Version  extends Cloneable, Comparable {
38

  
39
	public Version parse(String version);
40

  
41
	public int getMajor();
42
	
43
	/**
44
	 * @deprecated Use {@link #getMajor()}
45
	 */
46
    public int getMayor();
47

  
48
	public int getMinor();
49

  
50
	public int getRevision();
51

  
52
	public String getClassifier();
53

  
54
	public int getBuild();
55

  
56
	public boolean check(String op, Version other);
57

  
58
	public String fullFormat();
59
	
60
	/**
61
	 * Return the version formated as string with the format specified as fmt.
62
	 * It replace in fmt:
63
	 * - %M by the major number of the version
64
	 * - %m by the minor number of the version
65
	 * - %r by the revision number of the version
66
	 * - %c by the classifier of the version
67
	 * - %b by the build number of the version
68
	 * 
69
	 * @param fmt, string used as format
70
	 * @return the version formated as string 
71
	 */
72
	public String format(String fmt);
73

  
74
	/**
75
	 * @deprecated don't use, set only in parse 
76
	 */
77
	public Version setBuild(int build);
78

  
79
}
0 80

  
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.lib/src/main/java/org/gvsig/installer/lib/api/Dependencies.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.installer.lib.api;
25

  
26
import java.util.List;
27

  
28
import org.gvsig.tools.lang.Cloneable;
29
import org.gvsig.tools.packageutils.StringWithAlias;
30

  
31
/**
32
 * 
33
 * Este interface se mantiene aqui por compatibilidad con versiones anteriores.
34
 * 
35
 * @see #org.gvsig.tools.packageutils.Dependencies
36
 * @deprecated use #org.gvsig.tools.packageutils.Dependencies
37
 */
38
public interface Dependencies extends List, Cloneable  {
39
    
40
	public Dependencies parse(String dependenies);
41

  
42
	public boolean match(String type, String code, Version version);
43
	public boolean match(String type, StringWithAlias code, Version version);
44

  
45
    public Dependency find(String type, String code, Version version);
46
    public Dependency find(String type, StringWithAlias code, Version version);
47
    public List findAll(String type, String code, Version version);
48
    public List findAll(String type, StringWithAlias code, Version version);
49
}
0 50

  
org.gvsig.tools/library/tags/org.gvsig.tools-3.0.70/org.gvsig.tools.lib/src/main/java/org/gvsig/installer/lib/api/PackageInfo.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

  
25
package org.gvsig.installer.lib.api;
26

  
27
import java.io.File;
28
import java.net.URL;
29
import java.util.List;
30

  
31
import org.gvsig.tools.exception.BaseException;
32
import org.gvsig.tools.lang.Cloneable;
33
import org.gvsig.tools.task.SimpleTaskStatus;
34
import org.gvsig.tools.packageutils.StringWithAlias;
35
import org.gvsig.tools.packageutils.PackageManager.ARCH;
36
import org.gvsig.tools.packageutils.PackageManager.JVM;
37
import org.gvsig.tools.packageutils.PackageManager.OS;
38
import org.gvsig.tools.packageutils.PackageManager.STATE;
39

  
40
/**
41
 * @deprecated use instead #org.gvsig.tools.packageutils.PackageInfo
42
 */
43
public interface PackageInfo extends Cloneable{
44

  
45

  
46
	/**
47
	 * @return Gets the code of the package.
48
	 */
49
	public String getCode();
50

  
51
	public void setCode(String code);
52

  
53
	public StringWithAlias getAllCodes();	
54
    
55
    public boolean hasThisCode(String code);
56
    public boolean hasThisCode(StringWithAlias code);
57
	
58
	
59
	public String getID();
60

  
61
	/**
62
	 * @return Gets the name of the package.
63
	 */
64
	public String getName();
65

  
66
	public void setName(String name);
67

  
68
	/**
69
	 * @return Gets the description of the package.
70
	 */
71
	public String getDescription();
72

  
73
	public void setDescription(String description);
74

  
75
	/**
76
	 * @return Gets the version of the package.
77
	 */
78
	public Version getVersion();
79

  
80
	public void setVersion(Version version);
81

  
82
	/**
83
	 * @return Gets the state of the package.
84
	 * @see STATE
85
	 */
86
	public String getState();
87

  
88
	/**
89
	 * Sets the state of the package
90
	 * 
91
	 * @param state
92
	 * @see STATE
93
	 */
94
	public void setState(String state);
95

  
96
	/**
97
	 * @return Gets if the package is official.
98
	 */
99
	public boolean isOfficial();
100

  
101
	public void setOfficial(boolean official);
102

  
103
	/**
104
	 * @return Gets the type of the package.
105
	 */
106
	public String getType();
107

  
108
	public void setType(String type);
109

  
110
	/**
111
	 * Returns the supported operating system.
112
	 * 
113
	 * @return the supported operating system
114
	 * @see OS
115
	 */
116
	public String getOperatingSystem();
117

  
118
	/**
119
	 * Sets the supported operating system.
120
	 * 
121
	 * @param operatingSystem
122
	 *            the supported operating system
123
	 * @see OS
124
	 */
125
	public void setOperatingSystem(String operatingSystem);
126

  
127
	/**
128
	 * Returns the supported hardware architecture.
129
	 * 
130
	 * @return the supported hardware architecture
131
	 * @see ARCH
132
	 */
133
	public String getArchitecture();
134

  
135
	/**
136
	 * Sets the supported hardware architecture.
137
	 * 
138
	 * @param architecture
139
	 *            the supported hardware architecture
140
	 * @see ARCH
141
	 */
142
	public void setArchitecture(String architecture);
143

  
144
	/**
145
	 * Returns the supported java vm version.
146
	 * 
147
	 * @return the supported java vm version
148
	 * @see JVM
149
	 */
150
	public String getJavaVM();
151

  
152
	/**
153
	 * Sets the supported java vm version.
154
	 * 
155
	 * @param javaVM
156
	 *            the supported java vm version
157
	 * @see JVM
158
	 */
159
	public void setJavaVM(String javaVM);
160

  
161
	/**
162
	 * Returns the supported application version.
163
	 * 
164
	 * @return the supported application version
165
	 */
166
	public Version getApplicationVersion();
167

  
168
	/**
169
	 * Sets the supported application version.
170
	 * 
171
	 * @param verion
172
	 *            the supported application version
173
	 */
174
	public void setApplicationVersion(Version version);
175

  
176
	/**
177
	 * Returns the package bundle download {@link URL}.
178
	 *  
179
	 * May be null if there is no remote URL to download the bundle.
180
	 * 
181
	 * @return the package bundle download {@link URL}
182
	 */
183
	public URL getDownloadURL();
184

  
185
	public String getDownloadURLAsString();
186

  
187
	/**
188
	 * Sets the package bundle download {@link URL}. Optional.
189
	 * 
190
	 * @param defaultURL
191
	 *            the package bundle download {@link URL}
192
	 */
193
	public void setDownloadURL(URL defaultURL);
194

  
195
	public void setDownloadURL(String defaultDownloadURL);
196

  
197
	/**
198
	 * Returns the package info model version.
199
	 * 
200
	 * @return the package info model version
201
	 */
202
	public String getModelVersion();
203

  
204
	/**
205
	 * Sets the package info model version.
206
	 * 
207
	 * @param modelVersion
208
	 *            the package info model version
209
	 */
210
	public void setModelVersion(String modelVersion);
211

  
212
	public String getOwner();
213

  
214
	/**
215
	 * Sets the package owner.
216
	 * 
217
	 * @param owner
218
	 *            the package owner
219
	 */
220
	public void setOwner(String owner);
221

  
222
	/**
223
	 * Returns the owner's url {@link URL}.
224
	 * 
225
	 * @return the owner's url {@link URL}
226
	 */
227
	public URL getOwnerURL();
228

  
229
	/**
230
	 * Sets the package owner's url.
231
	 * 
232
	 * @param sources
233
	 *            the package owner's url
234
	 */
235
	public void setOwnerURL(URL sources);
236

  
237
	/**
238
	 * Returns the package source files url {@link URL}.
239
	 * 
240
	 * @return the package source files url {@link URL}
241
	 */
242
	public URL getSourcesURL();
243

  
244
	/**
245
	 * Sets the package sources.
246
	 * 
247
	 * @param sources
248
	 *            the package sources
249
	 */
250
	public void setSourcesURL(URL sources);
251

  
252
	/**
253
	 * Returns the package web url {@link URL}.
254
	 * 
255
	 * @return the package web url {@link URL}
256
	 */
257
	public URL getWebURL();
258

  
259
	/**
260
	 * Sets the package web url {@link URL}.
261
	 * 
262
	 * @param webURL
263
	 *            the package web url {@link URL}
264
	 */
265
	public void setWebURL(URL webURL);
266

  
267
	/**
268
	 * @param string
269
	 * @return
270
	 */
271
	public boolean matchID(String string);
272

  
273
	public Dependencies getDependencies();
274

  
275
	public void setDependencies(String dependencies);
276

  
277
	public void setDependencies(Dependencies dependencies);
278

  
279
	public String toStringCompact();
280

  
281
	public List getCategories();
282

  
283
	public void setCategories(List categoriesList);
284

  
285
	public String getCategoriesAsString();
286

  
287
	public void addCategoriesAsString(String categoriesString);
288

  
289
	public boolean isBroken();
290

  
291

  
292

  
293
	
294
	
295
	
296
	
297

  
298
	/**
299
	 * 
300
	 * @param version
301
	 * @deprecated Use {@link #setVersion(Version)}
302
	 */
303
	public void setVersion(String version);
304

  
305
	
306
	/**
307
	 * @return Gets the build number of the package.
308
	 * @deprecated use {@link #getVersion()}.getBuild()
309
	 */
310
	public int getBuild();
311

  
312
	/**
313
	 * @deprecated use {@link #getVersion()}
314
	 */
315
	public void setBuild(int build);
316

  
317
	/**
318
	 * Returns the supported gvSIG version.
319
	 * 
320
	 * @return the supported gvSIG version
321
	 * @deprecated use {@link #getApplicationVersion()}
322
	 */
323
	public String getGvSIGVersion();
324

  
325
	/**
326
	 * Sets the supported gvSIG version.
327
	 * 
328
	 * @param gvSIGVersion the supported gvSIG version
329
	 * @deprecated use {@link #setApplicationVersion(org.gvsig.tools.packageutils.Version)}
330
	 */
331
	public void setGvSIGVersion(String gvSIGVersion);
332

  
333

  
334
	 /**
335
	 * Returns the package bundle download {@link URL}.
336
	 *
337
	 * May be null if there is no remote URL to download the bundle.
338
	 *
339
	 * @return the package bundle download {@link URL}
340
	 * @deprecated use InstallManager
341
	 *
342
	 */
343
	public URL getDownloadURL(URL baseURL);
344

  
345
	/**
346
	 * Gets the ant script that has to be executed in the installation process.
347
	 * 
348
	 * @return the script.
349
	 * @deprecated use {@link #getPostInstallScript()} 
350
	 */
351
	public String getAntScript();
352

  
353
	/**
354
	 * Sets the ant script that can be executed in the installation process.
355
	 * 
356
	 * @param antScript The ant script to copy.
357
	 * @deprecated use {@link #setPostInstallScript(String)}
358
	 */
359
	public void setAntScript(String antScript);
360

  
361
	/**
362
	 * @deprecated use InstallManager
363
	 */
364
	public File downloadFile() throws BaseException;
365

  
366
	/**
367
	 * @deprecated use InstallManager
368
	 */
369
	public File downloadFile(SimpleTaskStatus taskStatus) throws BaseException;
370

  
371
	/**
372
	 * @deprecated use InstallManager.getPackageInfoFiles
373
	 */
374
	public void addFileToCopy(File file);
375

  
376
	/**
377
	 * @deprecated use InstallManager.getPackageInfoFiles
378
	 */
379
	public File getFileToCopy(int i);
380

  
381
	/**
382
	 * @deprecated use InstallManager.getPackageInfoFiles
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff