/** Do final stage of plugin start: activate services, listeners, etc. */ protected void doCustomStart_finalStage() { operationsListener = createOperationsConsoleListener(); if (operationsListener != null) { LangCore.getToolManager().addListener(operationsListener); } LangCore.getInstance().initializeAfterUIStart(); new InitializeAfterLoadJob(this).schedule(); }
@Override public void stop(BundleContext context) throws Exception { if (operationsListener != null) { LangCore.getToolManager().removeListener(operationsListener); } doCustomStop(context); super.stop(context); pluginInstance = null; }