@ -1,17 +1,21 @@
package com.fr.design.actions.replace.ui ;
package com.fr.design.actions.replace.ui ;
import com.fr.base.TRL ;
import com.fr.design.actions.replace.info.base.ITContent ;
import com.fr.design.actions.replace.info.base.ITContent ;
import com.fr.design.border.UIRoundedBorder ;
import com.fr.design.border.UIRoundedBorder ;
import com.fr.design.constants.UIConstants ;
import com.fr.design.constants.UIConstants ;
import com.fr.design.dialog.BasicPane ;
import com.fr.design.dialog.BasicPane ;
import com.fr.design.file.HistoryTemplateListCache ;
import com.fr.design.gui.icheckbox.UICheckBox ;
import com.fr.design.gui.icheckbox.UICheckBox ;
import com.fr.design.gui.icontainer.UIScrollPane ;
import com.fr.design.gui.icontainer.UIScrollPane ;
import com.fr.design.gui.ilable.UILabel ;
import com.fr.design.gui.ilable.UILabel ;
import com.fr.design.gui.itableeditorpane.UITableEditAction ;
import com.fr.design.gui.itableeditorpane.UITableEditAction ;
import com.fr.design.gui.itableeditorpane.UITableModelAdapter ;
import com.fr.design.gui.itableeditorpane.UITableModelAdapter ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.mainframe.DesignerContext ;
import com.fr.design.mainframe.share.ui.base.MouseClickListener ;
import com.fr.design.mainframe.share.ui.base.MouseClickListener ;
import com.fr.general.GeneralUtils ;
import com.fr.stable.StringUtils ;
import com.fr.stable.StringUtils ;
@ -75,6 +79,16 @@ public class ITTableEditorPane<T> extends BasicPane {
//改变面板的各个状态
//改变面板的各个状态
changeComponentStatus ( content , row , col ) ;
changeComponentStatus ( content , row , col ) ;
}
}
if ( col = = ITReplaceSouthPanel . CONTENT_INDEX ) {
ITContent content = ( ITContent ) editTable . getValueAt ( row , ITReplaceSouthPanel . CONTENT_INDEX ) ;
if ( StringUtils . isNotEmpty ( GeneralUtils . objectToString ( content . getTrlString ( ) ) ) ) {
ITReplaceMainDialog . setITReplaceFlag ( true ) ;
TRL trl = new TRL ( GeneralUtils . objectToString ( content . getTrlString ( ) ) ) ;
DesignerContext . getDesignerFrame ( ) . openOrActiveTemplate ( content . getTemplatePath ( ) ) ;
HistoryTemplateListCache . getInstance ( ) . getCurrentEditingTemplate ( ) . navigate ( trl ) ;
}
ITReplaceMainDialog . setITReplaceFlag ( false ) ;
}
}
}
} ) ;
} ) ;