Revision 37779
branches/v2_0_0_prep/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.spi/src/main/java/org/gvsig/exportto/swing/spi/ExporttoSwingProviderManager.java | ||
---|---|---|
47 | 47 |
* @return |
48 | 48 |
* the list of providers that has been registered. |
49 | 49 |
*/ |
50 |
@SuppressWarnings("rawtypes") |
|
51 |
public List getProviderNames(); |
|
50 |
public List<String> getProviderNames(); |
|
52 | 51 |
|
53 | 52 |
/** |
54 | 53 |
* Returns a list of providers that support all the |
... | ... | |
59 | 58 |
* @return |
60 | 59 |
* the list of providers that has been registered. |
61 | 60 |
*/ |
62 |
@SuppressWarnings("rawtypes") |
|
63 |
public List getProviderNames(int[] providerTypes); |
|
61 |
public List<String> getProviderNames(int[] providerTypes); |
|
64 | 62 |
|
65 | 63 |
/** |
66 | 64 |
* Returns the description for a concrete provider |
branches/v2_0_0_prep/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExporterSelectionListModel.java | ||
---|---|---|
36 | 36 |
* |
37 | 37 |
*/ |
38 | 38 |
public class ExporterSelectionListModel implements ListModel{ |
39 |
private static final long serialVersionUID = 7318074777874755865L; |
|
40 | 39 |
|
41 |
@SuppressWarnings("rawtypes") |
|
42 |
private List exporters = null; |
|
40 |
private List<String> exporters = null; |
|
43 | 41 |
|
44 | 42 |
public ExporterSelectionListModel(int[] providerTypes) { |
45 | 43 |
super(); |
... | ... | |
56 | 54 |
} |
57 | 55 |
|
58 | 56 |
public void addListDataListener(ListDataListener l) { |
59 |
// TODO Auto-generated method stub |
|
60 |
|
|
57 |
// Nothing to do |
|
61 | 58 |
} |
62 | 59 |
|
63 | 60 |
public void removeListDataListener(ListDataListener l) { |
64 |
// TODO Auto-generated method stub |
|
65 |
|
|
61 |
// Nothing to do |
|
66 | 62 |
} |
67 | 63 |
} |
branches/v2_0_0_prep/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingProviderManager.java | ||
---|---|---|
71 | 71 |
return new DefaultExporttoSwingProviderServices(); |
72 | 72 |
} |
73 | 73 |
|
74 |
@SuppressWarnings({ "rawtypes", "unchecked" }) |
|
75 |
public List getProviderNames() { |
|
74 |
public List<String> getProviderNames() { |
|
76 | 75 |
return getProviderNames(new int[0]); |
77 | 76 |
} |
78 | 77 |
|
79 |
@SuppressWarnings({ "rawtypes", "unchecked" }) |
|
80 |
public List getProviderNames(int[] providerTypes) { |
|
78 |
public List<String> getProviderNames(int[] providerTypes) { |
|
81 | 79 |
ExtensionPointManager extensionPointManager = ToolsLocator.getExtensionPointManager(); |
82 | 80 |
ExtensionPoint extensionPoint = extensionPointManager.get(this.getRegistryKey()); |
83 |
List providers = new ArrayList();
|
|
81 |
List<String> providers = new ArrayList<String>();
|
|
84 | 82 |
if (extensionPoint != null){ |
85 |
Iterator it = extensionPoint.iterator(); |
|
83 |
@SuppressWarnings("unchecked") |
|
84 |
Iterator<Extension> it = extensionPoint.iterator(); |
|
86 | 85 |
while (it.hasNext()){ |
87 |
Extension extension = (Extension)it.next();
|
|
86 |
Extension extension = it.next(); |
|
88 | 87 |
try { |
89 | 88 |
ExporttoSwingProviderFactory exporttoSwingProviderFactory = (ExporttoSwingProviderFactory)extension.create(); |
90 | 89 |
if (providerTypes.length == 0){ |
Also available in: Unified diff