ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée (JIRA) <>
Subject [jira] Commented: (IVYDE-195) "Ivy Dependency Explorer" View for synchronizing revisions across multiple projects in a workspace
Date Sat, 12 Sep 2009 17:26:57 GMT


Nicolas Lalevée commented on IVYDE-195:

I still don't have the images. You need to upload them manually, as images are not "diffable"
and won't be included in a patch.

About the braces, for instance the you provided is correct whereas
doesn't. It is not a big deal, I can format it before commiting.

I also got some error logged when launching "Show all projects in workspace", see the following
stack trace:
Java Model Exception: Java Model Status [ivydetest-vfs does not exist]
	at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(
	at org.eclipse.jdt.internal.core.JavaModelManager.getPerProjectInfoCheckExistence(
	at org.eclipse.jdt.internal.core.JavaProject.getPerProjectInfo(
	at org.eclipse.jdt.internal.core.JavaProject.getRawClasspath(
	at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathUtil.getIvyClasspathContainers(
	at org.apache.ivyde.eclipse.ui.core.IvyUtil.getIvyProjectsInWorkspace(
	at org.apache.ivyde.eclipse.ui.core.IvyUtil.getAllDependencyDescriptorsInWorkspace(
	at org.apache.ivyde.eclipse.ui.views.ReverseDependencyExplorerView$
	at org.eclipse.swt.widgets.Synchronizer.syncExec(
	at org.eclipse.ui.internal.UISynchronizer.syncExec(
	at org.eclipse.swt.widgets.Display.syncExec(
	at org.apache.ivyde.eclipse.ui.views.ReverseDependencyExplorerView.refresh(
	at org.apache.ivyde.eclipse.ui.views.ReverseDependencyExplorerView$
	at org.eclipse.jface.action.Action.runWithEvent(
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(
	at org.eclipse.jface.action.ActionContributionItem.access$2(
	at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(
	at org.eclipse.swt.widgets.EventTable.sendEvent(
	at org.eclipse.swt.widgets.Display.sendEvent(
	at org.eclipse.swt.widgets.Widget.sendEvent(
	at org.eclipse.swt.widgets.Widget.sendEvent(
	at org.eclipse.swt.widgets.Widget.sendEvent(
	at org.eclipse.swt.widgets.Widget.notifyListeners(
	at org.eclipse.swt.widgets.Display.runDeferredEvents(
	at org.eclipse.swt.widgets.Display.readAndDispatch(
	at org.eclipse.ui.internal.Workbench.runEventLoop(
	at org.eclipse.ui.internal.Workbench.runUI(
	at org.eclipse.ui.internal.Workbench.access$4(
	at org.eclipse.ui.internal.Workbench$
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.eclipse.equinox.launcher.Main.invokeFramework(
	at org.eclipse.equinox.launcher.Main.basicRun(
	at org.eclipse.equinox.launcher.Main.main(

I think that in IvyUtil#getIvyProjectsInWorkspace() you should first check that a project
is opened before trying to get its classpath containers.

Then about exception catching, there is an IvyDEException in IvyRevisionSync#sync() which
is catched but nothing is done with it. I think if something bad happened in the parsing of
the module descriptor and then preventing to update it, the end user should we notified about
it. Another alternative here is to use the cached version of the module descriptor, because
it has already been parsed at least for the generation of the reverse dependency tree. So
then just logging the exception would be sufficient. I don't know what is the best of the
two solutions though.

Another no very handled exception is in IvyClasspathUtil#toIvyFile(). As far as I could remember,
a Job shouldn't throw exceptions, because the end user won't see that a job has failed unless
he looks in the logs. The returned IStatus should be used instead to notify the end user of
the result of the job. So the best here should be I think to throw an IvyDEException and then
in IvyRevisionSync#sync() catch that thrown IvyDEException accordingly. (hint: see the MultiStatus

And same note in IvyUtil#getDependencyDescriptorsByProjects(), the IvyDEException should be
handled. In that case I think that the end user should be notified. See IvyDEException#show().

And another very important subject: the colors :) . Well, I just find the green and red color
highlighting quite aggressive, don't you you too ?

> "Ivy Dependency Explorer" View for synchronizing revisions across multiple projects in
a workspace
> --------------------------------------------------------------------------------------------------
>                 Key: IVYDE-195
>                 URL:
>             Project: IvyDE
>          Issue Type: New Feature
>            Reporter: Jon Schneider
>             Fix For: 2.1.0
>         Attachments: ivyde-195(2).patch, new-project-menu-item.jpg, projects-represented-in-explorer.jpg,
> When working with multiple projects in a workspace that represent the whole or part of
a larger application, I often want to bring the revisions of dependencies up to a single new
revision all at the same time (notwithstanding the wonderful eviction mechanism inherent to
> Other times it is instructive just to see what dependencies are being utilized by projects
in the workspace by revision without having to dig into each project and look at each individual
module descriptor.
> I am introducing the Ivy Dependency explorer that turns the tree upside-down, exploring
the workspace by organization, module, and revision and providing a mechanism to synchronize
revisions across projects/classpath containers.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message