Revision 3064
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.vcsgis.swing.VCSGisSwingLibrary |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisJExport.java | ||
---|---|---|
1 |
/* |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2020 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 3 |
|
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, see <https://www.gnu.org/licenses/>. |
|
18 |
* |
|
19 |
* For any additional information, do not hesitate to contact us |
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
21 |
*/ |
|
22 |
package org.gvsig.vcsgis.swing; |
|
23 |
|
|
24 |
import org.gvsig.vcsgis.lib.workspace.VCSGisWorkspace; |
|
25 |
import org.gvsig.tools.swing.api.Component; |
|
26 |
import org.gvsig.tools.swing.api.windowmanager.Dialog; |
|
27 |
import org.gvsig.vcsgis.lib.VCSGisEntity; |
|
28 |
|
|
29 |
/** |
|
30 |
* |
|
31 |
* @author jjdelcerro |
|
32 |
*/ |
|
33 |
public interface VCSGisJExport extends Component { |
|
34 |
|
|
35 |
public int export(); |
|
36 |
|
|
37 |
public void setDialog(Dialog dialog); |
|
38 |
|
|
39 |
public VCSGisWorkspace getWorkspace(); |
|
40 |
|
|
41 |
public VCSGisEntity getTable(); |
|
42 |
|
|
43 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisSwingLocator.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright (c) 2007-2020 gvSIG Association |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.vcsgis.swing; |
|
24 |
|
|
25 |
import org.gvsig.tools.locator.AbstractLocator; |
|
26 |
import org.gvsig.tools.locator.Locator; |
|
27 |
import org.gvsig.tools.locator.LocatorException; |
|
28 |
|
|
29 |
|
|
30 |
/** |
|
31 |
* @author gvSIG Team |
|
32 |
* |
|
33 |
*/ |
|
34 |
public class VCSGisSwingLocator extends AbstractLocator { |
|
35 |
|
|
36 |
private static final String LOCATOR_NAME = "vcsgisSwingLocator"; |
|
37 |
public static final String MANAGER_NAME = "vcsgisSwingManager"; |
|
38 |
private static final String MANAGER_DESCRIPTION = "vcsgis Swing Algorithms Manager of gvSIG"; |
|
39 |
|
|
40 |
private static final VCSGisSwingLocator INSTANCE = new VCSGisSwingLocator(); |
|
41 |
|
|
42 |
|
|
43 |
public static Locator getInstance() { |
|
44 |
return INSTANCE; |
|
45 |
} |
|
46 |
|
|
47 |
@Override |
|
48 |
public String getLocatorName() { |
|
49 |
return LOCATOR_NAME; |
|
50 |
} |
|
51 |
|
|
52 |
|
|
53 |
/** |
|
54 |
* Registers the Class implementing the vcsgisSwingManager interface. |
|
55 |
* |
|
56 |
* @param clazz implementing the vcsgisSwingManager interface |
|
57 |
*/ |
|
58 |
public static void registerVCSGisSwingManager(Class clazz){ |
|
59 |
getInstance().register(MANAGER_NAME, MANAGER_DESCRIPTION, clazz); |
|
60 |
} |
|
61 |
|
|
62 |
/** |
|
63 |
* Registers the default Class implementing the vcsgisSwingManager interface |
|
64 |
* |
|
65 |
* @param clazz implementing the vcsgisSwingManager interface |
|
66 |
*/ |
|
67 |
public static void registerDefaultVCSGisSwingManager(Class clazz){ |
|
68 |
getInstance().registerDefault(MANAGER_NAME, MANAGER_DESCRIPTION, clazz); |
|
69 |
} |
|
70 |
|
|
71 |
/** |
|
72 |
* Return a reference to vcsgisSwingManager. |
|
73 |
* |
|
74 |
* @return a reference to vcsgisSwingManager |
|
75 |
* @throws LocatorException |
|
76 |
* if there is no access to the class or the class |
|
77 |
* cannot be instantiated |
|
78 |
* @see Locator#get(String) |
|
79 |
*/ |
|
80 |
public static VCSGisSwingManager getVCSGisSwingManager() throws LocatorException { |
|
81 |
return (VCSGisSwingManager)(getInstance().get(MANAGER_NAME)); |
|
82 |
} |
|
83 |
|
|
84 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisSwingServices.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 |
package org.gvsig.vcsgis.swing; |
|
7 |
|
|
8 |
import javax.swing.ComboBoxModel; |
|
9 |
import javax.swing.ListModel; |
|
10 |
import javax.swing.tree.TreeModel; |
|
11 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
12 |
import org.gvsig.tools.util.LabeledValue; |
|
13 |
import org.gvsig.vcsgis.lib.workspace.VCSGisWorkspace; |
|
14 |
|
|
15 |
/** |
|
16 |
* |
|
17 |
* @author fdiaz |
|
18 |
*/ |
|
19 |
public interface VCSGisSwingServices { |
|
20 |
|
|
21 |
public TreeModel getFeatureStoresTreeModel(); |
|
22 |
|
|
23 |
public ListModel getFeatureStoresListModel(); |
|
24 |
|
|
25 |
public void addTableToProject(VCSGisWorkspace ws, FeatureStore store); |
|
26 |
|
|
27 |
public ComboBoxModel<LabeledValue> getViewDocumentsComboBoxModel(); |
|
28 |
|
|
29 |
public void addLayerToView(FeatureStore store, LabeledValue view); |
|
30 |
|
|
31 |
public void addLayerToView(FeatureStore store, LabeledValue view, String name); |
|
32 |
|
|
33 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisJInitWorkspace.java | ||
---|---|---|
1 |
/* |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2020 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 3 |
|
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, see <https://www.gnu.org/licenses/>. |
|
18 |
* |
|
19 |
* For any additional information, do not hesitate to contact us |
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
21 |
*/ |
|
22 |
package org.gvsig.vcsgis.swing; |
|
23 |
|
|
24 |
import org.gvsig.tools.swing.api.Component; |
|
25 |
import org.gvsig.tools.swing.api.windowmanager.Dialog; |
|
26 |
|
|
27 |
/** |
|
28 |
* |
|
29 |
* @author jjdelcerro |
|
30 |
*/ |
|
31 |
public interface VCSGisJInitWorkspace extends Component { |
|
32 |
|
|
33 |
public int initializeWorkspace(); |
|
34 |
|
|
35 |
public void setDialog(Dialog dialog); |
|
36 |
|
|
37 |
public String getWorkspaceName(); |
|
38 |
|
|
39 |
// public File getWorkspaceFile(); |
|
40 |
// |
|
41 |
// public JDBCServerExplorerParameters getRepositoryConnection(); |
|
42 |
// |
|
43 |
// public URL getRepositoryURL(); |
|
44 |
// |
|
45 |
// public VCSGisRepository getRepository(); |
|
46 |
// |
|
47 |
// public JDBCServerExplorer getRepositoryServer(); |
|
48 |
// |
|
49 |
// public JDBCServerExplorerParameters getWorkspaceConnection(); |
|
50 |
// |
|
51 |
// public JDBCServerExplorer getWorkspaceServer(); |
|
52 |
|
|
53 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisSwingLibrary.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright (c) 2007-2020 gvSIG Association |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.vcsgis.swing; |
|
24 |
|
|
25 |
import org.gvsig.tools.library.AbstractLibrary; |
|
26 |
import org.gvsig.tools.library.LibraryException; |
|
27 |
import org.gvsig.tools.locator.ReferenceNotRegisteredException; |
|
28 |
|
|
29 |
/** |
|
30 |
* @author gvSIG Team |
|
31 |
* |
|
32 |
*/ |
|
33 |
public class VCSGisSwingLibrary extends AbstractLibrary { |
|
34 |
|
|
35 |
@Override |
|
36 |
protected void doInitialize() throws LibraryException { |
|
37 |
registerAsAPI(VCSGisSwingLibrary.class); |
|
38 |
|
|
39 |
} |
|
40 |
|
|
41 |
@Override |
|
42 |
protected void doPostInitialize() throws LibraryException { |
|
43 |
// Validate there is any implementation registered. |
|
44 |
VCSGisSwingManager manager = VCSGisSwingLocator.getVCSGisSwingManager(); |
|
45 |
if (manager == null) { |
|
46 |
throw new ReferenceNotRegisteredException( |
|
47 |
VCSGisSwingLocator.MANAGER_NAME, VCSGisSwingLocator.getInstance()); |
|
48 |
} |
|
49 |
} |
|
50 |
|
|
51 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisJRegisterWorkspace.java | ||
---|---|---|
1 |
/* |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2020 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 3 |
|
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, see <https://www.gnu.org/licenses/>. |
|
18 |
* |
|
19 |
* For any additional information, do not hesitate to contact us |
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
21 |
*/ |
|
22 |
package org.gvsig.vcsgis.swing; |
|
23 |
|
|
24 |
import org.gvsig.tools.swing.api.Component; |
|
25 |
import org.gvsig.tools.swing.api.windowmanager.Dialog; |
|
26 |
|
|
27 |
/** |
|
28 |
* |
|
29 |
* @author jjdelcerro |
|
30 |
*/ |
|
31 |
public interface VCSGisJRegisterWorkspace extends Component { |
|
32 |
|
|
33 |
public void registerWorkspace(); |
|
34 |
|
|
35 |
public void deregisterWorkspace(); |
|
36 |
|
|
37 |
public void setDialog(Dialog dialog); |
|
38 |
|
|
39 |
// public String getWorkspaceName(); |
|
40 |
// |
|
41 |
// public File getWorkspaceFile(); |
|
42 |
|
|
43 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisJShowServerTableForm.java | ||
---|---|---|
1 |
/* |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2020 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 3 |
|
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, see <https://www.gnu.org/licenses/>. |
|
18 |
* |
|
19 |
* For any additional information, do not hesitate to contact us |
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
21 |
*/ |
|
22 |
package org.gvsig.vcsgis.swing; |
|
23 |
|
|
24 |
import org.gvsig.tools.swing.api.Component; |
|
25 |
|
|
26 |
/** |
|
27 |
* |
|
28 |
* @author jjdelcerro |
|
29 |
*/ |
|
30 |
public interface VCSGisJShowServerTableForm extends Component { |
|
31 |
|
|
32 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSWorkspacePickerController.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 |
package org.gvsig.vcsgis.swing; |
|
7 |
|
|
8 |
import org.gvsig.vcsgis.lib.workspace.VCSGisWorkspace; |
|
9 |
import org.gvsig.tools.swing.api.pickercontroller.PickerController; |
|
10 |
|
|
11 |
/** |
|
12 |
* |
|
13 |
* @author gvSIG Team |
|
14 |
*/ |
|
15 |
public interface VCSWorkspacePickerController extends PickerController<VCSGisWorkspace>{ |
|
16 |
|
|
17 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisJAddLayer.java | ||
---|---|---|
1 |
/* |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2020 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 3 |
|
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, see <https://www.gnu.org/licenses/>. |
|
18 |
* |
|
19 |
* For any additional information, do not hesitate to contact us |
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
21 |
*/ |
|
22 |
package org.gvsig.vcsgis.swing; |
|
23 |
|
|
24 |
import org.gvsig.tools.swing.api.Component; |
|
25 |
import org.gvsig.tools.swing.api.windowmanager.Dialog; |
|
26 |
import org.gvsig.tools.util.LabeledValue; |
|
27 |
import org.gvsig.vcsgis.lib.VCSGisEntity; |
|
28 |
import org.gvsig.vcsgis.lib.workspace.VCSGisWorkspace; |
|
29 |
|
|
30 |
/** |
|
31 |
* |
|
32 |
* @author jjdelcerro |
|
33 |
*/ |
|
34 |
public interface VCSGisJAddLayer extends Component { |
|
35 |
|
|
36 |
// public int addLayer(LabeledValue labeledView); |
|
37 |
|
|
38 |
// public void setView(LabeledValue labeledView); |
|
39 |
|
|
40 |
public void setDialog(Dialog dialog); |
|
41 |
|
|
42 |
public String getLayerName(); |
|
43 |
|
|
44 |
public LabeledValue getView(); |
|
45 |
|
|
46 |
public VCSGisEntity getRemoteEntity(); |
|
47 |
|
|
48 |
public VCSGisWorkspace getWorkspace(); |
|
49 |
|
|
50 |
|
|
51 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisJCheckout.java | ||
---|---|---|
1 |
/* |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2020 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 3 |
|
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, see <https://www.gnu.org/licenses/>. |
|
18 |
* |
|
19 |
* For any additional information, do not hesitate to contact us |
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
21 |
*/ |
|
22 |
package org.gvsig.vcsgis.swing; |
|
23 |
|
|
24 |
import org.gvsig.vcsgis.lib.workspace.VCSGisWorkspace; |
|
25 |
import org.gvsig.tools.swing.api.Component; |
|
26 |
import org.gvsig.tools.swing.api.windowmanager.Dialog; |
|
27 |
import org.gvsig.vcsgis.lib.VCSGisEntity; |
|
28 |
|
|
29 |
/** |
|
30 |
* |
|
31 |
* @author jjdelcerro |
|
32 |
*/ |
|
33 |
public interface VCSGisJCheckout extends Component { |
|
34 |
|
|
35 |
public int checkout(); |
|
36 |
|
|
37 |
public void setDialog(Dialog dialog); |
|
38 |
|
|
39 |
public VCSGisWorkspace getWorkspace(); |
|
40 |
|
|
41 |
public VCSGisEntity getTable(); |
|
42 |
|
|
43 |
public boolean isProcessing(); |
|
44 |
|
|
45 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisJChanges.java | ||
---|---|---|
1 |
/* |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2020 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 3 |
|
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, see <https://www.gnu.org/licenses/>. |
|
18 |
* |
|
19 |
* For any additional information, do not hesitate to contact us |
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
21 |
*/ |
|
22 |
package org.gvsig.vcsgis.swing; |
|
23 |
|
|
24 |
import org.gvsig.tools.swing.api.Component; |
|
25 |
|
|
26 |
/** |
|
27 |
* |
|
28 |
* @author jjdelcerro |
|
29 |
*/ |
|
30 |
public interface VCSGisJChanges extends Component { |
|
31 |
|
|
32 |
public boolean isProcessing(); |
|
33 |
|
|
34 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisSwingManager.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright (c) 2007-2020 gvSIG Association |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.vcsgis.swing; |
|
24 |
|
|
25 |
import javax.swing.JButton; |
|
26 |
import javax.swing.JComboBox; |
|
27 |
import org.gvsig.tools.swing.api.pickercontroller.PickerController; |
|
28 |
import org.gvsig.tools.util.LabeledValue; |
|
29 |
import org.gvsig.tools.util.LabeledValueImpl; |
|
30 |
import org.gvsig.vcsgis.lib.workspace.VCSGisWorkspace; |
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
/** |
|
35 |
* @author gvSIG Team |
|
36 |
* |
|
37 |
*/ |
|
38 |
public interface VCSGisSwingManager { |
|
39 |
|
|
40 |
public VCSGisJChanges createChangesPanel(); |
|
41 |
|
|
42 |
public PickerController<VCSGisWorkspace> createPickerWorkspaceController(JComboBox combo); |
|
43 |
|
|
44 |
public VCSGisJInitServer createInitServerPanel(); |
|
45 |
|
|
46 |
public VCSGisJInitWorkspace createInitWorkspacePanel(); |
|
47 |
|
|
48 |
public VCSGisJAddToWorkspace createAddToWorkspacePanel(); |
|
49 |
|
|
50 |
public VCSGisJCheckout createCheckoutPanel(); |
|
51 |
|
|
52 |
public VCSGisJExport createExportPanel(); |
|
53 |
|
|
54 |
public void setDefaultServices(VCSGisSwingServices services); |
|
55 |
|
|
56 |
public VCSGisSwingServices getDefaultServices(); |
|
57 |
|
|
58 |
public PickerController<VCSGisWorkspace> createWorkspacePickerController(JComboBox combo, JButton button); |
|
59 |
|
|
60 |
public VCSGisJRegisterWorkspace createRegisterWorkspacePanel(); |
|
61 |
|
|
62 |
public VCSGisJShowServerTableForm createShowTableServerFormPanel(String tableName); |
|
63 |
|
|
64 |
public VCSGisJAddLayer createAddLayerFormPanel(LabeledValue view); |
|
65 |
|
|
66 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisJAddToWorkspace.java | ||
---|---|---|
1 |
/* |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2020 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 3 |
|
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, see <https://www.gnu.org/licenses/>. |
|
18 |
* |
|
19 |
* For any additional information, do not hesitate to contact us |
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
21 |
*/ |
|
22 |
package org.gvsig.vcsgis.swing; |
|
23 |
|
|
24 |
import org.gvsig.vcsgis.lib.workspace.VCSGisWorkspace; |
|
25 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
26 |
import org.gvsig.tools.swing.api.Component; |
|
27 |
import org.gvsig.tools.swing.api.windowmanager.Dialog; |
|
28 |
|
|
29 |
/** |
|
30 |
* |
|
31 |
* @author jjdelcerro |
|
32 |
*/ |
|
33 |
public interface VCSGisJAddToWorkspace extends Component { |
|
34 |
|
|
35 |
public void setDialog(Dialog dialog); |
|
36 |
|
|
37 |
public int add(); |
|
38 |
|
|
39 |
public boolean isProcessing(); |
|
40 |
|
|
41 |
public FeatureStore getFeatureStore(); |
|
42 |
|
|
43 |
public VCSGisWorkspace getWorkspace(); |
|
44 |
|
|
45 |
public String getTabletName(); |
|
46 |
|
|
47 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/src/main/java/org/gvsig/vcsgis/swing/VCSGisJInitServer.java | ||
---|---|---|
1 |
/* |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2020 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 3 |
|
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, see <https://www.gnu.org/licenses/>. |
|
18 |
* |
|
19 |
* For any additional information, do not hesitate to contact us |
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
21 |
*/ |
|
22 |
package org.gvsig.vcsgis.swing; |
|
23 |
|
|
24 |
import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters; |
|
25 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer; |
|
26 |
import org.gvsig.tools.swing.api.Component; |
|
27 |
import org.gvsig.tools.swing.api.windowmanager.Dialog; |
|
28 |
|
|
29 |
/** |
|
30 |
* |
|
31 |
* @author jjdelcerro |
|
32 |
*/ |
|
33 |
public interface VCSGisJInitServer extends Component { |
|
34 |
|
|
35 |
public int initialize(); |
|
36 |
|
|
37 |
public void setDialog(Dialog dialog); |
|
38 |
|
|
39 |
public JDBCServerExplorerParameters getConnection(); |
|
40 |
|
|
41 |
public JDBCServerExplorer getServer(); |
|
42 |
|
|
43 |
public String getConnectionLabel(); |
|
44 |
|
|
45 |
|
|
46 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.api/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/xsd/maven-4.0.0.xsd"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.vcsgis.swing</artifactId> |
|
6 |
<version>1.0.4</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.vcsgis.swing.api</artifactId> |
|
9 |
<name>${project.artifactId}</name> |
|
10 |
<dependencies> |
|
11 |
<dependency> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.tools.swing.api</artifactId> |
|
14 |
</dependency> |
|
15 |
<dependency> |
|
16 |
<groupId>org.gvsig</groupId> |
|
17 |
<artifactId>org.gvsig.vcsgis.lib.api</artifactId> |
|
18 |
</dependency> |
|
19 |
</dependencies> |
|
20 |
</project> |
|
0 | 21 |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.impl/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/xsd/maven-4.0.0.xsd"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.vcsgis.swing</artifactId> |
|
6 |
<version>1.0.4</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.vcsgis.swing.impl</artifactId> |
|
9 |
<name>${project.artifactId}</name> |
|
10 |
<dependencies> |
|
11 |
<dependency> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.vcsgis.swing.api</artifactId> |
|
14 |
</dependency> |
|
15 |
<dependency> |
|
16 |
<groupId>org.gvsig</groupId> |
|
17 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
18 |
</dependency> |
|
19 |
<dependency> |
|
20 |
<groupId>com.jgoodies</groupId> |
|
21 |
<artifactId>jgoodies-forms</artifactId> |
|
22 |
</dependency> |
|
23 |
<dependency> |
|
24 |
<groupId>org.gvsig</groupId> |
|
25 |
<artifactId>org.gvsig.vcsgis.lib.api</artifactId> |
|
26 |
</dependency> |
|
27 |
<dependency> |
|
28 |
<groupId>org.gvsig</groupId> |
|
29 |
<artifactId>org.gvsig.tools.swing.api</artifactId> |
|
30 |
</dependency> |
|
31 |
<dependency> |
|
32 |
<groupId>org.gvsig</groupId> |
|
33 |
<artifactId>org.gvsig.fmap.dal.swing.api</artifactId> |
|
34 |
<type>jar</type> |
|
35 |
</dependency> |
|
36 |
<dependency> |
|
37 |
<groupId>org.gvsig</groupId> |
|
38 |
<artifactId>org.gvsig.fmap.mapcontext.api</artifactId> |
|
39 |
<type>jar</type> |
|
40 |
</dependency> |
|
41 |
</dependencies> |
|
42 |
</project> |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.impl/src/main/resources/org/gvsig/vcsgis/swing/impl/images/.directory | ||
---|---|---|
1 |
[Dolphin] |
|
2 |
PreviewsShown=true |
|
3 |
Timestamp=2020,10,25,19,27,22 |
|
4 |
Version=4 |
|
5 |
ViewMode=1 |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.vcsgis.swing.impl.VCSGisSwingImplLibrary |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.impl/src/main/java/org/gvsig/vcsgis/swing/impl/export/VCSGisJExportImpl.java | ||
---|---|---|
1 |
/* |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2020 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 3 |
|
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, see <https://www.gnu.org/licenses/>. |
|
18 |
* |
|
19 |
* For any additional information, do not hesitate to contact us |
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
21 |
*/ |
|
22 |
package org.gvsig.vcsgis.swing.impl.export; |
|
23 |
|
|
24 |
import java.awt.Cursor; |
|
25 |
import java.awt.Dimension; |
|
26 |
import java.awt.event.ActionEvent; |
|
27 |
import java.util.List; |
|
28 |
import javax.swing.ComboBoxModel; |
|
29 |
import javax.swing.JComponent; |
|
30 |
import javax.swing.JOptionPane; |
|
31 |
import javax.swing.ListSelectionModel; |
|
32 |
import javax.swing.event.ChangeEvent; |
|
33 |
import javax.swing.event.ListSelectionEvent; |
|
34 |
import org.apache.commons.lang3.StringUtils; |
|
35 |
import org.gvsig.tools.ToolsLocator; |
|
36 |
import org.gvsig.tools.i18n.I18nManager; |
|
37 |
import org.gvsig.tools.swing.api.Component; |
|
38 |
import org.gvsig.tools.swing.api.FilteredListController; |
|
39 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
40 |
import org.gvsig.tools.swing.api.ToolsSwingManager; |
|
41 |
import org.gvsig.tools.swing.api.pickercontroller.DatePickerController; |
|
42 |
import org.gvsig.tools.swing.api.pickercontroller.PickerController; |
|
43 |
import org.gvsig.tools.swing.api.threadsafedialogs.ThreadSafeDialogsManager; |
|
44 |
import org.gvsig.tools.swing.api.windowmanager.Dialog; |
|
45 |
import org.gvsig.tools.swing.api.windowmanager.WindowManager_v2; |
|
46 |
import org.gvsig.tools.util.LabeledValue; |
|
47 |
import org.gvsig.vcsgis.lib.VCSGisEntity; |
|
48 |
import org.gvsig.vcsgis.lib.workspace.VCSGisWorkspace; |
|
49 |
import org.gvsig.vcsgis.swing.VCSGisJExport; |
|
50 |
import org.gvsig.vcsgis.swing.VCSGisSwingLocator; |
|
51 |
import org.gvsig.vcsgis.swing.VCSGisSwingManager; |
|
52 |
import org.gvsig.vcsgis.swing.VCSGisSwingServices; |
|
53 |
import org.slf4j.LoggerFactory; |
|
54 |
|
|
55 |
/** |
|
56 |
* |
|
57 |
* @author gvSIG Team |
|
58 |
*/ |
|
59 |
public class VCSGisJExportImpl extends VCSGisJExportView |
|
60 |
implements Component, VCSGisJExport { |
|
61 |
|
|
62 |
private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(VCSGisJExportImpl.class); |
|
63 |
|
|
64 |
private Dialog dialog; |
|
65 |
|
|
66 |
private PickerController<VCSGisWorkspace> workspacePicker; |
|
67 |
private DatePickerController datePicker; |
|
68 |
private FilteredListController filteredList; |
|
69 |
|
|
70 |
public VCSGisJExportImpl() { |
|
71 |
translate(); |
|
72 |
|
|
73 |
initComponents(); |
|
74 |
} |
|
75 |
|
|
76 |
private void initComponents() { |
|
77 |
this.btnEffectiveDate.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); |
|
78 |
this.btnInitWorkspace.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); |
|
79 |
this.btnTable.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); |
|
80 |
|
|
81 |
ToolsSwingManager toolsSwingManager = ToolsSwingLocator.getToolsSwingManager(); |
|
82 |
VCSGisSwingManager swingManager = VCSGisSwingLocator.getVCSGisSwingManager(); |
|
83 |
this.workspacePicker = swingManager.createWorkspacePickerController( |
|
84 |
cboWorkspaces, |
|
85 |
btnInitWorkspace |
|
86 |
); |
|
87 |
|
|
88 |
this.workspacePicker.addChangeListener((ChangeEvent e) -> { |
|
89 |
doChangeWorkspace(); |
|
90 |
doUpdateEnableComponents(); |
|
91 |
}); |
|
92 |
|
|
93 |
// this.cboWorkspaces.addItemListener((ItemEvent e) -> { |
|
94 |
// if (e.getStateChange() == ItemEvent.SELECTED) { |
|
95 |
// doChangeWorkspace(); |
|
96 |
// doUpdateEnableComponents(); |
|
97 |
// } |
|
98 |
// }); |
|
99 |
|
|
100 |
this.lstTables.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); |
|
101 |
this.lstTables.addListSelectionListener((ListSelectionEvent e) -> { |
|
102 |
//FIXME: for use when branches are included |
|
103 |
// dochangeTable(); |
|
104 |
doUpdateEnableComponents(); |
|
105 |
}); |
|
106 |
|
|
107 |
filteredList = toolsSwingManager.createFilteredListController(lstTables, txtFilter, btnTable); |
|
108 |
|
|
109 |
this.datePicker = toolsSwingManager.createDatePickerController(txtEffectiveDate, btnEffectiveDate); |
|
110 |
|
|
111 |
this.rdbRevision.setEnabled(false); |
|
112 |
this.lstRevisions.setEnabled(false); |
|
113 |
//Effective date dissabled |
|
114 |
this.rdbEffectiveDate.setEnabled(false); |
|
115 |
this.btnEffectiveDate.setEnabled(false); |
|
116 |
this.txtEffectiveDate.setEnabled(false); |
|
117 |
// this.rdbBranch.setEnabled(false); |
|
118 |
// this.cboBranches.setEnabled(false); |
|
119 |
|
|
120 |
//FIXME: for use when branches are included |
|
121 |
|
|
122 |
// this.rdbBranch.addActionListener(new ActionListener() { |
|
123 |
// @Override |
|
124 |
// public void actionPerformed(ActionEvent e) { |
|
125 |
// if(rdbBranch.isSelected()){ |
|
126 |
// cboBranches.setEnabled(true); |
|
127 |
// lstRevisions.setEnabled(false); |
|
128 |
// } |
|
129 |
// } |
|
130 |
// }); |
|
131 |
// |
|
132 |
// this.rdbRevision.addActionListener(new ActionListener() { |
|
133 |
// @Override |
|
134 |
// public void actionPerformed(ActionEvent e) { |
|
135 |
// if(rdbRevision.isSelected()){ |
|
136 |
// rdbBranch.setSelected(true); |
|
137 |
// } |
|
138 |
// } |
|
139 |
// }); |
|
140 |
|
|
141 |
|
|
142 |
VCSGisSwingServices services = swingManager.getDefaultServices(); |
|
143 |
|
|
144 |
ComboBoxModel<LabeledValue> viewDocumentsModel = services.getViewDocumentsComboBoxModel(); |
|
145 |
|
|
146 |
cboView.setModel(viewDocumentsModel); |
|
147 |
|
|
148 |
cboView.addActionListener((ActionEvent e) -> { |
|
149 |
doUpdateEnableComponents(); |
|
150 |
}); |
|
151 |
|
|
152 |
|
|
153 |
this.rdbDontAddToProject.addActionListener((ActionEvent e) -> { |
|
154 |
doUpdateEnableComponents(); |
|
155 |
}); |
|
156 |
|
|
157 |
this.rdbAddLayerToView.addActionListener((ActionEvent e) -> { |
|
158 |
doUpdateEnableComponents(); |
|
159 |
}); |
|
160 |
|
|
161 |
this.rdbAddTableToProject.addActionListener((ActionEvent e) -> { |
|
162 |
doUpdateEnableComponents(); |
|
163 |
}); |
|
164 |
|
|
165 |
this.setPreferredSize( |
|
166 |
new Dimension(520, 340) |
|
167 |
); |
|
168 |
|
|
169 |
} |
|
170 |
|
|
171 |
@Override |
|
172 |
public JComponent asJComponent() { |
|
173 |
return this; |
|
174 |
} |
|
175 |
|
|
176 |
@Override |
|
177 |
public void setDialog(Dialog dialog) { |
|
178 |
this.dialog = dialog; |
|
179 |
this.doUpdateEnableComponents(); |
|
180 |
} |
|
181 |
|
|
182 |
private void doChangeWorkspace() { |
|
183 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
184 |
try { |
|
185 |
VCSGisWorkspace workspace = workspacePicker.get(); |
|
186 |
if(workspace == null){ |
|
187 |
return; |
|
188 |
} |
|
189 |
|
|
190 |
this.filteredList.getModel().clear(); |
|
191 |
|
|
192 |
//Obtenemos la entidades del repositorio que no estan todavia en el workspace |
|
193 |
workspace.reloadWorkspaceEntities(); |
|
194 |
List<VCSGisEntity> repoEntities = workspace.getRepositoryEntities(); |
|
195 |
for (VCSGisEntity rentity : repoEntities) { |
|
196 |
VCSGisEntity lentity = workspace.getWorkspaceEntityByCode(rentity.getEntityCode()); |
|
197 |
if(lentity == null){ |
|
198 |
this.filteredList.getModel().addElement(rentity); |
|
199 |
} |
|
200 |
|
|
201 |
} |
|
202 |
} catch (Exception e) { |
|
203 |
LOGGER.warn("_Cant_retrieve_entities_from_repository", e); |
|
204 |
ThreadSafeDialogsManager dialogs = ToolsSwingLocator.getThreadSafeDialogsManager(); |
|
205 |
dialogs.messageDialog( |
|
206 |
i18n.getTranslation("_Cant_retrieve_entities_from_repository")+"\n"+e.getMessage(), |
|
207 |
i18n.getTranslation("_Checkout"), |
|
208 |
JOptionPane.WARNING_MESSAGE |
|
209 |
); |
|
210 |
} |
|
211 |
} |
|
212 |
|
|
213 |
|
|
214 |
// FIXME: for use when branches are included |
|
215 |
// private void doChangeTable() { |
|
216 |
// vcsgisWorkspace.Entity entity = (vcsgisWorkspace.Entity) lstTables.getSelectedValue(); |
|
217 |
// entity.getEntityName() |
|
218 |
// } |
|
219 |
|
|
220 |
@Override |
|
221 |
public VCSGisWorkspace getWorkspace() { |
|
222 |
return this.workspacePicker.get(); |
|
223 |
} |
|
224 |
|
|
225 |
// @Override |
|
226 |
// public VCSGisWorkspace.LocalEntity getTable() { |
|
227 |
// return (VCSGisWorkspace.LocalEntity) lstTables.getSelectedValue(); |
|
228 |
// }// @Override |
|
229 |
// public VCSGisWorkspace.LocalEntity getTable() { |
|
230 |
// return (VCSGisWorkspace.LocalEntity) lstTables.getSelectedValue(); |
|
231 |
// } |
|
232 |
|
|
233 |
|
|
234 |
@Override |
|
235 |
public VCSGisEntity getTable() { |
|
236 |
return (VCSGisEntity) lstTables.getSelectedValue(); |
|
237 |
} |
|
238 |
|
|
239 |
private void doUpdateEnableComponents() { |
|
240 |
if(this.getTable()==null) { |
|
241 |
this.rdbDontAddToProject.setEnabled(false); |
|
242 |
this.rdbAddLayerToView.setEnabled(false); |
|
243 |
this.cboView.setEnabled(false); |
|
244 |
this.rdbAddTableToProject.setEnabled(false); |
|
245 |
} else { |
|
246 |
this.rdbDontAddToProject.setEnabled(true); |
|
247 |
this.rdbAddTableToProject.setEnabled(true); |
|
248 |
if(isLayer(this.getTable())){ |
|
249 |
this.rdbAddLayerToView.setEnabled(true); |
|
250 |
this.cboView.setEnabled(true); |
|
251 |
} else { |
|
252 |
this.rdbAddLayerToView.setEnabled(false); |
|
253 |
this.cboView.setEnabled(false); |
|
254 |
} |
|
255 |
} |
|
256 |
|
|
257 |
LabeledValue selectedView = (LabeledValue)cboView.getSelectedItem(); |
|
258 |
boolean enableInit = this.getWorkspace() != null && this.getTable() != null; |
|
259 |
|
|
260 |
boolean dontAddNothing = rdbDontAddToProject.isSelected(); |
|
261 |
boolean addLayerToView = rdbAddLayerToView.isSelected() && selectedView != null && selectedView.getValue() != null; |
|
262 |
boolean addTableToProject = rdbAddTableToProject.isSelected(); |
|
263 |
|
|
264 |
enableInit = enableInit && (dontAddNothing || (addLayerToView || addTableToProject)); |
|
265 |
if (dialog != null) { |
|
266 |
this.dialog.setButtonEnabled(WindowManager_v2.BUTTON_OK, |
|
267 |
enableInit |
|
268 |
); |
|
269 |
} |
|
270 |
} |
|
271 |
|
|
272 |
private boolean isLayer(VCSGisEntity entity){ |
|
273 |
return !StringUtils.isBlank(entity.getGeometryFieldName()); |
|
274 |
} |
|
275 |
|
|
276 |
@Override |
|
277 |
public int export() { |
|
278 |
|
|
279 |
// VCSGisSwingManager swingManager = VCSGisSwingLocator.getVCSGisSwingManager(); |
|
280 |
// VCSGisSwingServices services = swingManager.getDefaultServices(); |
|
281 |
// |
|
282 |
// VCSGisEntity entity = getTable(); |
|
283 |
// final VCSGisWorkspace workspace = this.getWorkspace(); |
|
284 |
// if (workspace != null && entity != null) { |
|
285 |
// int res = this.getWorkspace().checkout(entity.getEntityName()); |
|
286 |
// if(res == ERR_OK) { |
|
287 |
// if(!rdbDontAddToProject.isSelected()){ |
|
288 |
// if(rdbAddLayerToView.isSelected()){ |
|
289 |
// if(isLayer(entity)){ |
|
290 |
// FeatureStore store = this.getWorkspace().getFeatureStore(entity.getEntityName()); |
|
291 |
// String layerName = workspace.getLabel()+" - " + store.getName(); |
|
292 |
// services.addLayerToView(store, (LabeledValue)cboView.getSelectedItem(), layerName); |
|
293 |
// } |
|
294 |
// } |
|
295 |
// if(rdbAddTableToProject.isSelected()){ |
|
296 |
// FeatureStore store = this.getWorkspace().getFeatureStore(entity.getEntityName()); |
|
297 |
// services.addTableToProject(workspace, store); |
|
298 |
// } |
|
299 |
// } |
|
300 |
// } |
|
301 |
// return res; |
|
302 |
// } |
|
303 |
return -1; |
|
304 |
} |
|
305 |
|
|
306 |
|
|
307 |
private void translate() { |
|
308 |
ToolsSwingManager swingManager = ToolsSwingLocator.getToolsSwingManager(); |
|
309 |
swingManager.translate(this.lblWorkspace); |
|
310 |
swingManager.translate(this.lblTable); |
|
311 |
swingManager.translate(this.rdbEffectiveDate); |
|
312 |
swingManager.translate(this.rdbRevision); |
|
313 |
swingManager.translate(this.rdbDontAddToProject); |
|
314 |
swingManager.translate(this.rdbAddLayerToView); |
|
315 |
swingManager.translate(this.rdbAddTableToProject); |
|
316 |
} |
|
317 |
|
|
318 |
} |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.4/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.impl/src/main/java/org/gvsig/vcsgis/swing/impl/export/VCSGisJExportView.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<object classname="com.jeta.forms.store.memento.FormPackage"> |
|
4 |
<at name="fileversion"> |
|
5 |
<object classname="com.jeta.forms.store.memento.FormsVersion2"> |
|
6 |
<at name="major">2</at> |
|
7 |
<at name="minor">0</at> |
|
8 |
<at name="sub">0</at> |
|
9 |
</object> |
|
10 |
</at> |
|
11 |
<at name="form"> |
|
12 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
13 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
14 |
<at name="cellconstraints"> |
|
15 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
16 |
<at name="column">1</at> |
|
17 |
<at name="row">1</at> |
|
18 |
<at name="colspan">1</at> |
|
19 |
<at name="rowspan">1</at> |
|
20 |
<at name="halign">default</at> |
|
21 |
<at name="valign">default</at> |
|
22 |
<at name="insets" object="insets">0,0,0,0</at> |
|
23 |
</object> |
|
24 |
</at> |
|
25 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
26 |
</super> |
|
27 |
<at name="id">/home/jjdelcerro/datos/devel/org.gvsig.vcsgis/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.impl/src/main/java/org/gvsig/vcsgis/swing/impl/checkout/VCSGisJCheckoutView.xml</at> |
|
28 |
<at name="path">src/main/java/org/gvsig/vcsgis/swing/impl/checkout/VCSGisJCheckoutView.xml</at> |
|
29 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE</at> |
|
30 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE</at> |
|
31 |
<at name="components"> |
|
32 |
<object classname="java.util.LinkedList"> |
|
33 |
<item > |
|
34 |
<at name="value"> |
|
35 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
36 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
37 |
<at name="cellconstraints"> |
|
38 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
39 |
<at name="column">2</at> |
|
40 |
<at name="row">2</at> |
|
41 |
<at name="colspan">1</at> |
|
42 |
<at name="rowspan">1</at> |
|
43 |
<at name="halign">default</at> |
|
44 |
<at name="valign">default</at> |
|
45 |
<at name="insets" object="insets">0,0,0,0</at> |
|
46 |
</object> |
|
47 |
</at> |
|
48 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
49 |
</super> |
|
50 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
51 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
52 |
<at name="beanproperties"> |
|
53 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
54 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
55 |
<at name="properties"> |
|
56 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
57 |
<at name="border"> |
|
58 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
59 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
60 |
<at name="name">border</at> |
|
61 |
</super> |
|
62 |
<at name="borders"> |
|
63 |
<object classname="java.util.LinkedList"> |
|
64 |
<item > |
|
65 |
<at name="value"> |
|
66 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
67 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
68 |
<at name="name">border</at> |
|
69 |
</super> |
|
70 |
</object> |
|
71 |
</at> |
|
72 |
</item> |
|
73 |
</object> |
|
74 |
</at> |
|
75 |
</object> |
|
76 |
</at> |
|
77 |
<at name="name">lblWorkspace</at> |
Also available in: Unified diff