[ 2452201 ] Refactoring - move initialization of Adempiere UI to AMenu
This commit is contained in:
parent
5bc1e9dae0
commit
a2f4361336
|
@ -27,7 +27,6 @@ import javax.jnlp.ServiceManager;
|
||||||
import javax.jnlp.UnavailableServiceException;
|
import javax.jnlp.UnavailableServiceException;
|
||||||
import javax.swing.ImageIcon;
|
import javax.swing.ImageIcon;
|
||||||
|
|
||||||
import org.adempiere.plaf.AdempierePLAF;
|
|
||||||
import org.compiere.db.CConnection;
|
import org.compiere.db.CConnection;
|
||||||
import org.compiere.model.MClient;
|
import org.compiere.model.MClient;
|
||||||
import org.compiere.model.MSystem;
|
import org.compiere.model.MSystem;
|
||||||
|
@ -475,8 +474,7 @@ public final class Adempiere
|
||||||
if (isClient)
|
if (isClient)
|
||||||
{
|
{
|
||||||
if (CLogMgt.isLevelAll())
|
if (CLogMgt.isLevelAll())
|
||||||
log.log(Level.FINEST, System.getProperties().toString());
|
log.log(Level.FINEST, System.getProperties().toString());
|
||||||
AdempierePLAF.setPLAF ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set Default Database Connection from Ini
|
// Set Default Database Connection from Ini
|
||||||
|
|
|
@ -51,6 +51,7 @@ import javax.swing.event.ChangeEvent;
|
||||||
import javax.swing.event.ChangeListener;
|
import javax.swing.event.ChangeListener;
|
||||||
|
|
||||||
import org.adempiere.apps.graph.PAPanel;
|
import org.adempiere.apps.graph.PAPanel;
|
||||||
|
import org.adempiere.plaf.AdempierePLAF;
|
||||||
import org.compiere.Adempiere;
|
import org.compiere.Adempiere;
|
||||||
import org.compiere.apps.wf.WFActivity;
|
import org.compiere.apps.wf.WFActivity;
|
||||||
import org.compiere.apps.wf.WFPanel;
|
import org.compiere.apps.wf.WFPanel;
|
||||||
|
@ -87,13 +88,22 @@ import org.compiere.util.Splash;
|
||||||
public final class AMenu extends CFrame
|
public final class AMenu extends CFrame
|
||||||
implements ActionListener, PropertyChangeListener, ChangeListener
|
implements ActionListener, PropertyChangeListener, ChangeListener
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* generated serialVersionUID
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 5255914306969824011L;
|
||||||
|
|
||||||
|
static {
|
||||||
|
AdempierePLAF.setPLAF ();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Application Start and Menu
|
* Application Start and Menu
|
||||||
*/
|
*/
|
||||||
public AMenu ()
|
public AMenu ()
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
log.info("CodeBase=" + Adempiere.getCodeBase());
|
log.info("CodeBase=" + Adempiere.getCodeBase());
|
||||||
Splash splash = Splash.getSplash();
|
Splash splash = Splash.getSplash();
|
||||||
//
|
//
|
||||||
m_WindowNo = Env.createWindowNo(this);
|
m_WindowNo = Env.createWindowNo(this);
|
||||||
|
|
Loading…
Reference in New Issue