@ -70,6 +70,7 @@ import com.fr.design.parameter.ParameterPropertyPane;
import com.fr.design.preview.FormPreview ;
import com.fr.design.preview.FormPreview ;
import com.fr.design.preview.MobilePreview ;
import com.fr.design.preview.MobilePreview ;
import com.fr.design.roleAuthority.RolesAlreadyEditedPane ;
import com.fr.design.roleAuthority.RolesAlreadyEditedPane ;
import com.fr.design.ui.util.UIUtil ;
import com.fr.design.utils.gui.LayoutUtils ;
import com.fr.design.utils.gui.LayoutUtils ;
import com.fr.file.FILE ;
import com.fr.file.FILE ;
import com.fr.file.FILEChooserPane ;
import com.fr.file.FILEChooserPane ;
@ -380,6 +381,28 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm<F
this . formDesign = formDesign ;
this . formDesign = formDesign ;
}
}
@Override
protected void refreshDesignerFromResource ( ) {
stopCreatorEditing ( ) ;
super . refreshDesignerFromResource ( ) ;
}
private void stopCreatorEditing ( ) {
if ( index = = ELEMENTCASE_TAB ) {
tabChanged ( FORM_TAB ) ;
} else if ( index = = FORM_TAB ) {
TreePath [ ] treePaths = FormHierarchyTreePane . getInstance ( formDesign ) . getComponentTree ( ) . getSelectedTreePath ( ) ;
if ( treePaths ! = null ) {
for ( TreePath path : treePaths ) {
if ( path ! = null ) {
formDesign . stopEditing ( path ) ;
}
}
}
FormHierarchyTreePane . getInstance ( ) . refreshRoot ( ) ;
}
}
/ * *
/ * *
* 去除选择
* 去除选择
* /
* /