Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Getting current network

Received: by 10.66.75.106 with SMTP id b10mr1247363paw.32.1347035373632;
        Fri, 07 Sep 2012 09:29:33 -0700 (PDT)
X-BeenThere: cytoscape-discuss@googlegroups.com
Received: by 10.68.141.133 with SMTP id ro5ls2838490pbb.1.gmail; Fri, 07 Sep
 2012 09:29:32 -0700 (PDT)
Received: by 10.66.76.201 with SMTP id m9mr1258257paw.1.1347035372201;
        Fri, 07 Sep 2012 09:29:32 -0700 (PDT)
Received: by 10.66.76.201 with SMTP id m9mr1258256paw.1.1347035372186;
        Fri, 07 Sep 2012 09:29:32 -0700 (PDT)
Return-Path: <scoo...@cgl.ucsf.edu>
Received: from plato.cgl.ucsf.edu (watson.cgl.ucsf.edu. [169.230.27.32])
        by gmr-mx.google.com with ESMTPS id p7si2589150pby.0.2012.09.07.09.29.32
        (version=TLSv1/SSLv3 cipher=OTHER);
        Fri, 07 Sep 2012 09:29:32 -0700 (PDT)
Received-SPF: pass (google.com: domain of scoo...@cgl.ucsf.edu designates 169.230.27.32 as permitted sender) client-ip=169.230.27.32;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of scoo...@cgl.ucsf.edu designates 169.230.27.32 as permitted sender) smtp.mail=scoo...@cgl.ucsf.edu
Received: from lewis.compbio.ucsf.edu (lewis.compbio.ucsf.edu [169.230.22.141])
	(authenticated bits=0)
	by plato.cgl.ucsf.edu (8.14.4/8.14.4) with ESMTP id q87GTUwF049800
	(version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO);
	Fri, 7 Sep 2012 09:29:31 -0700
Message-ID: <504A20EA.9050009@cgl.ucsf.edu>
Date: Fri, 07 Sep 2012 09:29:30 -0700
From: Scooter Morris <scoo...@cgl.ucsf.edu>
User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:15.0) Gecko/20120824 Thunderbird/15.0
MIME-Version: 1.0
To: cytoscape-discuss@googlegroups.com
CC: Omar Wagih <omarwa...@gmail.com>
Subject: Re: [Cytoscape-discuss] Getting current network
References: <41bd2e06-4113-4e5a-985b-90643563af7d@googlegroups.com> <504850A9.20005@cgl.ucsf.edu> <a3669ca9-9362-4a7c-85e1-eb19d74ef26f@googlegroups.com>
In-Reply-To: <a3669ca9-9362-4a7c-85e1-eb19d74ef26f@googlegroups.com>
Content-Type: multipart/alternative;
 boundary="------------080609010609050601050108"

This is a multi-part message in MIME format.
--------------080609010609050601050108
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Those are all bundles.  CyAppAdapter is provided by app-api and 
CySwingAppAdapter (which extends CyAppAdapter with some Swing 
GUI-specific methods) is provided by swing-app-api.  So all of the 
bundles are starting as appropriate. So, in your pom.xml, you need to 
depend on org.cytoscape.app:

<dependency>
     <groupId>org.cytoscape</groupId>
     <artifactId>app-api</artifactId>
     <version>${cytoscape.api.version}</version>
</dependency>

-- scooter

