IDEMPIERE-455 Discover and fix FindBugs problems / Eclipse warning -> not used
This commit is contained in:
parent
f102760447
commit
ae3990ce11
|
@ -25,6 +25,7 @@ package org.compiere.process;
|
||||||
public class InfoWindowValidate extends SvrProcess
|
public class InfoWindowValidate extends SvrProcess
|
||||||
{
|
{
|
||||||
/** Info Window */
|
/** Info Window */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int p_AD_InfoWindow_ID = 0;
|
private int p_AD_InfoWindow_ID = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -155,9 +155,9 @@ public class TestConnection
|
||||||
start = System.currentTimeMillis();
|
start = System.currentTimeMillis();
|
||||||
while (rs.next())
|
while (rs.next())
|
||||||
{
|
{
|
||||||
int i = rs.getInt("AD_Client_ID");
|
//int i = rs.getInt("AD_Client_ID");
|
||||||
String s = rs.getString("Name");
|
//String s = rs.getString("Name");
|
||||||
i += s.length();
|
//i += s.length();
|
||||||
no++;
|
no++;
|
||||||
}
|
}
|
||||||
end = System.currentTimeMillis();
|
end = System.currentTimeMillis();
|
||||||
|
@ -224,6 +224,7 @@ public class TestConnection
|
||||||
url = args[2];
|
url = args[2];
|
||||||
|
|
||||||
System.out.println("");
|
System.out.println("");
|
||||||
|
@SuppressWarnings("unused")
|
||||||
TestConnection test = new TestConnection(url, uid, pwd);
|
TestConnection test = new TestConnection(url, uid, pwd);
|
||||||
} // main
|
} // main
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,7 @@ public class TestEJB
|
||||||
//
|
//
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
Status status = (Status)ic.lookup ("Status");
|
Status status = (Status)ic.lookup ("Status");
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,11 +203,11 @@ public class AccessSqlParserTest extends TestCase
|
||||||
assertEquals("AccessSqlParser[M_AttributeInstance|M_Product=p,M_ProductPrice=pr,M_AttributeSet=pa|1]", fixture.toString());
|
assertEquals("AccessSqlParser[M_AttributeInstance|M_Product=p,M_ProductPrice=pr,M_AttributeSet=pa|1]", fixture.toString());
|
||||||
}
|
}
|
||||||
/** **/
|
/** **/
|
||||||
public void testHinttech()
|
/*public void testHinttech()
|
||||||
{
|
{
|
||||||
String sql = "SELECT XX_HTC1_EMPLOYEE_V.C_BPartner_ID,NULL,XX_HTC1_EMPLOYEE_V.C_BPARTNER_NAME,XX_HTC1_EMPLOYEE_V.IsActive FROM XX_HTC1_EMPLOYEE_V WHERE XX_HTC1_EMPLOYEE_V.AD_User_ID IN (SELECT ur.AD_User_ID FROM AD_User_Roles ur INNER JOIN AD_Role r ON (ur.AD_Role_ID=r.AD_Role_ID) WHERE r.Name like '%Field Manager%')";
|
String sql = "SELECT XX_HTC1_EMPLOYEE_V.C_BPartner_ID,NULL,XX_HTC1_EMPLOYEE_V.C_BPARTNER_NAME,XX_HTC1_EMPLOYEE_V.IsActive FROM XX_HTC1_EMPLOYEE_V WHERE XX_HTC1_EMPLOYEE_V.AD_User_ID IN (SELECT ur.AD_User_ID FROM AD_User_Roles ur INNER JOIN AD_Role r ON (ur.AD_Role_ID=r.AD_Role_ID) WHERE r.Name like '%Field Manager%')";
|
||||||
AccessSqlParser fixture = new AccessSqlParser(sql);
|
AccessSqlParser fixture = new AccessSqlParser(sql);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <li>teo_sarca - [ 1652623 ] AccessSqlParser.getTableInfo(String) - tablename parsing bug
|
* <li>teo_sarca - [ 1652623 ] AccessSqlParser.getTableInfo(String) - tablename parsing bug
|
||||||
|
|
|
@ -58,6 +58,7 @@ public class AmtInWords_IN implements AmtInWords
|
||||||
private static final long POWER_FIFTEEN = 1000000000000000L;
|
private static final long POWER_FIFTEEN = 1000000000000000L;
|
||||||
|
|
||||||
/** Static Logger */
|
/** Static Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (AmtInWords_IN.class);
|
private static CLogger s_log = CLogger.getCLogger (AmtInWords_IN.class);
|
||||||
|
|
||||||
//-------------------------- STATIC METHODS --------------------------
|
//-------------------------- STATIC METHODS --------------------------
|
||||||
|
|
|
@ -395,7 +395,7 @@ public class MWorkflow extends X_AD_Workflow
|
||||||
* @param AD_WF_Node_ID start node id
|
* @param AD_WF_Node_ID start node id
|
||||||
* @param AD_Client_ID for client
|
* @param AD_Client_ID for client
|
||||||
*/
|
*/
|
||||||
private void addNodesDF (ArrayList<MWFNode> list, int AD_WF_Node_ID, int AD_Client_ID)
|
/*private void addNodesDF (ArrayList<MWFNode> list, int AD_WF_Node_ID, int AD_Client_ID)
|
||||||
{
|
{
|
||||||
MWFNode node = getNode (AD_WF_Node_ID);
|
MWFNode node = getNode (AD_WF_Node_ID);
|
||||||
if (node != null && !list.contains(node))
|
if (node != null && !list.contains(node))
|
||||||
|
@ -409,7 +409,7 @@ public class MWorkflow extends X_AD_Workflow
|
||||||
addNodesDF (list, nexts[i].getAD_WF_Next_ID(), AD_Client_ID);
|
addNodesDF (list, nexts[i].getAD_WF_Next_ID(), AD_Client_ID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // addNodesDF
|
} // addNodesDF*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add Nodes recursively (sibling first) to Ordered List
|
* Add Nodes recursively (sibling first) to Ordered List
|
||||||
|
|
|
@ -212,6 +212,7 @@ public class MDDOrder extends X_DD_Order implements DocAction
|
||||||
private MDDOrderLine[] m_lines = null;
|
private MDDOrderLine[] m_lines = null;
|
||||||
|
|
||||||
/** Force Creation of order */
|
/** Force Creation of order */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private boolean m_forceCreation = false;
|
private boolean m_forceCreation = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -943,6 +944,7 @@ public class MDDOrder extends X_DD_Order implements DocAction
|
||||||
*/
|
*/
|
||||||
public String completeIt()
|
public String completeIt()
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
MDocType dt = MDocType.get(getCtx(), getC_DocType_ID());
|
MDocType dt = MDocType.get(getCtx(), getC_DocType_ID());
|
||||||
|
|
||||||
// Just prepare
|
// Just prepare
|
||||||
|
|
|
@ -89,6 +89,7 @@ public class MDDOrderLine extends X_DD_OrderLine
|
||||||
} // getNotReserved
|
} // getNotReserved
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger s_log = CLogger.getCLogger (MDDOrderLine.class);
|
private static CLogger s_log = CLogger.getCLogger (MDDOrderLine.class);
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -122,14 +122,11 @@ public class ExportFormatGenerator extends SvrProcess
|
||||||
log.info("Table Name:"+table.getTableName());
|
log.info("Table Name:"+table.getTableName());
|
||||||
MColumn[] cols = table.getColumns(true);
|
MColumn[] cols = table.getColumns(true);
|
||||||
String unique = null;
|
String unique = null;
|
||||||
boolean fieldname = false;
|
|
||||||
for(MColumn col : cols)
|
for(MColumn col : cols)
|
||||||
{
|
{
|
||||||
if(col.isIdentifier() && col.getSeqNo() == 1)
|
if(col.isIdentifier() && col.getSeqNo() == 1)
|
||||||
{
|
{
|
||||||
unique = col.getColumnName();
|
unique = col.getColumnName();
|
||||||
if(unique.equals("Name"))
|
|
||||||
fieldname = true;
|
|
||||||
log.info("Unique Key"+unique);
|
log.info("Unique Key"+unique);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,6 @@ public class ImportInventoryMove extends SvrProcess
|
||||||
{
|
{
|
||||||
|
|
||||||
// Delete Old Imported
|
// Delete Old Imported
|
||||||
StringBuffer sql = null;
|
|
||||||
if (m_DeleteOldImported)
|
if (m_DeleteOldImported)
|
||||||
{
|
{
|
||||||
int no = 0;
|
int no = 0;
|
||||||
|
|
|
@ -6,7 +6,6 @@ import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
import org.compiere.model.MBPGroup;
|
import org.compiere.model.MBPGroup;
|
||||||
import org.compiere.model.MLocation;
|
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
|
|
||||||
import test.AdempiereTestCase;
|
import test.AdempiereTestCase;
|
||||||
|
@ -14,7 +13,7 @@ import test.AdempiereTestCase;
|
||||||
public class MBPGroupTest extends AdempiereTestCase {
|
public class MBPGroupTest extends AdempiereTestCase {
|
||||||
|
|
||||||
// Variables needed for importing/migrating business partners
|
// Variables needed for importing/migrating business partners
|
||||||
private MLocation location = null;
|
//private MLocation location = null;
|
||||||
|
|
||||||
private MBPGroup m_group = null; //business partner
|
private MBPGroup m_group = null; //business partner
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -2,15 +2,15 @@
|
||||||
package test.functional;
|
package test.functional;
|
||||||
|
|
||||||
import org.compiere.model.MBPartner;
|
import org.compiere.model.MBPartner;
|
||||||
import org.compiere.model.MLocation;
|
|
||||||
import test.AdempiereTestCase;
|
import test.AdempiereTestCase;
|
||||||
|
|
||||||
public class MBPartnerTest extends AdempiereTestCase {
|
public class MBPartnerTest extends AdempiereTestCase {
|
||||||
|
|
||||||
// Variables needed for importing/migrating business partners
|
// Variables needed for importing/migrating business partners
|
||||||
private MLocation location = null;
|
//private MLocation location = null;
|
||||||
|
|
||||||
private MBPartner m_partner = null; //business partner
|
//private MBPartner m_partner = null; //business partner
|
||||||
/*
|
/*
|
||||||
private MBPartnerLocation bpl = null; //business partner location
|
private MBPartnerLocation bpl = null; //business partner location
|
||||||
private MUser user = null; //business contact
|
private MUser user = null; //business contact
|
||||||
|
|
|
@ -32,6 +32,7 @@ public class MCurrencyAcctTest extends AdempiereTestCase
|
||||||
|
|
||||||
public void testQuery() throws Exception
|
public void testQuery() throws Exception
|
||||||
{ //red1 create C_Currency_Acct wih SchemaDef = 101 and C_Currency = 100
|
{ //red1 create C_Currency_Acct wih SchemaDef = 101 and C_Currency = 100
|
||||||
|
@SuppressWarnings("unused")
|
||||||
MAcctSchemaDefault as = MAcctSchemaDefault.get(getCtx(), 101);
|
MAcctSchemaDefault as = MAcctSchemaDefault.get(getCtx(), 101);
|
||||||
|
|
||||||
// IDEMPIERE-362 Hide things that don't work on iDempiere
|
// IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||||
|
|
|
@ -7,7 +7,6 @@ import java.sql.SQLException;
|
||||||
|
|
||||||
import org.compiere.model.MBPGroup;
|
import org.compiere.model.MBPGroup;
|
||||||
import org.compiere.model.MBPartner;
|
import org.compiere.model.MBPartner;
|
||||||
import org.compiere.model.MLocation;
|
|
||||||
import org.compiere.model.MUser;
|
import org.compiere.model.MUser;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
@ -17,7 +16,7 @@ import test.AdempiereTestCase;
|
||||||
public class MUserTest extends AdempiereTestCase {
|
public class MUserTest extends AdempiereTestCase {
|
||||||
|
|
||||||
// Variables needed for importing/migrating business partners
|
// Variables needed for importing/migrating business partners
|
||||||
private MLocation location = null;
|
//private MLocation location = null;
|
||||||
|
|
||||||
private MBPartner m_partner = null; //business partner
|
private MBPartner m_partner = null; //business partner
|
||||||
private MUser m_contact = null; //business contact
|
private MUser m_contact = null; //business contact
|
||||||
|
|
|
@ -2,7 +2,6 @@ package test.functional;
|
||||||
|
|
||||||
import org.compiere.model.MColumn;
|
import org.compiere.model.MColumn;
|
||||||
import org.compiere.model.MInvoice;
|
import org.compiere.model.MInvoice;
|
||||||
import org.compiere.model.MProduct;
|
|
||||||
import org.compiere.model.MTable;
|
import org.compiere.model.MTable;
|
||||||
import org.compiere.model.X_AD_Reference;
|
import org.compiere.model.X_AD_Reference;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
@ -12,10 +11,9 @@ import test.AdempiereTestCase;
|
||||||
public class TrifonTest extends AdempiereTestCase {
|
public class TrifonTest extends AdempiereTestCase {
|
||||||
|
|
||||||
// Test: Specific variables
|
// Test: Specific variables
|
||||||
private MProduct product = null;
|
//private MProduct product = null;
|
||||||
|
|
||||||
public void testMProductCreation() {
|
public void testMProductCreation() {
|
||||||
boolean singleCommit = true;
|
|
||||||
|
|
||||||
MTable mTable = MTable.get(Env.getCtx(), MInvoice.Table_Name );
|
MTable mTable = MTable.get(Env.getCtx(), MInvoice.Table_Name );
|
||||||
System.out.println("XML presentation... is: " + mTable.get_xmlDocument(false));
|
System.out.println("XML presentation... is: " + mTable.get_xmlDocument(false));
|
||||||
|
|
|
@ -50,6 +50,7 @@ public class ReplicationProcessor extends AdempiereServer {
|
||||||
private StringBuffer m_summary = new StringBuffer();
|
private StringBuffer m_summary = new StringBuffer();
|
||||||
|
|
||||||
/** Client info */
|
/** Client info */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private MClient m_client = null;
|
private MClient m_client = null;
|
||||||
|
|
||||||
private MIMPProcessor mImportProcessor = null;
|
private MIMPProcessor mImportProcessor = null;
|
||||||
|
|
|
@ -34,8 +34,10 @@ public class JasperReportViewer extends JRViewer {
|
||||||
private static final long serialVersionUID = -7988455595896562947L;
|
private static final long serialVersionUID = -7988455595896562947L;
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger log = CLogger.getCLogger(JasperReportViewer.class);
|
private static CLogger log = CLogger.getCLogger(JasperReportViewer.class);
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private JasperViewer jasperViewer;
|
private JasperViewer jasperViewer;
|
||||||
private JasperPrint jasperPrint;
|
private JasperPrint jasperPrint;
|
||||||
private JComboBox comboBox;
|
private JComboBox comboBox;
|
||||||
|
@ -145,6 +147,7 @@ class SendByEmailListener implements ActionListener {
|
||||||
log.log(Level.SEVERE, "", e);
|
log.log(Level.SEVERE, "", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
EMailDialog emd = new EMailDialog ((JFrame)jasperViewer,
|
EMailDialog emd = new EMailDialog ((JFrame)jasperViewer,
|
||||||
Msg.getMsg(Env.getCtx(), "SendMail"),
|
Msg.getMsg(Env.getCtx(), "SendMail"),
|
||||||
from, to, subject, message, attachment);
|
from, to, subject, message, attachment);
|
||||||
|
|
|
@ -84,7 +84,6 @@ public class AdempiereMonitorFilter implements Filter
|
||||||
public void doFilter (ServletRequest request, ServletResponse response, FilterChain chain)
|
public void doFilter (ServletRequest request, ServletResponse response, FilterChain chain)
|
||||||
throws IOException, ServletException
|
throws IOException, ServletException
|
||||||
{
|
{
|
||||||
boolean error = false;
|
|
||||||
String errorPage = "/error.html";
|
String errorPage = "/error.html";
|
||||||
boolean pass = false;
|
boolean pass = false;
|
||||||
try
|
try
|
||||||
|
|
|
@ -110,6 +110,7 @@ public class Graph extends CPanel implements ChartMouseListener
|
||||||
|
|
||||||
|
|
||||||
/** Y Axis Target Line */
|
/** Y Axis Target Line */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private double m_Y_Target = 0;
|
private double m_Y_Target = 0;
|
||||||
/** Y Axis Target Line Label */
|
/** Y Axis Target Line Label */
|
||||||
private String m_Y_TargetLabel = null;
|
private String m_Y_TargetLabel = null;
|
||||||
|
|
|
@ -30,6 +30,7 @@ import org.compiere.util.CLogger;
|
||||||
public class GraphUtil
|
public class GraphUtil
|
||||||
{
|
{
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger log = CLogger.getCLogger (GraphUtil.class);
|
private static CLogger log = CLogger.getCLogger (GraphUtil.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -93,14 +93,15 @@ public class PerformanceIndicator extends JPanel
|
||||||
/** The Performance Name */
|
/** The Performance Name */
|
||||||
private String m_text = null;
|
private String m_text = null;
|
||||||
/** Performance Line */
|
/** Performance Line */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private double m_line = 0;
|
private double m_line = 0;
|
||||||
|
|
||||||
/** Height */
|
/** Height */
|
||||||
private static double s_height = 45;
|
//private static double s_height = 45;
|
||||||
/** 100% width */
|
/** 100% width */
|
||||||
private static double s_width100 = 150;
|
private static double s_width100 = 150;
|
||||||
/** Max width */
|
/** Max width */
|
||||||
private static double s_widthMax = 250;
|
//private static double s_widthMax = 250;
|
||||||
/** Integer Number Format */
|
/** Integer Number Format */
|
||||||
private static DecimalFormat s_format = DisplayType.getNumberFormat(DisplayType.Integer);
|
private static DecimalFormat s_format = DisplayType.getNumberFormat(DisplayType.Integer);
|
||||||
|
|
||||||
|
@ -108,8 +109,8 @@ public class PerformanceIndicator extends JPanel
|
||||||
private CMenuItem mRefresh = new CMenuItem(Msg.getMsg(Env.getCtx(), "Refresh"), Env.getImageIcon("Refresh16.gif"));
|
private CMenuItem mRefresh = new CMenuItem(Msg.getMsg(Env.getCtx(), "Refresh"), Env.getImageIcon("Refresh16.gif"));
|
||||||
|
|
||||||
//Insert Pie Graph Kinamo (pelgrim)
|
//Insert Pie Graph Kinamo (pelgrim)
|
||||||
private static Color colorOK = Color.magenta;
|
//private static Color colorOK = Color.magenta;
|
||||||
private static Color colorNotOK = Color.lightGray;
|
//private static Color colorNotOK = Color.lightGray;
|
||||||
private static Dimension indicatordimension = new Dimension(170,120);
|
private static Dimension indicatordimension = new Dimension(170,120);
|
||||||
private static Dimension paneldimension = new Dimension(180, 150);
|
private static Dimension paneldimension = new Dimension(180, 150);
|
||||||
ChartPanel chartPanel;
|
ChartPanel chartPanel;
|
||||||
|
@ -155,9 +156,7 @@ public class PerformanceIndicator extends JPanel
|
||||||
m_line = s_width100;
|
m_line = s_width100;
|
||||||
else // draw Performance Line
|
else // draw Performance Line
|
||||||
m_line = s_width100 * m_goal.getGoalPerformanceDouble();
|
m_line = s_width100 * m_goal.getGoalPerformanceDouble();
|
||||||
|
|
||||||
|
|
||||||
String title = m_text;
|
|
||||||
DefaultValueDataset data = new DefaultValueDataset((float)m_goal.getPercent());
|
DefaultValueDataset data = new DefaultValueDataset((float)m_goal.getPercent());
|
||||||
MeterPlot plot = new MeterPlot(data);
|
MeterPlot plot = new MeterPlot(data);
|
||||||
|
|
||||||
|
|
|
@ -100,6 +100,7 @@ implements FormPanel, ActionListener
|
||||||
} // dispose
|
} // dispose
|
||||||
|
|
||||||
/** Window No */
|
/** Window No */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_WindowNo = 0;
|
private int m_WindowNo = 0;
|
||||||
/** FormFrame */
|
/** FormFrame */
|
||||||
private FormFrame m_frame;
|
private FormFrame m_frame;
|
||||||
|
@ -114,6 +115,7 @@ implements FormPanel, ActionListener
|
||||||
*/
|
*/
|
||||||
private void initPanel()
|
private void initPanel()
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
BoxLayout layout = new BoxLayout(this, BoxLayout.PAGE_AXIS);
|
BoxLayout layout = new BoxLayout(this, BoxLayout.PAGE_AXIS);
|
||||||
MGoal[] goals = MGoal.getGoals(Env.getCtx());
|
MGoal[] goals = MGoal.getGoals(Env.getCtx());
|
||||||
for (int i = 0; i < goals.length; i++)
|
for (int i = 0; i < goals.length; i++)
|
||||||
|
|
|
@ -1294,7 +1294,7 @@ public final class AdempiereTabbedPaneUI extends MetalTabbedPaneUI {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private boolean requestFocusForVisibleComponent() {
|
private boolean requestFocusForVisibleComponent() {
|
||||||
Component visibleComponent = getVisibleComponent();
|
Component visibleComponent = getVisibleComponent();
|
||||||
if (visibleComponent.isFocusable()) {
|
if (visibleComponent.isFocusable()) {
|
||||||
|
@ -2110,13 +2110,15 @@ public final class AdempiereTabbedPaneUI extends MetalTabbedPaneUI {
|
||||||
protected static final Insets EAST_INSETS = new Insets(0, 0, 0, 1);
|
protected static final Insets EAST_INSETS = new Insets(0, 0, 0, 1);
|
||||||
|
|
||||||
protected final JTabbedPane tabPane;
|
protected final JTabbedPane tabPane;
|
||||||
protected final int tabPlacement;
|
@SuppressWarnings("unused")
|
||||||
|
protected final int tabPlacement;
|
||||||
protected Color shadowColor;
|
protected Color shadowColor;
|
||||||
protected Color darkShadow;
|
protected Color darkShadow;
|
||||||
protected Color selectColor;
|
protected Color selectColor;
|
||||||
protected Color selectLight;
|
protected Color selectLight;
|
||||||
protected Color selectHighlight;
|
protected Color selectHighlight;
|
||||||
protected Color lightHighlight;
|
@SuppressWarnings("unused")
|
||||||
|
protected Color lightHighlight;
|
||||||
protected Color focus;
|
protected Color focus;
|
||||||
|
|
||||||
private AbstractRenderer(JTabbedPane tabPane) {
|
private AbstractRenderer(JTabbedPane tabPane) {
|
||||||
|
|
|
@ -67,8 +67,10 @@ public class AApplet extends Applet
|
||||||
super.start ();
|
super.start ();
|
||||||
showStatus(Adempiere.getSummary());
|
showStatus(Adempiere.getSummary());
|
||||||
//
|
//
|
||||||
|
@SuppressWarnings("unused")
|
||||||
Splash splash = Splash.getSplash();
|
Splash splash = Splash.getSplash();
|
||||||
Adempiere.startup(true); // needs to be here for UI
|
Adempiere.startup(true); // needs to be here for UI
|
||||||
|
@SuppressWarnings("unused")
|
||||||
AMenu menu = new AMenu();
|
AMenu menu = new AMenu();
|
||||||
} // start
|
} // start
|
||||||
|
|
||||||
|
|
|
@ -96,11 +96,12 @@ public class AChat extends CDialog
|
||||||
} // Attachment
|
} // Attachment
|
||||||
|
|
||||||
/** Window No */
|
/** Window No */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_WindowNo;
|
private int m_WindowNo;
|
||||||
/** Attachment */
|
/** Attachment */
|
||||||
private MChat m_chat;
|
private MChat m_chat;
|
||||||
/** Change */
|
/** Change */
|
||||||
private boolean m_change = false;
|
//private boolean m_change = false;
|
||||||
/** Logger */
|
/** Logger */
|
||||||
private static CLogger log = CLogger.getCLogger(AChat.class);
|
private static CLogger log = CLogger.getCLogger(AChat.class);
|
||||||
|
|
||||||
|
|
|
@ -409,6 +409,7 @@ public final class ADialog
|
||||||
CLogMgt.getInfoDetail(myMessage, Env.getCtx());
|
CLogMgt.getInfoDetail(myMessage, Env.getCtx());
|
||||||
ModelValidationEngine.get().getInfoDetail(myMessage, Env.getCtx()); // teo_sarca - FR [ 1724662 ]
|
ModelValidationEngine.get().getInfoDetail(myMessage, Env.getCtx()); // teo_sarca - FR [ 1724662 ]
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
EMailDialog emd = new EMailDialog(owner,
|
EMailDialog emd = new EMailDialog(owner,
|
||||||
Msg.getMsg(Env.getCtx(), "EMailSupport"),
|
Msg.getMsg(Env.getCtx(), "EMailSupport"),
|
||||||
from, to, "Support: " + subject, myMessage.toString(), null);
|
from, to, "Support: " + subject, myMessage.toString(), null);
|
||||||
|
@ -432,6 +433,7 @@ public final class ADialog
|
||||||
CLogMgt.getInfoDetail(myMessage, Env.getCtx());
|
CLogMgt.getInfoDetail(myMessage, Env.getCtx());
|
||||||
ModelValidationEngine.get().getInfoDetail(myMessage, Env.getCtx()); // teo_sarca - FR [ 1724662 ]
|
ModelValidationEngine.get().getInfoDetail(myMessage, Env.getCtx()); // teo_sarca - FR [ 1724662 ]
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
EMailDialog emd = new EMailDialog(owner,
|
EMailDialog emd = new EMailDialog(owner,
|
||||||
Msg.getMsg(Env.getCtx(), "EMailSupport"),
|
Msg.getMsg(Env.getCtx(), "EMailSupport"),
|
||||||
from, to, "Support: " + subject, myMessage.toString(), null);
|
from, to, "Support: " + subject, myMessage.toString(), null);
|
||||||
|
|
|
@ -142,7 +142,7 @@ public class AFocusTraversalPolicy extends LayoutFocusTraversalPolicy
|
||||||
* @param title
|
* @param title
|
||||||
* @param c
|
* @param c
|
||||||
*/
|
*/
|
||||||
private void info (String title, Component c)
|
/*private void info (String title, Component c)
|
||||||
{
|
{
|
||||||
System.out.print (title);
|
System.out.print (title);
|
||||||
if (c == null)
|
if (c == null)
|
||||||
|
@ -152,6 +152,6 @@ public class AFocusTraversalPolicy extends LayoutFocusTraversalPolicy
|
||||||
System.out.print (c.getClass().getName());
|
System.out.print (c.getClass().getName());
|
||||||
System.out.println (" - " + c.getName());
|
System.out.println (" - " + c.getName());
|
||||||
}
|
}
|
||||||
} // info
|
} // info*/
|
||||||
|
|
||||||
} // AFocusTraversalPolicy
|
} // AFocusTraversalPolicy
|
||||||
|
|
|
@ -220,6 +220,7 @@ public final class AMenu extends CFrame
|
||||||
private int m_AD_Role_ID;
|
private int m_AD_Role_ID;
|
||||||
|
|
||||||
/** Center Tabbed Pane index: Menu */
|
/** Center Tabbed Pane index: Menu */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_tabMenu = 0;
|
private int m_tabMenu = 0;
|
||||||
/** Center Tabbed Pane index: Activities */
|
/** Center Tabbed Pane index: Activities */
|
||||||
private int m_tabActivities = 1;
|
private int m_tabActivities = 1;
|
||||||
|
|
|
@ -317,6 +317,7 @@ public final class APanel extends CPanel
|
||||||
/** Private Lock Button */
|
/** Private Lock Button */
|
||||||
public AppsAction aLock;
|
public AppsAction aLock;
|
||||||
// Local (added to toolbar)
|
// Local (added to toolbar)
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private AppsAction aReport, aEnd, aHome, aHelp, aProduct, aLogout,
|
private AppsAction aReport, aEnd, aHome, aHelp, aProduct, aLogout,
|
||||||
aAccount, aCalculator, aCalendar, aEditor, aPreference, aScript,
|
aAccount, aCalculator, aCalendar, aEditor, aPreference, aScript,
|
||||||
aOnline, aMailSupport, aAbout, aPrintScr, aScrShot, aExit, aBPartner,
|
aOnline, aMailSupport, aAbout, aPrintScr, aScrShot, aExit, aBPartner,
|
||||||
|
@ -1203,8 +1204,8 @@ public final class APanel extends CPanel
|
||||||
// update Change
|
// update Change
|
||||||
|
|
||||||
boolean changed = e.isChanged() || e.isInserting();
|
boolean changed = e.isChanged() || e.isInserting();
|
||||||
int changedColumn = e.getChangedColumn();
|
//int changedColumn = e.getChangedColumn();
|
||||||
boolean inserting = e.isInserting();
|
//boolean inserting = e.isInserting();
|
||||||
|
|
||||||
if(e.getAD_Message() != null && e.getAD_Message().equals("Saved"))
|
if(e.getAD_Message() != null && e.getAD_Message().equals("Saved"))
|
||||||
changed = false;
|
changed = false;
|
||||||
|
|
|
@ -51,6 +51,7 @@ public class AWindowListener extends WindowAdapter
|
||||||
} // AWindowListener
|
} // AWindowListener
|
||||||
|
|
||||||
/** The Window */
|
/** The Window */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private Window m_window;
|
private Window m_window;
|
||||||
/** The Listener */
|
/** The Listener */
|
||||||
private WindowStateListener m_listener;
|
private WindowStateListener m_listener;
|
||||||
|
|
|
@ -545,14 +545,16 @@ public final class Attachment extends CDialog
|
||||||
if (Env.isWindows())
|
if (Env.isWindows())
|
||||||
{
|
{
|
||||||
// Runtime.getRuntime().exec ("rundll32 url.dll,FileProtocolHandler " + url);
|
// Runtime.getRuntime().exec ("rundll32 url.dll,FileProtocolHandler " + url);
|
||||||
Process p = Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL \"" + tempFile + "\"");
|
@SuppressWarnings("unused")
|
||||||
|
Process p = Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL \"" + tempFile + "\"");
|
||||||
// p.waitFor();
|
// p.waitFor();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (Env.isMac())
|
else if (Env.isMac())
|
||||||
{
|
{
|
||||||
String [] cmdArray = new String [] {"open", tempFile.getAbsolutePath()};
|
String [] cmdArray = new String [] {"open", tempFile.getAbsolutePath()};
|
||||||
Process p = Runtime.getRuntime ().exec (cmdArray);
|
@SuppressWarnings("unused")
|
||||||
|
Process p = Runtime.getRuntime ().exec (cmdArray);
|
||||||
// p.waitFor();
|
// p.waitFor();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,7 @@ public class BeanShellEditor extends CDialog implements ActionListener
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -5134274235147001140L;
|
private static final long serialVersionUID = -5134274235147001140L;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private Frame m_owner;
|
private Frame m_owner;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -54,6 +54,7 @@ public class GroovyEditor extends CDialog implements ActionListener
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 2941209813417292930L;
|
private static final long serialVersionUID = 2941209813417292930L;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private Frame m_owner;
|
private Frame m_owner;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -343,7 +343,7 @@ class Worker extends Thread
|
||||||
* @param doc html document
|
* @param doc html document
|
||||||
* @param tag html tag
|
* @param tag html tag
|
||||||
*/
|
*/
|
||||||
private void dumpTags (HTMLDocument doc, HTML.Tag tag)
|
/*private void dumpTags (HTMLDocument doc, HTML.Tag tag)
|
||||||
{
|
{
|
||||||
System.out.println("Doc=" + doc.getBase() + ", Tag=" + tag);
|
System.out.println("Doc=" + doc.getBase() + ", Tag=" + tag);
|
||||||
HTMLDocument.Iterator it = doc.getIterator(tag);
|
HTMLDocument.Iterator it = doc.getIterator(tag);
|
||||||
|
@ -353,6 +353,6 @@ class Worker extends Thread
|
||||||
System.out.println("~ " + as);
|
System.out.println("~ " + as);
|
||||||
it.next();
|
it.next();
|
||||||
}
|
}
|
||||||
} // printTags
|
} // printTags*/
|
||||||
|
|
||||||
} // Worker
|
} // Worker
|
||||||
|
|
|
@ -695,6 +695,7 @@ public final class Preference extends CDialog
|
||||||
*/
|
*/
|
||||||
private void cmd_errorEMail()
|
private void cmd_errorEMail()
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
EMailDialog emd = new EMailDialog(this,
|
EMailDialog emd = new EMailDialog(this,
|
||||||
"EMail Trace",
|
"EMail Trace",
|
||||||
MUser.get(Env.getCtx()),
|
MUser.get(Env.getCtx()),
|
||||||
|
|
|
@ -62,6 +62,7 @@ public class ScriptEditor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
BeanShellEditor se = new BeanShellEditor (owner, header, scr, WindowNo);
|
BeanShellEditor se = new BeanShellEditor (owner, header, scr, WindowNo);
|
||||||
return scr.getScript();
|
return scr.getScript();
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ import org.compiere.grid.GridController;
|
||||||
*/
|
*/
|
||||||
public class TabSwitcher extends FocusAdapter implements ActionListener, ListSelectionListener{
|
public class TabSwitcher extends FocusAdapter implements ActionListener, ListSelectionListener{
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private APanel panel;
|
private APanel panel;
|
||||||
private GridController gc;
|
private GridController gc;
|
||||||
|
|
||||||
|
|
|
@ -118,10 +118,11 @@ public class Waiting extends CDialog
|
||||||
/** Logger */
|
/** Logger */
|
||||||
private static CLogger log = CLogger.getCLogger(Waiting.class);
|
private static CLogger log = CLogger.getCLogger(Waiting.class);
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private CPanel southPanel = new CPanel();
|
private CPanel southPanel = new CPanel();
|
||||||
private CButton bDoNotWait = new CButton();
|
private CButton bDoNotWait = new CButton();
|
||||||
private CLabel infoLabel = new CLabel();
|
private CLabel infoLabel = new CLabel();
|
||||||
private FlowLayout southLayout = new FlowLayout();
|
//private FlowLayout southLayout = new FlowLayout();
|
||||||
private CPanel mainPanel = new CPanel();
|
private CPanel mainPanel = new CPanel();
|
||||||
private JProgressBar progressBar = new JProgressBar();
|
private JProgressBar progressBar = new JProgressBar();
|
||||||
|
|
||||||
|
|
|
@ -65,12 +65,6 @@ import org.compiere.util.Msg;
|
||||||
public class ArchiveViewer extends Archive
|
public class ArchiveViewer extends Archive
|
||||||
implements FormPanel, ActionListener, VetoableChangeListener
|
implements FormPanel, ActionListener, VetoableChangeListener
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 876677286190292132L;
|
|
||||||
|
|
||||||
private CTabbedPane panel = new CTabbedPane();
|
private CTabbedPane panel = new CTabbedPane();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -332,6 +332,7 @@ public class VAllocation extends Allocation
|
||||||
String msg = writeOff(row, col, isInvoice, paymentTable, invoiceTable, isAutoWriteOff);
|
String msg = writeOff(row, col, isInvoice, paymentTable, invoiceTable, isAutoWriteOff);
|
||||||
|
|
||||||
//render row
|
//render row
|
||||||
|
@SuppressWarnings("unused")
|
||||||
DefaultTableModel model = (DefaultTableModel) (isInvoice ? invoiceTable.getModel() : paymentTable.getModel());
|
DefaultTableModel model = (DefaultTableModel) (isInvoice ? invoiceTable.getModel() : paymentTable.getModel());
|
||||||
//model.fireTableRowsUpdated(row, row);
|
//model.fireTableRowsUpdated(row, row);
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,7 @@ public class VAttributeGrid extends CPanel
|
||||||
} // init
|
} // init
|
||||||
|
|
||||||
/** Window No */
|
/** Window No */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_WindowNo = 0;
|
private int m_WindowNo = 0;
|
||||||
/** FormFrame */
|
/** FormFrame */
|
||||||
private FormFrame m_frame;
|
private FormFrame m_frame;
|
||||||
|
|
|
@ -142,6 +142,7 @@ public class VBOMDrop extends CPanel
|
||||||
} // dispose
|
} // dispose
|
||||||
|
|
||||||
/** Window No */
|
/** Window No */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_WindowNo = 0;
|
private int m_WindowNo = 0;
|
||||||
/** FormFrame */
|
/** FormFrame */
|
||||||
private FormFrame m_frame;
|
private FormFrame m_frame;
|
||||||
|
|
|
@ -82,6 +82,7 @@ public class VSQLProcess extends CPanel
|
||||||
} // dispose
|
} // dispose
|
||||||
|
|
||||||
/** Window No */
|
/** Window No */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_WindowNo = 0;
|
private int m_WindowNo = 0;
|
||||||
/** FormFrame */
|
/** FormFrame */
|
||||||
private FormFrame m_frame;
|
private FormFrame m_frame;
|
||||||
|
@ -216,6 +217,7 @@ public class VSQLProcess extends CPanel
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
stmt = conn.createStatement();
|
stmt = conn.createStatement();
|
||||||
|
@SuppressWarnings("unused")
|
||||||
boolean OK = stmt.execute(sql);
|
boolean OK = stmt.execute(sql);
|
||||||
int count = stmt.getUpdateCount();
|
int count = stmt.getUpdateCount();
|
||||||
if (count == -1)
|
if (count == -1)
|
||||||
|
|
|
@ -70,10 +70,12 @@ public final class FindCellEditor extends AbstractCellEditor
|
||||||
/** The Table Editor */
|
/** The Table Editor */
|
||||||
private CEditor m_editor = null;
|
private CEditor m_editor = null;
|
||||||
/** Table */
|
/** Table */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private JTable m_table = null;
|
private JTable m_table = null;
|
||||||
/** ClickCount */
|
/** ClickCount */
|
||||||
private static int CLICK_TO_START = 1;
|
//private static int CLICK_TO_START = 1;
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger log = CLogger.getCLogger(FindCellEditor.class);
|
private static CLogger log = CLogger.getCLogger(FindCellEditor.class);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ import java.math.BigDecimal;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import org.adempiere.plaf.AdempierePLAF;
|
import org.adempiere.plaf.AdempierePLAF;
|
||||||
import org.compiere.apps.ALayout;
|
import org.compiere.apps.ALayout;
|
||||||
|
@ -115,13 +114,13 @@ public class InfoInvoice extends Info
|
||||||
} // InfoInvoice
|
} // InfoInvoice
|
||||||
|
|
||||||
/** String Array of Column Info */
|
/** String Array of Column Info */
|
||||||
private Info_Column[] m_generalLayout;
|
//private Info_Column[] m_generalLayout;
|
||||||
/** list of query columns */
|
/** list of query columns */
|
||||||
private ArrayList m_queryColumns = new ArrayList();
|
//private ArrayList m_queryColumns = new ArrayList();
|
||||||
/** Table Name */
|
/** Table Name */
|
||||||
private String m_tableName;
|
//private String m_tableName;
|
||||||
/** Key Column Name */
|
/** Key Column Name */
|
||||||
private String m_keyColumn;
|
//private String m_keyColumn;
|
||||||
|
|
||||||
// Static Info
|
// Static Info
|
||||||
private CLabel lDocumentNo = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));
|
private CLabel lDocumentNo = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));
|
||||||
|
|
|
@ -21,7 +21,6 @@ import java.math.BigDecimal;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import org.adempiere.plaf.AdempierePLAF;
|
import org.adempiere.plaf.AdempierePLAF;
|
||||||
import org.compiere.apps.ALayout;
|
import org.compiere.apps.ALayout;
|
||||||
|
@ -110,13 +109,13 @@ public class InfoOrder extends Info
|
||||||
} // InfoOrder
|
} // InfoOrder
|
||||||
|
|
||||||
/** String Array of Column Info */
|
/** String Array of Column Info */
|
||||||
private Info_Column[] m_generalLayout;
|
//private Info_Column[] m_generalLayout;
|
||||||
/** list of query columns */
|
/** list of query columns */
|
||||||
private ArrayList m_queryColumns = new ArrayList();
|
//private ArrayList m_queryColumns = new ArrayList();
|
||||||
/** Table Name */
|
/** Table Name */
|
||||||
private String m_tableName;
|
//private String m_tableName;
|
||||||
/** Key Column Name */
|
/** Key Column Name */
|
||||||
private String m_keyColumn;
|
//private String m_keyColumn;
|
||||||
|
|
||||||
// Static Info
|
// Static Info
|
||||||
private CLabel lDocumentNo = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));
|
private CLabel lDocumentNo = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));
|
||||||
|
|
|
@ -21,7 +21,6 @@ import java.math.BigDecimal;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import org.adempiere.plaf.AdempierePLAF;
|
import org.adempiere.plaf.AdempierePLAF;
|
||||||
import org.compiere.apps.ALayout;
|
import org.compiere.apps.ALayout;
|
||||||
|
@ -110,13 +109,13 @@ public class InfoPayment extends Info
|
||||||
} // InfoPayment
|
} // InfoPayment
|
||||||
|
|
||||||
/** String Array of Column Info */
|
/** String Array of Column Info */
|
||||||
private Info_Column[] m_generalLayout;
|
//private Info_Column[] m_generalLayout;
|
||||||
/** list of query columns */
|
/** list of query columns */
|
||||||
private ArrayList m_queryColumns = new ArrayList();
|
//private ArrayList m_queryColumns = new ArrayList();
|
||||||
/** Table Name */
|
/** Table Name */
|
||||||
private String m_tableName;
|
//private String m_tableName;
|
||||||
/** Key Column Name */
|
/** Key Column Name */
|
||||||
private String m_keyColumn;
|
//private String m_keyColumn;
|
||||||
|
|
||||||
// Static Info
|
// Static Info
|
||||||
private CLabel lDocumentNo = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));
|
private CLabel lDocumentNo = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));
|
||||||
|
|
|
@ -216,7 +216,6 @@ public class VSchedulePanel extends JComponent implements MouseListener
|
||||||
int xWidth = m_dayWidth / mas.getXMax();
|
int xWidth = m_dayWidth / mas.getXMax();
|
||||||
int xStart = dayIndex * m_dayWidth; // start day slot
|
int xStart = dayIndex * m_dayWidth; // start day slot
|
||||||
xStart += mas.getXPos() * xWidth; // offset
|
xStart += mas.getXPos() * xWidth; // offset
|
||||||
int xEnd = xStart + xWidth;
|
|
||||||
|
|
||||||
int yStart = m_timePanel.getSlotYStart(mas.getYStart());
|
int yStart = m_timePanel.getSlotYStart(mas.getYStart());
|
||||||
int yEnd = m_timePanel.getSlotYEnd(mas.getYEnd());
|
int yEnd = m_timePanel.getSlotYEnd(mas.getYEnd());
|
||||||
|
|
|
@ -127,6 +127,7 @@ public class WFPanel extends CPanel
|
||||||
/** Menu Link */
|
/** Menu Link */
|
||||||
private AMenu m_menu = null;
|
private AMenu m_menu = null;
|
||||||
/** Window No */
|
/** Window No */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_WindowNo = 0;
|
private int m_WindowNo = 0;
|
||||||
/** FormFrame */
|
/** FormFrame */
|
||||||
private FormFrame m_frame;
|
private FormFrame m_frame;
|
||||||
|
@ -325,8 +326,8 @@ public class WFPanel extends CPanel
|
||||||
List<Integer> added = new ArrayList<Integer>();
|
List<Integer> added = new ArrayList<Integer>();
|
||||||
for (int i = 0; i < nodes.length; i++)
|
for (int i = 0; i < nodes.length; i++)
|
||||||
{
|
{
|
||||||
boolean rw = readWrite // in editor mode & owned
|
//boolean rw = readWrite // in editor mode & owned
|
||||||
&& (AD_Client_ID == nodes[i].getAD_Client_ID());
|
// && (AD_Client_ID == nodes[i].getAD_Client_ID());
|
||||||
if (!added.contains(nodes[i].getAD_WF_Node_ID()))
|
if (!added.contains(nodes[i].getAD_WF_Node_ID()))
|
||||||
centerPanel.addNode(nodes[i]);
|
centerPanel.addNode(nodes[i]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,7 @@ import org.compiere.model.StateChangeListener;
|
||||||
*/
|
*/
|
||||||
public class GridSynchronizer implements PropertyChangeListener, StateChangeListener {
|
public class GridSynchronizer implements PropertyChangeListener, StateChangeListener {
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private GridController parent;
|
private GridController parent;
|
||||||
private GridController child;
|
private GridController child;
|
||||||
private GridWindow window;
|
private GridWindow window;
|
||||||
|
|
|
@ -120,6 +120,7 @@ public final class VPanel extends CTabbedPane
|
||||||
} // VPanel
|
} // VPanel
|
||||||
|
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private final boolean m_leftToRight = Language.getLoginLanguage().isLeftToRight();
|
private final boolean m_leftToRight = Language.getLoginLanguage().isLeftToRight();
|
||||||
/** Previous Field Group Header */
|
/** Previous Field Group Header */
|
||||||
private String m_oldFieldGroup = null;
|
private String m_oldFieldGroup = null;
|
||||||
|
|
|
@ -1302,6 +1302,7 @@ public class VPayment extends CDialog
|
||||||
if (m_onlyRule)
|
if (m_onlyRule)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
String CCType = m_CCType;
|
String CCType = m_CCType;
|
||||||
//
|
//
|
||||||
int C_BankAccount_ID = 0;
|
int C_BankAccount_ID = 0;
|
||||||
|
|
|
@ -91,7 +91,8 @@ public class ADempiereAutoCompleteDecorator extends AutoCompleteDecorator{
|
||||||
// otherwise the last mark would have been retained which is quiet confusing
|
// otherwise the last mark would have been retained which is quiet confusing
|
||||||
textComponent.addFocusListener(new FocusAdapter() {
|
textComponent.addFocusListener(new FocusAdapter() {
|
||||||
public void focusGained(FocusEvent e) {
|
public void focusGained(FocusEvent e) {
|
||||||
JTextComponent textComponent = (JTextComponent) e.getSource();
|
@SuppressWarnings("unused")
|
||||||
|
JTextComponent textComponent = (JTextComponent) e.getSource();
|
||||||
adaptor.markEntireText();
|
adaptor.markEntireText();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -37,8 +37,6 @@ import org.compiere.util.CLogger;
|
||||||
*/
|
*/
|
||||||
public abstract class AutoCompleter implements MouseListener
|
public abstract class AutoCompleter implements MouseListener
|
||||||
{
|
{
|
||||||
|
|
||||||
private static final long serialVersionUID = -5135462631871597277L;
|
|
||||||
private static final String AUTOCOMPLETER = "AUTOCOMPLETER"; //NOI18N
|
private static final String AUTOCOMPLETER = "AUTOCOMPLETER"; //NOI18N
|
||||||
private static final int PopupDelayMillis = 500;
|
private static final int PopupDelayMillis = 500;
|
||||||
|
|
||||||
|
|
|
@ -52,9 +52,7 @@ public class ComboSelectionManager implements JComboBox.KeySelectionManager
|
||||||
{
|
{
|
||||||
log.fine("Key=" + key);
|
log.fine("Key=" + key);
|
||||||
//
|
//
|
||||||
int currentSelection = -1;
|
//Object selectedItem = model.getSelectedItem();
|
||||||
Object selectedItem = model.getSelectedItem();
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
} // selectionForKey
|
} // selectionForKey
|
||||||
|
|
|
@ -415,6 +415,7 @@ public class HTMLEditor extends CDialog
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
EditorKit kit = editorPane.getEditorKit();
|
EditorKit kit = editorPane.getEditorKit();
|
||||||
OutputStreamWriter writer = new OutputStreamWriter
|
OutputStreamWriter writer = new OutputStreamWriter
|
||||||
(new FileOutputStream (jc.getSelectedFile()));
|
(new FileOutputStream (jc.getSelectedFile()));
|
||||||
|
|
|
@ -270,6 +270,7 @@ public final class MDocDate extends PlainDocument implements CaretListener
|
||||||
/**
|
/**
|
||||||
* Call Calendar Dialog
|
* Call Calendar Dialog
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private void startDateDialog()
|
private void startDateDialog()
|
||||||
{
|
{
|
||||||
log.config("");
|
log.config("");
|
||||||
|
|
|
@ -315,8 +315,6 @@ public final class VAccountDialog extends CDialog
|
||||||
m_gbc.weightx = 0;
|
m_gbc.weightx = 0;
|
||||||
m_gbc.weighty = 0;
|
m_gbc.weighty = 0;
|
||||||
|
|
||||||
int TabNo = 0;
|
|
||||||
|
|
||||||
// Alias
|
// Alias
|
||||||
if (s_AcctSchema.isHasAlias())
|
if (s_AcctSchema.isHasAlias())
|
||||||
{
|
{
|
||||||
|
|
|
@ -73,6 +73,7 @@ public class VBinary extends JButton
|
||||||
/** Column Name */
|
/** Column Name */
|
||||||
private String m_columnName;
|
private String m_columnName;
|
||||||
/** WindowNo */
|
/** WindowNo */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_WindowNo;
|
private int m_WindowNo;
|
||||||
/** Data */
|
/** Data */
|
||||||
private Object m_data = null;
|
private Object m_data = null;
|
||||||
|
|
|
@ -149,6 +149,7 @@ public final class VButton extends CButton
|
||||||
private String m_text;
|
private String m_text;
|
||||||
private boolean m_mandatory;
|
private boolean m_mandatory;
|
||||||
private Object m_value;
|
private Object m_value;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private ActionListener m_actionListener;
|
private ActionListener m_actionListener;
|
||||||
/** List of Key/Name */
|
/** List of Key/Name */
|
||||||
private HashMap<String,String> m_values = null;
|
private HashMap<String,String> m_values = null;
|
||||||
|
|
|
@ -76,7 +76,7 @@ public final class VCellEditor extends AbstractCellEditor
|
||||||
|
|
||||||
/** Table */
|
/** Table */
|
||||||
private JTable m_table = null;
|
private JTable m_table = null;
|
||||||
private ActionListener buttonListener;
|
//private ActionListener buttonListener;
|
||||||
private ActionListener actionListener;
|
private ActionListener actionListener;
|
||||||
|
|
||||||
/** ClickCount */
|
/** ClickCount */
|
||||||
|
|
|
@ -74,6 +74,7 @@ public class VFile extends JComponent
|
||||||
m_adaptee = adaptee;
|
m_adaptee = adaptee;
|
||||||
} // VLookup_mouseAdapter
|
} // VLookup_mouseAdapter
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private VFile m_adaptee;
|
private VFile m_adaptee;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -116,7 +116,6 @@ public class VLine extends AbstractBorder
|
||||||
// Header Text
|
// Header Text
|
||||||
g.setColor(m_color);
|
g.setColor(m_color);
|
||||||
g.setFont(m_font);
|
g.setFont(m_font);
|
||||||
int x = GAP;
|
|
||||||
if (!Language.getLoginLanguage().isLeftToRight())
|
if (!Language.getLoginLanguage().isLeftToRight())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,6 +187,7 @@ public class VLocation extends JComponent
|
||||||
private CMenuItem mDelete;
|
private CMenuItem mDelete;
|
||||||
|
|
||||||
/** The Grid Tab * */
|
/** The Grid Tab * */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private GridTab m_GridTab; // added for processCallout
|
private GridTab m_GridTab; // added for processCallout
|
||||||
/** The Grid Field * */
|
/** The Grid Field * */
|
||||||
private GridField m_GridField; // added for processCallout
|
private GridField m_GridField; // added for processCallout
|
||||||
|
|
|
@ -106,10 +106,13 @@ public class VLocatorDialog extends CDialog
|
||||||
private int m_only_Warehouse_ID = 0;
|
private int m_only_Warehouse_ID = 0;
|
||||||
//
|
//
|
||||||
private int m_M_Warehouse_ID;
|
private int m_M_Warehouse_ID;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String m_M_WarehouseName;
|
private String m_M_WarehouseName;
|
||||||
private String m_M_WarehouseValue;
|
private String m_M_WarehouseValue;
|
||||||
private String m_Separator;
|
private String m_Separator;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_AD_Client_ID;
|
private int m_AD_Client_ID;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_AD_Org_ID;
|
private int m_AD_Org_ID;
|
||||||
/** Logger */
|
/** Logger */
|
||||||
private static CLogger log = CLogger.getCLogger(VLocatorDialog.class);
|
private static CLogger log = CLogger.getCLogger(VLocatorDialog.class);
|
||||||
|
|
|
@ -944,7 +944,7 @@ public class VLookup extends JComponent
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private String getExtraWhereClause (String text)
|
/*private String getExtraWhereClause (String text)
|
||||||
{
|
{
|
||||||
StringBuilder sql = new StringBuilder();
|
StringBuilder sql = new StringBuilder();
|
||||||
m_tableName = m_columnName.substring(0, m_columnName.length()-3);
|
m_tableName = m_columnName.substring(0, m_columnName.length()-3);
|
||||||
|
@ -963,7 +963,7 @@ public class VLookup extends JComponent
|
||||||
//.append(" OR p.UPC LIKE ").append(DB.TO_STRING(text)).append(")");
|
//.append(" OR p.UPC LIKE ").append(DB.TO_STRING(text)).append(")");
|
||||||
}
|
}
|
||||||
// Predefined
|
// Predefined
|
||||||
/*
|
|
||||||
if (sql.length() > 0)
|
if (sql.length() > 0)
|
||||||
{
|
{
|
||||||
String wc = getWhereClause();
|
String wc = getWhereClause();
|
||||||
|
@ -974,10 +974,10 @@ public class VLookup extends JComponent
|
||||||
log.finest(m_columnName + " (predefined) " + sql.toString());
|
log.finest(m_columnName + " (predefined) " + sql.toString());
|
||||||
return MRole.getDefault().addAccessSQL(sql.toString(),
|
return MRole.getDefault().addAccessSQL(sql.toString(),
|
||||||
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
return sql.toString();
|
return sql.toString();
|
||||||
}
|
}*/
|
||||||
/**
|
/**
|
||||||
* Check, if data returns unique entry, otherwise involve Info via Button
|
* Check, if data returns unique entry, otherwise involve Info via Button
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -54,7 +54,6 @@ public class VOvrCaret extends DefaultCaret
|
||||||
*/
|
*/
|
||||||
public void paint(Graphics g)
|
public void paint(Graphics g)
|
||||||
{
|
{
|
||||||
boolean dotLTR = true; // left-to-right
|
|
||||||
Position.Bias dotBias = Position.Bias.Forward;
|
Position.Bias dotBias = Position.Bias.Forward;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -71,6 +71,7 @@ public class VPaymentEditor extends JComponent implements VEditor, ActionListene
|
||||||
/** Indicator that Lookup has focus */
|
/** Indicator that Lookup has focus */
|
||||||
private volatile boolean m_haveFocus = false;
|
private volatile boolean m_haveFocus = false;
|
||||||
/** Indicator - inserting new value */
|
/** Indicator - inserting new value */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private volatile boolean m_inserting = false;
|
private volatile boolean m_inserting = false;
|
||||||
/** Last Display */
|
/** Last Display */
|
||||||
private String m_lastDisplay = "";
|
private String m_lastDisplay = "";
|
||||||
|
|
|
@ -188,6 +188,7 @@ public class VURL extends JComponent
|
||||||
/** Setting new value */
|
/** Setting new value */
|
||||||
private volatile boolean m_setting = false;
|
private volatile boolean m_setting = false;
|
||||||
/** Field in focus */
|
/** Field in focus */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private volatile boolean m_infocus = false;
|
private volatile boolean m_infocus = false;
|
||||||
/** Field Length */
|
/** Field Length */
|
||||||
private int m_fieldLength;
|
private int m_fieldLength;
|
||||||
|
@ -416,6 +417,7 @@ public class VURL extends JComponent
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
URL url = new URL(urlString);
|
URL url = new URL(urlString);
|
||||||
Env.startBrowser(urlString);
|
Env.startBrowser(urlString);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -63,6 +63,7 @@ public class AdempiereTreeModel extends DefaultTreeModel {
|
||||||
Trx trx = Trx.get (Trx.createTrxName("AdempiereTreeModel"), true);
|
Trx trx = Trx.get (Trx.createTrxName("AdempiereTreeModel"), true);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int no = 0;
|
int no = 0;
|
||||||
for (int i = 0; i < from.getChildCount(); i++)
|
for (int i = 0; i < from.getChildCount(); i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -335,7 +335,7 @@ public final class VTreePanel extends CPanel
|
||||||
private JXTaskPaneContainer bar = new JXTaskPaneContainer();
|
private JXTaskPaneContainer bar = new JXTaskPaneContainer();
|
||||||
private java.util.List<JToolBar> toolbar;
|
private java.util.List<JToolBar> toolbar;
|
||||||
private HashMap<Integer, JToolBar> toolbarMap;
|
private HashMap<Integer, JToolBar> toolbarMap;
|
||||||
private int toolBarCols=3;
|
//private int toolBarCols=3;
|
||||||
private CMenuItem mBarAdd = new CMenuItem();
|
private CMenuItem mBarAdd = new CMenuItem();
|
||||||
private CMenuItem mBarRemove = new CMenuItem();
|
private CMenuItem mBarRemove = new CMenuItem();
|
||||||
private BorderLayout southLayout = new BorderLayout();
|
private BorderLayout southLayout = new BorderLayout();
|
||||||
|
@ -345,10 +345,12 @@ public final class VTreePanel extends CPanel
|
||||||
private KeyListener keyListener = new VTreePanel_keyAdapter(this);
|
private KeyListener keyListener = new VTreePanel_keyAdapter(this);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_WindowNo;
|
private int m_WindowNo;
|
||||||
/** Tree ID */
|
/** Tree ID */
|
||||||
private int m_AD_Tree_ID = 0;
|
private int m_AD_Tree_ID = 0;
|
||||||
/** Table Name for TreeNode */
|
/** Table Name for TreeNode */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String m_nodeTableName = null;
|
private String m_nodeTableName = null;
|
||||||
/** Tree is editable (can move nodes) - also not active shown */
|
/** Tree is editable (can move nodes) - also not active shown */
|
||||||
private boolean m_editable;
|
private boolean m_editable;
|
||||||
|
|
|
@ -53,11 +53,6 @@ import org.compiere.util.ValueNamePair;
|
||||||
public class VTranslationDialog extends TranslationController
|
public class VTranslationDialog extends TranslationController
|
||||||
implements FormPanel, ActionListener
|
implements FormPanel, ActionListener
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = -5072470836657762574L;
|
|
||||||
|
|
||||||
private CPanel panel = new CPanel();
|
private CPanel panel = new CPanel();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -710,7 +710,9 @@ public class CompiereTabbedPaneUI extends MetalTabbedPaneUI
|
||||||
{
|
{
|
||||||
int tabCount = tabPane.getTabCount();
|
int tabCount = tabPane.getTabCount();
|
||||||
int currentRun = getRunForTab( tabCount, tabIndex );
|
int currentRun = getRunForTab( tabCount, tabIndex );
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int lastIndex = lastTabInRun( tabCount, currentRun );
|
int lastIndex = lastTabInRun( tabCount, currentRun );
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int firstIndex = tabRuns[ currentRun ];
|
int firstIndex = tabRuns[ currentRun ];
|
||||||
|
|
||||||
g.translate( x, y );
|
g.translate( x, y );
|
||||||
|
@ -767,7 +769,9 @@ public class CompiereTabbedPaneUI extends MetalTabbedPaneUI
|
||||||
{
|
{
|
||||||
int tabCount = tabPane.getTabCount();
|
int tabCount = tabPane.getTabCount();
|
||||||
int currentRun = getRunForTab( tabCount, tabIndex );
|
int currentRun = getRunForTab( tabCount, tabIndex );
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int lastIndex = lastTabInRun( tabCount, currentRun );
|
int lastIndex = lastTabInRun( tabCount, currentRun );
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int firstIndex = tabRuns[ currentRun ];
|
int firstIndex = tabRuns[ currentRun ];
|
||||||
|
|
||||||
g.translate( x, y );
|
g.translate( x, y );
|
||||||
|
|
|
@ -60,8 +60,7 @@ public class ContrastTheme extends DefaultMetalTheme
|
||||||
private final ColorUIResource secondary3
|
private final ColorUIResource secondary3
|
||||||
= new ColorUIResource (255, 255, 255);
|
= new ColorUIResource (255, 255, 255);
|
||||||
|
|
||||||
private final ColorUIResource controlHighlight
|
//private final ColorUIResource controlHighlight = new ColorUIResource (102, 102, 102);
|
||||||
= new ColorUIResource (102, 102, 102);
|
|
||||||
|
|
||||||
protected ColorUIResource getPrimary1 ()
|
protected ColorUIResource getPrimary1 ()
|
||||||
{
|
{
|
||||||
|
@ -137,6 +136,7 @@ public class ContrastTheme extends DefaultMetalTheme
|
||||||
{
|
{
|
||||||
Border blackLineBorder = new BorderUIResource
|
Border blackLineBorder = new BorderUIResource
|
||||||
(new LineBorder(getBlack ()));
|
(new LineBorder(getBlack ()));
|
||||||
|
@SuppressWarnings("unused")
|
||||||
Border whiteLineBorder = new BorderUIResource(
|
Border whiteLineBorder = new BorderUIResource(
|
||||||
new LineBorder(getWhite()));
|
new LineBorder(getWhite()));
|
||||||
//
|
//
|
||||||
|
|
|
@ -99,7 +99,9 @@ public class CashSubFunctions extends PosQuery implements ActionListener, InputM
|
||||||
private CButton f_calculateDifference = null;
|
private CButton f_calculateDifference = null;
|
||||||
|
|
||||||
private CPanel panel;
|
private CPanel panel;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private CScrollPane centerScroll;
|
private CScrollPane centerScroll;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private ConfirmPanel confirm;
|
private ConfirmPanel confirm;
|
||||||
private Properties p_ctx;
|
private Properties p_ctx;
|
||||||
|
|
||||||
|
@ -455,6 +457,7 @@ public class CashSubFunctions extends PosQuery implements ActionListener, InputM
|
||||||
*/
|
*/
|
||||||
private void cmd_saveChange()
|
private void cmd_saveChange()
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
MCashBook cashBook = new MCashBook(p_ctx, p_pos.getC_CashBook_ID(), null);
|
MCashBook cashBook = new MCashBook(p_ctx, p_pos.getC_CashBook_ID(), null);
|
||||||
Timestamp today = TimeUtil.getDay(System.currentTimeMillis());
|
Timestamp today = TimeUtil.getDay(System.currentTimeMillis());
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,7 @@ public class PosApplication {
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
MSession.get (Env.getCtx(), true); // Start Session
|
MSession.get (Env.getCtx(), true); // Start Session
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
int m_WindowNo = AEnv.createWindowNo(frame);
|
int m_WindowNo = AEnv.createWindowNo(frame);
|
||||||
|
|
||||||
// Default Image
|
// Default Image
|
||||||
|
|
|
@ -417,7 +417,7 @@ public class PosPayment extends CDialog implements PosKeyListener, VetoableChang
|
||||||
boolean cash = MPayment.TENDERTYPE_Cash.equals(tenderType);
|
boolean cash = MPayment.TENDERTYPE_Cash.equals(tenderType);
|
||||||
boolean check = MPayment.TENDERTYPE_Check.equals(tenderType);
|
boolean check = MPayment.TENDERTYPE_Check.equals(tenderType);
|
||||||
boolean creditcard = MPayment.TENDERTYPE_CreditCard.equals(tenderType);
|
boolean creditcard = MPayment.TENDERTYPE_CreditCard.equals(tenderType);
|
||||||
boolean account = MPayment.TENDERTYPE_Account.equals(tenderType);
|
//boolean account = MPayment.TENDERTYPE_Account.equals(tenderType);
|
||||||
|
|
||||||
fTenderAmt.setVisible(cash);
|
fTenderAmt.setVisible(cash);
|
||||||
fReturnAmt.setVisible(cash);
|
fReturnAmt.setVisible(cash);
|
||||||
|
|
|
@ -31,6 +31,7 @@ public class PosTextField extends JFormattedTextField implements MouseListener {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -2453719110038264481L;
|
private static final long serialVersionUID = -2453719110038264481L;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private DefaultFormatterFactory formatFactory = new DefaultFormatterFactory();
|
private DefaultFormatterFactory formatFactory = new DefaultFormatterFactory();
|
||||||
PosBasePanel pos = null;
|
PosBasePanel pos = null;
|
||||||
int keyLayoutId = 0;
|
int keyLayoutId = 0;
|
||||||
|
|
|
@ -165,6 +165,7 @@ public class QueryBPartner extends PosQuery
|
||||||
|
|
||||||
// Center
|
// Center
|
||||||
m_table = new PosTable();
|
m_table = new PosTable();
|
||||||
|
@SuppressWarnings("unused")
|
||||||
String sql = m_table.prepareTable (s_layout, s_sqlFrom,
|
String sql = m_table.prepareTable (s_layout, s_sqlFrom,
|
||||||
s_sqlWhere, false, "RV_BPartner")
|
s_sqlWhere, false, "RV_BPartner")
|
||||||
+ " ORDER BY Value";
|
+ " ORDER BY Value";
|
||||||
|
|
|
@ -154,6 +154,7 @@ public class QueryProduct extends PosQuery
|
||||||
|
|
||||||
// Center
|
// Center
|
||||||
m_table = new PosTable();
|
m_table = new PosTable();
|
||||||
|
@SuppressWarnings("unused")
|
||||||
String sql = m_table.prepareTable (s_layout, s_sqlFrom,
|
String sql = m_table.prepareTable (s_layout, s_sqlFrom,
|
||||||
s_sqlWhere, false, "RV_WarehousePrice")
|
s_sqlWhere, false, "RV_WarehousePrice")
|
||||||
+ " ORDER BY Margin, QtyAvailable";
|
+ " ORDER BY Margin, QtyAvailable";
|
||||||
|
|
|
@ -141,6 +141,7 @@ public class QueryTicket extends PosQuery
|
||||||
// Center
|
// Center
|
||||||
m_table = new PosTable();
|
m_table = new PosTable();
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
String sql = m_table.prepareTable (s_layout, "C_Order",
|
String sql = m_table.prepareTable (s_layout, "C_Order",
|
||||||
"C_POS_ID = " + p_pos.getC_POS_ID()
|
"C_POS_ID = " + p_pos.getC_POS_ID()
|
||||||
, false, "C_Order")
|
, false, "C_Order")
|
||||||
|
|
|
@ -46,8 +46,9 @@ public class SubFunctionKeys extends PosSubPanel implements PosKeyListener
|
||||||
} // PosSubFunctionKeys
|
} // PosSubFunctionKeys
|
||||||
|
|
||||||
/** Keys */
|
/** Keys */
|
||||||
private MPOSKey[] m_keys;
|
//private MPOSKey[] m_keys;
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger log = CLogger.getCLogger(SubFunctionKeys.class);
|
private static CLogger log = CLogger.getCLogger(SubFunctionKeys.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -82,7 +82,7 @@ public class SubOrder extends PosSubPanel
|
||||||
private CButton f_history;
|
private CButton f_history;
|
||||||
private PosTextField f_name;
|
private PosTextField f_name;
|
||||||
private CButton f_bNew;
|
private CButton f_bNew;
|
||||||
private CButton f_bSearch;
|
//private CButton f_bSearch;
|
||||||
private CComboBox f_location;
|
private CComboBox f_location;
|
||||||
private CComboBox f_user;
|
private CComboBox f_user;
|
||||||
private CButton f_process;
|
private CButton f_process;
|
||||||
|
@ -438,6 +438,7 @@ public class SubOrder extends PosSubPanel
|
||||||
/**
|
/**
|
||||||
* Fill Combos (Location, User)
|
* Fill Combos (Location, User)
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private void fillCombos()
|
private void fillCombos()
|
||||||
{
|
{
|
||||||
Vector<KeyNamePair> locationVector = new Vector<KeyNamePair>();
|
Vector<KeyNamePair> locationVector = new Vector<KeyNamePair>();
|
||||||
|
|
|
@ -231,6 +231,7 @@ public class AReport implements ActionListener
|
||||||
ProcessInfo pi = new ProcessInfo ("", pf.getJasperProcess_ID(), pf.getAD_Table_ID(), Record_ID);
|
ProcessInfo pi = new ProcessInfo ("", pf.getJasperProcess_ID(), pf.getAD_Table_ID(), Record_ID);
|
||||||
|
|
||||||
// Execute Process
|
// Execute Process
|
||||||
|
@SuppressWarnings("unused")
|
||||||
ProcessCtl worker = ClientProcessCtrl.process(parent, WindowNo, pi, null);
|
ProcessCtl worker = ClientProcessCtrl.process(parent, WindowNo, pi, null);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -60,6 +60,7 @@ public class CPrinter extends CComboBox implements ActionListener
|
||||||
|
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static CLogger log = CLogger.getCLogger (CPrinter.class);
|
private static CLogger log = CLogger.getCLogger (CPrinter.class);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ import javax.swing.table.TableCellRenderer;
|
||||||
public class TableCellNone implements TableCellEditor, TableCellRenderer {
|
public class TableCellNone implements TableCellEditor, TableCellRenderer {
|
||||||
|
|
||||||
private Object m_value;
|
private Object m_value;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String m_columnName;
|
private String m_columnName;
|
||||||
|
|
||||||
public TableCellNone(String columnName) {
|
public TableCellNone(String columnName) {
|
||||||
|
|
|
@ -71,7 +71,9 @@ public class TreeSearchPanel extends Panel implements EventListener<Event>, Tree
|
||||||
private Tree tree;
|
private Tree tree;
|
||||||
|
|
||||||
private String eventToFire;
|
private String eventToFire;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_windowno = 0;
|
private int m_windowno = 0;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private int m_tabno = 0;
|
private int m_tabno = 0;
|
||||||
private Treeitem selectedItem;
|
private Treeitem selectedItem;
|
||||||
|
|
||||||
|
|
|
@ -38,11 +38,6 @@ import org.compiere.util.Msg;
|
||||||
*/
|
*/
|
||||||
public class Charge
|
public class Charge
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 2478440763968206819L;
|
|
||||||
|
|
||||||
/** Window No */
|
/** Window No */
|
||||||
public int m_WindowNo = 0;
|
public int m_WindowNo = 0;
|
||||||
// /** FormFrame */
|
// /** FormFrame */
|
||||||
|
|
|
@ -150,7 +150,6 @@ public class AdvertisementServlet extends HttpServlet
|
||||||
ad.setDescription(Description);
|
ad.setDescription(Description);
|
||||||
info.append("Description - ");
|
info.append("Description - ");
|
||||||
}
|
}
|
||||||
String ImageURL = null;
|
|
||||||
String AdText = WebUtil.getParameter (request, "AdText");
|
String AdText = WebUtil.getParameter (request, "AdText");
|
||||||
if (AdText != null && AdText.length() > 0 && !AdText.equals(ad.getAdText()))
|
if (AdText != null && AdText.length() > 0 && !AdText.equals(ad.getAdText()))
|
||||||
{
|
{
|
||||||
|
|
|
@ -105,6 +105,7 @@ public class BasketServlet extends HttpServlet
|
||||||
{
|
{
|
||||||
log.info("From " + request.getRemoteHost() + " - " + request.getRemoteAddr()
|
log.info("From " + request.getRemoteHost() + " - " + request.getRemoteAddr()
|
||||||
+ " - " + request.getRequestURL());
|
+ " - " + request.getRequestURL());
|
||||||
|
@SuppressWarnings("unused")
|
||||||
Properties ctx = JSPEnv.getCtx(request);
|
Properties ctx = JSPEnv.getCtx(request);
|
||||||
HttpSession session = request.getSession(true);
|
HttpSession session = request.getSession(true);
|
||||||
session.removeAttribute(WebSessionCtx.HDR_MESSAGE);
|
session.removeAttribute(WebSessionCtx.HDR_MESSAGE);
|
||||||
|
|
|
@ -142,6 +142,7 @@ public class CheckOutServlet extends HttpServlet
|
||||||
throws ServletException, IOException
|
throws ServletException, IOException
|
||||||
{
|
{
|
||||||
log.info("Post from " + request.getRemoteHost() + " - " + request.getRemoteAddr());
|
log.info("Post from " + request.getRemoteHost() + " - " + request.getRemoteAddr());
|
||||||
|
@SuppressWarnings("unused")
|
||||||
HttpSession session = request.getSession(false);
|
HttpSession session = request.getSession(false);
|
||||||
} // doPost
|
} // doPost
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,6 @@ public class Counter extends HttpServlet implements Runnable
|
||||||
*/
|
*/
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
long time = System.currentTimeMillis();
|
|
||||||
// get Request
|
// get Request
|
||||||
HttpServletRequest request = null;
|
HttpServletRequest request = null;
|
||||||
if (m_requests.size() > 0)
|
if (m_requests.size() > 0)
|
||||||
|
@ -134,6 +133,7 @@ public class Counter extends HttpServlet implements Runnable
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
Properties ctx = JSPEnv.getCtx(request);
|
Properties ctx = JSPEnv.getCtx(request);
|
||||||
String ref = request.getHeader("referer");
|
String ref = request.getHeader("referer");
|
||||||
if (ref == null || ref.length() == 0)
|
if (ref == null || ref.length() == 0)
|
||||||
|
|
|
@ -123,6 +123,7 @@ public class ExpenseServlet extends HttpServlet
|
||||||
HttpSession session = request.getSession(true);
|
HttpSession session = request.getSession(true);
|
||||||
session.removeAttribute(WebSessionCtx.HDR_MESSAGE);
|
session.removeAttribute(WebSessionCtx.HDR_MESSAGE);
|
||||||
//
|
//
|
||||||
|
@SuppressWarnings("unused")
|
||||||
Properties ctx = JSPEnv.getCtx(request);
|
Properties ctx = JSPEnv.getCtx(request);
|
||||||
WebUser wu = (WebUser)session.getAttribute(WebUser.NAME);
|
WebUser wu = (WebUser)session.getAttribute(WebUser.NAME);
|
||||||
if (wu == null)
|
if (wu == null)
|
||||||
|
|
|
@ -102,6 +102,7 @@ public class InfoServlet extends HttpServlet
|
||||||
// WEnv.dump(session);
|
// WEnv.dump(session);
|
||||||
// WEnv.dump(request);
|
// WEnv.dump(request);
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
boolean success = processParameter(request);
|
boolean success = processParameter(request);
|
||||||
|
|
||||||
String url = "/info.jsp";
|
String url = "/info.jsp";
|
||||||
|
@ -182,6 +183,7 @@ public class InfoServlet extends HttpServlet
|
||||||
private void sendEMail (HttpServletRequest request, WebUser wu,
|
private void sendEMail (HttpServletRequest request, WebUser wu,
|
||||||
String listName, boolean subscribe)
|
String listName, boolean subscribe)
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
String msg = JSPEnv.sendEMail(request, wu,
|
String msg = JSPEnv.sendEMail(request, wu,
|
||||||
subscribe ? MMailMsg.MAILMSGTYPE_Subscribe : MMailMsg.MAILMSGTYPE_UnSubscribe,
|
subscribe ? MMailMsg.MAILMSGTYPE_Subscribe : MMailMsg.MAILMSGTYPE_UnSubscribe,
|
||||||
new Object[]{listName, wu.getName(), listName});
|
new Object[]{listName, wu.getName(), listName});
|
||||||
|
|
|
@ -94,6 +94,7 @@ public class IssueReportServlet extends HttpServlet
|
||||||
{
|
{
|
||||||
log.info("From " + request.getRemoteHost() + " - " + request.getRemoteAddr());
|
log.info("From " + request.getRemoteHost() + " - " + request.getRemoteAddr());
|
||||||
Properties ctx = JSPEnv.getCtx(request);
|
Properties ctx = JSPEnv.getCtx(request);
|
||||||
|
@SuppressWarnings("unused")
|
||||||
HttpSession session = request.getSession(true);
|
HttpSession session = request.getSession(true);
|
||||||
// WEnv.dump(session);
|
// WEnv.dump(session);
|
||||||
// WEnv.dump(request);
|
// WEnv.dump(request);
|
||||||
|
|
|
@ -107,7 +107,8 @@ public class LocationServlet extends HttpServlet
|
||||||
throws ServletException, IOException
|
throws ServletException, IOException
|
||||||
{
|
{
|
||||||
log.info("From " + request.getRemoteHost() + " - " + request.getRemoteAddr());
|
log.info("From " + request.getRemoteHost() + " - " + request.getRemoteAddr());
|
||||||
HttpSession session = request.getSession(true);
|
@SuppressWarnings("unused")
|
||||||
|
HttpSession session = request.getSession(true);
|
||||||
Properties ctx = JSPEnv.getCtx(request);
|
Properties ctx = JSPEnv.getCtx(request);
|
||||||
MLocation loc = new MLocation (ctx, 0, null);
|
MLocation loc = new MLocation (ctx, 0, null);
|
||||||
response.setHeader("Cache-Control", "no-cache");
|
response.setHeader("Cache-Control", "no-cache");
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class LocationTag extends TagSupport
|
||||||
|
|
||||||
// CSS Classes
|
// CSS Classes
|
||||||
private static final String C_MANDATORY = "mandatory";
|
private static final String C_MANDATORY = "mandatory";
|
||||||
private static final String C_ERROR = "error";
|
//private static final String C_ERROR = "error";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set Country
|
* Set Country
|
||||||
|
|
|
@ -65,6 +65,7 @@ public class PriceListProduct
|
||||||
/** Attribute Name */
|
/** Attribute Name */
|
||||||
public static final String NAME = "PriceListProduct";
|
public static final String NAME = "PriceListProduct";
|
||||||
/** Logging */
|
/** Logging */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private CLogger log = CLogger.getCLogger(getClass());
|
private CLogger log = CLogger.getCLogger(getClass());
|
||||||
|
|
||||||
private int m_Product_ID;
|
private int m_Product_ID;
|
||||||
|
|
|
@ -140,6 +140,7 @@ public class RegistrationServlet extends HttpServlet
|
||||||
if (startDate == null)
|
if (startDate == null)
|
||||||
startDate = new Timestamp(System.currentTimeMillis());
|
startDate = new Timestamp(System.currentTimeMillis());
|
||||||
boolean allowPublish = WebUtil.getParameterAsBoolean (request, "IsAllowPublish", "Y");
|
boolean allowPublish = WebUtil.getParameterAsBoolean (request, "IsAllowPublish", "Y");
|
||||||
|
@SuppressWarnings("unused")
|
||||||
boolean registered = WebUtil.getParameterAsBoolean (request, "IsRegistered", "Y");
|
boolean registered = WebUtil.getParameterAsBoolean (request, "IsRegistered", "Y");
|
||||||
int Record_ID = WebUtil.getParameterAsInt(request, "Record_ID");
|
int Record_ID = WebUtil.getParameterAsInt(request, "Record_ID");
|
||||||
|
|
||||||
|
|
|
@ -110,6 +110,7 @@ public class RequestOrderRefTag extends TagSupport
|
||||||
*/
|
*/
|
||||||
private option[] getOrders(int C_BPartner_ID)
|
private option[] getOrders(int C_BPartner_ID)
|
||||||
{
|
{
|
||||||
|
@SuppressWarnings("unused")
|
||||||
Properties ctx = JSPEnv.getCtx((HttpServletRequest)pageContext.getRequest());
|
Properties ctx = JSPEnv.getCtx((HttpServletRequest)pageContext.getRequest());
|
||||||
ArrayList<option> list = new ArrayList<option>();
|
ArrayList<option> list = new ArrayList<option>();
|
||||||
// Optional Element
|
// Optional Element
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue