Author: kono
Date: 2010-08-12 13:29:24 -0700 (Thu, 12 Aug 2010)
New Revision: 21349

Modified:
   core3/event-impl/trunk/pom.xml
   
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyEventHelperImpl.java
   
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyListenerAdapter.java
   
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyMicroListenerAdapter.java
Log:
Imports and dependencies are optimized.

Modified: core3/event-impl/trunk/pom.xml
===================================================================
--- core3/event-impl/trunk/pom.xml      2010-08-12 20:28:22 UTC (rev 21348)
+++ core3/event-impl/trunk/pom.xml      2010-08-12 20:29:24 UTC (rev 21349)
@@ -1,149 +1,148 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 
-  <parent>
-    <artifactId>parent</artifactId>
-    <groupId>org.cytoscape</groupId>
-    <version>1.0-SNAPSHOT</version>
-  </parent>
+       <parent>
+               <artifactId>parent</artifactId>
+               <groupId>org.cytoscape</groupId>
+               <version>1.0-SNAPSHOT</version>
+       </parent>
 
-  <properties>
-    <bundle.symbolicName>org.cytoscape.event-impl</bundle.symbolicName>
-    <bundle.namespace>org.cytoscape.event</bundle.namespace>
-  </properties>
+       <properties>
+               
<bundle.symbolicName>org.cytoscape.event-impl</bundle.symbolicName>
+               <bundle.namespace>org.cytoscape.event</bundle.namespace>
+       </properties>
 
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.cytoscape</groupId>
-  <artifactId>event-impl</artifactId>
-  <version>1.0-SNAPSHOT</version>
+       <modelVersion>4.0.0</modelVersion>
+       <groupId>org.cytoscape</groupId>
+       <artifactId>event-impl</artifactId>
+       <version>1.0-SNAPSHOT</version>
 
-  <name>${bundle.symbolicName}</name>
+       <name>${bundle.symbolicName}</name>
 
-  <packaging>bundle</packaging>
+       <packaging>bundle</packaging>
 
