[archstudio-commits] svn commit: r7091 - in /archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelink/src/edu/uci/isr/archstudio4/comp/tracelink: TracelinkViewMyxComponent.java controllers/LinksController.java controllers/SimpleTracelinkController.java

archstudio-commits-owner at uci.edu archstudio-commits-owner at uci.edu
Tue May 6 14:31:59 PDT 2008


Author: dpurpura
Date: Tue May  6 14:31:58 2008
New Revision: 7091

Log: (empty)

Modified:
    archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/TracelinkViewMyxComponent.java
    archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/LinksController.ja=
va
    archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/SimpleTracelinkCon=
troller.java

Modified: archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tr=
acelink/src/edu/uci/isr/archstudio4/comp/tracelink/TracelinkViewMyxComponen=
t.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/TracelinkViewMyxComponent.java=
 (original)
+++ archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/TracelinkViewMyxComponent.java=
 Tue May  6 14:31:58 2008
@@ -72,10 +72,6 @@
 	public void begin() {
 		xarch =3D (XArchFlatInterface) MyxUtils.getFirstRequiredServiceObject(
 				this, INTERFACE_NAME_OUT_XARCH);
-		//xarch =3D =

-		//	(XArchFlatInterface) MyxUtils.getFirstRequiredServiceObject(this, INT=
ERFACE_NAME_OUT_XARCH);
-		//tracelink =3D new TraceLinkImpl(xarch);
-		myxr.register(this);
 		=

 		manualLinkView =3D (IManualLinkView) MyxUtils.getFirstRequiredServiceObj=
ect(
 				this, INTERFACE_NAME_OUT_INVOKEMANUALVIEW);
@@ -92,8 +88,7 @@
 		hAdapter =3D (IHypermediaAdapter) MyxUtils.getFirstRequiredServiceObject(
 				this, INTERFACE_NAME_OUT_INVOKEHADAPTER);
 		=

-
-		//myxr.register(this);
+		myxr.register(this);
 		=

 		System.out.println("TraceLinkView*******************");
 		System.out.println("connected to : " + manualLinkView.toString());

Modified: archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tr=
acelink/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/LinksControl=
ler.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/LinksController.ja=
va (original)
+++ archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/LinksController.ja=
va Tue May  6 14:31:58 2008
@@ -253,18 +253,6 @@
 	}
 =

 	@Override
-	public void handleXArchFileEvent(XArchFileEvent evt) {
-		// TODO Auto-generated method stub
-		=

-	}
-
-	@Override
-	public void handleXArchFlatEvent(XArchFlatEvent evt) {
-		// TODO Auto-generated method stub
-		=

-	}
-
-	@Override
 	public ObjRef getXArchRef() {
 		// TODO Auto-generated method stub
 		return null;

Modified: archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tr=
acelink/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/SimpleTracel=
inkController.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/SimpleTracelinkCon=
troller.java (original)
+++ archstudio4/branches/traceability/edu.uci.isr.archstudio4.comp.tracelin=
k/src/edu/uci/isr/archstudio4/comp/tracelink/controllers/SimpleTracelinkCon=
troller.java Tue May  6 14:31:58 2008
@@ -104,16 +104,17 @@
 	@Override
 	public void begin() {
 		System.out.println("BEGIN TRACELINK_CONTROLLER!!");
+		myxr.register(this);
 		=

 		xArchFlat =3D (XArchFlatInterface) MyxUtils.getFirstRequiredServiceObjec=
t(
 				this, INTERFACE_NAME_OUT_XARCH);
 		System.out.println("****xArchFlat**** " + xArchFlat.toString());
 		xadlFacade =3D new XADLFacade(xArchFlat);
+		System.out.println("****xArchFlat--end***" + xadlFacade.toString());
 		=

 		//xarch =3D =

 		//	(XArchFlatInterface) MyxUtils.getFirstRequiredServiceObject(this, INT=
ERFACE_NAME_OUT_XARCH);
 		//tracelink =3D new TraceLinkImpl(xarch);
-		myxr.register(this);
 		=

 	}
 =

@@ -289,8 +290,17 @@
 	public void updateViews() {
 		System.err.println("Updating Views");
 		=

-		IArchTraceLinks tracelinks =3D xadlFacade.getArchTracelinks();
-		setLinks(getRelatedLinks(tracelinks, endpointHref));
+		IArchTraceLinks tracelinks =3D null;
+		=

+		if (xadlFacade !=3D null) {
+			tracelinks =3D xadlFacade.getArchTracelinks();
+		}else {
+			System.err.println("XADL Facade is null");
+			//xadlFacade =3D new XADLFacade(xArchFlat);
+			//tracelinks =3D xadlFacade.getArchTracelinks();
+		}
+		if (tracelinks !=3D null)
+			setLinks(getRelatedLinks(tracelinks, endpointHref));
 		=

 		filteredElements =3D filter(elements, filterKey, filterProperty);
 		sort(filteredElements);
@@ -414,6 +424,8 @@
 =

 	@Override
 	public void setXArchRef(ObjRef xArchRef) {
+		//if (xadlFacade =3D=3D null)
+		//	xadlFacade =3D new XADLFacade(xArchFlat);
 		xadlFacade.setXArchRef(xArchRef);
 	}
 }




More information about the archstudio-commits mailing list