Search in sources :

Example 1 with GeoServerConnectionManagerInterface

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);
}
Also used : MalformedURLException(java.net.MalformedURLException) GeoServerVendorOption(com.sldeditor.common.vendoroption.GeoServerVendorOption) ArrayList(java.util.ArrayList) GeoServerConnection(com.sldeditor.common.data.GeoServerConnection) URL(java.net.URL) GeoServerClientInterface(com.sldeditor.extension.filesystem.geoserver.client.GeoServerClientInterface) VersionData(com.sldeditor.common.vendoroption.VersionData) GeoServerConnectionManagerInterface(com.sldeditor.common.connection.GeoServerConnectionManagerInterface) GeoServerReadProgress(com.sldeditor.extension.filesystem.geoserver.GeoServerReadProgress)

Aggregations

GeoServerConnectionManagerInterface (com.sldeditor.common.connection.GeoServerConnectionManagerInterface)1 GeoServerConnection (com.sldeditor.common.data.GeoServerConnection)1 GeoServerVendorOption (com.sldeditor.common.vendoroption.GeoServerVendorOption)1 VersionData (com.sldeditor.common.vendoroption.VersionData)1 GeoServerReadProgress (com.sldeditor.extension.filesystem.geoserver.GeoServerReadProgress)1 GeoServerClientInterface (com.sldeditor.extension.filesystem.geoserver.client.GeoServerClientInterface)1 MalformedURLException (java.net.MalformedURLException)1 URL (java.net.URL)1 ArrayList (java.util.ArrayList)1