Search in sources :

Example 6 with MessageConnector

use of org.eclipse.flux.client.MessageConnector in project flux by eclipse.

the class FluxUiPlugin method start.

@Override
public void start(BundleContext context) throws Exception {
    super.start(context);
    plugin = this;
    MessageConnector messagingConnector = Activator.getDefault().getMessageConnector();
    if (messagingConnector != null) {
        connectionListener = new AuthFailureReporter(messagingConnector.getState());
    }
}
Also used : MessageConnector(org.eclipse.flux.client.MessageConnector)

Example 7 with MessageConnector

use of org.eclipse.flux.client.MessageConnector 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

MessageConnector (org.eclipse.flux.client.MessageConnector)7 ChannelSwitcher (org.eclipse.flux.core.ChannelSwitcher)2 Repository (org.eclipse.flux.core.Repository)2 BufferedReader (java.io.BufferedReader)1 File (java.io.File)1 IOException (java.io.IOException)1 InputStreamReader (java.io.InputStreamReader)1 MalformedURLException (java.net.MalformedURLException)1 URL (java.net.URL)1 IProject (org.eclipse.core.resources.IProject)1 SocketIOFluxConfig (org.eclipse.flux.client.config.SocketIOFluxConfig)1 DownloadProject (org.eclipse.flux.core.DownloadProject)1 CompletionCallback (org.eclipse.flux.core.DownloadProject.CompletionCallback)1 KeepAliveConnector (org.eclipse.flux.core.KeepAliveConnector)1 ServiceDiscoveryConnector (org.eclipse.flux.core.ServiceDiscoveryConnector)1 CloudFoundryServiceLauncher (org.eclipse.flux.service.common.CloudFoundryServiceLauncher)1 IServiceLauncher (org.eclipse.flux.service.common.IServiceLauncher)1 ToolingServiceProvider (org.eclipse.flux.service.common.ToolingServiceProvider)1 LabelProvider (org.eclipse.jface.viewers.LabelProvider)1 Shell (org.eclipse.swt.widgets.Shell)1