X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.ui%2Fsrc%2Forg%2Fsimantics%2Fui%2Ficons%2FImageDescriptorProviders.java;h=69c22eaa15f8ba7e4fae0ba7b68359d4b17b2ff1;hb=bd1e84d0abcb2cc4c8324a8881f29fa1eb3751fc;hp=d7880e682d2b1737e5e4c52c579b9adb16940cbd;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.ui/src/org/simantics/ui/icons/ImageDescriptorProviders.java b/bundles/org.simantics.ui/src/org/simantics/ui/icons/ImageDescriptorProviders.java index d7880e682..69c22eaa1 100644 --- a/bundles/org.simantics.ui/src/org/simantics/ui/icons/ImageDescriptorProviders.java +++ b/bundles/org.simantics.ui/src/org/simantics/ui/icons/ImageDescriptorProviders.java @@ -1,35 +1,35 @@ -/******************************************************************************* - * 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.ui.icons; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.simantics.utils.datastructures.cache.ProvisionException; - -/** - * @author Tuukka Lehtonen - */ -public final class ImageDescriptorProviders { - - public static final ImageDescriptorProvider none() { - return NullImageDescriptorProvider.INSTANCE; - } - - public static final ImageDescriptorProvider constant(final ImageDescriptor desc) { - return new ImageDescriptorProvider() { - @Override - public ImageDescriptor get() throws ProvisionException { - return desc; - } - }; - } - -} +/******************************************************************************* + * 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.ui.icons; + +import org.eclipse.jface.resource.ImageDescriptor; +import org.simantics.utils.datastructures.cache.ProvisionException; + +/** + * @author Tuukka Lehtonen + */ +public final class ImageDescriptorProviders { + + public static final ImageDescriptorProvider none() { + return NullImageDescriptorProvider.INSTANCE; + } + + public static final ImageDescriptorProvider constant(final ImageDescriptor desc) { + return new ImageDescriptorProvider() { + @Override + public ImageDescriptor get() throws ProvisionException { + return desc; + } + }; + } + +}