Skip to content

Commit

Permalink
Removed deprecated defaultFont variable from AbstractWizardPage
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Kuzniarz <[email protected]>
  • Loading branch information
kuzniarz committed Feb 8, 2024
1 parent acbc93a commit a52d08f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.eclipse.buildship.ui.internal.wizard.HelpContextIdProvider;
import org.eclipse.buildship.ui.internal.wizard.project.ProjectImportWizard;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
Expand All @@ -36,7 +37,6 @@ public abstract class AbstractWizardPage extends WizardPage {

@SuppressWarnings("unused")
private final String defaultMessage;
private final Font defaultFont;
private final UiBuilder.UiBuilderFactory builderFactory;

/**
Expand All @@ -57,8 +57,7 @@ protected AbstractWizardPage(String name, String title, String defaultMessage) {
setImageDescriptor(ImageDescriptor.createFromFile(GradleCreateWorkspaceCompositeWizardPage.class, "/icons/full/wizban/wizard.png")); //$NON-NLS-1$

// set up the UI builder
this.defaultFont = FontUtils.getDefaultDialogFont();
this.builderFactory = new UiBuilder.UiBuilderFactory(this.defaultFont);
this.builderFactory = new UiBuilder.UiBuilderFactory(JFaceResources.getDialogFont());

}

Expand Down Expand Up @@ -171,7 +170,6 @@ public boolean isPageComplete() {

@Override
public void dispose() {
this.defaultFont.dispose();
super.dispose();
}

Expand Down

0 comments on commit a52d08f

Please sign in to comment.