Skip to content

Commit

Permalink
Minor reshuffle of code to make it a little more logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Willem Janssen committed Jan 26, 2013
1 parent 7396374 commit 5308bd8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
11 changes: 11 additions & 0 deletions client/src/main/java/nl/lxtreme/ols/client/ClientController.java
Original file line number Diff line number Diff line change
Expand Up @@ -1829,6 +1829,17 @@ private void initOSSpecifics( final String aApplicationName, String aVersion )
{
System.setProperty( "nl.lxtreme.ols.client.version", aVersion );

// Use the defined email address...
System.setProperty( JErrorDialog.PROPERTY_REPORT_INCIDENT_EMAIL_ADDRESS, this.hostProperties.getReportIncidentAddress() );

if ( this.hostProperties.isDebugMode() )
{
// Install a custom repaint manager that detects whether Swing
// components are created outside the EDT; if so, it will yield a
// stack trace to the offending parts of the code...
ThreadViolationDetectionRepaintManager.install();
}

final HostInfo hostInfo = HostUtils.getHostInfo();
if ( hostInfo.isMacOS() )
{
Expand Down
13 changes: 0 additions & 13 deletions util/src/main/java/nl/lxtreme/ols/util/internal/Activator.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
import java.util.logging.*;

import nl.lxtreme.ols.util.*;
import nl.lxtreme.ols.util.swing.*;
import nl.lxtreme.ols.util.swing.component.*;

import org.apache.felix.dm.*;
import org.osgi.framework.*;
Expand Down Expand Up @@ -69,17 +67,6 @@ public void init( final BundleContext aContext, final DependencyManager aManager
.setService( ApplicationCallback.class ) //
.setRequired( false ) ) //
);

// Use the defined email address...
System.setProperty( JErrorDialog.PROPERTY_REPORT_INCIDENT_EMAIL_ADDRESS, hostProperties.getReportIncidentAddress() );

if ( hostProperties.isDebugMode() )
{
// Install a custom repaint manager that detects whether Swing
// components are created outside the EDT; if so, it will yield a
// stack trace to the offending parts of the code...
ThreadViolationDetectionRepaintManager.install();
}
}

/**
Expand Down

0 comments on commit 5308bd8

Please sign in to comment.