On 09/06/2012 09:36 PM, Omar Wagih wrote:
> CyAppAdapter does not exist in the release I have...
>
> Did a grep on "app" in the karaf terminal:
> Cytoscape 3.0.0-M5> list |  grep app
> [  87] [Active     ] [            ] [  104] Molecular interaction 
> cluster (OSGi wrapped version w/dependencies) (1.6)
> [  97] [Active     ] [            ] [  110] Cytoscape Swing 
> Application API (swing-application-api) (3.0.0.beta2)
> [  99] [Active     ] [            ] [  110] Cytoscape App API 
> (app-api) (3.0.0.beta2)
> [ 100] [Active     ] [            ] [  110] Cytoscape Swing App API 
> (swing-app-api) (3.0.0.beta2)
> [ 109] [Active     ] [            ] [  110] Cytoscape Application API 
> (application-api) (3.0.0.beta2)
> [ 128] [Active     ] [            ] [  135] Cytoscape Application Impl 
> (application-impl) (3.0.0.alpha9)
> [ 135] [Active     ] [            ] [  160] Cytoscape Swing 
> Application Impl (swing-application-impl) (3.0.0.alpha9)
> [ 162] [Active     ] [            ] [  175] Cytoscape App Impl 
> (app-impl) (3.0.0.alpha9)
>
> The version I have (beta3) ..
> I have tired several dependencies in the list like
>
> <dependency>
> <groupId>org.cytoscape</groupId>
> <artifactId>application-api</artifactId>
> <version>${cytoscape.api.version}</version>
> </dependency>
>
> but the package org.cytoscape.app still isnt there.
>
> I also tried to search maven repositories for CyAppAdaptor... and 
> nothing comes up
>
> Omar
>
> On Thursday, 6 September 2012 03:28:46 UTC-4, Scooter Morris wrote:
>
>     On 09/05/2012 11:29 PM, Omar Wagih wrote:
>>     How can you get the current network being looked at?
>>     Online says use this through the CyAppAdapter, but this does not
>>     seem to be available in the most recent release. Is there
>>     something I'm missing?
>>
>>     Cheers
>>     -- 
>>     You received this message because you are subscribed to the
>>     Google Groups "cytoscape-discuss" group.
>>     To view this discussion on the web visit
>>     https://groups.google.com/d/msg/cytoscape-discuss/-/3EfTmmrtO9UJ
>>     <https://groups.google.com/d/msg/cytoscape-discuss/-/3EfTmmrtO9UJ>.
>>     To post to this group, send email to cytoscap...@googlegroups.com
>>     <javascript:>.
>>     To unsubscribe from this group, send email to
>>     cytoscape-disc...@googlegroups.com <javascript:>.
>>     For more options, visit this group at
>>     http://groups.google.com/group/cytoscape-discuss?hl=en
>>     <http://groups.google.com/group/cytoscape-discuss?hl=en>.
>     Hi Omar,
>         The current network is maintained by the
>     CyApplicationManager.  So, from your CyAppAdapter:
>
>         CyNetwork currentNetwork =
>     appAdapter.getCyApplicationManager().getCurrentNetwork();
>
>     -- scooter
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "cytoscape-discuss" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/cytoscape-discuss/-/VwKsbiZL8joJ.
> To post to this group, send email to cytoscape-discuss@googlegroups.com.
> To unsubscribe from this group, send email to 
> cytoscape-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/cytoscape-discuss?hl=en.


