public SdkEditor(SdkModel sdkModel, History history, final ProjectJdkImpl sdk) { mySdkModel = sdkModel; myHistory = history; mySdk = sdk; createMainPanel(); initSdk(sdk); }
@Override @Nullable public Object getData(@NonNls final String dataId) { if (KEY.is(dataId)) { return ProjectStructureConfigurable.this; } else if (History.KEY.is(dataId)) { return getHistory(); } else { return null; } }
public JdkConfigurable(final ProjectJdkImpl projectJdk, final ProjectSdksModel sdksModel, final Runnable updateTree, @NotNull History history, Project project) { super(true, updateTree); myProjectJdk = projectJdk; mySdkEditor = createSdkEditor(sdksModel, history, myProjectJdk); final StructureConfigurableContext context = ModuleStructureConfigurable.getInstance(project).getContext(); myProjectStructureElement = new SdkProjectStructureElement(context, myProjectJdk); }
public void init(History history) { myHistory = history; for (ModuleConfigurationEditor each : myEditors) { if (each instanceof ModuleElementsEditor) { ((ModuleElementsEditor)each).setHistory(myHistory); } } restoreSelectedEditor(); }
@Override public Object getData(@NonNls final String dataId) { if (Settings.KEY.is(dataId)) { return mySettings; } if (KEY.is(dataId)) { return this; } return History.KEY.is(dataId) ? myHistory : null; }
@Override public Object getData(@NonNls final String dataId) { if (KEY.is(dataId)) { return this; } return History.KEY.is(dataId) ? myHistory : null; }
public SdkConfigurable(@Nonnull final SdkImpl sdk, final ProjectSdksModel sdksModel, final Runnable updateTree, @Nonnull History history, Project project) { super(!sdk.isPredefined(), updateTree); mySdk = sdk; mySdkEditor = createSdkEditor(sdksModel, history, mySdk); final StructureConfigurableContext context = ModuleStructureConfigurable.getInstance(project).getContext(); myProjectStructureElement = new SdkProjectStructureElement(context, mySdk); }
@Override public void setHistory(final History history) { }
public History getHistory() { return myHistory; }
@Override public void setHistory(final History history) { myHistory = history; }
protected SdkEditor createSdkEditor(ProjectSdksModel sdksModel, History history, ProjectJdkImpl projectJdk) { return new SdkEditor(sdksModel, history, projectJdk); }
public void setHistory(final History history) { myHistory = history; }
public SdkEditor(@Nonnull SdkModel sdkModel, @Nonnull History history, @Nonnull SdkImpl sdk) { super(sdkModel, sdk); myHistory = history; }
@Override public void setHistory(@Nonnull final History history) { }