public boolean initialize(final SwingGuiContext context) { super.initialize(context); resources = new ResourceBundleSupport( context.getLocale(), SwingPreviewModule.BUNDLE_NAME, ObjectUtilities.getClassLoader(SwingPreviewModule.class)); return true; }
public boolean initialize(final SwingGuiContext context) { super.initialize(context); resources = new ResourceBundleSupport( context.getLocale(), SwingPreviewModule.BUNDLE_NAME, ObjectUtilities.getClassLoader(SwingPreviewModule.class)); eventSource = context.getEventSource(); eventSource.addPropertyChangeListener(updateListener); revalidate(); return true; }
public void deinitialize(final SwingGuiContext swingGuiContext) { super.deinitialize(swingGuiContext); swingGuiContext.getEventSource().removePropertyChangeListener(updateListener); }