Project: talenddataquality
Issue TDQ-8212: Do not open the DQ repository view when saving the editor
we can follow the following 4 steps to do the refactoring: 1. refactoring DQRepositoryNodes 2. action/editor/page/handler, recursiveFind() 3. command line 4. sub nodes under connection details: 1.1 profiling node	analysis node	report node 1.2 library node	indicator node	pattern node	rule node	source file node	jrxml node	exchange node: need not to refactoring the above Nodes need to refactor, remove the property ModelElement and refactor the related method {code} private Analysis analysis; public Analysis getAnalysis() { return this.analysis; } public void updateAnalysis(Analysis ana) { this.analysis = ana; } {code} remove the property analysis and the method updateAnalysis() refactor the method getAnalysis(), get the analysis from the Node {code} public Analysis getAnalysis() { return ((TDQAnalysisItem)this.getObject().getProperty().getItem()).getAnalysis(); } {code} other node just like this	1.3 folder node and connection node need not to refactoring 2.1 action	OpenItemEditorAction : using RepositoryNode as the parameter of this class, refactoring the related codes to adapt to this change	RunAnalysisAction: keep using the Item, add comments here, remove the deprecated method 2.2 editor/page/handler	AbstractItemEditorInput : using RepositoryNode as the parameter, all the Editor and pages need to adapt to this change	org.talend.dataprofiler.core.ui.wizard.analysis.AbstractAnalysisWizard.openEditor(Item item): get the Node from the Item first and then pass the Node to the EditorInput 2.5 recursiveFind()	need to remvoe most recursiveFind()	method, but still need to keep several recursiveFind()	method, because some time still need to find the node according to the ModelElement or other type object	these refactoring need to deal with as a whole, this part will cost more time than first part ReportWriter line 74: ... AnalysisRepNode recursiveFindAnalysis = RepositoryNodeHelper.recursiveFindAnalysis(ana); ... if (recursiveFindAnalysis != null && recursiveFindAnalysis.getProject().isMainProject()) { ... find another method to check the project is main project or reference project create the RepositoryNode first when use wizard to create Item, then use this node to open the editor for the 3 and 4 step, we can do them later
Story points: 7