Java 类com.intellij.openapi.projectRoots.ui.SdkPathEditor 实例源码

项目:consulo    文件:SdkEditor.java   
@Nonnull
@Override
protected JComponent createCenterComponent() {
  myTabbedPane = new TabbedPaneWrapper(myDisposable);
  for (OrderRootType type : OrderRootType.getAllTypes()) {
    if (showTabForType(type)) {
      final OrderRootTypeUIFactory factory = OrderRootTypeUIFactory.FACTORY.getByKey(type);
      if(factory == null) {
        continue;
      }

      SdkPathEditor pathEditor = getPathEditor(type);

      myTabbedPane.addTab(pathEditor.getDisplayName(), pathEditor.createComponent());
    }
  }

  myTabbedPane.addChangeListener(new ChangeListener() {
    @Override
    public void stateChanged(final ChangeEvent e) {
      myHistory.pushQueryPlace();
    }
  });
  return myTabbedPane.getComponent();
}
项目:tools-idea    文件:SourcesOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(final Sdk sdk) {
  return new SdkPathEditor(ProjectBundle.message("sdk.configure.sourcepath.tab"), OrderRootType.SOURCES, new FileChooserDescriptor(true, true, true, false, true, true)) {
    @Override
    protected VirtualFile[] adjustAddedFileSet(final Component component, final VirtualFile[] files) {
      if (sdk.getSdkType() instanceof JavaSdkType) {
        return PathUIUtils.scanAndSelectDetectedJavaSourceRoots(component, files);
      }
      return super.adjustAddedFileSet(component, files);
    }
  };
}
项目:intellij-ce-playground    文件:SourcesOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(final Sdk sdk) {
  FileChooserDescriptor descriptor = new FileChooserDescriptor(true, true, true, false, true, true);
  return new SourcesPathEditor(sdk, descriptor);
}
项目:intellij-ce-playground    文件:NativeLibraryOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk) {
  return null;
}
项目:intellij-ce-playground    文件:AnnotationsOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk) {
  return new SdkPathEditor(ProjectBundle.message("sdk.configure.annotations.tab"), AnnotationOrderRootType.getInstance(),
                           new FileChooserDescriptor(false, true, true, false, true, false));
}
项目:intellij-ce-playground    文件:ClassesOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk) {
  FileChooserDescriptor descriptor = new FileChooserDescriptor(true, true, true, false, true, true);
  return new MySdkPathEditor(descriptor);
}
项目:intellij-ce-playground    文件:JavadocOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk) {
  return new JavadocPathsEditor(sdk, FileChooserDescriptorFactory.createMultipleJavaPathDescriptor());
}
项目:intellij-ce-playground    文件:OrderRootTypeUIFactory.java   
@Nullable
SdkPathEditor createPathEditor(Sdk sdk);
项目:intellij-ce-playground    文件:DocumentationOrderRootTypeUIFactory.java   
@Override
@Nullable
public SdkPathEditor createPathEditor(Sdk sdk) {
  return null;
}
项目:DLangPlugin    文件:LibFileRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk)
{
    return new SdkPathEditor(getNodeText(), LibFileRootType.getInstance(),
            FileChooserDescriptorFactory.createSingleLocalFileDescriptor());
}
项目:tools-idea    文件:AnnotationsOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk) {
  return new SdkPathEditor(ProjectBundle.message("sdk.configure.annotations.tab"), AnnotationOrderRootType.getInstance(),
                           new FileChooserDescriptor(false, true, true, false, true, false));
}
项目:tools-idea    文件:ClassesOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk) {
  return new SdkPathEditor(ProjectBundle.message("sdk.configure.classpath.tab"), OrderRootType.CLASSES, new FileChooserDescriptor(true, true, true, false, true, true));
}
项目:tools-idea    文件:JavadocOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk) {
  return new JavadocPathsEditor(sdk);
}
项目:tools-idea    文件:DocumentationOrderRootTypeUIFactory.java   
@Override
@Nullable
public SdkPathEditor createPathEditor(Sdk sdk) {
  return null;
}
项目:consulo-dotnet    文件:ExternalAttributesOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk)
{
    return new SdkPathEditor(getNodeText(), ExternalAttributesRootOrderType.getInstance(),
            FileChooserDescriptorFactory.createSingleLocalFileDescriptor(), sdk);
}
项目:consulo    文件:BinariesOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk) {
  return new SdkPathEditor(ProjectBundle.message("library.binaries.node"), BinariesOrderRootType.getInstance(),
                           new FileChooserDescriptor(true, true, true, false, true, true), sdk);
}
项目:consulo    文件:SourcesOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(final Sdk sdk) {
  return new SdkPathEditor(ProjectBundle.message("library.sources.node"), SourcesOrderRootType.getInstance(),
                           new FileChooserDescriptor(true, true, true, false, true, true), sdk);
}
项目:consulo    文件:DocumentationOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk) {
  return new DocumentationPathsEditor(sdk);
}
项目:consulo-java    文件:NativeLibraryOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk)
{
    return null;
}
项目:consulo-java    文件:AnnotationsOrderRootTypeUIFactory.java   
@Override
public SdkPathEditor createPathEditor(Sdk sdk)
{
    return new SdkPathEditor(JavaCoreBundle.message("sdk.configure.external.annotations.tab"), AnnotationOrderRootType.getInstance(),
            new FileChooserDescriptor(false, true, true, false, true, false), sdk);
}
项目:tools-idea    文件:OrderRootTypeUIFactory.java   
SdkPathEditor createPathEditor(Sdk sdk);
项目:consulo    文件:OrderRootTypeUIFactory.java   
SdkPathEditor createPathEditor(Sdk sdk);