-  <build>
-    <resources>
-      <resource>
-        <directory>src/main/resources</directory>
-      </resource>
-      <!--
-       | example additional resource entries, useful when building Eclipse RCP 
applications
-      -->
-      <resource>
-        <directory>.</directory>
-        <includes>
-          <include>plugin.xml</include>
-          <include>plugin.properties</include>
-          <include>icons/**</include>
-        </includes>
-      </resource>
-    </resources>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <configuration>
-          <redirectTestOutputToFile>true</redirectTestOutputToFile>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.ops4j</groupId>
-        <artifactId>maven-pax-plugin</artifactId>
-        <version>1.4</version>
-        <!--
-           | enable improved OSGi compilation support for the bundle 
life-cycle.
-           | to switch back to the standard bundle life-cycle, move this 
setting
-           | down to the maven-bundle-plugin section
-          -->
-        <extensions>true</extensions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.felix</groupId>
-        <artifactId>maven-bundle-plugin</artifactId>
-        <version>1.4.3</version>
-        <!--
-         | the following instructions build a simple set of public/private 
classes into an OSGi bundle
-        -->
-        <configuration>
-          <instructions>
-            <Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
-            <Bundle-Version>${pom.version}</Bundle-Version>
-            <_include>-osgi.bnd</_include>
-          </instructions>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
- 
-  <repositories>
-      <!-- bootstrap for cytoscape dependencies, namely the parent POM 
snapshots -->
-      <repository>
-          <id>cytoscape_snapshots</id>
-          <snapshots>
-            <enabled>true</enabled>
-          </snapshots>
-          <releases>
-            <enabled>false</enabled>
-          </releases>
-          <name>Cytoscape Snapshots</name>
-          
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/snapshots/</url>
-       </repository>
-       <!-- bootstrap for cytoscape dependencies, namely the parent POM 
releases -->
-       <repository>
-          <id>cytoscape_releases</id>
-          <snapshots>
-            <enabled>false</enabled>
-          </snapshots>
-          <releases>
-            <enabled>true</enabled>
-          </releases>
-          <name>Cytoscape Releases</name>
-          
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/releases/</url>
-       </repository>
-  </repositories>
-  <dependencies>
+       <build>
+               <resources>
+                       <resource>
+                               <directory>src/main/resources</directory>
+                       </resource>
+                       <!-- | example additional resource entries, useful when 
building Eclipse 
+                               RCP applications -->
+                       <resource>
+                               <directory>.</directory>
+                               <includes>
+                                       <include>plugin.xml</include>
+                                       <include>plugin.properties</include>
+                                       <include>icons/**</include>
+                               </includes>
+                       </resource>
+               </resources>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-surefire-plugin</artifactId>
+                               <configuration>
+                                       
<redirectTestOutputToFile>true</redirectTestOutputToFile>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.ops4j</groupId>
+                               <artifactId>maven-pax-plugin</artifactId>
+                               <version>1.4</version>
+                               <!-- | enable improved OSGi compilation support 
for the bundle life-cycle. 
+                                       | to switch back to the standard bundle 
life-cycle, move this setting | down 
+                                       to the maven-bundle-plugin section -->
+                               <extensions>true</extensions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
+                               <version>1.4.3</version>
+                               <!-- | the following instructions build a 
simple set of public/private 
+                                       classes into an OSGi bundle -->
+                               <configuration>
+                                       <instructions>
+                                               
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
+                                               
<Bundle-Version>${pom.version}</Bundle-Version>
+                                               <_include>-osgi.bnd</_include>
+                                       </instructions>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
 
-    <dependency>
-      <groupId>org.osgi</groupId>
-      <artifactId>org.osgi.core</artifactId>
-      <version>4.2.0</version>
-      <scope>provided</scope>
-      <optional>true</optional>
-    </dependency>
-    <dependency>
-      <groupId>org.osgi</groupId>
-      <artifactId>org.osgi.compendium</artifactId>
-      <version>4.2.0</version>
-      <scope>provided</scope>
-      <optional>true</optional>
-    </dependency>
+       <repositories>
+               <!-- bootstrap for cytoscape dependencies, namely the parent 
POM snapshots -->
+               <repository>
+                       <id>cytoscape_snapshots</id>
+                       <snapshots>
+                               <enabled>true</enabled>
+                       </snapshots>
+                       <releases>
+                               <enabled>false</enabled>
+                       </releases>
+                       <name>Cytoscape Snapshots</name>
+                       
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/snapshots/</url>
+               </repository>
+               <!-- bootstrap for cytoscape dependencies, namely the parent 
POM releases -->
+               <repository>
+                       <id>cytoscape_releases</id>
+                       <snapshots>
+                               <enabled>false</enabled>
+                       </snapshots>
+                       <releases>
+                               <enabled>true</enabled>
+                       </releases>
+                       <name>Cytoscape Releases</name>
+                       
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/releases/</url>
+               </repository>
+       </repositories>
+       <dependencies>
 
-    <dependency>
-      <groupId>org.cytoscape</groupId>
-      <artifactId>event-api</artifactId>
-      <version>1.0-SNAPSHOT</version>
-      <scope>provided</scope>
-    </dependency>
+               <dependency>
+                       <groupId>org.cytoscape</groupId>
+                       <artifactId>event-api</artifactId>
+                       <version>1.0-SNAPSHOT</version>
+                       <scope>compile</scope>
+               </dependency>
 
-    <dependency>
-      <groupId>org.cytoscape</groupId>
-      <artifactId>event-api</artifactId>
-      <version>1.0-SNAPSHOT</version>
-      <type>test-jar</type>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>3.8.1</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework.osgi</groupId>
-      <artifactId>spring-osgi-mock</artifactId>
-      <version>1.0</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
+               <!-- Testing -->
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.core</artifactId>
+                       <version>4.2.0</version>
+                       <scope>test</scope>
+                       <optional>true</optional>
+               </dependency>
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.compendium</artifactId>
+                       <version>4.2.0</version>
+                       <scope>test</scope>
+                       <optional>true</optional>
+               </dependency>
 
+               <dependency>
+                       <groupId>org.cytoscape</groupId>
+                       <artifactId>event-api</artifactId>
+                       <version>1.0-SNAPSHOT</version>
+                       <type>test-jar</type>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <version>${junit.version}</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.osgi</groupId>
+                       <artifactId>spring-osgi-mock</artifactId>
+                       <version>1.0</version>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
+
 </project>

Modified: 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyEventHelperImpl.java
===================================================================
--- 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyEventHelperImpl.java
    2010-08-12 20:28:22 UTC (rev 21348)
+++ 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyEventHelperImpl.java
    2010-08-12 20:29:24 UTC (rev 21349)
@@ -36,7 +36,6 @@
 
 import org.cytoscape.event.CyEvent;
 import org.cytoscape.event.CyEventHelper;
-import org.cytoscape.event.CyListener;
 import org.cytoscape.event.CyMicroListener;
 
 

Modified: 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyListenerAdapter.java
===================================================================
--- 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyListenerAdapter.java
    2010-08-12 20:28:22 UTC (rev 21348)
+++ 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyListenerAdapter.java
    2010-08-12 20:29:24 UTC (rev 21349)
@@ -34,24 +34,18 @@
 */
 package org.cytoscape.event.internal;
 
-import org.cytoscape.event.CyEvent;
-import org.cytoscape.event.CyEventHelper;
-import org.cytoscape.event.CyListener;
-
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceReference;
-import org.osgi.util.tracker.ServiceTracker;
-import org.osgi.util.tracker.ServiceTrackerCustomizer;
-
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
-
 import java.util.HashMap;
 import java.util.Map;
 import java.util.concurrent.Executor;
 import java.util.concurrent.Executors;
 
+import org.cytoscape.event.CyEvent;
+import org.osgi.framework.BundleContext;
+import org.osgi.util.tracker.ServiceTracker;
 
+
 /**
  * Some static utility methods that help you fire events.
  */

Modified: 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyMicroListenerAdapter.java
===================================================================
--- 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyMicroListenerAdapter.java
       2010-08-12 20:28:22 UTC (rev 21348)
+++ 
core3/event-impl/trunk/src/main/java/org/cytoscape/event/internal/CyMicroListenerAdapter.java
       2010-08-12 20:29:24 UTC (rev 21349)
@@ -34,18 +34,15 @@
 */
 package org.cytoscape.event.internal;
 
-import org.cytoscape.event.CyEventHelper;
-import org.cytoscape.event.CyMicroListener;
-
+import java.lang.reflect.InvocationHandler;
 import java.lang.reflect.Method;
 import java.lang.reflect.Proxy;
-import java.lang.reflect.InvocationHandler;
-
-import java.util.Set;
+import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Map;
-import java.util.HashMap;
+import java.util.Set;
 
+import org.cytoscape.event.CyMicroListener;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.ServiceReference;
 import org.osgi.util.tracker.ServiceTracker;

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to