예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
  public void clear() {
    imagePanel.clearAll();
    if (media != null) {
      try {
        media.close();
      } catch (IOException ex) {
        // ignore
      }
    }

    binaryPanel.setBinaryData(null);
    genericTagPanel.clear();
    fontPanel.clear();
  }
예제 #4
0
  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);
    }
  }
예제 #5
0
 private void cancelGenericTagButtonActionPerformed(ActionEvent evt) {
   genericEditButton.setVisible(true);
   genericSaveButton.setVisible(false);
   genericCancelButton.setVisible(false);
   genericTagPanel.setEditMode(false, null);
 }