Java 类com.intellij.util.NewInstanceFactory 实例源码

项目:intellij-ce-playground    文件:AntBuildFileImpl.java   
public AntBuildFileImpl(final XmlFile antFile, final AntConfigurationBase configuration) {
  myVFile = antFile.getOriginalFile().getVirtualFile();
  myProject = antFile.getProject();
  myAntConfiguration = configuration;
  myWorkspaceOptions = new ExternalizablePropertyContainer();
  myWorkspaceOptions.registerProperty(RUN_IN_BACKGROUND);
  myWorkspaceOptions.registerProperty(CLOSE_ON_NO_ERRORS);
  myWorkspaceOptions.registerProperty(TREE_VIEW);
  myWorkspaceOptions.registerProperty(VERBOSE);
  myWorkspaceOptions.registerProperty(TARGET_FILTERS, "filter", NewInstanceFactory.fromClass(TargetFilter.class));

  myWorkspaceOptions.rememberKey(RUN_WITH_ANT);

  myProjectOptions = new ExternalizablePropertyContainer();
  myProjectOptions.registerProperty(MAX_HEAP_SIZE);
  myProjectOptions.registerProperty(MAX_STACK_SIZE);
  myProjectOptions.registerProperty(CUSTOM_JDK_NAME);
  myProjectOptions.registerProperty(ANT_COMMAND_LINE_PARAMETERS);
  myProjectOptions.registerProperty(ANT_PROPERTIES, "property", NewInstanceFactory.fromClass(BuildFileProperty.class));
  myProjectOptions.registerProperty(ADDITIONAL_CLASSPATH, "entry", SinglePathEntry.EXTERNALIZER);
  myProjectOptions.registerProperty(ANT_REFERENCE, AntReference.EXTERNALIZER);

  myAllOptions = new CompositePropertyContainer(new AbstractProperty.AbstractPropertyContainer[]{myWorkspaceOptions, myProjectOptions,
    GlobalAntConfiguration.getInstance().getProperties(getProject())});

  myClassloaderHolder = new AntBuildFileClassLoaderHolder(myAllOptions);
}
项目:tools-idea    文件:AntBuildFileImpl.java   
public AntBuildFileImpl(final XmlFile antFile, final AntConfigurationBase configuration) {
  myVFile = antFile.getOriginalFile().getVirtualFile();
  myProject = antFile.getProject();
  myAntConfiguration = configuration;
  myWorkspaceOptions = new ExternalizablePropertyContainer();
  myWorkspaceOptions.registerProperty(RUN_IN_BACKGROUND);
  myWorkspaceOptions.registerProperty(CLOSE_ON_NO_ERRORS);
  myWorkspaceOptions.registerProperty(TREE_VIEW);
  myWorkspaceOptions.registerProperty(VERBOSE);
  myWorkspaceOptions.registerProperty(TARGET_FILTERS, "filter", NewInstanceFactory.fromClass(TargetFilter.class));

  myWorkspaceOptions.rememberKey(RUN_WITH_ANT);

  myProjectOptions = new ExternalizablePropertyContainer();
  myProjectOptions.registerProperty(MAX_HEAP_SIZE);
  myProjectOptions.registerProperty(MAX_STACK_SIZE);
  myProjectOptions.registerProperty(CUSTOM_JDK_NAME);
  myProjectOptions.registerProperty(ANT_COMMAND_LINE_PARAMETERS);
  myProjectOptions.registerProperty(ANT_PROPERTIES, "property", NewInstanceFactory.fromClass(BuildFileProperty.class));
  myProjectOptions.registerProperty(ADDITIONAL_CLASSPATH, "entry", SinglePathEntry.EXTERNALIZER);
  myProjectOptions.registerProperty(ANT_REFERENCE, AntReference.EXTERNALIZER);

  myAllOptions = new CompositePropertyContainer(new AbstractProperty.AbstractPropertyContainer[]{myWorkspaceOptions, myProjectOptions,
    GlobalAntConfiguration.getInstance().getProperties(getProject())});

  myClassloaderHolder = new AntBuildFileClassLoaderHolder(myAllOptions);
}
项目:consulo-apache-ant    文件:AntBuildFileImpl.java   
public AntBuildFileImpl(final XmlFile antFile, final AntConfigurationBase configuration)
{
    myVFile = antFile.getOriginalFile().getVirtualFile();
    myProject = antFile.getProject();
    myAntConfiguration = configuration;
    myWorkspaceOptions = new ExternalizablePropertyContainer();
    myWorkspaceOptions.registerProperty(RUN_IN_BACKGROUND);
    myWorkspaceOptions.registerProperty(CLOSE_ON_NO_ERRORS);
    myWorkspaceOptions.registerProperty(TREE_VIEW);
    myWorkspaceOptions.registerProperty(VERBOSE);
    myWorkspaceOptions.registerProperty(TARGET_FILTERS, "filter", NewInstanceFactory.fromClass(TargetFilter.class));

    myWorkspaceOptions.rememberKey(RUN_WITH_ANT);

    myProjectOptions = new ExternalizablePropertyContainer();
    myProjectOptions.registerProperty(MAX_HEAP_SIZE);
    myProjectOptions.registerProperty(MAX_STACK_SIZE);
    myProjectOptions.registerProperty(CUSTOM_JDK_NAME);
    myProjectOptions.registerProperty(ANT_COMMAND_LINE_PARAMETERS);
    myProjectOptions.registerProperty(ANT_PROPERTIES, "property", NewInstanceFactory.fromClass(BuildFileProperty.class));
    myProjectOptions.registerProperty(ADDITIONAL_CLASSPATH, "entry", SinglePathEntry.EXTERNALIZER);
    myProjectOptions.registerProperty(ANT_REFERENCE, AntReference.EXTERNALIZER);

    myAllOptions = new CompositePropertyContainer(new AbstractProperty.AbstractPropertyContainer[]{
            myWorkspaceOptions,
            myProjectOptions,
            GlobalAntConfiguration.getInstance().getProperties(getProject())
    });

    myClassloaderHolder = new AntBuildFileClassLoaderHolder(myAllOptions);
}