Search in sources :

Example 1 with EditVariableDialog

use of com.google.security.zynamics.binnavi.Gui.GraphWindows.CommentDialogs.EditVariableDialog in project binnavi by google.

the class RenameTypeInstanceAction method actionPerformed.

@Override
public void actionPerformed(final ActionEvent e) {
    final EditVariableDialog dialog = EditVariableDialog.CreateEditVariableDialog(parent, typeInstance.getName());
    dialog.setVisible(true);
    if (dialog.wasOkClicked()) {
        try {
            instanceContainer.setInstanceName(typeInstance, dialog.getVariableName());
        } catch (CouldntSaveDataException | CouldntLoadDataException exception) {
            CUtilityFunctions.logException(exception);
        }
    }
}
Also used : CouldntSaveDataException(com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException) CouldntLoadDataException(com.google.security.zynamics.binnavi.Database.Exceptions.CouldntLoadDataException) EditVariableDialog(com.google.security.zynamics.binnavi.Gui.GraphWindows.CommentDialogs.EditVariableDialog)

Aggregations

CouldntLoadDataException (com.google.security.zynamics.binnavi.Database.Exceptions.CouldntLoadDataException)1 CouldntSaveDataException (com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException)1 EditVariableDialog (com.google.security.zynamics.binnavi.Gui.GraphWindows.CommentDialogs.EditVariableDialog)1