X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2FcomponentTypeEditor%2FSetTypesDialog.java;h=ce9add3f0954e7c39cc2a7b1ef47cd653ec2410d;hb=refs%2Fchanges%2F38%2F238%2F2;hp=3206d30219db9c956cd79a72ca39736ca695f7cd;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/SetTypesDialog.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/SetTypesDialog.java index 3206d3021..ce9add3f0 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/SetTypesDialog.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/SetTypesDialog.java @@ -1,53 +1,53 @@ -/******************************************************************************* - * 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() { - } - +/******************************************************************************* + * 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() { + } + } \ No newline at end of file