@Test public void testInitialize() { boolean result = plugin.initialize( context ); assertThat( result, is( equalTo( true ) ) ); verify( source ).addPropertyChangeListener( anyString(), any( PropertyChangeListener.class ) ); assertThat( plugin.getConfigurationPrefix(), is( equalTo( "org.pentaho.reporting.engine.classic.core.modules.gui.base.zoom-list." ) ) ); assertThat( plugin.getDisplayName(), is( nullValue() ) ); assertThat( plugin.getShortDescription(), is( nullValue() ) ); assertThat( plugin.getSmallIcon(), is( nullValue() ) ); assertThat( plugin.getLargeIcon(), is( nullValue() ) ); assertThat( plugin.getAcceleratorKey(), is( nullValue() ) ); assertThat( plugin.getMnemonicKey(), is( nullValue() ) ); }
public boolean initialize( final SwingGuiContext context ) { super.initialize( context ); context.getEventSource().addPropertyChangeListener( PreviewPane.PAGINATED_PROPERTY, jobListener ); return true; }
ZoomListActionPlugin extends AbstractActionPlugin { public boolean initialize( final SwingGuiContext context ) { super.initialize( context ); context.getEventSource().addPropertyChangeListener( PreviewPane.PAGINATED_PROPERTY, jobListener ); return true; } }
ZoomListActionPlugin extends AbstractActionPlugin { public boolean initialize( final SwingGuiContext context ) { super.initialize( context ); context.getEventSource().addPropertyChangeListener( PreviewPane.PAGINATED_PROPERTY, jobListener ); return true; } ZoomListActionPlugin(); }
ZoomListActionPlugin extends AbstractActionPlugin { public boolean initialize( final SwingGuiContext context ) { super.initialize( context ); context.getEventSource().addPropertyChangeListener( PreviewPane.PAGINATED_PROPERTY, jobListener ); return true; } ZoomListActionPlugin(); JComboBox getComponent(); void setComponent( final JComboBox component ); boolean initialize( final SwingGuiContext context ); void deinitialize( final SwingGuiContext swingGuiContext ); String getDisplayName(); String getShortDescription(); Icon getSmallIcon(); Icon getLargeIcon(); KeyStroke getAcceleratorKey(); Integer getMnemonicKey(); }
ZoomListActionPlugin extends AbstractActionPlugin { public boolean initialize( final SwingGuiContext context ) { super.initialize( context ); context.getEventSource().addPropertyChangeListener( PreviewPane.PAGINATED_PROPERTY, jobListener ); return true; } ZoomListActionPlugin(); JComboBox getComponent(); void setComponent( final JComboBox component ); boolean initialize( final SwingGuiContext context ); void deinitialize( final SwingGuiContext swingGuiContext ); String getDisplayName(); String getShortDescription(); Icon getSmallIcon(); Icon getLargeIcon(); KeyStroke getAcceleratorKey(); Integer getMnemonicKey();  }