aboutsummaryrefslogtreecommitdiffstats
path: root/ajde/src
diff options
context:
space:
mode:
authormkersten <mkersten>2003-08-08 14:59:46 +0000
committermkersten <mkersten>2003-08-08 14:59:46 +0000
commitf7944d2c68e8561e12498c006729c6c341b657f7 (patch)
tree205af60b87fa308248a3d01694a9685a53260fe8 /ajde/src
parent555d9cd8fec8a2c0bc3daac63123a9bea941a912 (diff)
downloadaspectj-f7944d2c68e8561e12498c006729c6c341b657f7.tar.gz
aspectj-f7944d2c68e8561e12498c006729c6c341b657f7.zip
First pass at new relationship API support.
Diffstat (limited to 'ajde/src')
-rw-r--r--ajde/src/org/aspectj/ajde/ui/AbstractIconRegistry.java4
-rw-r--r--ajde/src/org/aspectj/ajde/ui/StructureModelUtil.java50
-rw-r--r--ajde/src/org/aspectj/ajde/ui/StructureViewManager.java8
-rw-r--r--ajde/src/org/aspectj/ajde/ui/swing/PointcutWizard.java4
-rw-r--r--ajde/src/org/aspectj/ajde/ui/swing/SimpleStructureViewToolPanel.java2
5 files changed, 34 insertions, 34 deletions
diff --git a/ajde/src/org/aspectj/ajde/ui/AbstractIconRegistry.java b/ajde/src/org/aspectj/ajde/ui/AbstractIconRegistry.java
index 6e4a32b41..edf519bc9 100644
--- a/ajde/src/org/aspectj/ajde/ui/AbstractIconRegistry.java
+++ b/ajde/src/org/aspectj/ajde/ui/AbstractIconRegistry.java
@@ -63,8 +63,8 @@ public abstract class AbstractIconRegistry {
return RELATION_ADVICE_FORWARD;
} else if (relationship == IRelationship.Kind.DECLARE) {
return RELATION_ADVICE_FORWARD;
- } else if (relationship == IRelationship.Kind.INHERITANCE) {
- return RELATION_INHERITANCE_FORWARD;
+// } else if (relationship == IRelationship.Kind.INHERITANCE) {
+// return RELATION_INHERITANCE_FORWARD;
} else {
return RELATION_REFERENCE_FORWARD;
}
diff --git a/ajde/src/org/aspectj/ajde/ui/StructureModelUtil.java b/ajde/src/org/aspectj/ajde/ui/StructureModelUtil.java
index 1b4a1a9d1..540449669 100644
--- a/ajde/src/org/aspectj/ajde/ui/StructureModelUtil.java
+++ b/ajde/src/org/aspectj/ajde/ui/StructureModelUtil.java
@@ -55,34 +55,34 @@ public class StructureModelUtil {
for (Iterator it3 = relations.iterator(); it3.hasNext();) {
IRelationship relationNode = (IRelationship) it3.next();
- if (relationNode.getKind().equals("Advice")) {
- List children = relationNode.getTargets();
-
- List aspects = new Vector();
-
- for (Iterator it4 = children.iterator();
- it4.hasNext();
- ) {
- Object object = it4.next();
-
-// if (object instanceof LinkNode) {
-// IProgramElement pNode =
-// ((LinkNode) object).getProgramElementNode();
-//
-// if (pNode.getProgramElementKind()
-// == IProgramElement.Kind.ADVICE) {
+// if (relationNode.getKind().equals("Advice")) {
+// List children = relationNode.getTargets();
//
-// IProgramElement theAspect = pNode.getParent();
+// List aspects = new Vector();
//
-// aspects.add(theAspect);
+// for (Iterator it4 = children.iterator();
+// it4.hasNext();
+// ) {
+// Object object = it4.next();
//
-// }
-// }
- }
- if (!aspects.isEmpty()) {
- aspectMap.put(key, aspects);
- }
- }
+//// if (object instanceof LinkNode) {
+//// IProgramElement pNode =
+//// ((LinkNode) object).getProgramElementNode();
+////
+//// if (pNode.getProgramElementKind()
+//// == IProgramElement.Kind.ADVICE) {
+////
+//// IProgramElement theAspect = pNode.getParent();
+////
+//// aspects.add(theAspect);
+////
+//// }
+//// }
+// }
+// if (!aspects.isEmpty()) {
+// aspectMap.put(key, aspects);
+// }
+// }
}
}
diff --git a/ajde/src/org/aspectj/ajde/ui/StructureViewManager.java b/ajde/src/org/aspectj/ajde/ui/StructureViewManager.java
index 880ddd5ae..5507db525 100644
--- a/ajde/src/org/aspectj/ajde/ui/StructureViewManager.java
+++ b/ajde/src/org/aspectj/ajde/ui/StructureViewManager.java
@@ -36,7 +36,7 @@ public class StructureViewManager {
private static final List AVAILABLE_RELATIONS;
public final IStructureModelListener VIEW_LISTENER = new IStructureModelListener() {
- public void modelUpdated(StructureModel model) {
+ public void containmentHierarchyUpdated(StructureModel model) {
Ajde.getDefault().logEvent("updating structure views: " + structureViews);
//
// if (defaultFileView != null) {
@@ -218,9 +218,9 @@ public class StructureViewManager {
static {
AVAILABLE_RELATIONS = new ArrayList();
AVAILABLE_RELATIONS.add(IRelationship.Kind.ADVICE);
- AVAILABLE_RELATIONS.add(IRelationship.Kind.INHERITANCE);
- AVAILABLE_RELATIONS.add(IRelationship.Kind.DECLARE);
- AVAILABLE_RELATIONS.add(IRelationship.Kind.REFERENCE);
+ AVAILABLE_RELATIONS.add(IRelationship.Kind.DECLARE);
+// AVAILABLE_RELATIONS.add(IRelationship.Kind.INHERITANCE);
+// AVAILABLE_RELATIONS.add(IRelationship.Kind.REFERENCE);
DEFAULT_VIEW_PROPERTIES = new StructureViewProperties();
DEFAULT_VIEW_PROPERTIES.setRelations(AVAILABLE_RELATIONS);
diff --git a/ajde/src/org/aspectj/ajde/ui/swing/PointcutWizard.java b/ajde/src/org/aspectj/ajde/ui/swing/PointcutWizard.java
index bfd469a6d..33bcfc18e 100644
--- a/ajde/src/org/aspectj/ajde/ui/swing/PointcutWizard.java
+++ b/ajde/src/org/aspectj/ajde/ui/swing/PointcutWizard.java
@@ -69,8 +69,8 @@ class PointcutWizard extends JFrame {
private Map getViewProperties() {
Map views = new HashMap();
GlobalViewProperties INHERITANCE_VIEW = new GlobalViewProperties(StructureViewProperties.Hierarchy.INHERITANCE);
- INHERITANCE_VIEW.addRelation(IRelationship.Kind.INHERITANCE);
- views.put(INHERITANCE_VIEW.toString(), INHERITANCE_VIEW);
+// INHERITANCE_VIEW.addRelation(IRelationship.Kind.INHERITANCE);
+// views.put(INHERITANCE_VIEW.toString(), INHERITANCE_VIEW);
return views;
}
diff --git a/ajde/src/org/aspectj/ajde/ui/swing/SimpleStructureViewToolPanel.java b/ajde/src/org/aspectj/ajde/ui/swing/SimpleStructureViewToolPanel.java
index afdf6ba52..dc9b5cd76 100644
--- a/ajde/src/org/aspectj/ajde/ui/swing/SimpleStructureViewToolPanel.java
+++ b/ajde/src/org/aspectj/ajde/ui/swing/SimpleStructureViewToolPanel.java
@@ -61,7 +61,7 @@ public class SimpleStructureViewToolPanel extends JPanel {
BorderLayout borderLayout4 = new BorderLayout();
public final IStructureModelListener MODEL_LISTENER = new IStructureModelListener() {
- public void modelUpdated(StructureModel model) {
+ public void containmentHierarchyUpdated(StructureModel model) {
String path = Ajde.getDefault().getConfigurationManager().getActiveConfigFile();
String fileName = "<no active config>";
if (path != null) fileName = new File(path).getName();