/******************************************************************************* * Copyright (c) 2013 Association for Decentralized Information Management in * Industry THTH ry. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Semantum Oy - initial API and implementation *******************************************************************************/ package org.simantics.modeling.ui.componentTypeEditor; import java.util.Map; import org.eclipse.jface.dialogs.IDialogSettings; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Shell; import org.simantics.db.Resource; import org.simantics.modeling.ui.Activator; import org.simantics.ui.workbench.dialogs.ResourceSelectionDialog3; import org.simantics.utils.datastructures.Pair; public class SetTypesDialog extends ResourceSelectionDialog3 { public SetTypesDialog(Shell shell, Map> parameter, String title) { super(shell, parameter, title); } @Override protected IDialogSettings getBaseDialogSettings() { return Activator.getDefault().getDialogSettings(); } @Override protected Control createExtendedContentArea(Composite parent) { return super.createExtendedContentArea(parent); } @Override protected void handleSelected(StructuredSelection selection) { super.handleSelected(selection); validatePage(); } protected void validatePage() { } }