Skip to content

Commit

Permalink
remove 2 more casts
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-herrmann committed Jun 20, 2024
1 parent 69666fe commit 8c6d9d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public void add(Object[] elements) {

// Update with the new elements to prevent flash
for (Control element : existingChildren) {
((ControlListItem<?>) element).dispose();
element.dispose();
}

for (int i = 0; i < infos.length; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void init(IWorkbench workbench, IStructuredSelection selection) {

@Override
public boolean performFinish() {
File file = new File(((ExportPage) mainPage).getDestinationValue());
File file = new File(mainPage.getDestinationValue());
if (file.exists()) {
if (!MessageDialog.openConfirm(this.getShell(), Messages.ExportWizard_ConfirmDialogTitle,
NLS.bind(Messages.ExportWizard_OverwriteConfirm, file.getAbsolutePath())))
Expand Down

0 comments on commit 8c6d9d1

Please sign in to comment.