|
|
@ -7,6 +7,7 @@ import com.fr.design.mainframe.alphafine.AlphaFineConstants; |
|
|
|
import com.fr.design.mainframe.alphafine.cell.model.AlphaCellModel; |
|
|
|
import com.fr.design.mainframe.alphafine.cell.model.AlphaCellModel; |
|
|
|
import com.fr.design.mainframe.alphafine.cell.model.RobotModel; |
|
|
|
import com.fr.design.mainframe.alphafine.cell.model.RobotModel; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
|
|
|
import com.fr.stable.EncodeConstants; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
@ -33,7 +34,6 @@ public class RobotPreviewPane extends JPanel { |
|
|
|
|
|
|
|
|
|
|
|
private static final int TITLE_AREA_HEIGHT = 15; |
|
|
|
private static final int TITLE_AREA_HEIGHT = 15; |
|
|
|
private static final int HOT_TITLE_AREA_HEIGHT = 30; |
|
|
|
private static final int HOT_TITLE_AREA_HEIGHT = 30; |
|
|
|
private static final String STRING_ENCODER = "UTF-8"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public RobotPreviewPane(AlphaCellModel model, String content) { |
|
|
|
public RobotPreviewPane(AlphaCellModel model, String content) { |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
@ -60,7 +60,7 @@ public class RobotPreviewPane extends JPanel { |
|
|
|
.replaceAll("\\('", StringUtils.EMPTY) |
|
|
|
.replaceAll("\\('", StringUtils.EMPTY) |
|
|
|
.replaceAll("'\\)", StringUtils.EMPTY); |
|
|
|
.replaceAll("'\\)", StringUtils.EMPTY); |
|
|
|
try { |
|
|
|
try { |
|
|
|
Desktop.getDesktop().browse(new URI(AlphaFineConstants.ALPHA_PREVIEW + URLEncoder.encode(s, STRING_ENCODER))); |
|
|
|
Desktop.getDesktop().browse(new URI(AlphaFineConstants.ALPHA_PREVIEW + URLEncoder.encode(s, EncodeConstants.ENCODING_UTF_8))); |
|
|
|
} catch (IOException e1) { |
|
|
|
} catch (IOException e1) { |
|
|
|
FineLoggerFactory.getLogger().error(e1.getMessage()); |
|
|
|
FineLoggerFactory.getLogger().error(e1.getMessage()); |
|
|
|
} catch (URISyntaxException e1) { |
|
|
|
} catch (URISyntaxException e1) { |
|
|
|