X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.diagram%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fsymbolcontribution%2FSymbolItem.java;h=8db014543a2b7fbac92581ee17464a1b00feed7b;hb=HEAD;hp=b6fedf949f7bfb1f5aa41665f3b512fa65d1ff4c;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/symbolcontribution/SymbolItem.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/symbolcontribution/SymbolItem.java index b6fedf949..8db014543 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/symbolcontribution/SymbolItem.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/symbolcontribution/SymbolItem.java @@ -1,49 +1,49 @@ -/******************************************************************************* - * 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.symbolcontribution; - -import org.simantics.diagram.symbollibrary.ISymbolGroup; -import org.simantics.diagram.symbollibrary.ISymbolItem; - -/** - * @author Tuukka Lehtonen - */ -public abstract class SymbolItem extends NamedObject implements ISymbolItem { - - private final ISymbolGroup group; - private final String description; - - public SymbolItem(Object identification, String name, ISymbolGroup group) { - this(identification, name, name, group); - } - - public SymbolItem(Object identification, String name, String description, ISymbolGroup group) { - super(identification, name); - if (description == null) - throw new NullPointerException("null description"); - if (group == null) - throw new NullPointerException("null group"); - this.description = description; - this.group = group; - } - - @Override - public String getDescription() { - return description; - } - - @Override - public ISymbolGroup getGroup() { - return group; - } - +/******************************************************************************* + * 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.symbolcontribution; + +import org.simantics.diagram.symbollibrary.ISymbolGroup; +import org.simantics.diagram.symbollibrary.ISymbolItem; + +/** + * @author Tuukka Lehtonen + */ +public abstract class SymbolItem extends NamedObject implements ISymbolItem { + + private final ISymbolGroup group; + private final String description; + + public SymbolItem(Object identification, String name, ISymbolGroup group) { + this(identification, name, name, group); + } + + public SymbolItem(Object identification, String name, String description, ISymbolGroup group) { + super(identification, name); + if (description == null) + throw new NullPointerException("null description"); + if (group == null) + throw new NullPointerException("null group"); + this.description = description; + this.group = group; + } + + @Override + public String getDescription() { + return description; + } + + @Override + public ISymbolGroup getGroup() { + return group; + } + } \ No newline at end of file