mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
DomExtender: JavaDoc, cleanup
GitOrigin-RevId: 5f979331cf701bdc0abf53389e8cd08ee8d1ad68
This commit is contained in:
committed by
intellij-monorepo-bot
parent
34a4e1ee1e
commit
617c99e71a
@@ -1,28 +1,11 @@
|
||||
/*
|
||||
* Copyright 2000-2015 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.
|
||||
*/
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.util.xml.reflect;
|
||||
|
||||
import com.intellij.diagnostic.PluginException;
|
||||
import com.intellij.openapi.application.Application;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.extensions.AbstractExtensionPointBean;
|
||||
import com.intellij.openapi.extensions.ExtensionPointListener;
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.openapi.extensions.PluginDescriptor;
|
||||
import com.intellij.openapi.extensions.*;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.stubs.StubIndex;
|
||||
import com.intellij.util.xml.impl.DomInvocationHandler;
|
||||
@@ -34,6 +17,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author peter
|
||||
* @see DomExtender
|
||||
*/
|
||||
public class DomExtenderEP extends AbstractExtensionPointBean {
|
||||
|
||||
@@ -62,8 +46,11 @@ public class DomExtenderEP extends AbstractExtensionPointBean {
|
||||
}, app);
|
||||
}
|
||||
|
||||
@RequiredElement
|
||||
@Attribute("domClass")
|
||||
public String domClassName;
|
||||
|
||||
@RequiredElement
|
||||
@Attribute("extenderClass")
|
||||
public String extenderClassName;
|
||||
|
||||
|
||||
@@ -1,29 +1,16 @@
|
||||
/*
|
||||
* Copyright 2000-2016 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.
|
||||
*/
|
||||
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.util.xml.reflect;
|
||||
|
||||
import com.intellij.util.xml.DomElement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Register DOM extenders via {@code dom.extender} extension point. Specify 2 attributes:
|
||||
* Register DOM extenders via {@code com.intellij.dom.extender} extension point.
|
||||
* <p>
|
||||
* Specify:
|
||||
* <ul>
|
||||
* <li>domClass - the DOM element class for which this extender will be called, must be equal to T</li>
|
||||
* <li>extenderClass - this class qualified name</li>
|
||||
* <li>{@code domClass} - the DOM element class for which this extender will be called, must be equal to {@link T}</li>
|
||||
* <li>{@code extenderClass} - this class qualified name</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author peter
|
||||
@@ -38,7 +25,7 @@ public abstract class DomExtender<T extends DomElement> {
|
||||
|
||||
/**
|
||||
* Makes stub building for extensions available.
|
||||
* To be compatible with general stubs contract, extension should NOT depend on anything beyond current file's content.
|
||||
* To be compatible with general stubs contract, extension must NOT depend on anything beyond current file's content.
|
||||
*/
|
||||
public boolean supportsStubs() {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user