diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-17 10:33:26 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-12-19 10:41:53 +0200 |
commit | a96c308e52983b7bc0275e31e50a9b04e5805852 (patch) | |
tree | 33289e40c39985645766481ce22666039cd7db5c /wizards/com/sun/star/wizards/table | |
parent | 0897aae2c7759015a5b71d705240ac00ce5ddedd (diff) |
java: these fields can be converted to local variables
Change-Id: Ifefb5de196a3e5cbaa8945759da42886c69daacf
Diffstat (limited to 'wizards/com/sun/star/wizards/table')
4 files changed, 4 insertions, 8 deletions
diff --git a/wizards/com/sun/star/wizards/table/CGCategory.java b/wizards/com/sun/star/wizards/table/CGCategory.java index 5c2c3ad00412..c0a1148f9016 100644 --- a/wizards/com/sun/star/wizards/table/CGCategory.java +++ b/wizards/com/sun/star/wizards/table/CGCategory.java @@ -34,7 +34,6 @@ public class CGCategory private XMultiServiceFactory xMSF; XNameAccess xNameAccessTablesNode; private XNameAccess xNameAccessCurBusinessNode; - private Object oconfigView; public CGCategory(XMultiServiceFactory _xMSF) { @@ -45,7 +44,7 @@ public class CGCategory { try { - oconfigView = Configuration.getConfigurationRoot(xMSF, CGROOTPATH, false); //business/Tables + Object oconfigView = Configuration.getConfigurationRoot(xMSF, CGROOTPATH, false); //business/Tables xNameAccessCurBusinessNode = Configuration.getChildNodebyName( UnoRuntime.queryInterface(XNameAccess.class, oconfigView), category); diff --git a/wizards/com/sun/star/wizards/table/CGTable.java b/wizards/com/sun/star/wizards/table/CGTable.java index 0d4d8e0ad8b2..1b6313b4bba2 100644 --- a/wizards/com/sun/star/wizards/table/CGTable.java +++ b/wizards/com/sun/star/wizards/table/CGTable.java @@ -28,7 +28,6 @@ public class CGTable private XMultiServiceFactory xMSF; XNameAccess xNameAccessFieldsNode; - private XNameAccess xNameAccessTableNode; public CGTable(XMultiServiceFactory _xMSF) { @@ -39,7 +38,7 @@ public class CGTable { try { - xNameAccessTableNode = Configuration.getChildNodebyIndex(_xNameAccessParentNode, _index); + XNameAccess xNameAccessTableNode = Configuration.getChildNodebyIndex(_xNameAccessParentNode, _index); xNameAccessFieldsNode = Configuration.getChildNodebyName(xNameAccessTableNode, "Fields"); } catch (Exception e) diff --git a/wizards/com/sun/star/wizards/table/FieldFormatter.java b/wizards/com/sun/star/wizards/table/FieldFormatter.java index 97dcf3b70e2c..1e79d2964286 100644 --- a/wizards/com/sun/star/wizards/table/FieldFormatter.java +++ b/wizards/com/sun/star/wizards/table/FieldFormatter.java @@ -46,7 +46,6 @@ public class FieldFormatter implements XItemListener private Object oColumnDescriptorModel; private XTextComponent txtfieldname; private XListBox xlstFieldNames; - private XButton btnplus; private XButton btnminus; private XButton btnShiftUp; private XButton btnShiftDown; @@ -144,7 +143,7 @@ public class FieldFormatter implements XItemListener oFontDesc, 14, "HID:WIZARDS_HID_DLGTABLE_CMDMINUS", "-", 118, 175, IFieldFormatStep, Short.valueOf(curtabindex++), 14 }); - btnplus = CurUnoDialog.insertButton("btnplus", new XActionListenerAdapter() { + XButton btnplus = CurUnoDialog.insertButton("btnplus", new XActionListenerAdapter() { @Override public void actionPerformed(ActionEvent event) { addFieldName(); diff --git a/wizards/com/sun/star/wizards/table/Finalizer.java b/wizards/com/sun/star/wizards/table/Finalizer.java index 5e83129b5636..13414695d702 100644 --- a/wizards/com/sun/star/wizards/table/Finalizer.java +++ b/wizards/com/sun/star/wizards/table/Finalizer.java @@ -33,7 +33,6 @@ public class Finalizer { private TableWizard CurUnoDialog; - private short curtabindex; private XRadioButton optModifyTable; private XRadioButton optWorkWithTable; private XTextComponent txtTableName; @@ -50,7 +49,7 @@ public class Finalizer { this.CurUnoDialog = _CurUnoDialog; this.curtabledescriptor = _curtabledescriptor; - curtabindex = (short) (TableWizard.SOFINALPAGE * 100); + short curtabindex = (short) (TableWizard.SOFINALPAGE * 100); Integer IFINALSTEP = Integer.valueOf(TableWizard.SOFINALPAGE); String slblTableName = CurUnoDialog.m_oResource.getResText(UIConsts.RID_TABLE + 34); String slblProceed = CurUnoDialog.m_oResource.getResText(UIConsts.RID_TABLE + 36); |