summaryrefslogtreecommitdiffstats
path: root/ajde/ajsrc
diff options
context:
space:
mode:
Diffstat (limited to 'ajde/ajsrc')
-rw-r--r--ajde/ajsrc/org/aspectj/ajde/AjdeApiRules.aj24
1 files changed, 24 insertions, 0 deletions
diff --git a/ajde/ajsrc/org/aspectj/ajde/AjdeApiRules.aj b/ajde/ajsrc/org/aspectj/ajde/AjdeApiRules.aj
new file mode 100644
index 000000000..91f67ce8c
--- /dev/null
+++ b/ajde/ajsrc/org/aspectj/ajde/AjdeApiRules.aj
@@ -0,0 +1,24 @@
+/* *******************************************************************
+ * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC),
+ * 2003 Contributors.
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Common Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * Xerox/PARC initial implementation
+ * AMC 01.20.2003 extended to support new AspectJ 1.1 options,
+ * bugzilla #29769
+ * ******************************************************************/
+
+public aspect AjdeApiRules {
+
+
+ declare warning:
+ call(* javax.swing..*(..)) && !within(org.aspectj.ajde.ui.swing..*):
+ "do not use Swing outside of org.aspectj.ajde.swing";
+
+}
+ \ No newline at end of file