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 433408, 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.MApplicationElement; 21 import org.eclipse.e4.ui.model.application.ui.impl.UiPackageImpl; 22 import org.eclipse.emf.edit.domain.EditingDomain; 23 import org.eclipse.swt.widgets.Shell; 24 25 public class AreaIconDialogEditor extends AbstractIconDialog { 26 AreaIconDialogEditor(Shell parentShell, IEclipseContext context, IProject project, EditingDomain editingDomain, MApplicationElement element, Messages Messages)27 public AreaIconDialogEditor(Shell parentShell, IEclipseContext context, IProject project, 28 EditingDomain editingDomain, MApplicationElement element, Messages Messages) { 29 super(parentShell, context, project, editingDomain, element, UiPackageImpl.Literals.UI_LABEL__ICON_URI, 30 Messages); 31 } 32 33 @Override getShellTitle()34 protected String getShellTitle() { 35 return Messages.AreaIconDialogEditor_ShellTitle; 36 } 37 38 @Override getDialogTitle()39 protected String getDialogTitle() { 40 return Messages.AreaIconDialogEditor_DialogTitle; 41 } 42 43 @Override getDialogMessage()44 protected String getDialogMessage() { 45 return Messages.AreaIconDialogEditor_DialogMessage; 46 } 47 48 @Override getFilterTextMessage()49 protected String getFilterTextMessage() { 50 return Messages.AreaIconDialogEditor_Enter_Text; 51 } 52 53 @Override getResourceNameText()54 protected String getResourceNameText() { 55 return Messages.AreaIconDialogEditor_Icon; 56 } 57 } 58