use of com.sldeditor.common.connection.GeoServerConnectionManagerInterface in project sldeditor by robward-scisys.
the class RenderTransformationDialog method main.
/**
* The main method.
*
* @param args the arguments
*/
public static void main(String[] args) {
GeoServerConnectionManagerInterface dummyInterface = new GeoServerConnectionManagerInterface() {
@Override
public List<GeoServerConnection> getConnectionList() {
List<GeoServerConnection> list = new ArrayList<GeoServerConnection>();
GeoServerConnection connection = new GeoServerConnection();
connection.setConnectionName("Test");
try {
connection.setUrl(new URL("http://localhost:8080/geoserver"));
connection.setUserName("admin");
connection.setPassword("geoserver");
list.add(connection);
} catch (MalformedURLException e) {
e.printStackTrace();
}
return list;
}
@Override
public void updateList() {
}
@Override
public GeoServerConnection getConnection(String connectionDataName) {
return null;
}
@Override
public void readPropertyFile(GeoServerReadProgress progress) {
}
@Override
public Map<GeoServerConnection, GeoServerClientInterface> getConnectionMap() {
return null;
}
@Override
public void removeConnection(GeoServerConnection connection) {
}
@Override
public void addNewConnection(GeoServerReadProgress progress, GeoServerConnection newConnectionDetails) {
}
};
List<VersionData> vendorOptionList = new ArrayList<VersionData>();
vendorOptionList.add(VersionData.getLatestVersion(GeoServerVendorOption.class));
VendorOptionManager.getInstance().setSelectedVendorOptions(vendorOptionList);
RenderTransformationDialog dlg = new RenderTransformationDialog(dummyInterface);
dlg.showDialog(null);
}
Aggregations