Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2010-04-26 15:16:12 -0400
committeratikhomirov2010-04-26 15:16:12 -0400
commit7ad4308cdf69b8da195b83a5579ebf37c62f729f (patch)
treea80324ea39c44474e2b8843bc47ae48e41ca19bf
parentffc5c8e214a673e89da92332b9af9d8062d1f051 (diff)
downloadorg.eclipse.gmf-tooling-7ad4308cdf69b8da195b83a5579ebf37c62f729f.tar.gz
org.eclipse.gmf-tooling-7ad4308cdf69b8da195b83a5579ebf37c62f729f.tar.xz
org.eclipse.gmf-tooling-7ad4308cdf69b8da195b83a5579ebf37c62f729f.zip
[188329] Java5-friendly code
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/TextAware.xpt7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/TextAware.xpt b/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/TextAware.xpt
index dd094e669..e40da6460 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/TextAware.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/TextAware.xpt
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006, 2009 Borland Software Corporation
+ * Copyright (c) 2006, 2010 Borland Software Corporation and others
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -22,7 +22,7 @@
private org.eclipse.gmf.runtime.common.ui.services.parser.IParser parser;
«EXPAND xpt::Common::generatedMemberComment»
- private java.util.List parserElements;
+ private «EXPAND CodeStyle::G('java.util.List', '?')» parserElements;
«EXPAND xpt::Common::generatedMemberComment»
private String defaultText;
@@ -172,6 +172,7 @@
«DEFINE getModelChildren FOR gmfgen::GenCommonBase-»
«EXPAND xpt::Common::generatedMemberComment»
+ «EXPAND CodeStyle::SuppressWarnings('"rawtypes"')-»
protected java.util.List getModelChildren() {
return java.util.Collections.EMPTY_LIST;
}
@@ -284,7 +285,7 @@
try {
org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus valid =
(org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus) getEditingDomain().runExclusive(
- new org.eclipse.emf.transaction.RunnableWithResult.Impl() {
+ new org.eclipse.emf.transaction.RunnableWithResult.Impl«EXPAND CodeStyle::G('org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus')»() {
public void run() {
setResult(parser.isValidEditString(new org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter(element), (String) value));

Back to the top