From 001fe3c76cf8b4fe0720caf7ee119e3b196b3f98 Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Fri, 28 Jan 2011 11:56:11 +0300 Subject: [PATCH] StandardResourceEP --- .../intellij/javaee/StandardResourceEP.java | 40 +++++++++++++++++++ .../javaee/StandardResourceProvider.java | 2 + 2 files changed, 42 insertions(+) create mode 100644 xml/openapi/src/com/intellij/javaee/StandardResourceEP.java diff --git a/xml/openapi/src/com/intellij/javaee/StandardResourceEP.java b/xml/openapi/src/com/intellij/javaee/StandardResourceEP.java new file mode 100644 index 000000000000..fda686dcbf47 --- /dev/null +++ b/xml/openapi/src/com/intellij/javaee/StandardResourceEP.java @@ -0,0 +1,40 @@ +/* + * Copyright 2000-2011 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.intellij.javaee; + +import com.intellij.openapi.extensions.AbstractExtensionPointBean; +import com.intellij.openapi.extensions.ExtensionPointName; +import com.intellij.util.xmlb.annotations.Attribute; + +/** + * @author Dmitry Avdeev + */ +public class StandardResourceEP extends AbstractExtensionPointBean { + + public static final ExtensionPointName EP_NAME = ExtensionPointName.create("com.intellij.standardResource"); + + /** + * URL or URI to be mapped to given resource, e.g. http://www.w3.org/2001/XMLSchema + */ + @Attribute("url") + public String url; + + /** + * Path to resource, e.g. /foo/bar.xsd + */ + @Attribute("path") + public String resourcePath; +} diff --git a/xml/openapi/src/com/intellij/javaee/StandardResourceProvider.java b/xml/openapi/src/com/intellij/javaee/StandardResourceProvider.java index f23c3251b0f6..c0f3711997a9 100644 --- a/xml/openapi/src/com/intellij/javaee/StandardResourceProvider.java +++ b/xml/openapi/src/com/intellij/javaee/StandardResourceProvider.java @@ -20,6 +20,8 @@ import com.intellij.openapi.extensions.ExtensionPointName; /** * @author Dmitry Avdeev + * @deprecated + * @see StandardResourceEP */ public interface StandardResourceProvider {