|
|
@ -6,10 +6,12 @@ import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
|
|
|
|
import com.fr.file.FILE; |
|
|
|
import com.fr.file.FILEFactory; |
|
|
|
import com.fr.file.FILEFactory; |
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.AbstractCellEditor; |
|
|
|
import javax.swing.AbstractCellEditor; |
|
|
@ -44,14 +46,13 @@ public class ITTableButton extends AbstractCellEditor implements TableCellEditor |
|
|
|
if (StringUtils.isNotEmpty(GeneralUtils.objectToString(content.getTrlString()))) { |
|
|
|
if (StringUtils.isNotEmpty(GeneralUtils.objectToString(content.getTrlString()))) { |
|
|
|
ITReplaceMainDialog.setITReplaceFlag(true); |
|
|
|
ITReplaceMainDialog.setITReplaceFlag(true); |
|
|
|
TRL trl = new TRL(GeneralUtils.objectToString(content.getTrlString())); |
|
|
|
TRL trl = new TRL(GeneralUtils.objectToString(content.getTrlString())); |
|
|
|
DesignerContext.getDesignerFrame().openTemplate(FILEFactory.createFILE(content.getTemplatePath())); |
|
|
|
DesignerContext.getDesignerFrame().openOrActiveTemplate(content.getTemplatePath()); |
|
|
|
HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().navigate(trl); |
|
|
|
HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().navigate(trl); |
|
|
|
} |
|
|
|
} |
|
|
|
ITReplaceMainDialog.setITReplaceFlag(false); |
|
|
|
ITReplaceMainDialog.setITReplaceFlag(false); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|