private void saveGenericTagButtonActionPerformed(ActionEvent evt) { genericTagPanel.save(); Tag tag = genericTagPanel.getTag(); SWF swf = tag.getSwf(); swf.clearImageCache(); swf.updateCharacters(); tag.getTimelined().resetTimeline(); swf.assignClassesToSymbols(); swf.assignExportNamesToSymbols(); mainPanel.repaintTree(); mainPanel.setTagTreeSelectedNode(tag); genericEditButton.setVisible(true); genericSaveButton.setVisible(false); genericCancelButton.setVisible(false); genericTagPanel.setEditMode(false, null); }
public void showGenericTagPanel(Tag tag) { showCardLeft(GENERIC_TAG_CARD); genericEditButton.setVisible(true); genericSaveButton.setVisible(false); genericCancelButton.setVisible(false); genericTagPanel.setEditMode(false, tag); parametersPanel.setVisible(false); }
public void clear() { imagePanel.clearAll(); if (media != null) { try { media.close(); } catch (IOException ex) { // ignore } } binaryPanel.setBinaryData(null); genericTagPanel.clear(); fontPanel.clear(); }
private void editGenericTagButtonActionPerformed(ActionEvent evt) { TreeItem item = mainPanel.tagTree.getCurrentTreeItem(); if (item == null) { return; } if (item instanceof TagScript) { item = ((TagScript) item).getTag(); } if (item instanceof Tag) { genericEditButton.setVisible(false); genericSaveButton.setVisible(true); genericCancelButton.setVisible(true); genericTagPanel.setEditMode(true, (Tag) item); } }
private void cancelGenericTagButtonActionPerformed(ActionEvent evt) { genericEditButton.setVisible(true); genericSaveButton.setVisible(false); genericCancelButton.setVisible(false); genericTagPanel.setEditMode(false, null); }