updateComponents typo fix

Save button disabled for bundles
This commit is contained in:
Jindra Pet��k
2014-01-25 13:30:55 +01:00
parent 2774eb5637
commit ddbea70903
4 changed files with 7 additions and 6 deletions
@@ -334,7 +334,7 @@ public class MainFrameClassicMenu implements MainFrameMenu, ActionListener {
}
@Override
public void updateComponets(SWF swf, List<ABCContainerTag> abcList) {
public void updateComponents(SWF swf, List<ABCContainerTag> abcList) {
boolean swfLoaded = swf != null;
boolean hasAbc = swfLoaded && abcList != null && !abcList.isEmpty();
@@ -28,5 +28,5 @@ public interface MainFrameMenu {
public boolean isInternalFlashViewerSelected();
public void updateComponets(SWF swf, List<ABCContainerTag> abcList);
public void updateComponents(SWF swf, List<ABCContainerTag> abcList);
}
@@ -472,7 +472,7 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
}
@Override
public void updateComponets(SWF swf, List<ABCContainerTag> abcList) {
public void updateComponents(SWF swf, List<ABCContainerTag> abcList) {
boolean swfLoaded = swf != null;
boolean hasAbc = swfLoaded && abcList != null && !abcList.isEmpty();
@@ -482,7 +482,8 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
closeFileMenu.setEnabled(swfLoaded);
closeAllFilesMenu.setEnabled(swfLoaded);
saveCommandButton.setEnabled(swfLoaded);
boolean isBundle = swfLoaded && (swf.swfList!=null ) && swf.swfList.isBundle;
saveCommandButton.setEnabled(swfLoaded && !isBundle);
saveasCommandButton.setEnabled(swfLoaded);
saveasexeCommandButton.setEnabled(swfLoaded);
exportAllCommandButton.setEnabled(swfLoaded);
@@ -934,7 +934,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
isWelcomeScreen = false;
}
mainMenu.updateComponets(swf, abcList);
mainMenu.updateComponents(swf, abcList);
}
private void updateUi() {
@@ -945,7 +945,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
}
mainFrame.setTitle(ApplicationInfo.applicationVerName);
mainMenu.updateComponets(null, null);
mainMenu.updateComponents(null, null);
}
public void closeAll() {