You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by hi...@apache.org on 2011/04/25 12:43:26 UTC
svn commit: r1096453 [1/3] - in /ant/ivy/ivyde/trunk: ./ builder/component/
builder/maps/ doc/ org.apache.ivyde.eclipse.resolvevisualizer.feature/
org.apache.ivyde.eclipse.resolvevisualizer/
org.apache.ivyde.eclipse.resolvevisualizer/.settings/ org.apa...
Author: hibou
Date: Mon Apr 25 10:43:24 2011
New Revision: 1096453
URL: http://svn.apache.org/viewvc?rev=1096453&view=rev
Log:
IVYDE-208 : Add the resolve visualizer as the another Eclipse plugin, since it requires additional dependencies (Zest) the end user may not have.
Added:
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/ (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/.project (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/build.properties (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.properties (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.xml (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.classpath
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.project (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.settings/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.settings/org.eclipse.jdt.core.prefs
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/META-INF/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/META-INF/MANIFEST.MF
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/build.properties (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/evicted.gif (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/focus.gif (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/logo16x16.gif (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/plugin.xml (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ClasspathContainerSelectionDialog.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/IvyNodeLabelProvider.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/MessageContentProvider.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ResolveVisualizerContentProvider.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ResolveVisualizerForm.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ResolveVisualizerPlugin.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ResolveVisualizerView.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/label/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/label/AllCallersAlgorithm.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/label/AllDependencyAlgorithm.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/label/AllRootPathsAlgorithm.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/label/ConfigurationConflictAlgorithm.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/label/ConnectionStyle.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/label/DirectDependenciesAlgorithm.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/label/ILabelDecoratorAlgorithm.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/label/LabelDecoratorAlgorithmAdapter.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/label/SameModuleIdAlgorithm.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/label/ShortestRootPathAlgorithm.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/model/
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/model/IIvyNodeElementFilter.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/model/IvyNodeElement.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/model/IvyNodeElementAdapter.java (with props)
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/model/IvyNodeElementFilterAdapter.java (with props)
Modified:
ant/ivy/ivyde/trunk/build.properties
ant/ivy/ivyde/trunk/build.xml
ant/ivy/ivyde/trunk/builder/component/allElements.xml
ant/ivy/ivyde/trunk/builder/component/customTargets.xml
ant/ivy/ivyde/trunk/builder/maps/ivyde.map
ant/ivy/ivyde/trunk/doc/release-notes.html
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/ClasspathEntriesResolver.java
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathResolver.java
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathUtil.java
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/revdepexplorer/IvyUtil.java
ant/ivy/ivyde/trunk/org.apache.ivyde.feature/build.properties
ant/ivy/ivyde/trunk/org.apache.ivyde.feature/feature.properties
ant/ivy/ivyde/trunk/org.apache.ivyde.feature/feature.xml
Modified: ant/ivy/ivyde/trunk/build.properties
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.properties?rev=1096453&r1=1096452&r2=1096453&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/build.properties (original)
+++ ant/ivy/ivyde/trunk/build.properties Mon Apr 25 10:43:24 2011
@@ -39,5 +39,7 @@ hudson.download.xsd.name=xsd-runtime-2.5
hudson.download.xsd.dropdir=modeling/emf/emf/downloads/drops/2.5.0/R200906151043
hudson.download.gef.name=GEF-SDK-3.5.2
hudson.download.gef.dropdir=tools/gef/downloads/drops/3.5.2/R201002241200
+hudson.download.zest.name=GEF-zest-3.6.2
+hudson.download.zest.dropdir=tools/gef/downloads/drops/3.6.2/R201102251600
hudson.ivy.version=2.1.0
Modified: ant/ivy/ivyde/trunk/build.xml
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.xml?rev=1096453&r1=1096452&r2=1096453&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/build.xml (original)
+++ ant/ivy/ivyde/trunk/build.xml Mon Apr 25 10:43:24 2011
@@ -177,7 +177,7 @@
<taskdef uri="antlib:xooki" file="${basedir}/doc/xooki/antlib.xml" />
<property name="checkUpToDate" value="true" />
<mkdir dir="${dist.work.dir}/apache-ivyde-${build.version}/doc" />
- <xooki:generate destDir="${dist.work.dir}/apache-ivyde-${build.version}/doc" checkUpToDate="${checkUpToDate}">
+ <xooki:generate destDir="${dist.work.dir}/apache-ivyde-${build.version}/doc" checkUpToDate="${checkUpToDate}" xookidir="${basedir}/doc/xooki">
<fileset dir="${src.doc.dir}">
<include name="**/*.html" />
<exclude name="template*.html" />
@@ -189,13 +189,13 @@
<target name="package-binaries" depends="build,generate-dist-doc-files,generate-dist-doc-html">
<mkdir dir="${dist.work.dir}/apache-ivyde-${build.version}" />
<unzip src="${eclipse.work.dir}/${build.version}/org.apache.ivyde.feature-${build.version}.zip" dest="${dist.work.dir}/apache-ivyde-${build.version}" />
+ <unzip src="${eclipse.work.dir}/${build.version}/org.apache.ivyde.eclipse.resolvevisualizer.feature-${build.version}.zip" dest="${dist.work.dir}/apache-ivyde-${build.version}" />
<copy todir="${dist.work.dir}/apache-ivyde-${build.version}">
<fileset dir="${basedir}">
<include name="LICENSE" />
<include name="NOTICE" />
<include name="CHANGES.txt" />
<include name="README.txt" />
- <include name="RELEASE_NOTES.txt" />
</fileset>
</copy>
<mkdir dir="${dist.dir}" />
@@ -465,7 +465,17 @@ You have to specify the Ivy to install w
<eclipse-download name="${hudson.download.gef.name}" dropdir="${hudson.download.gef.dropdir}" />
</target>
- <target name="hudson-get-eclipse" depends="hudson-get-sdk,hudson-get-wtp,hudson-get-emf,hudson-get-xsd,hudson-get-gef" />
+ <target name="hudson-check-download-zest">
+ <condition property="hudson.zest.downloaded">
+ <available file="${hudson.download.zest.name}.zip" />
+ </condition>
+ </target>
+
+ <target name="hudson-get-zest" depends="hudson-check-download-zest" unless="hudson.zest.downloaded">
+ <eclipse-download name="${hudson.download.zest.name}" dropdir="${hudson.download.zest.dropdir}" />
+ </target>
+
+ <target name="hudson-get-eclipse" depends="hudson-get-sdk,hudson-get-wtp,hudson-get-emf,hudson-get-xsd,hudson-get-gef,hudson-get-zest" />
<!-- wrapper of eclipse download urls which have a common pattern -->
<macrodef name="eclipse-download">
@@ -488,6 +498,7 @@ You have to specify the Ivy to install w
<unzip src="${hudson.download.emf.name}.zip" dest="${basedir}" />
<unzip src="${hudson.download.xsd.name}.zip" dest="${basedir}" />
<unzip src="${hudson.download.gef.name}.zip" dest="${basedir}" />
+ <unzip src="${hudson.download.zest.name}.zip" dest="${basedir}" />
<move file="eclipse" tofile="${hudson.download.sdk.name}" />
</target>
Modified: ant/ivy/ivyde/trunk/builder/component/allElements.xml
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/builder/component/allElements.xml?rev=1096453&r1=1096452&r2=1096453&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/builder/component/allElements.xml (original)
+++ ant/ivy/ivyde/trunk/builder/component/allElements.xml Mon Apr 25 10:43:24 2011
@@ -31,6 +31,10 @@
<property name="type" value="feature" />
<property name="id" value="org.apache.ivyde.feature" />
</ant>
+ <ant antfile="${genericTargets}" target="${target}">
+ <property name="type" value="feature" />
+ <property name="id" value="org.apache.ivyde.eclipse.resolvevisualizer.feature" />
+ </ant>
</target>
<!-- ===================================================================== -->
Modified: ant/ivy/ivyde/trunk/builder/component/customTargets.xml
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/builder/component/customTargets.xml?rev=1096453&r1=1096452&r2=1096453&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/builder/component/customTargets.xml (original)
+++ ant/ivy/ivyde/trunk/builder/component/customTargets.xml Mon Apr 25 10:43:24 2011
@@ -32,6 +32,10 @@
<ant antfile="${assembleScriptName}" dir="${buildDirectory}" />
</target>
+ <target name="assemble.org.apache.ivyde.eclipse.resolvevisualizer.feature">
+ <ant antfile="${assembleScriptName}" dir="${buildDirectory}" />
+ </target>
+
<!-- ===================================================================== -->
<!-- ===================================================================== -->
<target name="getBaseComponents" depends="checkLocalBase" unless="skipBase">
@@ -110,12 +114,24 @@
<include name="NOTICE" />
</fileset>
</copy>
+ <copy todir="${buildDirectory}/features/org.apache.ivyde.eclipse.resolvevisualizer.feature/">
+ <fileset dir="${buildDirectory}/../..">
+ <include name="LICENSE" />
+ <include name="NOTICE" />
+ </fileset>
+ </copy>
<copy todir="${buildDirectory}/plugins/org.apache.ivyde.eclipse/META-INF/">
<fileset dir="${buildDirectory}/../..">
<include name="LICENSE" />
<include name="NOTICE" />
</fileset>
</copy>
+ <copy todir="${buildDirectory}/plugins/org.apache.ivyde.eclipse.resolvevisualizer/META-INF/">
+ <fileset dir="${buildDirectory}/../..">
+ <include name="LICENSE" />
+ <include name="NOTICE" />
+ </fileset>
+ </copy>
</target>
<!-- ===================================================================== -->
Modified: ant/ivy/ivyde/trunk/builder/maps/ivyde.map
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/builder/maps/ivyde.map?rev=1096453&r1=1096452&r2=1096453&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/builder/maps/ivyde.map (original)
+++ ant/ivy/ivyde/trunk/builder/maps/ivyde.map Mon Apr 25 10:43:24 2011
@@ -17,4 +17,6 @@
# * under the License.
# ***************************************************************
plugin@org.apache.ivyde.eclipse=COPY,.,../org.apache.ivyde.eclipse
+plugin@org.apache.ivyde.eclipse.resolvevisualizer=COPY,.,../org.apache.ivyde.eclipse.resolvevisualizer
feature@org.apache.ivyde.feature=COPY,.,../org.apache.ivyde.feature
+feature@org.apache.ivyde.eclipse.resolvevisualizer.feature=COPY,.,../org.apache.ivyde.eclipse.resolvevisualizer.feature
Modified: ant/ivy/ivyde/trunk/doc/release-notes.html
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/doc/release-notes.html?rev=1096453&r1=1096452&r2=1096453&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/doc/release-notes.html (original)
+++ ant/ivy/ivyde/trunk/doc/release-notes.html Mon Apr 25 10:43:24 2011
@@ -131,6 +131,7 @@ List of changes since <a href="/ivy/ivyd
<li>NEW: Resolve error popups can now be avoided (IVYDE-268)</li>
<li>NEW: Add configuration option to use an extended revision id when resolving eclipse projects (IVYDE-235) (thanks to Jeffrey M. Metcalf)</li>
<li>NEW: Allow specifying source and javadoc mapping on binaries directly in the ivy.xml (IVYDE-267)</li>
+ <li>NEW: Ivy Resolve Visualizer (IVYDE-208)</li>
</ul><ul>
<li>IMPROVE: let IvyDE refresh workspace after a resolve (IVYDE-27) (thanks to Clint Burghduff)</li>
<li>IMPROVE: IvyDE now resolve by batch, then preventing too many workspace build (IVYDE-177)</li>
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Apr 25 10:43:24 2011
@@ -0,0 +1 @@
+bin
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/.project
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/.project?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/.project (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/.project Mon Apr 25 10:43:24 2011
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<projectDescription>
+ <name>org.apache.ivyde.eclipse.resolvevisualizer.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/.project
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/.project
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/.project
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/build.properties
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/build.properties?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/build.properties (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/build.properties Mon Apr 25 10:43:24 2011
@@ -0,0 +1,24 @@
+# ***************************************************************
+# * Licensed to the Apache Software Foundation (ASF) under one
+# * or more contributor license agreements. See the NOTICE file
+# * distributed with this work for additional information
+# * regarding copyright ownership. The ASF licenses this file
+# * to you under the Apache License, Version 2.0 (the
+# * "License"); you may not use this file except in compliance
+# * with the License. You may obtain a copy of the License at
+# *
+# * http://www.apache.org/licenses/LICENSE-2.0
+# *
+# * Unless required by applicable law or agreed to in writing,
+# * software distributed under the License is distributed on an
+# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# * KIND, either express or implied. See the License for the
+# * specific language governing permissions and limitations
+# * under the License.
+# ***************************************************************
+bin.includes = feature.xml,\
+ feature.properties
+src.includes = .project,\
+ build.properties,\
+ feature.properties,\
+ feature.xml
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/build.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/build.properties
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.properties
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.properties?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.properties (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.properties Mon Apr 25 10:43:24 2011
@@ -0,0 +1,46 @@
+# ***************************************************************
+# * Licensed to the Apache Software Foundation (ASF) under one
+# * or more contributor license agreements. See the NOTICE file
+# * distributed with this work for additional information
+# * regarding copyright ownership. The ASF licenses this file
+# * to you under the Apache License, Version 2.0 (the
+# * "License"); you may not use this file except in compliance
+# * with the License. You may obtain a copy of the License at
+# *
+# * http://www.apache.org/licenses/LICENSE-2.0
+# *
+# * Unless required by applicable law or agreed to in writing,
+# * software distributed under the License is distributed on an
+# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# * KIND, either express or implied. See the License for the
+# * specific language governing permissions and limitations
+# * under the License.
+# ***************************************************************
+
+featureName=Apache IvyDE Resolve Visualizer
+providerName=Apache Software Foundation
+
+updateSiteName=The Apache IvyDE Updates
+
+description=Apache IvyDE Resolve Visualizer is a graph viewer of the resolved dependencies.\n\
+\n\
+It is an optional dependency of Apache IvyDE since it requires additional plugins to be installed (Zest).
+
+license=Apache License, Version 2.0\n\
+Licensed to the Apache Software Foundation (ASF) under one\n\
+or more contributor license agreements. See the NOTICE file\n\
+distributed with this work for additional information\n\
+regarding copyright ownership. The ASF licenses this file\n\
+to you under the Apache License, Version 2.0 (the\n\
+"License"); you may not use this file except in compliance\n\
+with the License. You may obtain a copy of the License at\n\
+\n\
+ http://www.apache.org/licenses/LICENSE-2.0\n\
+\n\
+Unless required by applicable law or agreed to in writing,\n\
+software distributed under the License is distributed on an\n\
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n\
+KIND, either express or implied. See the License for the\n\
+specific language governing permissions and limitations\n\
+under the License.
+
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.properties
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.xml
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.xml?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.xml (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.xml Mon Apr 25 10:43:24 2011
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<feature
+ id="org.apache.ivyde.eclipse.resolvevisualizer.feature"
+ label="%featureName"
+ version="2.2.0.qualifier"
+ provider-name="%providerName">
+
+ <description url="http://ant.apache.org/ivy/ivyde/">
+ %description
+ </description>
+
+ <copyright>
+ Copyright © 2011 The Apache Software Foundation
+ </copyright>
+
+ <license url="http://www.apache.org/licenses/LICENSE-2.0">
+ %license
+ </license>
+
+ <url>
+ <update label="%updateSiteName" url="http://www.apache.org/dist/ant/ivyde/updatesite"/>
+ <discovery label="%updateSiteName" url="http://www.apache.org/dist/ant/ivyde/updatesite"/>
+ </url>
+
+ <requires>
+ <import plugin="org.eclipse.ui" version="3.4.0" match="compatible"/>
+ <import plugin="org.eclipse.core.runtime" version="3.4.0" match="compatible"/>
+ <import plugin="org.apache.ivyde.eclipse" version="2.2.0" match="equivalent"/>
+ <import plugin="org.eclipse.zest.core" version="1.2.0" match="compatible"/>
+ <import plugin="org.eclipse.zest.layouts" version="1.1.0" match="compatible"/>
+ <import plugin="org.eclipse.jdt.core" version="3.4.0" match="compatible"/>
+ <import plugin="org.eclipse.core.resources" version="3.4.0" match="compatible"/>
+ <import plugin="org.eclipse.ui.forms" version="3.4.0" match="compatible"/>
+ <import plugin="org.apache.ivy" version="2.1.0" match="compatible"/>
+ </requires>
+
+ <plugin
+ id="org.apache.ivyde.eclipse.resolvevisualizer"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer.feature/feature.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.classpath
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.classpath?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.classpath (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.classpath Mon Apr 25 10:43:24 2011
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.project
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.project?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.project (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.project Mon Apr 25 10:43:24 2011
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<projectDescription>
+ <name>org.apache.ivyde.eclipse.resolvevisualizer</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.project
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.project
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.project
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.settings/org.eclipse.jdt.core.prefs?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.settings/org.eclipse.jdt.core.prefs (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/.settings/org.eclipse.jdt.core.prefs Mon Apr 25 10:43:24 2011
@@ -0,0 +1,25 @@
+# ***************************************************************
+# * Licensed to the Apache Software Foundation (ASF) under one
+# * or more contributor license agreements. See the NOTICE file
+# * distributed with this work for additional information
+# * regarding copyright ownership. The ASF licenses this file
+# * to you under the Apache License, Version 2.0 (the
+# * "License"); you may not use this file except in compliance
+# * with the License. You may obtain a copy of the License at
+# *
+# * http://www.apache.org/licenses/LICENSE-2.0
+# *
+# * Unless required by applicable law or agreed to in writing,
+# * software distributed under the License is distributed on an
+# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# * KIND, either express or implied. See the License for the
+# * specific language governing permissions and limitations
+# * under the License.
+# ***************************************************************
+#Sun Apr 24 13:34:26 CEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.3
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/META-INF/MANIFEST.MF?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/META-INF/MANIFEST.MF (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/META-INF/MANIFEST.MF Mon Apr 25 10:43:24 2011
@@ -0,0 +1,18 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Apache IvyDE Resolve Visualizer
+Bundle-SymbolicName: org.apache.ivyde.eclipse.resolvevisualizer;singleton:=true
+Bundle-Version: 2.2.0.qualifier
+Bundle-Activator: org.apache.ivyde.eclipse.resolvevisualizer.ResolveVisualizerPlugin
+Require-Bundle: org.eclipse.ui;bundle-version="[3.4.0,4.0.0)",
+ org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
+ org.apache.ivyde.eclipse;bundle-version="[2.2.0,2.3.0)",
+ org.eclipse.zest.core;bundle-version="[1.2.0,2.0.0)",
+ org.eclipse.zest.layouts;bundle-version="[1.1.0,2.0.0)",
+ org.apache.ivy;bundle-version="[2.1.0,3.0.0)",
+ org.eclipse.jdt.core;bundle-version="[3.4.0,4.0.0)",
+ org.eclipse.core.resources;bundle-version="[3.4.0,4.0.0)",
+ org.eclipse.ui.forms;bundle-version="[3.4.0,4.0.0)"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.4
+Bundle-Vendor: Apache Software Foundation
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/build.properties
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/build.properties?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/build.properties (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/build.properties Mon Apr 25 10:43:24 2011
@@ -0,0 +1,24 @@
+# ***************************************************************
+# * Licensed to the Apache Software Foundation (ASF) under one
+# * or more contributor license agreements. See the NOTICE file
+# * distributed with this work for additional information
+# * regarding copyright ownership. The ASF licenses this file
+# * to you under the Apache License, Version 2.0 (the
+# * "License"); you may not use this file except in compliance
+# * with the License. You may obtain a copy of the License at
+# *
+# * http://www.apache.org/licenses/LICENSE-2.0
+# *
+# * Unless required by applicable law or agreed to in writing,
+# * software distributed under the License is distributed on an
+# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# * KIND, either express or implied. See the License for the
+# * specific language governing permissions and limitations
+# * under the License.
+# ***************************************************************
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ icons/
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/build.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/build.properties
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/evicted.gif
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/evicted.gif?rev=1096453&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/evicted.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/focus.gif
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/focus.gif?rev=1096453&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/focus.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/logo16x16.gif
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/logo16x16.gif?rev=1096453&view=auto
==============================================================================
Binary file - no diff available.
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/icons/logo16x16.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/plugin.xml
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/plugin.xml?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/plugin.xml (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/plugin.xml Mon Apr 25 10:43:24 2011
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<plugin>
+ <extension
+ point="org.eclipse.ui.views">
+ <view
+ category="org.apache.ivyde.eclipse.ui.views"
+ class="org.apache.ivyde.eclipse.resolvevisualizer.ResolveVisualizerView"
+ icon="icons/logo16x16.gif"
+ id="org.apache.ivyde.eclipse.resolvevisualizer.ResolveVisualizerView"
+ name="Ivy Resolve Visualizer"
+ restorable="false">
+ </view>
+ </extension>
+
+</plugin>
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/plugin.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/plugin.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/plugin.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ClasspathContainerSelectionDialog.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ClasspathContainerSelectionDialog.java?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ClasspathContainerSelectionDialog.java (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ClasspathContainerSelectionDialog.java Mon Apr 25 10:43:24 2011
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.ivyde.eclipse.resolvevisualizer;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainer;
+import org.apache.ivyde.eclipse.cpcontainer.IvyClasspathUtil;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.dialogs.ElementListSelectionDialog;
+
+public class ClasspathContainerSelectionDialog extends ElementListSelectionDialog {
+ public ClasspathContainerSelectionDialog(Shell parentShell) {
+ super(parentShell, new LabelProvider() {
+ public String getText(Object element) {
+ IvyClasspathContainer container = (IvyClasspathContainer) element;
+ return container.getConf().getJavaProject().getProject().getName() + " -> "
+ + container.getDescription();
+ }
+ });
+ setTitle("Ivy Classpath Containers");
+ setMessage("Select a container to view in the resolve visualizer.");
+
+ List/* <IvyClasspathContainer> */classpathContainers = new ArrayList/* <IvyClasspathContainer> */();
+ IProject[] ivyProjects = IvyClasspathUtil.getIvyProjectsInWorkspace();
+ for (int i = 0; i < ivyProjects.length; i++) {
+ classpathContainers.addAll(IvyClasspathUtil.getIvyClasspathContainers(ivyProjects[i]));
+ }
+
+ setElements(classpathContainers.toArray());
+ setMultipleSelection(false);
+ }
+}
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ClasspathContainerSelectionDialog.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ClasspathContainerSelectionDialog.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ClasspathContainerSelectionDialog.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/IvyNodeLabelProvider.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/IvyNodeLabelProvider.java?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/IvyNodeLabelProvider.java (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/IvyNodeLabelProvider.java Mon Apr 25 10:43:24 2011
@@ -0,0 +1,307 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.ivyde.eclipse.resolvevisualizer;
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+import org.apache.ivyde.eclipse.IvyPlugin;
+import org.apache.ivyde.eclipse.resolvevisualizer.label.ConfigurationConflictAlgorithm;
+import org.apache.ivyde.eclipse.resolvevisualizer.label.ConnectionStyle;
+import org.apache.ivyde.eclipse.resolvevisualizer.label.DirectDependenciesAlgorithm;
+import org.apache.ivyde.eclipse.resolvevisualizer.label.ILabelDecoratorAlgorithm;
+import org.apache.ivyde.eclipse.resolvevisualizer.label.ShortestRootPathAlgorithm;
+import org.apache.ivyde.eclipse.resolvevisualizer.model.IvyNodeElement;
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.ILabelProviderListener;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.zest.core.viewers.EntityConnectionData;
+import org.eclipse.zest.core.viewers.GraphViewer;
+import org.eclipse.zest.core.viewers.IConnectionStyleProvider;
+import org.eclipse.zest.core.viewers.IEntityStyleProvider;
+import org.eclipse.zest.core.widgets.ZestStyles;
+
+/**
+ * Alters the color of the labels and connections based on the selected analysis algorithm.
+ */
+public class IvyNodeLabelProvider implements ILabelProvider, IConnectionStyleProvider, IEntityStyleProvider {
+ public Color GRAY = new Color(Display.getDefault(), 128, 128, 128);
+ public Color LIGHT_GRAY = new Color(Display.getDefault(), 220, 220, 220);
+ public Color BLACK = new Color(Display.getDefault(), 0, 0, 0);
+ public Color RED = new Color(Display.getDefault(), 255, 0, 0);
+ public Color LIGHT_GREEN = new Color(Display.getDefault(), 96, 255, 96);
+
+ private IvyNodeElement selected = null;
+ private IvyNodeElement rootNode = null;
+ private Map/* <EntityConnectionData, Color> */highlightedRelationships = new HashMap/* <EntityConnectionData, Color> */();
+ private Map/* <IvyNodeElement, Color> */highlightedDependencies = new HashMap/* <IvyNodeElement, Color> */();
+ private Color disabledColor = null;
+ private IvyNodeElement pinnedNode = null;
+ private GraphViewer viewer;
+
+ private ILabelDecoratorAlgorithm autoSelectDecorator = new ShortestRootPathAlgorithm();
+ private DirectDependenciesAlgorithm rootDirectDependenciesDecorator = new DirectDependenciesAlgorithm();;
+ private ConfigurationConflictAlgorithm conflictDecorator = new ConfigurationConflictAlgorithm();
+
+ private Color rootColor;
+ private Color rootSelectedColor;
+
+ public IvyNodeLabelProvider(GraphViewer viewer) {
+ this.viewer = viewer;
+ this.rootDirectDependenciesDecorator.setStyles(new Color(Display.getDefault(), 197, 237, 197),
+ new ConnectionStyle(ZestStyles.CONNECTIONS_SOLID, new Color(Display.getDefault(), 175, 175, 175), 1,
+ false));
+ }
+
+ public Image getImage(Object element) {
+ if (element instanceof IvyNodeElement) {
+ IvyNodeElement node = (IvyNodeElement) element;
+ if (node.isEvicted()) {
+ return ResolveVisualizerPlugin.getImageDescriptor("icons/evicted.gif").createImage();
+ }
+ }
+
+ return null;
+ }
+
+ public String getText(Object element) {
+ if (element instanceof IvyNodeElement) {
+ IvyNodeElement node = (IvyNodeElement) element;
+ String text = node.getOrganization() + "#" + node.getName() + ";";
+ if (node.getRevision().indexOf("working@") != -1)
+ text += "WORKSPACE";
+ else
+ text += node.getRevision();
+ return text;
+ }
+
+ return "";
+ }
+
+ public void addListener(ILabelProviderListener listener) {
+ }
+
+ public void removeListener(ILabelProviderListener listener) {
+ }
+
+ public boolean isLabelProperty(Object element, String property) {
+ return false;
+ }
+
+ /**
+ * Colors all connections regardless of their selection status.
+ */
+ public Color getColor(Object rel) {
+ if (highlightedRelationships.keySet().contains(rel)) {
+ ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(rel);
+ return style.getHighlightColor();
+ }
+ return LIGHT_GRAY;
+ }
+
+ public int getConnectionStyle(Object rel) {
+ return ZestStyles.CONNECTIONS_DIRECTED;
+ }
+
+ /**
+ * Colors "highlighted" relationships. We want to differentiate between those highlighted programatically by the
+ * auto-select mechanism, and those hand-selected by the user.
+ */
+ public Color getHighlightColor(Object rel) {
+ if (highlightedRelationships.keySet().contains(rel)) {
+ ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(rel);
+ return style.getHighlightColor();
+ }
+ return ColorConstants.blue;
+ }
+
+ public Color getNodeHighlightColor(Object entity) {
+ return null;
+ }
+
+ public int getLineWidth(Object rel) {
+ if (highlightedRelationships.keySet().contains(rel)) {
+ ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(rel);
+ if (style.isRevealOnHighlight()) {
+ return style.getLineWidth();
+ }
+ }
+ return 1;
+ }
+
+ public Color getAdjacentEntityHighlightColor(Object entity) {
+ return null;
+ }
+
+ public Color getBorderColor(Object entity) {
+ if (this.selected != null || this.pinnedNode != null) {
+ if (entity == this.selected || entity == this.pinnedNode) {
+ return BLACK;
+ } else if (highlightedDependencies.keySet().contains(entity)) {
+ // If this entity is directly connected to the selected entity
+ return BLACK;
+ } else {
+ return LIGHT_GRAY;
+ }
+
+ }
+
+ return BLACK;
+ }
+
+ public Color getBorderHighlightColor(Object entity) {
+ return null;
+ }
+
+ public int getBorderWidth(Object entity) {
+ return 0;
+ }
+
+ public Color getBackgroundColour(Object entity) {
+
+ if (entity == this.rootNode) {
+ if (rootColor == null) {
+ rootColor = LIGHT_GREEN;
+ }
+ return rootColor;
+ }
+ if (highlightedDependencies.keySet().contains(entity)) {
+ return (Color) highlightedDependencies.get(entity); // viewer.getGraphControl().HIGHLIGHT_ADJACENT_COLOR;
+ } else {
+ return viewer.getGraphControl().DEFAULT_NODE_COLOR;
+ }
+ }
+
+ public Color getForegroundColour(Object entity) {
+ if (this.selected != null || this.pinnedNode != null) {
+ if (entity == this.selected || this.pinnedNode == entity) {
+ return BLACK;
+ } else if (highlightedDependencies.keySet().contains(entity)) {
+ // If this entity is directly connected to the selected entity
+ return BLACK;
+ } else {
+ return GRAY;
+ }
+
+ }
+ return BLACK;
+ }
+
+ public void setPinnedNode(IvyNodeElement pinnedNode) {
+ this.pinnedNode = pinnedNode;
+ }
+
+ protected IvyNodeElement getSelected() {
+ if (pinnedNode != null) {
+ return pinnedNode;
+ }
+ return selected;
+ }
+
+ /**
+ * Sets the current selection
+ *
+ * @param root
+ * @param currentSelection
+ */
+ public void setCurrentSelection(IvyNodeElement root, IvyNodeElement currentSelection) {
+ for (Iterator iter = highlightedRelationships.keySet().iterator(); iter.hasNext();) {
+ EntityConnectionData entityConnectionData = (EntityConnectionData) iter.next();
+
+ ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(entityConnectionData);
+ if (style.isRevealOnHighlight()) {
+ viewer.unReveal(entityConnectionData);
+ }
+ }
+
+ this.rootNode = root;
+ this.selected = null;
+ this.selected = currentSelection;
+
+ highlightedRelationships = new HashMap/* <EntityConnectionData, Color> */();
+ highlightedDependencies = new HashMap/* <IvyNodeElement, Color> */();
+
+ rootDirectDependenciesDecorator.calculateHighlighted(root, root, highlightedRelationships,
+ highlightedDependencies);
+ conflictDecorator.calculateHighlighted(root, root, highlightedRelationships, highlightedDependencies);
+
+ if (this.selected != null || this.pinnedNode != null) {
+ autoSelectDecorator.calculateHighlighted(root, selected, highlightedRelationships, highlightedDependencies);
+ }
+
+ Object[] connections = viewer.getConnectionElements();
+ for (Iterator iter = highlightedRelationships.keySet().iterator(); iter.hasNext();) {
+ Object entityConnectionData = iter.next();
+
+ ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(entityConnectionData);
+ if (style.isRevealOnHighlight()) {
+ viewer.reveal(entityConnectionData);
+ }
+ }
+
+ for (int i = 0; i < connections.length; i++) {
+ viewer.update(connections[i], null);
+ }
+ }
+
+ public void dispose() {
+ if (this.disabledColor != null) {
+ this.disabledColor.dispose();
+ this.disabledColor = null;
+ }
+ if (this.rootColor != null) {
+ this.rootColor.dispose();
+ this.rootColor = null;
+ }
+ if (this.rootSelectedColor != null) {
+ this.rootSelectedColor.dispose();
+ this.rootSelectedColor = null;
+ }
+ }
+
+ public IFigure getTooltip(Object entity) {
+ if (entity instanceof EntityConnectionData) {
+ EntityConnectionData connection = (EntityConnectionData) entity;
+ IvyNodeElement source = (IvyNodeElement) connection.source;
+ IvyNodeElement dest = (IvyNodeElement) connection.dest;
+
+ String[] confs = dest.getCallerConfigurations(source);
+ String tooltipText = "";
+ for (int i = 0; i < confs.length; i++) {
+ tooltipText += confs[i] + ", ";
+ }
+ return new Label(tooltipText.substring(0, tooltipText.length() - 2));
+ }
+
+ return null;
+ }
+
+ public boolean fisheyeNode(Object entity) {
+ return false;
+ }
+
+ public void setAutoSelectDecorator(ILabelDecoratorAlgorithm decoratorAlgorithm) {
+ this.autoSelectDecorator = decoratorAlgorithm;
+ }
+}
\ No newline at end of file
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/IvyNodeLabelProvider.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/IvyNodeLabelProvider.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/IvyNodeLabelProvider.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/MessageContentProvider.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/MessageContentProvider.java?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/MessageContentProvider.java (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/MessageContentProvider.java Mon Apr 25 10:43:24 2011
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.ivyde.eclipse.resolvevisualizer;
+
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Map;
+
+import org.apache.ivy.core.module.id.ModuleId;
+import org.apache.ivyde.eclipse.resolvevisualizer.model.IvyNodeElement;
+import org.eclipse.jface.dialogs.IMessageProvider;
+import org.eclipse.ui.forms.IMessageManager;
+
+public class MessageContentProvider {
+ private IMessageManager manager;
+
+ /**
+ * Called when the view selection changes and the message list needs to be rebuilt.
+ */
+ public void selectionChanged(IvyNodeElement root) {
+ if (root == null) {
+ return;
+ }
+ manager.removeAllMessages();
+
+ Map/* <ModuleId, Collection<IvyNodeElement>> */conflicts = new HashMap/* <ModuleId, Collection<IvyNodeElement>> */();
+
+ IvyNodeElement[] deepDependencies = root.getDeepDependencies();
+ for (int i = 0; i < deepDependencies.length; i++) {
+ if (deepDependencies[i].getConflicts().length > 0) {
+ Collection/* <IvyNodeElement> */conflictParticipants = (Collection) conflicts.get(deepDependencies[i]
+ .getModuleRevisionId().getModuleId());
+ if (conflictParticipants == null)
+ conflictParticipants = new HashSet/* <IvyNodeElement> */();
+ conflictParticipants.add(deepDependencies[i]);
+ conflicts.put(deepDependencies[i].getModuleRevisionId().getModuleId(), conflictParticipants);
+ }
+ }
+
+ for (Iterator conflictIter = conflicts.keySet().iterator(); conflictIter.hasNext();) {
+ ModuleId conflictKey = (ModuleId) conflictIter.next();
+ manager.addMessage(conflictKey,
+ "Conflict on module " + conflictKey.getOrganisation() + "#" + conflictKey.getName(),
+ conflicts.get(conflictKey), IMessageProvider.ERROR);
+ }
+ }
+
+ public void setMessageManager(IMessageManager manager) {
+ this.manager = manager;
+ }
+}
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/MessageContentProvider.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/MessageContentProvider.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/MessageContentProvider.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ResolveVisualizerContentProvider.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ResolveVisualizerContentProvider.java?rev=1096453&view=auto
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ResolveVisualizerContentProvider.java (added)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ResolveVisualizerContentProvider.java Mon Apr 25 10:43:24 2011
@@ -0,0 +1,86 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.ivyde.eclipse.resolvevisualizer;
+
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.ivyde.eclipse.resolvevisualizer.model.IIvyNodeElementFilter;
+import org.apache.ivyde.eclipse.resolvevisualizer.model.IvyNodeElement;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.zest.core.viewers.IGraphEntityContentProvider;
+
+public class ResolveVisualizerContentProvider implements IGraphEntityContentProvider {
+ Collection/* <IIvyNodeElementFilter> */filters = new HashSet/* <IIvyNodeElementFilter> */();
+
+ // Returns all entities that should be linked with the given entity
+ public Object[] getConnectedTo(Object entity) {
+ return filter(((IvyNodeElement) entity).getDependencies());
+ }
+
+ public Object[] getElements(Object inputElement) {
+ if (inputElement == null) {
+ return new Object[] {};
+ } else {
+ IvyNodeElement inputNode = (IvyNodeElement) inputElement;
+ List elements = Arrays.asList(filter(inputNode.getDeepDependencies()));
+ Collections.sort(elements, new IvyNodeElementComparator());
+ return elements.toArray();
+ }
+ }
+
+ public IvyNodeElement[] filter(IvyNodeElement[] deepDependencies) {
+ IvyNodeElement[] filtered = deepDependencies;
+ for (Iterator iter = filters.iterator(); iter.hasNext();) {
+ IIvyNodeElementFilter filter = (IIvyNodeElementFilter) iter.next();
+ filtered = filter.filter(filtered); // I love this line
+ }
+
+ return filtered;
+ }
+
+ public void addFilter(IIvyNodeElementFilter filter) {
+ filters.add(filter);
+ }
+
+ public void dispose() {
+ // nothing to dispose
+ }
+
+ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
+ }
+
+ private class IvyNodeElementComparator implements Comparator {
+ public int compare(Object arg1, Object arg2) {
+ IvyNodeElement element1 = (IvyNodeElement) arg1;
+ IvyNodeElement element2 = (IvyNodeElement) arg2;
+
+ if (element1.getDepth() > element2.getDepth())
+ return -1;
+ else if (element1.getDepth() < element2.getDepth())
+ return 1;
+
+ return element1.getModuleRevisionId().toString().compareTo(element2.getModuleRevisionId().toString());
+ }
+ }
+}
\ No newline at end of file
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ResolveVisualizerContentProvider.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ResolveVisualizerContentProvider.java
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse.resolvevisualizer/src/org/apache/ivyde/eclipse/resolvevisualizer/ResolveVisualizerContentProvider.java
------------------------------------------------------------------------------
svn:mime-type = text/plain