summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorDean Roberts2011-09-20 08:59:17 (EDT)
committer Remy Suen2011-09-20 08:59:17 (EDT)
commit0b7cafe4c5a1c8686bb9d4492bbd70c2016939d4 (patch)
tree5a4b6865b8741fe0c7ae7ec4ffc70eb07154353b
parentd7c903bb8a6f67818a592cec13b61db013d83820 (diff)
downloadeclipse.platform.ui-0b7cafe4c5a1c8686bb9d4492bbd70c2016939d4.zip
eclipse.platform.ui-0b7cafe4c5a1c8686bb9d4492bbd70c2016939d4.tar.gz
eclipse.platform.ui-0b7cafe4c5a1c8686bb9d4492bbd70c2016939d4.tar.bz2
Bug 357135 - GenTopic should generate UIEvents with comments and javadoc
warning supression
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/GenTopic.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/GenTopic.java b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/GenTopic.java
index acb9b3a..e44ec01 100644
--- a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/GenTopic.java
+++ b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/GenTopic.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 IBM Corporation and others.
+ * Copyright (c) 2009, 2011 IBM 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
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
package org.eclipse.e4.ui.internal.workbench.swt;
import java.lang.reflect.Field;
+import java.util.Calendar;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
@@ -81,9 +82,14 @@ public class GenTopic implements IApplication {
*
*/
private void processHeader() {
+ String endYear = String.valueOf(Calendar.getInstance().get(
+ Calendar.YEAR));
System.out
- .print("/*******************************************************************************\n * Copyright (c) 2009,2010 IBM Corporation and others.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors:\n * IBM Corporation - initial API and implementation\n ******************************************************************************/" //$NON-NLS-1$
- + "\npackage org.eclipse.e4.ui.workbench;\n\npublic class UIEvents {" //$NON-NLS-1$
+ .print("/*******************************************************************************\n * Copyright (c) 2009, " + endYear + " IBM Corporation and others.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors:\n * IBM Corporation - initial API and implementation\n ******************************************************************************/" //$NON-NLS-1$ //$NON-NLS-2$
+ + "\npackage org.eclipse.e4.ui.workbench;" //$NON-NLS-1$
+ + "\n\n/**\n * This class is generated by running the Eclipse Application:\n *\torg.eclipse.e4.ui.workbench.swt.GenTopic\n * and copying the console output over top of this file.\n */" //$NON-NLS-1$
+ + "\n@SuppressWarnings(\"javadoc\")" //$NON-NLS-1$
+ + "\npublic class UIEvents {" //$NON-NLS-1$
+ "\n\tpublic static final String TOPIC_SEP = \"/\"; //$NON-NLS-1$" //$NON-NLS-1$
+ "\n\tpublic static final String ALL_SUB_TOPICS = \"*\"; //$NON-NLS-1$" //$NON-NLS-1$
+ "\n\tpublic static final String UITopicBase = \"org/eclipse/e4/ui/model\"; //$NON-NLS-1$" //$NON-NLS-1$