| 1 |
<%@ jet package="org.eclipse.emf.codegen.ecore.templates.edit" imports="java.util.* org.eclipse.emf.codegen.ecore.genmodel.*" class="Images"%> |
| 2 |
<% |
| 3 |
/** |
| 4 |
* Copyright (c) 2010 Ed Merks and others. |
| 5 |
* All rights reserved. This program and the accompanying materials |
| 6 |
* are made available under the terms of the Eclipse Public License v2.0 |
| 7 |
* which accompanies this distribution, and is available at |
| 8 |
* http://www.eclipse.org/legal/epl-v20.html |
| 9 |
* |
| 10 |
* Contributors: |
| 11 |
* Ed Merks - Initial API and implementation |
| 12 |
*/ |
| 13 |
%> |
| 14 |
<%GenModel genModel = (GenModel)argument; /* Trick to import java.util.* without warnings */Iterator.class.getName();%> |
| 15 |
<%@ include file="../Header.javajetinc"%> |
| 16 |
package <%=genModel.getEditPluginPackageName()%>; |
| 17 |
|
| 18 |
<%genModel.markImportLocation(stringBuffer);%> |
| 19 |
|
| 20 |
/** |
| 21 |
* <!-- begin-user-doc --> |
| 22 |
* <!-- end-user-doc --> |
| 23 |
* @generated |
| 24 |
*/ |
| 25 |
public interface <%=genModel.getEditPluginClassName()%>Images extends <%=genModel.getImportedName("com.google.gwt.resources.client.ClientBundle")%> |
| 26 |
{ |
| 27 |
<%for (GenPackage genPackage : genModel.getAllGenAndUsedGenPackagesWithClassifiers()) {%> |
| 28 |
<%for (GenClass genClass : genPackage.getGenClasses()) {%> |
| 29 |
<%if (genClass.isImage()) { String image = genClass.getItemIconFileName(); image = image.substring(image.lastIndexOf("/icons/") + 1); %> |
| 30 |
/** |
| 31 |
* <!-- begin-user-doc --> |
| 32 |
* <!-- end-user-doc --> |
| 33 |
* @generated |
| 34 |
*/ |
| 35 |
@Source("<%=image%>") |
| 36 |
<%=genModel.getImportedName("com.google.gwt.resources.client.ImageResource")%> <%=genClass.getItemIconAccessorName()%>(); |
| 37 |
|
| 38 |
<%}%> |
| 39 |
<%}%> |
| 40 |
<%}%> |
| 41 |
} |
| 42 |
<%genModel.emitSortedImports();%> |