X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.selectionview%2Fsrc%2Forg%2Fsimantics%2Fselectionview%2FPropertyTabContributor.java;h=41ba5a89cf469d1a9ac816311a762775b3e2f882;hb=HEAD;hp=d618aa42185922f00ae2b2af55c2a9c04fd14398;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.selectionview/src/org/simantics/selectionview/PropertyTabContributor.java b/bundles/org.simantics.selectionview/src/org/simantics/selectionview/PropertyTabContributor.java index d618aa421..41ba5a89c 100644 --- a/bundles/org.simantics.selectionview/src/org/simantics/selectionview/PropertyTabContributor.java +++ b/bundles/org.simantics.selectionview/src/org/simantics/selectionview/PropertyTabContributor.java @@ -1,55 +1,55 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.selectionview; - -import org.eclipse.swt.widgets.Composite; -import org.eclipse.ui.IWorkbenchSite; -import org.eclipse.ui.part.IPageSite; -import org.eclipse.ui.part.PageBook; -import org.simantics.db.management.ISessionContext; -import org.simantics.selectionview.ComparableTabContributor; -import org.simantics.selectionview.SelectionProcessor; - -/** - * A {@link PropertyTabContributor} is used to encapsulate initialization of the - * controls of a single tab control within a tabbed property page. - * PropertyTabContributors are created internally by {@link SelectionProcessor} - * implementations. - * - *

- * {@link ComparableTabContributor} is used for ordering a set of - * {@link PropertyTabContributor}s according to their designated priority. This - * is necessary to make the tabbed UI presentation order deterministic. - * - * @author Tuukka Lehtonen - * - * @see ComparableTabContributor - */ -public interface PropertyTabContributor { - - /** - * Creates and initializes a property tab (see {@link IPropertyTab}). - * - * @param parent the parent composite for the property tab to create - * @param site site of the {@link PageBook} page this TabbedPropertyTable - * contributes to (see {@link IPageSite}) - * @param context the current database session context - * @param input processed input provided internally by - * {@link SelectionProcessor} implementations. Do not pass this on, - * to get input for property tab, wait for invocations to - * {@link IPropertyTab#setInput(ISessionContext, org.eclipse.jface.viewers.ISelection, boolean)} - * instead - * @return the created property tab control - */ - IPropertyTab create(Composite parent, IWorkbenchSite site, ISessionContext context, Object input); - +/******************************************************************************* + * Copyright (c) 2007, 2010 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.selectionview; + +import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.IWorkbenchSite; +import org.eclipse.ui.part.IPageSite; +import org.eclipse.ui.part.PageBook; +import org.simantics.db.management.ISessionContext; +import org.simantics.selectionview.ComparableTabContributor; +import org.simantics.selectionview.SelectionProcessor; + +/** + * A {@link PropertyTabContributor} is used to encapsulate initialization of the + * controls of a single tab control within a tabbed property page. + * PropertyTabContributors are created internally by {@link SelectionProcessor} + * implementations. + * + *

+ * {@link ComparableTabContributor} is used for ordering a set of + * {@link PropertyTabContributor}s according to their designated priority. This + * is necessary to make the tabbed UI presentation order deterministic. + * + * @author Tuukka Lehtonen + * + * @see ComparableTabContributor + */ +public interface PropertyTabContributor { + + /** + * Creates and initializes a property tab (see {@link IPropertyTab}). + * + * @param parent the parent composite for the property tab to create + * @param site site of the {@link PageBook} page this TabbedPropertyTable + * contributes to (see {@link IPageSite}) + * @param context the current database session context + * @param input processed input provided internally by + * {@link SelectionProcessor} implementations. Do not pass this on, + * to get input for property tab, wait for invocations to + * {@link IPropertyTab#setInput(ISessionContext, org.eclipse.jface.viewers.ISelection, boolean)} + * instead + * @return the created property tab control + */ + IPropertyTab create(Composite parent, IWorkbenchSite site, ISessionContext context, Object input); + } \ No newline at end of file