Search in sources :

Example 6 with Repository

use of org.eclipse.flux.core.Repository in project flux by eclipse.

the class SyncDownloadHandler method isEnabled.

@Override
public boolean isEnabled() {
    final Repository repository = org.eclipse.flux.core.Activator.getDefault().getRepository();
    final MessageConnector messagingConnector = org.eclipse.flux.core.Activator.getDefault().getMessageConnector();
    return repository != null && messagingConnector != null;
}
Also used : MessageConnector(org.eclipse.flux.client.MessageConnector) Repository(org.eclipse.flux.core.Repository)

Aggregations

Repository (org.eclipse.flux.core.Repository)6 IProject (org.eclipse.core.resources.IProject)5 ISelection (org.eclipse.jface.viewers.ISelection)4 IEvaluationContext (org.eclipse.core.expressions.IEvaluationContext)2 MessageConnector (org.eclipse.flux.client.MessageConnector)2 DownloadProject (org.eclipse.flux.core.DownloadProject)1 CompletionCallback (org.eclipse.flux.core.DownloadProject.CompletionCallback)1 LabelProvider (org.eclipse.jface.viewers.LabelProvider)1 Shell (org.eclipse.swt.widgets.Shell)1