public void start(BundleContext context) throws Exception { super.start(context); plugin = this; backgroundJob = new BackgroundProcessingJob(); }
@Override public void start(BundleContext bundleContext) throws Exception { super.start(bundleContext); // context = bundleContext; plugin = this; logger = new Logger(this); }
/* * (non-Javadoc) * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext) */ public void start(BundleContext context) throws Exception { super.start(context); plugin = this; if ("true".equals(Platform.getDebugOption("com.aptana.filesystem.ftp/ftplib_debug"))) { Logger.setLevel(Level.DEBUG); } }
@Override public void start(BundleContext context) throws Exception { super.start(context); overlayresourceChangeListener = new OverlayResourceChangeListener(); IWorkspace workspace = ResourcesPlugin.getWorkspace(); workspace.addResourceChangeListener(overlayresourceChangeListener); }
@Override public void start(BundleContext context) throws Exception { super.start(context); plugin = this; serversManager = new ServersManager(); serversManager.load(); }
@Override public void start(BundleContext context) throws Exception { super.start(context); instance = this; bundleContext = context; ((PluginUtilImpl) CoreModelerPlugin.Util).initializePlatformLogger(instance); ((PluginUtilImpl) UiConstants.Util).initializePlatformLogger(instance); }
/* * (non-Javadoc) * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext ) */ public void start(BundleContext context) throws Exception { super.start(context); plugin = this; ResourcesPlugin.getWorkspace() .addResourceChangeListener(pluginPackageResourceListener, IResourceChangeEvent.POST_CHANGE); }
@Override @SuppressWarnings("PMD.SignatureDeclareThrowsException") // @SuppressWarnings("PMD.SignatureDeclareThrowsException") We have to use // this signature because this is an override of an Eclipse framework's // method. public void start(final BundleContext bundleContext) throws Exception { super.start(bundleContext); Activator.plugin = this; }
/** {@inheritDoc} */ @Override public void start(BundleContext context) throws Exception { super.start(context); plugin = this; StringBuffer buf = new StringBuffer(); buf.append("SOAPlugin.start - "); buf.append(JDTUtil.getBundleInfo(context.getBundle(), SOALogger.DEBUG)); SOALogger.getLogger().info(buf); }
/** * This method is called upon plug-in activation * * @param context The bundle context. */ public void start(BundleContext context) throws Exception { super.start(context); URL url = FileLocator.toFileURL(getBundle().getResource(PLUGIN_XML)); String home = url.toString(); home = home.substring(FILE_PREFIX.length(), home.length() - PLUGIN_XML.length()); // handle windows edge case home = home.replaceFirst("^/([A-Za-z]:)", "$1"); System.setProperty("eclim.home", home); }
@Override public void start(final BundleContext context) throws Exception { super.start(context); instance = this; synchronized (this) { this.started = true; } }
@Override public void start(final BundleContext context) throws Exception { super.start(context); fSshTracker = new ServiceTracker(context, "org.eclipse.jsch.core.IJSchService", null); // $NON-NLS-1$ fSshTracker.open(); fStarted = true; }
/* * (non-Javadoc) * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) */ @Override public void start(BundleContext bundleContext) throws Exception { super.start(bundleContext); RedmineCorePlugin.context = bundleContext; if (spentTimeManager != null) { spentTimeManager.start(); } plugin = this; }
@Override public void start(BundleContext context) throws Exception { super.start(context); contextStore = new LocalContextStore(commonContextScaling); File storeFile = getDefaultContextLocation().toFile(); if (!storeFile.exists()) { storeFile.mkdirs(); } contextStore.setContextDirectory(storeFile); contextManager = new InteractionContextManager(contextStore); }
public void start(BundleContext context) throws Exception { super.start(context); tracker = new ServiceTracker(getBundle().getBundleContext(), IProxyService.class.getName(), null); tracker.open(); jschService = getBundle() .getBundleContext() .registerService( IJSchService.class.getName(), JSchProvider.getInstance(), new Hashtable()); }
/* (non-Javadoc) * @see org.eclipse.core.runtime.Plugin#startup() */ @Override public void start(BundleContext context) throws Exception { super.start(context); ICDebugConfiguration dc = CDebugCorePlugin.getDefault().getDefaultDefaultDebugConfiguration(); if (dc == null) { CDebugCorePlugin.getDefault() .getPluginPreferences() .setDefault( ICDebugConstants.PREF_DEFAULT_DEBUGGER_TYPE, "org.eclipse.cdt.debug.mi.core.CDebuggerNew"); //$NON-NLS-1$ } }
/* * (non-Javadoc) * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext) */ @Override public void start(BundleContext context) throws Exception { super.start(context); plugin = this; AuthServiceImpl authService = new AuthServiceImpl(); context.registerService(IAuthService.class.getName(), authService, null); Publish.service(IAuthService.class) .usingPath(IAuthService.WS_ID) .withProtocol("hessian") .andStart(context); }
/** * When declaring a new plugin in a junit suite method and initialising a platform logger, an * exception can occur since the plugin has not been started (this assigns the bundle instance to * the plugin's private bundle field). This mocks BundleContext and Bundle and so starts the * plugin. * * @param plugin * @param pluginId */ public static void mockStartBundle(Plugin plugin, String pluginId) { Bundle bundle = mock(Bundle.class); when(bundle.getSymbolicName()).thenReturn(pluginId); BundleContext context = mock(BundleContext.class); when(context.getBundle()).thenReturn(bundle); try { plugin.start(context); } catch (Exception ex) { ex.printStackTrace(); } }
/* * (non-Javadoc) * * @see * org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext * ) */ public void start(BundleContext bundleContext) throws Exception { super.start(bundleContext); m_Activator = this; if (!"yes".equals(System.getProperty("junit-test-running"))) { try { Logger logCurrent = LoggerFactory.getLogger(this.getClass().getCanonicalName()); logCurrent.info("XPT AgentManager FrameWork loaded."); XPageAgentManager.getInstance().startJob(); } catch (Exception e) { e.printStackTrace(); } } }
@Override public void start(BundleContext context) throws Exception { super.start(context); instance = this; init(); Bundle bundle = Platform.getBundle("de.hub.emffrag.mongodb"); if (bundle != null) { try { bundle.start(); } catch (Exception e) { } } }
/* * (non-Javadoc) * * @see * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext * ) */ @SuppressWarnings({"rawtypes", "unchecked"}) public void start(BundleContext context) throws Exception { super.start(context); plugin = this; DebugOptions service = null; final ServiceReference reference = context.getServiceReference(DebugOptions.class.getName()); if (reference != null) service = (DebugOptions) context.getService(reference); if (service == null) return; try { LOGGING = service.getBooleanOption("org.eclipse.rcptt.tesla.core.am/logging", false); } finally { // we have what we want - release the service context.ungetService(reference); } }
/** * {@inheritDoc} * * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) */ @Override public void start(final BundleContext context) throws Exception { super.start(context); viewpoints = new HashSet<Viewpoint>(); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin( PLUGIN_ID + "/data/unit/componentization/componentization.odesign")); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin( PLUGIN_ID + "/data/unit/componentization/componentization2.odesign")); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin(PLUGIN_ID + "/data/unit/componentization/tools.odesign")); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin(PLUGIN_ID + "/data/unit/layers/football.odesign")); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin(PLUGIN_ID + "/data/unit/layers/footballExtension.odesign")); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin( PLUGIN_ID + "/data/unit/migration/do_not_migrate/componentized_1a.odesign")); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin( PLUGIN_ID + "/data/unit/migration/do_not_migrate/componentized_1b.odesign")); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin(PLUGIN_ID + "/data/table/unit/refresh/tables.odesign")); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin( PLUGIN_ID + "/data/unit/tools/palette/extension/toolSection.odesign")); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin( PLUGIN_ID + "/data/unit/tools/palette/extension/toolSection_extension.odesign")); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin(PLUGIN_ID + "/data/unit/mappings/trac1926.odesign")); viewpoints.addAll( ViewpointRegistry.getInstance() .registerFromPlugin( PLUGIN_ID + "/data/unit/computelabel/testComputeLabelDiagram.odesign")); }
@Override public void start(BundleContext context) throws Exception { if (Boolean.parseBoolean(System.getProperty("greclipse.debug.trace_compiler_start", "false"))) { System.out.println("------------"); System.out.println("GRECLIPSE-1642: stack trace and other info as Groovy-compiler starts"); printBundleState("org.codehaus.groovy.eclipse.compilerResolver"); printBundleState("org.eclipse.jdt.core"); new Exception().printStackTrace(); System.out.println("------------"); } super.start(context); try { initialize(); } catch (Exception e) { getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, "Error starting groovy plugin", e)); } }
/* * (non-Javadoc) * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext) */ public void start(BundleContext context) throws Exception { super.start(context); plugin = this; ISavedState lastState = ResourcesPlugin.getWorkspace().addSaveParticipant(this, new WorkspaceSaveParticipant()); if (lastState != null) { IPath location = lastState.lookup(new Path(SiteConnectionManager.STATE_FILENAME)); if (location != null) { SiteConnectionManager.getInstance().loadState(getStateLocation().append(location)); } location = lastState.lookup(new Path(DefaultSiteConnection.STATE_FILENAME)); if (location != null) { DefaultSiteConnection.getInstance().loadState(getStateLocation().append(location)); } } // For 1.5 compatibility lastState = ResourcesPlugin.getWorkspace() .addSaveParticipant( CorePlugin.getDefault(), new ISaveParticipant() { public void doneSaving(ISaveContext context) {} public void prepareToSave(ISaveContext context) throws CoreException {} public void rollback(ISaveContext context) {} public void saving(ISaveContext context) throws CoreException {} }); if (lastState != null) { IPath location = lastState.lookup(new Path("save")); // $NON-NLS-1$ if (location != null) { IPath absoluteLocation = CorePlugin.getDefault().getStateLocation().append(location); // only loads it once SiteConnectionManager.getInstance().loadState(absoluteLocation); File file = absoluteLocation.toFile(); if (!file.renameTo(new File(absoluteLocation.toOSString() + ".bak"))) { // $NON-NLS-1$ file.delete(); } } } }
@Override public void start(BundleContext context) throws Exception { plugin = this; super.start(context); // Start the embedded web server up (use a separate thread so we don't delay application // startup). new Thread( new Runnable() { @Override public void run() { try { ResourceServerManager.getServer(); } catch (IOException e) { logError(e); } } }) .start(); }
/* * (non-Javadoc) * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext) */ public void start(BundleContext context) throws Exception { super.start(context); }
@Override public void start(BundleContext context) throws Exception { super.start(context); plugin = this; }
/* * (non-Javadoc) * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) */ public void start(BundleContext bundleContext) throws Exception { super.start(bundleContext); instance = this; }
/** This method is called upon plug-in activation */ @Override public void start(final BundleContext context) throws Exception { super.start(context); }
public void start(BundleContext context) throws Exception { super.start(context); plugin = this; SystemPropertyCleaner.clean(); }