test_class.file: sql12/plugins/example/src/test/java/net/sourceforge/squirrel_sql/plugins/example/ExamplePluginTest.java
test_class.identifier: ExamplePluginTest
test_class.superclass: extends AbstractSessionPluginTest
test_case.body: @Test
  	public void testSessionStarted() throws Exception
  	{
  		classUnderTest.initialize();
  		((ExamplePlugin) classUnderTest).sessionStarted(mockSession);
  	}
test_case.class_method_signature: ExamplePluginTest.testSessionStarted()
test_case.full_signature: @Test public void testSessionStarted()
test_case.identifier: testSessionStarted
test_case.invocations: initialize sessionStarted
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSessionStarted()
focal_class.declarator: _resources
focal_class.modifier: private
focal_class.original_string: private PluginResources _resources;
focal_class.type: PluginResources
focal_class.var_name: _resources
focal_class.file: sql12/plugins/example/src/main/java/net/sourceforge/squirrel_sql/plugins/example/ExamplePlugin.java
focal_class.identifier: ExamplePlugin
focal_class.class_method_signature: ExamplePlugin.getInternalName()
focal_class.full_signature: public String getInternalName()
focal_class.identifier: getInternalName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getInternalName()
focal_class.class_method_signature: ExamplePlugin.getDescriptiveName()
focal_class.full_signature: public String getDescriptiveName()
focal_class.identifier: getDescriptiveName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDescriptiveName()
focal_class.class_method_signature: ExamplePlugin.getVersion()
focal_class.full_signature: public String getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVersion()
focal_class.class_method_signature: ExamplePlugin.getAuthor()
focal_class.full_signature: public String getAuthor()
focal_class.identifier: getAuthor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAuthor()
focal_class.class_method_signature: ExamplePlugin.getChangeLogFileName()
focal_class.full_signature: public String getChangeLogFileName()
focal_class.identifier: getChangeLogFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getChangeLogFileName()
focal_class.class_method_signature: ExamplePlugin.getHelpFileName()
focal_class.full_signature: public String getHelpFileName()
focal_class.identifier: getHelpFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getHelpFileName()
focal_class.class_method_signature: ExamplePlugin.getLicenceFileName()
focal_class.full_signature: public String getLicenceFileName()
focal_class.identifier: getLicenceFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLicenceFileName()
focal_class.class_method_signature: ExamplePlugin.getContributors()
focal_class.full_signature: public String getContributors()
focal_class.identifier: getContributors
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getContributors()
focal_class.class_method_signature: ExamplePlugin.getGlobalPreferencePanels()
focal_class.full_signature: public IGlobalPreferencesPanel[] getGlobalPreferencePanels()
focal_class.identifier: getGlobalPreferencePanels
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: IGlobalPreferencesPanel[]
focal_class.signature: IGlobalPreferencesPanel[] getGlobalPreferencePanels()
focal_class.class_method_signature: ExamplePlugin.initialize()
focal_class.full_signature: public synchronized void initialize()
focal_class.identifier: initialize
focal_class.modifiers: public synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initialize()
focal_class.class_method_signature: ExamplePlugin.sessionStarted(ISession session)
focal_class.full_signature: public PluginSessionCallback sessionStarted(ISession session)
focal_class.identifier: sessionStarted
focal_class.modifiers: public
focal_class.parameters: (ISession session)
focal_class.return: PluginSessionCallback
focal_class.signature: PluginSessionCallback sessionStarted(ISession session)
focal_class.class_method_signature: ExamplePlugin.addTreeNodeMenuActionsForDB2(ISession session)
focal_class.full_signature: private void addTreeNodeMenuActionsForDB2(ISession session)
focal_class.identifier: addTreeNodeMenuActionsForDB2
focal_class.modifiers: private
focal_class.parameters: (ISession session)
focal_class.return: void
focal_class.signature: void addTreeNodeMenuActionsForDB2(ISession session)
focal_class.superclass: extends DefaultSessionPlugin
focal_method.body: public PluginSessionCallback sessionStarted(ISession session)
  	{
  		// Adds the view and procedure script actions if the session is DB2.
  		addTreeNodeMenuActionsForDB2(session);
  
  		// Register a custom ISQLExecutionListener implementation that simply prints all SQL being executed to
  		// the message panel.
  		IMessageHandler messageHandler = session.getApplication().getMessageHandler();
  		ExampleSqlExecutionListener sqlExecutionListener = new ExampleSqlExecutionListener(messageHandler);
  		session.getSessionSheet().getSQLPaneAPI().addSQLExecutionListener(sqlExecutionListener);
  
  		// We will override the default behavior of formatting exception messages that SQuirreL provides for 
  		// this session with our own.  If this was a real plugin implementation, care would need to be taken 
  		// that the custom formatter is only applied to database vendor sessions that this plugin was written 
  		// for.  SQuirreL doesn't support registering multiple exception formatters for a single session.  The
  		// last one to register overrides all former registrations and results in a log warning message.
  		session.setExceptionFormatter(new ExampleExceptionFormatter());
  		
  		return new PluginSessionCallbackAdaptor(this);
  	}
focal_method.class_method_signature: ExamplePlugin.sessionStarted(ISession session)
focal_method.full_signature: public PluginSessionCallback sessionStarted(ISession session)
focal_method.identifier: sessionStarted
focal_method.invocations: addTreeNodeMenuActionsForDB2 getMessageHandler getApplication addSQLExecutionListener getSQLPaneAPI getSessionSheet setExceptionFormatter
focal_method.modifiers: public
focal_method.parameters: (ISession session)
focal_method.return: PluginSessionCallback
focal_method.signature: PluginSessionCallback sessionStarted(ISession session)