Merge 7f170d6a43f8

This commit is contained in:
Heng Sin Low 2012-12-14 16:50:32 +08:00
commit 12de6319d2
140 changed files with 259 additions and 201 deletions

View File

@ -1536,5 +1536,5 @@ UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2009-01-30 20:03:13','YYYY-M
UPDATE AD_Tab SET AD_Column_ID=56765,Updated=TO_DATE('2009-02-01 19:49:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53190 UPDATE AD_Tab SET AD_Column_ID=56765,Updated=TO_DATE('2009-02-01 19:49:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53190
; ;
SELECT register_migration_script('WS001_WebServices.sql') FROM dual SELECT register_migration_script('201212131723_WS001_WebServices.sql') FROM dual
; ;

View File

@ -30,5 +30,5 @@ INSERT INTO WS_WebServiceMethod (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Descri
INSERT INTO WS_WebServiceMethod (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Description,IsActive,Name,Updated,UpdatedBy,Value,WS_WebService_ID,WS_WebServiceMethod_ID) VALUES (0,0,TO_DATE('2009-01-30 19:22:50','YYYY-MM-DD HH24:MI:SS'),100,'Access records via conditions on columns - return data rows','Y','Query Data',TO_DATE('2009-01-30 19:22:50','YYYY-MM-DD HH24:MI:SS'),100,'queryData',50001,50028) INSERT INTO WS_WebServiceMethod (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Description,IsActive,Name,Updated,UpdatedBy,Value,WS_WebService_ID,WS_WebServiceMethod_ID) VALUES (0,0,TO_DATE('2009-01-30 19:22:50','YYYY-MM-DD HH24:MI:SS'),100,'Access records via conditions on columns - return data rows','Y','Query Data',TO_DATE('2009-01-30 19:22:50','YYYY-MM-DD HH24:MI:SS'),100,'queryData',50001,50028)
; ;
SELECT register_migration_script('WS002_WebServicesDefinition.sql') FROM dual SELECT register_migration_script('201212131724_WS002_WebServicesDefinition.sql') FROM dual
; ;

View File

@ -81,5 +81,5 @@ INSERT INTO WS_WebServiceFieldInput (AD_Client_ID,AD_Column_ID,AD_Org_ID,Created
INSERT INTO WS_WebServiceTypeAccess (AD_Client_ID,AD_Org_ID,AD_Role_ID,Created,CreatedBy,IsActive,IsReadWrite,Updated,UpdatedBy,WS_WebServiceType_ID) VALUES (11,0,50004,TO_DATE('2009-01-30 19:50:41','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y',TO_DATE('2009-01-30 19:50:41','YYYY-MM-DD HH24:MI:SS'),100,50001) INSERT INTO WS_WebServiceTypeAccess (AD_Client_ID,AD_Org_ID,AD_Role_ID,Created,CreatedBy,IsActive,IsReadWrite,Updated,UpdatedBy,WS_WebServiceType_ID) VALUES (11,0,50004,TO_DATE('2009-01-30 19:50:41','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y',TO_DATE('2009-01-30 19:50:41','YYYY-MM-DD HH24:MI:SS'),100,50001)
; ;
SELECT register_migration_script('WS003_WebServicesConfigGardenWorldSample.sql') FROM dual SELECT register_migration_script('201212131725_WS003_WebServicesConfigGardenWorldSample.sql') FROM dual
; ;

View File

@ -0,0 +1,4 @@
update AD_Column set SeqNo=2 WHERE AD_Column_ID=56714;
SELECT register_migration_script('201212131726_WS004_WebServicesFixDict.sql') FROM dual
;

View File

@ -64,6 +64,16 @@ INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Clien
ALTER TABLE WS_WebServiceFieldInput ADD IdentifierLogic NVARCHAR2(2000) DEFAULT NULL ALTER TABLE WS_WebServiceFieldInput ADD IdentifierLogic NVARCHAR2(2000) DEFAULT NULL
; ;
-- Dec 12, 2012 9:33:11 PM IST
-- IDEMPIERE-460 Adding support for composite service
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-12-12 21:33:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=202042
;
-- Dec 12, 2012 9:33:22 PM IST
-- IDEMPIERE-460 Adding support for composite service
UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2012-12-12 21:33:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=202041
;
-- Dec 12, 2012 9:36:10 PM IST -- Dec 12, 2012 9:36:10 PM IST
-- IDEMPIERE-460 Adding support for composite service -- IDEMPIERE-460 Adding support for composite service
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable) VALUES (0,'N','N',0,53166,202044,'D','N','N','N',0,'N',1,'N',20,'N',382,'N','Y','f0baaca8-7437-4a9d-a02d-26827b0b54b2','Y','IsIdentifier','This column is part of the record identifier','N','The Identifier checkbox indicates that this column is part of the identifier or key for this table. ','Identifier','Y',100,TO_DATE('2012-12-12 21:36:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-12-12 21:36:09','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N') INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,IsEncrypted,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable) VALUES (0,'N','N',0,53166,202044,'D','N','N','N',0,'N',1,'N',20,'N',382,'N','Y','f0baaca8-7437-4a9d-a02d-26827b0b54b2','Y','IsIdentifier','This column is part of the record identifier','N','The Identifier checkbox indicates that this column is part of the identifier or key for this table. ','Identifier','Y',100,TO_DATE('2012-12-12 21:36:09','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-12-12 21:36:09','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N')
@ -116,7 +126,6 @@ ALTER TABLE WS_WebServiceFieldInput MODIFY IsIdentifier CHAR(1) DEFAULT 'N'
-- Dec 12, 2012 10:36:44 PM IST -- Dec 12, 2012 10:36:44 PM IST
-- IDEMPIERE-460 Adding support for composite service -- IDEMPIERE-460 Adding support for composite service
INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('WS_WebServiceType_UU',200594,'D','WS_WebServiceType_UU','WS_WebServiceType_UU','1be8e032-ddc3-489c-8c3d-9a4416968d32',0,TO_DATE('2012-12-12 22:36:43','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-12-12 22:36:43','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y') INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('WS_WebServiceType_UU',200594,'D','WS_WebServiceType_UU','WS_WebServiceType_UU','1be8e032-ddc3-489c-8c3d-9a4416968d32',0,TO_DATE('2012-12-12 22:36:43','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-12-12 22:36:43','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y')
@ -246,7 +255,6 @@ ALTER TABLE WS_WebServiceTypeAccess ADD WS_WebServiceTypeAccess_UU NVARCHAR2(36)
-- Dec 12, 2012 11:49:01 PM IST -- Dec 12, 2012 11:49:01 PM IST
-- IDEMPIERE-460 Adding support for composite service -- IDEMPIERE-460 Adding support for composite service
UPDATE AD_Column SET MandatoryLogic='@AD_Column_ID@=0',Updated=TO_DATE('2012-12-12 23:49:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=202041 UPDATE AD_Column SET MandatoryLogic='@AD_Column_ID@=0',Updated=TO_DATE('2012-12-12 23:49:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=202041
@ -609,13 +617,13 @@ UPDATE AD_Field SET XPosition=2,Updated=TO_DATE('2012-12-13 00:16:09','YYYY-MM-D
-- Dec 13, 2012 4:27:02 PM IST -- Dec 13, 2012 4:27:02 PM IST
-- IDEMPIERE-460 Adding support for composite service -- IDEMPIERE-460 Adding support for composite service
INSERT INTO WS_WebService (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Help,IsActive,WS_WebService_ID,Name,Updated,UpdatedBy,Value,WS_WebService_UU) VALUES (0,0,TO_DATE('2012-12-13 16:26:45','YYYY-MM-DD HH24:MI:SS'),100,'Composite service','Y',200001,'CompositeInterface',TO_DATE('2012-12-13 16:26:45','YYYY-MM-DD HH24:MI:SS'),100,'CompositeInterface','df6cc221-05a7-403f-8abb-bdf24344094a') INSERT INTO WS_WebService (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Help,IsActive,WS_WebService_ID,Name,Updated,UpdatedBy,Value) VALUES (0,0,TO_DATE('2012-12-13 16:26:45','YYYY-MM-DD HH24:MI:SS'),100,'Composite service','Y',200001,'CompositeInterface',TO_DATE('2012-12-13 16:26:45','YYYY-MM-DD HH24:MI:SS'),100,'CompositeInterface')
; ;
-- Dec 13, 2012 4:27:28 PM IST -- Dec 13, 2012 4:27:28 PM IST
-- IDEMPIERE-460 Adding support for composite service -- IDEMPIERE-460 Adding support for composite service
INSERT INTO WS_WebServiceMethod (CreatedBy,AD_Client_ID,AD_Org_ID,Created,IsActive,WS_WebServiceMethod_ID,Name,Updated,UpdatedBy,Value,WS_WebService_ID,WS_WebServiceMethod_UU) VALUES (100,0,0,TO_DATE('2012-12-13 16:27:27','YYYY-MM-DD HH24:MI:SS'),'Y',200001,'composite',TO_DATE('2012-12-13 16:27:27','YYYY-MM-DD HH24:MI:SS'),100,'composite',200001,'a3a5ce29-792a-4e99-b0c9-68779fdc89e3') INSERT INTO WS_WebServiceMethod (CreatedBy,AD_Client_ID,AD_Org_ID,Created,IsActive,WS_WebServiceMethod_ID,Name,Updated,UpdatedBy,Value,WS_WebService_ID) VALUES (100,0,0,TO_DATE('2012-12-13 16:27:27','YYYY-MM-DD HH24:MI:SS'),'Y',200001,'composite',TO_DATE('2012-12-13 16:27:27','YYYY-MM-DD HH24:MI:SS'),100,'composite',200001)
; ;
SELECT register_migration_script('WS005_IdempiereWebservice.sql') FROM dual SELECT register_migration_script('201212131727_WS005_IdempiereWebservice.sql') FROM dual
; ;

View File

@ -1536,5 +1536,5 @@ UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2009-01-30 20:03:13','Y
UPDATE AD_Tab SET AD_Column_ID=56765,Updated=TO_TIMESTAMP('2009-02-01 19:49:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53190 UPDATE AD_Tab SET AD_Column_ID=56765,Updated=TO_TIMESTAMP('2009-02-01 19:49:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53190
; ;
SELECT register_migration_script('WS001_WebServices.sql') FROM dual SELECT register_migration_script('201212131723_WS001_WebServices.sql') FROM dual
; ;

View File

@ -1,3 +1,5 @@
-- Jan 30, 2009 7:13:26 PM COT
-- Web Service Definition and Security
INSERT INTO WS_WebService (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Description,Help,IsActive,Name,Updated,UpdatedBy,Value,WS_WebService_ID) VALUES (0,0,TO_TIMESTAMP('2009-01-30 19:17:43','YYYY-MM-DD HH24:MI:SS'),100,'Contributed by http://www.globalqss.com - implemented security','This web services are very generic - so it''s necessary to configure the security layer in the web services security window to make them work. You can take a look to GardenWorld samples.','Y','Model Oriented Web Services',TO_TIMESTAMP('2009-01-30 19:17:43','YYYY-MM-DD HH24:MI:SS'),100,'ModelADService',50001) INSERT INTO WS_WebService (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Description,Help,IsActive,Name,Updated,UpdatedBy,Value,WS_WebService_ID) VALUES (0,0,TO_TIMESTAMP('2009-01-30 19:17:43','YYYY-MM-DD HH24:MI:SS'),100,'Contributed by http://www.globalqss.com - implemented security','This web services are very generic - so it''s necessary to configure the security layer in the web services security window to make them work. You can take a look to GardenWorld samples.','Y','Model Oriented Web Services',TO_TIMESTAMP('2009-01-30 19:17:43','YYYY-MM-DD HH24:MI:SS'),100,'ModelADService',50001)
; ;
@ -28,5 +30,5 @@ INSERT INTO WS_WebServiceMethod (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Descri
INSERT INTO WS_WebServiceMethod (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Description,IsActive,Name,Updated,UpdatedBy,Value,WS_WebService_ID,WS_WebServiceMethod_ID) VALUES (0,0,TO_TIMESTAMP('2009-01-30 19:22:50','YYYY-MM-DD HH24:MI:SS'),100,'Access records via conditions on columns - return data rows','Y','Query Data',TO_TIMESTAMP('2009-01-30 19:22:50','YYYY-MM-DD HH24:MI:SS'),100,'queryData',50001,50028) INSERT INTO WS_WebServiceMethod (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Description,IsActive,Name,Updated,UpdatedBy,Value,WS_WebService_ID,WS_WebServiceMethod_ID) VALUES (0,0,TO_TIMESTAMP('2009-01-30 19:22:50','YYYY-MM-DD HH24:MI:SS'),100,'Access records via conditions on columns - return data rows','Y','Query Data',TO_TIMESTAMP('2009-01-30 19:22:50','YYYY-MM-DD HH24:MI:SS'),100,'queryData',50001,50028)
; ;
SELECT register_migration_script('WS002_WebServicesDefinition.sql') FROM dual SELECT register_migration_script('201212131724_WS002_WebServicesDefinition.sql') FROM dual
; ;

View File

@ -81,5 +81,5 @@ INSERT INTO WS_WebServiceFieldInput (AD_Client_ID,AD_Column_ID,AD_Org_ID,Created
INSERT INTO WS_WebServiceTypeAccess (AD_Client_ID,AD_Org_ID,AD_Role_ID,Created,CreatedBy,IsActive,IsReadWrite,Updated,UpdatedBy,WS_WebServiceType_ID) VALUES (11,0,50004,TO_TIMESTAMP('2009-01-30 19:50:41','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y',TO_TIMESTAMP('2009-01-30 19:50:41','YYYY-MM-DD HH24:MI:SS'),100,50001) INSERT INTO WS_WebServiceTypeAccess (AD_Client_ID,AD_Org_ID,AD_Role_ID,Created,CreatedBy,IsActive,IsReadWrite,Updated,UpdatedBy,WS_WebServiceType_ID) VALUES (11,0,50004,TO_TIMESTAMP('2009-01-30 19:50:41','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y',TO_TIMESTAMP('2009-01-30 19:50:41','YYYY-MM-DD HH24:MI:SS'),100,50001)
; ;
SELECT register_migration_script('WS003_WebServicesConfigGardenWorldSample.sql') FROM dual SELECT register_migration_script('201212131725_WS003_WebServicesConfigGardenWorldSample.sql') FROM dual
; ;

View File

@ -0,0 +1,4 @@
update AD_Column set SeqNo=2 WHERE AD_Column_ID=56714;
SELECT register_migration_script('201212131726_WS004_WebServicesFixDict.sql') FROM dual
;

View File

@ -617,14 +617,13 @@ UPDATE AD_Field SET XPosition=2,Updated=TO_TIMESTAMP('2012-12-13 00:16:09','YYYY
-- Dec 13, 2012 4:27:02 PM IST -- Dec 13, 2012 4:27:02 PM IST
-- IDEMPIERE-460 Adding support for composite service -- IDEMPIERE-460 Adding support for composite service
INSERT INTO WS_WebService (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Help,IsActive,WS_WebService_ID,Name,Updated,UpdatedBy,Value,WS_WebService_UU) VALUES (0,0,TO_TIMESTAMP('2012-12-13 16:26:45','YYYY-MM-DD HH24:MI:SS'),100,'Composite service','Y',200001,'CompositeInterface',TO_TIMESTAMP('2012-12-13 16:26:45','YYYY-MM-DD HH24:MI:SS'),100,'CompositeInterface','df6cc221-05a7-403f-8abb-bdf24344094a') INSERT INTO WS_WebService (AD_Client_ID,AD_Org_ID,Created,CreatedBy,Help,IsActive,WS_WebService_ID,Name,Updated,UpdatedBy,Value) VALUES (0,0,TO_TIMESTAMP('2012-12-13 16:26:45','YYYY-MM-DD HH24:MI:SS'),100,'Composite service','Y',200001,'CompositeInterface',TO_TIMESTAMP('2012-12-13 16:26:45','YYYY-MM-DD HH24:MI:SS'),100,'CompositeInterface')
; ;
-- Dec 13, 2012 4:27:28 PM IST -- Dec 13, 2012 4:27:28 PM IST
-- IDEMPIERE-460 Adding support for composite service -- IDEMPIERE-460 Adding support for composite service
INSERT INTO WS_WebServiceMethod (CreatedBy,AD_Client_ID,AD_Org_ID,Created,IsActive,WS_WebServiceMethod_ID,Name,Updated,UpdatedBy,Value,WS_WebService_ID,WS_WebServiceMethod_UU) VALUES (100,0,0,TO_TIMESTAMP('2012-12-13 16:27:27','YYYY-MM-DD HH24:MI:SS'),'Y',200001,'composite',TO_TIMESTAMP('2012-12-13 16:27:27','YYYY-MM-DD HH24:MI:SS'),100,'composite',200001,'a3a5ce29-792a-4e99-b0c9-68779fdc89e3') INSERT INTO WS_WebServiceMethod (CreatedBy,AD_Client_ID,AD_Org_ID,Created,IsActive,WS_WebServiceMethod_ID,Name,Updated,UpdatedBy,Value,WS_WebService_ID) VALUES (100,0,0,TO_TIMESTAMP('2012-12-13 16:27:27','YYYY-MM-DD HH24:MI:SS'),'Y',200001,'composite',TO_TIMESTAMP('2012-12-13 16:27:27','YYYY-MM-DD HH24:MI:SS'),100,'composite',200001)
; ;
SELECT register_migration_script('201212131727_WS005_IdempiereWebservice.sql') FROM dual
SELECT register_migration_script('WS005_IdempiereWebservice.sql') FROM dual ;
;

View File

@ -34,9 +34,9 @@ import java.io.FilenameFilter;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Calendar; import java.util.Calendar;
import java.util.Scanner; import java.util.Scanner;
import java.util.Vector;
import java.util.logging.Level; import java.util.logging.Level;
import org.compiere.Adempiere; import org.compiere.Adempiere;
@ -63,7 +63,7 @@ public class PrepareMigrationScripts extends SvrProcess {
// The list of files can also be retrieved as File objects // The list of files can also be retrieved as File objects
File[] dirList = dir.listFiles(); File[] dirList = dir.listFiles();
Vector<String> fileName = new Vector<String>(); ArrayList<String> fileName = new ArrayList<String>();
FilenameFilter filter = new FilenameFilter() { FilenameFilter filter = new FilenameFilter() {
public boolean accept(File dir, String name) { public boolean accept(File dir, String name) {

View File

@ -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;
/** /**

View File

@ -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

View File

@ -61,6 +61,7 @@ public class TestEJB
// //
try try
{ {
@SuppressWarnings("unused")
Status status = (Status)ic.lookup ("Status"); Status status = (Status)ic.lookup ("Status");
// //
} }

View File

@ -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

View File

@ -33,7 +33,6 @@ import java.util.List;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.Properties; import java.util.Properties;
import java.util.Set; import java.util.Set;
import java.util.Vector;
import java.util.logging.Level; import java.util.logging.Level;
import org.adempiere.exceptions.AdempiereException; import org.adempiere.exceptions.AdempiereException;
@ -1881,7 +1880,7 @@ public final class MRole extends X_AD_Role
public String addAccessSQL (String SQL, String TableNameIn, public String addAccessSQL (String SQL, String TableNameIn,
boolean fullyQualified, boolean rw) boolean fullyQualified, boolean rw)
{ {
StringBuffer retSQL = new StringBuffer(); StringBuilder retSQL = new StringBuilder();
// Cut off last ORDER BY clause // Cut off last ORDER BY clause
String orderBy = ""; String orderBy = "";
@ -2494,7 +2493,7 @@ public final class MRole extends X_AD_Role
if (maxIndex <= 0) if (maxIndex <= 0)
return maxIndex; return maxIndex;
// //
final Vector<String> validOptions = new Vector<String>(); final ArrayList<String> validOptions = new ArrayList<String>();
final List<Object> params = new ArrayList<Object>(); final List<Object> params = new ArrayList<Object>();
params.add(clientId); params.add(clientId);
params.add(docTypeId); params.add(docTypeId);
@ -2519,7 +2518,7 @@ public final class MRole extends X_AD_Role
if (roles.size() > 0) { if (roles.size() > 0) {
MDocType doc = new MDocType(getCtx(), docTypeId, get_TrxName()); MDocType doc = new MDocType(getCtx(), docTypeId, get_TrxName());
Vector<String> option = new Vector<String>(); ArrayList<String> option = new ArrayList<String>();
for (int j = 0; j < options.length; j++) { for (int j = 0; j < options.length; j++) {
if (options[j] != null) if (options[j] != null)
option.add(options[j]); option.add(options[j]);

View File

@ -19,8 +19,8 @@ package org.compiere.model;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Properties; import java.util.Properties;
import java.util.logging.Level; import java.util.logging.Level;
@ -133,8 +133,7 @@ public class MTemplate extends X_CM_Template
{ {
StringBuffer subTemplates = new StringBuffer (); StringBuffer subTemplates = new StringBuffer ();
int pos = 0; int pos = 0;
// JJ: if you don't use the value, could you use ArrayList ? ArrayList<String> subTemplateNames = new ArrayList<String> ();
Hashtable<String, String> subTemplateNames = new Hashtable<String, String> ();
while (m_preBuildTemplate.indexOf ("<xsl:call-template", pos) >= 0) while (m_preBuildTemplate.indexOf ("<xsl:call-template", pos) >= 0)
{ {
String thisName = null; String thisName = null;
@ -154,14 +153,12 @@ public class MTemplate extends X_CM_Template
thisName = tempTemplate.substring (tempTemplate thisName = tempTemplate.substring (tempTemplate
.indexOf ("name=\"") + 6, tempTemplate.indexOf ( .indexOf ("name=\"") + 6, tempTemplate.indexOf (
"\"", tempTemplate.indexOf ("name=\"") + 7)); "\"", tempTemplate.indexOf ("name=\"") + 7));
if (!subTemplateNames.containsKey (thisName)) if (!subTemplateNames.contains(thisName))
subTemplateNames.put (thisName, "0"); subTemplateNames.add(thisName);
} }
} }
Enumeration<String> thisEnum = subTemplateNames.keys (); for (String thisElement : subTemplateNames)
while (thisEnum.hasMoreElements ())
{ {
String thisElement = thisEnum.nextElement ().toString ();
int[] templateIDs = MTemplate.getAllIDs ("CM_Template", int[] templateIDs = MTemplate.getAllIDs ("CM_Template",
"Value LIKE '" + thisElement "Value LIKE '" + thisElement
+ "' AND CM_WebProject_ID=" + "' AND CM_WebProject_ID="

View File

@ -1,7 +1,7 @@
package org.compiere.print; package org.compiere.print;
import java.util.ArrayList;
import java.util.Properties; import java.util.Properties;
import java.util.Vector;
import java.util.logging.Level; import java.util.logging.Level;
import org.compiere.model.MProcess; import org.compiere.model.MProcess;
@ -90,7 +90,7 @@ public class ServerReportCtl {
ProcessInfo pi = new ProcessInfo ("", format.getJasperProcess_ID()); ProcessInfo pi = new ProcessInfo ("", format.getJasperProcess_ID());
pi.setPrintPreview( !IsDirectPrint ); pi.setPrintPreview( !IsDirectPrint );
pi.setRecord_ID ( Record_ID ); pi.setRecord_ID ( Record_ID );
Vector<ProcessInfoParameter> jasperPrintParams = new Vector<ProcessInfoParameter>(); ArrayList<ProcessInfoParameter> jasperPrintParams = new ArrayList<ProcessInfoParameter>();
ProcessInfoParameter pip; ProcessInfoParameter pip;
if (printerName!=null && printerName.trim().length()>0) { if (printerName!=null && printerName.trim().length()>0) {
// Override printer name // Override printer name

View File

@ -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 --------------------------

View File

@ -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

View File

@ -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

View File

@ -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);
/************************************************************************** /**************************************************************************

View File

@ -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;
} }

View File

@ -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;

View File

@ -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
/* /*

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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));

View File

@ -52,7 +52,7 @@ public class GridTab2PackExporter implements IGridTabExporter {
List<PackoutItem> packoutItems = new ArrayList<PackoutItem>(); List<PackoutItem> packoutItems = new ArrayList<PackoutItem>();
if (packOut.getHandler(tableName) == null) { if (packOut.getHandler(tableName) == null) {
properties.put(DataElementParameters.AD_TABLE_ID, gridTab.getAD_Table_ID()); properties.put(DataElementParameters.AD_TABLE_ID, gridTab.getAD_Table_ID());
StringBuffer sql = new StringBuffer("SELECT * FROM "); StringBuilder sql = new StringBuilder("SELECT * FROM ");
sql.append(tableName); sql.append(tableName);
if (currentRowOnly) { if (currentRowOnly) {
sql.append(" WHERE ").append(gridTab.getTableModel().getWhereClause(gridTab.getCurrentRow())); sql.append(" WHERE ").append(gridTab.getTableModel().getWhereClause(gridTab.getCurrentRow()));

View File

@ -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;

View File

@ -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);

View File

@ -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

View File

@ -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;

View File

@ -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);
/** /**

View File

@ -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);

View File

@ -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++)

View File

@ -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) {

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;
} }

View File

@ -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;
/** /**

View File

@ -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;
/** /**

View File

@ -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

View File

@ -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()),

View File

@ -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();
} }

View File

@ -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;

View File

@ -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();

View File

@ -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();

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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)

View File

@ -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);

View File

@ -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"));

View File

@ -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"));

View File

@ -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"));

View File

@ -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());

View File

@ -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]);
} }

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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();
} }
}); });

View File

@ -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;

View File

@ -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

View File

@ -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()));

View File

@ -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("");

View File

@ -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())
{ {

View File

@ -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;

View File

@ -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;

View File

@ -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 */

View File

@ -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;
/** /**

View File

@ -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())
{ {
} }

View File

@ -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

View File

@ -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);

View File

@ -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
*/ */

View File

@ -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;
// //

View File

@ -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 = "";

View File

@ -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;

View File

@ -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++)
{ {

View File

@ -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;

View File

@ -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();

View File

@ -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 );

View File

@ -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()));
// //

View File

@ -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());

View File

@ -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

View File

@ -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);

View File

@ -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;

View File

@ -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";

View File

@ -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";

View File

@ -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")

View File

@ -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);
/** /**

View File

@ -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>();

View File

@ -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

View File

@ -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);

Some files were not shown because too many files have changed in this diff Show More