X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.diagram%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fsymbollibrary%2Fui%2FFilterConfiguration.java;h=93c601610b17022f28da13c1344c675cfa701cd9;hb=c26409b1caf2f1e560d37c5befd11b442399c3fe;hp=99d857bf7071c7965dde0dc83be0b2fb533f7f14;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/symbollibrary/ui/FilterConfiguration.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/symbollibrary/ui/FilterConfiguration.java index 99d857bf7..93c601610 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/symbollibrary/ui/FilterConfiguration.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/symbollibrary/ui/FilterConfiguration.java @@ -1,56 +1,56 @@ -/******************************************************************************* - * 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.diagram.symbollibrary.ui; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author Tuukka Lehtonen - */ -class FilterConfiguration { - - public enum Mode { - AND, OR - }; - - Mode mode; - List filters = new ArrayList(); - - public FilterConfiguration() { - this.mode = Mode.OR; - this.filters = new ArrayList(); - } - - public FilterConfiguration(List filters) { - this.mode = Mode.OR; - this.filters = filters; - } - - public FilterConfiguration(FilterConfiguration orig) { - this.mode = orig.mode; - this.filters = new ArrayList(orig.filters); - } - - List getFilters() { - return filters; - } - - void setMode(Mode mode) { - this.mode = mode; - } - - Mode getMode() { - return mode; - } - -} +/******************************************************************************* + * 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.diagram.symbollibrary.ui; + +import java.util.ArrayList; +import java.util.List; + +/** + * @author Tuukka Lehtonen + */ +class FilterConfiguration { + + public enum Mode { + AND, OR + }; + + Mode mode; + List filters = new ArrayList(); + + public FilterConfiguration() { + this.mode = Mode.OR; + this.filters = new ArrayList(); + } + + public FilterConfiguration(List filters) { + this.mode = Mode.OR; + this.filters = filters; + } + + public FilterConfiguration(FilterConfiguration orig) { + this.mode = orig.mode; + this.filters = new ArrayList(orig.filters); + } + + List getFilters() { + return filters; + } + + void setMode(Mode mode) { + this.mode = mode; + } + + Mode getMode() { + return mode; + } + +}