Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Update Manager
Update Manager [message #459364] Thu, 30 November 2006 08:26
Eclipse UserFriend
I would be greatful if someone can help me with the update manager.

i've created the action UpdateAction()

[CODE]

package com.develance.perfilartercp;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.update.ui.UpdateJob;
import org.eclipse.update.ui.UpdateManagerUI;

public class UpdateAction extends Action implements IAction {
IWorkbenchWindow window;

public UpdateAction(IWorkbenchWindow window) {
this.window = window;
setId("com.develance.perfilartercp.newUpdates");
setText("&Update...");
setToolTipText("Search for updates to Hyperbola");
setImageDescriptor(com.develance.perfilartercp.Activator.get ImageDescriptor( "/icons/sample2.gif"));
window.getWorkbench().getHelpSystem().setHelp(this,"com.develance.perfilartercp.updates ");
}
public void run() {
BusyIndicator.showWhile(this.window.getShell().getDisplay(),
new Runnable() {
public void run() {
UpdateJob job = new UpdateJob("Searching for updates",
false, false);
UpdateManagerUI.openInstaller(UpdateAction.this.window.getSh ell(),
job);
}
});
}
}

[CODE]

* I'v added the action in ApplicationActionBarAdvisor()
* i've created the feature with all necessary plugins and fragments
* i'v specified in the plugin a local site : "file:/c:/Site/"
*I've created the product and the Update Site ( when i create the update
site, i also increment the version of the application)

When i run the updateAction, nothing happens except for " no updates for
the currently installed feature(s), try again later".

* I've tried putting an invalid path, so that an error message appears but
it was the same " no updates for the currently installed feature(s), try
again later". It looks like its not searching in the path.

* Something weird happened. i've started my application with the mail RCP
application and i was able to update it with no problems, i've started
modifying the Application, adding my own plugins ( that have dependencies on
ohter plugins) and things went wrong. the update was not workin any more.
What comes to my mind is tha the dependencies are disturbing with the
update.

here's the list of plugins:

com.develance.perfilartercp (belongs to my application)
com.develance.perfilartercp.activation (belongs to my application)
com.develcance.mail
com.ibm.icu
org.apache.ant
org.apache.axis
org.apache.commons_logging
org.apache.jakarta_log4j
org.apache.lucene
org.apache.xerces
org.aspectj.ajde
org.aspectj.runtime
org.aspectj.weaver
org.eclipse.ant.core
org.eclipse.aspectj
org.eclipse.core.commands
org.eclipse.core.contenttype
org.eclipse.core.expressions
org.eclipse.core.filesystem
org.eclipse.core.filesystem.win32.x86
org.eclipse.core.jobs
org.eclipse.core.resources
org.eclipse.core.resources.compatibility
org.eclipse.core.resources.win32
org.eclipse.core.runtime
org.eclipse.core.runtime.compatibility
org.eclipse.core.runtime.compatibility.auth
org.eclipse.core.runtime.compatibility.registry
org.eclipse.core.variables
org.eclipse.equinox.common
org.eclipse.equinox.preferences
org.eclipse.equinox.registry
org.eclipse.equinox.servlet.api
org.eclipse.help
org.eclipse.help.appserver
org.eclipse.help.base
org.eclipse.help.ui
org.eclipse.help.webapp
org.eclipse.jface
org.eclipse.jface.text
org.eclipse.osgi

in the plugin com.develance.perfilartercp's Manifest i had tu add this line
dew to the dependencies
"Eclipse-RegisterBuddy:
org.apache.log4j,org.apache.axis,org.apache.commons_logging"

Well i've tried to put as many details as i could. I hope someone can help
me with the problem of updating the application

Thanks
Previous Topic:How to prevent System.exit(*)?
Next Topic:Marker in node XML
Goto Forum:
  


Current Time: Fri Mar 21 11:02:09 EDT 2025

Powered by FUDForum. Page generated in 0.04371 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top