--------------080609010609050601050108
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Those are all bundles.&nbsp; CyAppAdapter is
      provided by app-api and CySwingAppAdapter (which extends
      CyAppAdapter with some Swing GUI-specific methods) is provided by
      swing-app-api.&nbsp; So all of the bundles are starting as appropriate.&nbsp;
      So, in your pom.xml, you need to depend on org.cytoscape.app:<br>
      <br>
      &lt;dependency&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;groupId&gt;org.cytoscape&lt;/groupId&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;artifactId&gt;app-api&lt;/artifactId&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;version&gt;${cytoscape.api.version}&lt;/version&gt;<br>
      &lt;/dependency&gt;<br>
      <br>
      -- scooter<br>
      <br>
      On 09/06/2012 09:36 PM, Omar Wagih wrote:<br>
    </div>
    <blockquote
      cite="mid:a3669ca9-9362-4a7c-85e1-eb19d74ef26f@googlegroups.com"
      type="cite">CyAppAdapter does not exist in the release I have...&nbsp;
      <div><br>
      </div>
      <div>Did a grep on "app" in the karaf terminal:</div>
      <div>
        <div>Cytoscape 3.0.0-M5&gt; list | &nbsp;grep app</div>
        <div>[ &nbsp;87] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp;104] Molecular
          interaction cluster (OSGi wrapped version w/dependencies)
          (1.6)</div>
        <div>[ &nbsp;97] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp;110] Cytoscape Swing
          Application API (swing-application-api) (3.0.0.beta2)</div>
        <div>[ &nbsp;99] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp;110] Cytoscape App
          API (app-api) (3.0.0.beta2)</div>
        <div>[ 100] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp;110] Cytoscape Swing
          App API (swing-app-api) (3.0.0.beta2)</div>
        <div>[ 109] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp;110] Cytoscape
          Application API (application-api) (3.0.0.beta2)</div>
        <div>[ 128] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp;135] Cytoscape
          Application Impl (application-impl) (3.0.0.alpha9)</div>
        <div>[ 135] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp;160] Cytoscape Swing
          Application Impl (swing-application-impl) (3.0.0.alpha9)</div>
        <div>[ 162] [Active &nbsp; &nbsp; ] [ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;] [ &nbsp;175] Cytoscape App
          Impl (app-impl) (3.0.0.alpha9)</div>
      </div>
      <div><br>
      </div>
      <div>The version I have (beta3) ..</div>
      <div>I have tired several dependencies in the list like<br>
        <br>
        <div>&lt;dependency&gt;</div>
        <div>&lt;groupId&gt;org.cytoscape&lt;/groupId&gt;</div>
        <div>&lt;artifactId&gt;application-api&lt;/artifactId&gt;</div>
        <div>&lt;version&gt;${cytoscape.api.version}&lt;/version&gt;</div>
        <div>&lt;/dependency&gt;</div>
        <div><br>
        </div>
        <div>but the package org.cytoscape.app still isnt there.<br>
          <br>
          I also tried to search maven repositories for CyAppAdaptor...
          and nothing comes up</div>
        <div><br>
        </div>
        <div>Omar</div>
        <br>
        On Thursday, 6 September 2012 03:28:46 UTC-4, Scooter Morris
        wrote:
        <blockquote class="gmail_quote" style="margin: 0;margin-left:
          0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
          <div bgcolor="#FFFFFF" text="#000000">
            <div>On 09/05/2012 11:29 PM, Omar Wagih wrote:<br>
            </div>
            <blockquote type="cite">How can you get the current network
              being looked at?
              <div>Online says use this through the&nbsp;<span
                  style="color:rgb(0,0,0);white-space:pre-wrap">CyAppAdapter,
                  but this does not seem to be available in the most
                  recent release. Is there something I'm missing? </span></div>
              <div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br>
                </span></div>
              <div><span style="color:rgb(0,0,0);white-space:pre-wrap">Cheers</span></div>
              -- <br>
              You received this message because you are subscribed to
              the Google Groups "cytoscape-discuss" group.<br>
              To view this discussion on the web visit <a
                moz-do-not-send="true"
                href="https://groups.google.com/d/msg/cytoscape-discuss/-/3EfTmmrtO9UJ"
                target="_blank">https://groups.google.com/d/<wbr>msg/cytoscape-discuss/-/<wbr>3EfTmmrtO9UJ</a>.<br>
              To post to this group, send email to <a
                moz-do-not-send="true" href="javascript:"
                target="_blank" gdf-obfuscated-mailto="mTNvJDfY2MwJ">cytoscap...@<wbr>googlegroups.com</a>.<br>
              To unsubscribe from this group, send email to <a
                moz-do-not-send="true" href="javascript:"
                target="_blank" gdf-obfuscated-mailto="mTNvJDfY2MwJ">cytoscape-disc...@<wbr>googlegroups.com</a>.<br>
              For more options, visit this group at <a
                moz-do-not-send="true"
                href="http://groups.google.com/group/cytoscape-discuss?hl=en"
                target="_blank">http://groups.google.com/<wbr>group/cytoscape-discuss?hl=en</a>.<br>
            </blockquote>
            Hi Omar,<br>
            &nbsp;&nbsp;&nbsp; The current network is maintained by the
            CyApplicationManager.&nbsp; So, from your CyAppAdapter:<br>
            <br>
            &nbsp;&nbsp;&nbsp; CyNetwork currentNetwork = appAdapter.<wbr>getCyApplicationManager().<wbr>getCurrentNetwork();<br>
            <br>
            -- scooter<br>
            <br>
          </div>
        </blockquote>
      </div>
      -- <br>
      You received this message because you are subscribed to the Google
      Groups "cytoscape-discuss" group.<br>
      To view this discussion on the web visit <a
        moz-do-not-send="true"
        href="https://groups.google.com/d/msg/cytoscape-discuss/-/VwKsbiZL8joJ">https://groups.google.com/d/msg/cytoscape-discuss/-/VwKsbiZL8joJ</a>.<br>
      To post to this group, send email to
      <a class="moz-txt-link-abbreviated" href="mailto:cytoscape-discuss@googlegroups.com">cytoscape-discuss@googlegroups.com</a>.<br>
      To unsubscribe from this group, send email to
      <a class="moz-txt-link-abbreviated" href="mailto:cytoscape-discuss+unsubscribe@googlegroups.com">cytoscape-discuss+unsubscribe@googlegroups.com</a>.<br>
      For more options, visit this group at
      <a class="moz-txt-link-freetext" href="http://groups.google.com/group/cytoscape-discuss?hl=en">http://groups.google.com/group/cytoscape-discuss?hl=en</a>.<br>
    </blockquote>
    <br>
  </body>
</html>

--------------080609010609050601050108--