--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.browsing.ui.common.extension;\r
+\r
+import org.simantics.browsing.ui.common.extension.internal.ContributorReferenceBinding;\r
+import org.simantics.browsing.ui.common.extension.internal.LabelDecoratorContributorReferenceBinding;\r
+import org.simantics.browsing.ui.content.LabelDecoratorFactory;\r
+\r
+/**\r
+ * @author Tuukka Lehtonen\r
+ */\r
+public class LabelDecoratorContributorBindingExtensionManager extends ContributorBindingExtensionManager<LabelDecoratorFactory> {\r
+\r
+ private static LabelDecoratorContributorBindingExtensionManager INSTANCE;\r
+ \r
+ public static synchronized LabelDecoratorContributorBindingExtensionManager getInstance() {\r
+ if (INSTANCE == null)\r
+ INSTANCE = new LabelDecoratorContributorBindingExtensionManager();\r
+ return INSTANCE;\r
+ }\r
+\r
+ public static synchronized void dispose() {\r
+ if (INSTANCE != null) {\r
+ INSTANCE.close();\r
+ INSTANCE = null;\r
+ }\r
+ }\r
+\r
+ @Override\r
+ String getExtensionPointName() {\r
+ return "labelDecoratorBinding";\r
+ }\r
+ \r
+ @Override\r
+ ContributorReferenceBinding<LabelDecoratorFactory> createReferenceBinding(double preference, String browseContext, String factoryId) {\r
+ return new LabelDecoratorContributorReferenceBinding(preference, browseContext, factoryId);\r
+ }\r
+\r
+}\r