Skip to content

Commit

Permalink
Use the new banner images in the wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Mar 20, 2023
1 parent 9e2710e commit 05ad2fe
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion org.eclipse.m2e.core.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.eclipse.m2e.core.ui;singleton:=true
Bundle-Version: 2.0.4.qualifier
Bundle-Version: 2.0.5.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-17
Bundle-Name: %Bundle-Name
Bundle-Vendor: %Bundle-Vendor
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ public class MavenImages {
// wizard images
public static final ImageDescriptor WIZ_IMPORT_WIZ = createDescriptor("import_project.png"); //$NON-NLS-1$

public static final ImageDescriptor WIZ_NEW_PROJECT = createDescriptor("new_m2_project_wizard.png"); //$NON-NLS-1$
public static final ImageDescriptor WIZ_NEW_MAVEN_PROJECT = createDescriptor("banner_new_project.png"); //$NON-NLS-1$

public static final ImageDescriptor WIZ_NEW_MODULE_PROJECT = createDescriptor("banner_new_module.png"); //$NON-NLS-1$

public static final ImageDescriptor WIZ_UPDATE_PROJECT = createDescriptor("banner_update_project.png"); //$NON-NLS-1$

public static final String MVN_PROJECT = "project-mlabel.gif"; //$NON-NLS-1$

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
Expand All @@ -27,6 +28,7 @@
import org.eclipse.swt.widgets.Shell;

import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.ui.internal.MavenImages;
import org.eclipse.m2e.core.ui.internal.Messages;
import org.eclipse.m2e.core.ui.internal.components.NestedProjectsComposite;

Expand Down Expand Up @@ -136,7 +138,9 @@ protected Control createDialogArea(Composite parent) {

setTitle(getDialogTitle());
setMessage(getDialogMessage());

Image image = MavenImages.WIZ_UPDATE_PROJECT.createImage();
setTitleImage(image);
area.addDisposeListener(e -> image.dispose());
return area;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class MavenModuleWizard extends AbstractMavenProjectWizard implements INe
/** Default constructor. Sets the title and image of the wizard. */
public MavenModuleWizard() {
setWindowTitle(Messages.wizardModuleTitle);
setDefaultPageImageDescriptor(MavenImages.WIZ_NEW_PROJECT);
setDefaultPageImageDescriptor(MavenImages.WIZ_NEW_MODULE_PROJECT);
setNeedsProgressMonitor(true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public class MavenProjectWizard extends AbstractMavenProjectWizard implements IN
*/
public MavenProjectWizard() {
setWindowTitle(Messages.wizardProjectTitle);
setDefaultPageImageDescriptor(MavenImages.WIZ_NEW_PROJECT);
setDefaultPageImageDescriptor(MavenImages.WIZ_NEW_MAVEN_PROJECT);
setNeedsProgressMonitor(true);
}

Expand Down

0 comments on commit 05ad2fe

Please sign in to comment.