diff --git a/java/java-impl/src/com/intellij/openapi/fileTypes/impl/JavaFileTypeFactory.java b/java/java-impl/src/com/intellij/openapi/fileTypes/impl/JavaFileTypeFactory.java
new file mode 100644
index 000000000000..3e9308b78783
--- /dev/null
+++ b/java/java-impl/src/com/intellij/openapi/fileTypes/impl/JavaFileTypeFactory.java
@@ -0,0 +1,28 @@
+/*
+ * 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.openapi.fileTypes.impl;
+
+import com.intellij.ide.highlighter.*;
+import com.intellij.openapi.fileTypes.FileTypeConsumer;
+import com.intellij.openapi.fileTypes.FileTypeFactory;
+import org.jetbrains.annotations.NotNull;
+
+public class JavaFileTypeFactory extends FileTypeFactory {
+ public void createFileTypes(@NotNull final FileTypeConsumer consumer) {
+ consumer.consume(JavaClassFileType.INSTANCE, "class");
+ consumer.consume(JavaFileType.INSTANCE, "java");
+ }
+}
diff --git a/java/java-impl/src/com/intellij/openapi/fileTypes/impl/DefaultFileTypeFactory.java b/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/InternalFileTypeFactory.java
similarity index 83%
rename from java/java-impl/src/com/intellij/openapi/fileTypes/impl/DefaultFileTypeFactory.java
rename to platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/InternalFileTypeFactory.java
index a3eeed115857..5224b1309f4d 100644
--- a/java/java-impl/src/com/intellij/openapi/fileTypes/impl/DefaultFileTypeFactory.java
+++ b/platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/InternalFileTypeFactory.java
@@ -15,7 +15,9 @@
*/
package com.intellij.openapi.fileTypes.impl;
-import com.intellij.ide.highlighter.*;
+import com.intellij.ide.highlighter.ModuleFileType;
+import com.intellij.ide.highlighter.ProjectFileType;
+import com.intellij.ide.highlighter.WorkspaceFileType;
import com.intellij.openapi.fileTypes.FileTypeConsumer;
import com.intellij.openapi.fileTypes.FileTypeFactory;
import org.jetbrains.annotations.NotNull;
@@ -23,11 +25,8 @@ import org.jetbrains.annotations.NotNull;
/**
* @author peter
*/
-public class DefaultFileTypeFactory extends FileTypeFactory {
+public class InternalFileTypeFactory extends FileTypeFactory {
public void createFileTypes(@NotNull final FileTypeConsumer consumer) {
- consumer.consume(JavaClassFileType.INSTANCE, "class");
- consumer.consume(JavaFileType.INSTANCE, "java");
-
consumer.consume(new WorkspaceFileType(), WorkspaceFileType.DEFAULT_EXTENSION);
consumer.consume(new ModuleFileType(), ModuleFileType.DEFAULT_EXTENSION);
consumer.consume(new ProjectFileType(), ProjectFileType.DEFAULT_EXTENSION);
diff --git a/resources/src/META-INF/IdeaPlugin.xml b/resources/src/META-INF/IdeaPlugin.xml
index 4a5250c99733..4a865ea8504a 100644
--- a/resources/src/META-INF/IdeaPlugin.xml
+++ b/resources/src/META-INF/IdeaPlugin.xml
@@ -2,34 +2,37 @@
com.intellij
IDEA CORE
-
-
-
-
-
+
-
-
-
-
-
-
-
+
+
+ com.intellij.util.xml.impl.JavaDomApplicationComponent
+
+
+
+
+ com.intellij.psi.JavaPsiFacade
+ com.intellij.psi.impl.JavaPsiFacadeImpl
+
+
+
+ com.intellij.pom.java.PomJavaAspect
+ com.intellij.pom.java.impl.PomJavaAspectImpl
+
+
+
+
-
-
-
-
@@ -57,24 +60,9 @@
-
-
-
-
-
-
-
-
-
-
@@ -84,14 +72,6 @@
-
-
-
-
-
-
@@ -107,39 +87,18 @@
interface="com.intellij.openapi.compiler.util.InspectionValidator"
area="IDEA_PROJECT"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -147,8 +106,6 @@
-
-
@@ -163,21 +120,10 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -199,10 +145,6 @@
-
-
-
-
@@ -226,9 +168,7 @@
-
-
-
+
-
-
-
-
-
-
-
-
@@ -285,34 +217,17 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -339,14 +245,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
com.intellij.codeInsight.intention.impl.SplitIfAction
@@ -633,54 +452,6 @@
Numbers
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -730,7 +501,6 @@
-
@@ -743,40 +513,14 @@
implementationClass="com.intellij.codeInsight.editorActions.smartEnter.JavaSmartEnterProcessor"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -832,29 +576,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -878,7 +604,7 @@
-
+
@@ -899,7 +625,6 @@
-
@@ -925,12 +650,8 @@
-
-
-
-
@@ -960,11 +681,6 @@
-
-
-
-
-
@@ -1033,7 +749,6 @@
serviceImplementation="com.intellij.codeInsight.TargetElementUtil"/>
-
@@ -1091,9 +806,6 @@
-
-
@@ -1119,7 +831,7 @@
-
+
@@ -1134,9 +846,6 @@
-
-
-
@@ -1168,33 +877,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/resources/src/componentSets/Core.xml b/resources/src/componentSets/Core.xml
deleted file mode 100644
index 4ab78983bde7..000000000000
--- a/resources/src/componentSets/Core.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
- com.intellij.ide.RecentProjectsManagerBase
- com.intellij.ide.RecentProjectsManager
-
-
- com.intellij.util.xml.impl.JavaDomApplicationComponent
-
-
-
-
-
-
- com.intellij.facet.impl.autodetecting.FacetAutodetectingManager
- com.intellij.facet.impl.autodetecting.FacetAutodetectingManagerImpl
-
-
- com.intellij.ide.impl.convert.ProjectFileVersion
- com.intellij.ide.impl.convert.ProjectFileVersionImpl
-
-
- com.intellij.psi.JavaPsiFacade
- com.intellij.psi.impl.JavaPsiFacadeImpl
-
-
-
- com.intellij.pom.java.PomJavaAspect
- com.intellij.pom.java.impl.PomJavaAspectImpl
-
-
-
-
-
diff --git a/resources/src/componentSets/IdeaComponents.xml b/resources/src/componentSets/IdeaComponents.xml
index 3b1f60235326..78cdb3487a10 100644
--- a/resources/src/componentSets/IdeaComponents.xml
+++ b/resources/src/componentSets/IdeaComponents.xml
@@ -27,7 +27,6 @@
-
diff --git a/resources/src/idea/RichPlatformPlugin.xml b/resources/src/idea/RichPlatformPlugin.xml
new file mode 100644
index 000000000000..f97d93819572
--- /dev/null
+++ b/resources/src/idea/RichPlatformPlugin.xml
@@ -0,0 +1,378 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ com.intellij.ide.RecentProjectsManagerBase
+ com.intellij.ide.RecentProjectsManager
+
+
+
+
+
+ com.intellij.facet.impl.autodetecting.FacetAutodetectingManager
+ com.intellij.facet.impl.autodetecting.FacetAutodetectingManagerImpl
+
+
+ com.intellij.ide.impl.convert.ProjectFileVersion
+ com.intellij.ide.impl.convert.ProjectFileVersionImpl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+