mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Remove extension point from 2007 which isn't used in either IDEA or external plugins
GitOrigin-RevId: 5a06e29c45089c7b1c012d30a9cd942bbb28d5af
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dc7ec8c9d6
commit
ae20d4bfbc
-28
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2009 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.openapi.fileTypes.ex;
|
||||
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.openapi.fileTypes.UserFileType;
|
||||
import org.jdom.Element;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public interface CustomFileTypeFactory {
|
||||
ExtensionPointName<CustomFileTypeFactory> EP_NAME = ExtensionPointName.create("com.intellij.customFileTypeFactory");
|
||||
|
||||
@Nullable
|
||||
UserFileType createFileType(Element element);
|
||||
}
|
||||
+1
-10
@@ -1506,16 +1506,7 @@ public class FileTypeManagerImpl extends FileTypeManagerEx implements Persistent
|
||||
|
||||
Element element = typeElement.getChild(AbstractFileType.ELEMENT_HIGHLIGHTING);
|
||||
if (element == null) {
|
||||
for (CustomFileTypeFactory factory : CustomFileTypeFactory.EP_NAME.getExtensions()) {
|
||||
type = factory.createFileType(typeElement);
|
||||
if (type != null) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (type == null) {
|
||||
type = new UserBinaryFileType();
|
||||
}
|
||||
type = new UserBinaryFileType();
|
||||
}
|
||||
else {
|
||||
SyntaxTable table = AbstractFileType.readSyntaxTable(element);
|
||||
|
||||
@@ -89,7 +89,6 @@
|
||||
|
||||
<extensionPoint name="handleTypeFactory" interface="com.intellij.openapi.vcs.readOnlyHandler.HandleTypeFactory"
|
||||
area="IDEA_PROJECT"/>
|
||||
<extensionPoint name="customFileTypeFactory" interface="com.intellij.openapi.fileTypes.ex.CustomFileTypeFactory"/>
|
||||
<extensionPoint name="fileTypeRegistrator" interface="com.intellij.ide.highlighter.FileTypeRegistrator"/>
|
||||
|
||||
<extensionPoint name="undoProvider" interface="com.intellij.openapi.command.impl.UndoProvider"/>
|
||||
|
||||
Reference in New Issue
Block a user