Package org.locationtech.udig.catalog.teradata

Source Code of org.locationtech.udig.catalog.teradata.HostPage

/* uDig - User Friendly Desktop Internet GIS client
* http://udig.refractions.net
* (C) 2011, Refractions Research Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* (http://www.eclipse.org/legal/epl-v10.html), and the Refractions BSD
* License v1.0 (http://udig.refractions.net/files/bsd3-v10.html).
*/
package org.locationtech.udig.catalog.teradata;

import org.locationtech.udig.catalog.service.database.UserHostPage;
import org.locationtech.udig.catalog.ui.workflow.WorkflowWizard;

import org.eclipse.swt.widgets.Composite;

import org.locationtech.udig.catalog.teradata.internal.Messages;

public class HostPage extends UserHostPage {

  public HostPage() {
    super(new TeradataDialect());
  }

  @Override
  public void createControl(Composite parent) {
    super.createControl(parent);
    WorkflowWizard wizard = getWizard();
    wizard.setWindowTitle(Messages.TeradataGeoResource_hostPageTitle);

    if(!Activator.checkTeradataDrivers()) {
      wizard.performCancel();
      parent.getShell().close();
    }
  }
}
TOP

Related Classes of org.locationtech.udig.catalog.teradata.HostPage

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.