1 /******************************************************************************* 2 * Copyright (c) 2010 BestSolution.at and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation 13 * Steven Spungin <steven@spungin.tv> - Bug 424730 14 ******************************************************************************/ 15 package org.eclipse.e4.tools.emf.ui.internal.common.component.dialogs; 16 17 import org.eclipse.core.resources.IProject; 18 import org.eclipse.e4.core.contexts.IEclipseContext; 19 import org.eclipse.e4.tools.emf.ui.internal.Messages; 20 import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; 21 import org.eclipse.e4.ui.model.application.ui.menu.MMenu; 22 import org.eclipse.emf.edit.domain.EditingDomain; 23 import org.eclipse.swt.widgets.Shell; 24 25 public class MenuIconDialogEditor extends AbstractIconDialog { 26 MenuIconDialogEditor(Shell parentShell, IEclipseContext context, IProject project, EditingDomain editingDomain, MMenu element, Messages Messages)27 public MenuIconDialogEditor(Shell parentShell, IEclipseContext context, IProject project, EditingDomain editingDomain, MMenu element, Messages Messages) { 28 super(parentShell, context, project, editingDomain, element, UiPackageImpl.Literals.UI_LABEL__ICON_URI, Messages); 29 } 30 31 @Override getShellTitle()32 protected String getShellTitle() { 33 return Messages.MenuIconDialogEditor_ShellTitle; 34 } 35 36 @Override getDialogTitle()37 protected String getDialogTitle() { 38 return Messages.MenuIconDialogEditor_DialogTitle; 39 } 40 41 @Override getDialogMessage()42 protected String getDialogMessage() { 43 return Messages.MenuIconDialogEditor_DialogMessage; 44 } 45 } 46