diff options
author | sb <sb@openoffice.org> | 2009-12-09 14:34:43 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2009-12-09 14:34:43 +0100 |
commit | 55d7592433bf4b70bdd4bcbe957eabf9052de44e (patch) | |
tree | 8d2919cbd101ff5679a4491b7753edc64f504633 /wizards/com/sun/star/wizards/table | |
parent | ab4665ed577af9969e27684bb7b83e31e0546cac (diff) |
sb111: #i107556# do not depend on order of XNameAccess::getElementNames; removed some unused com.sun.star.wizards code
Diffstat (limited to 'wizards/com/sun/star/wizards/table')
-rw-r--r-- | wizards/com/sun/star/wizards/table/CGCategory.java | 6 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/table/FieldDescription.java | 3 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/table/ScenarioSelector.java | 16 |
3 files changed, 6 insertions, 19 deletions
diff --git a/wizards/com/sun/star/wizards/table/CGCategory.java b/wizards/com/sun/star/wizards/table/CGCategory.java index 4179011cb368..06c8a6b28b23 100644 --- a/wizards/com/sun/star/wizards/table/CGCategory.java +++ b/wizards/com/sun/star/wizards/table/CGCategory.java @@ -59,12 +59,14 @@ public class CGCategory xMSF = _xMSF; } - public void initialize(int _index) + public void initialize(String category) { try { oconfigView = Configuration.getConfigurationRoot(xMSF, CGROOTPATH, false); //business/Tables - xNameAccessCurBusinessNode = Configuration.getChildNodebyIndex(oconfigView, _index); + xNameAccessCurBusinessNode = Configuration.getChildNodebyName( + UnoRuntime.queryInterface(XNameAccess.class, oconfigView), + category); } catch (Exception e) { diff --git a/wizards/com/sun/star/wizards/table/FieldDescription.java b/wizards/com/sun/star/wizards/table/FieldDescription.java index 7c4b2bcaa409..8d75de343c11 100644 --- a/wizards/com/sun/star/wizards/table/FieldDescription.java +++ b/wizards/com/sun/star/wizards/table/FieldDescription.java @@ -42,8 +42,6 @@ import com.sun.star.wizards.common.Properties; public class FieldDescription { - - int category; private String tablename = ""; // String fieldname; private String keyname; @@ -63,7 +61,6 @@ public class FieldDescription { xMSF = _xMSF; aLocale = _aLocale; - category = _curscenarioselector.getCategory(); tablename = _curscenarioselector.getTableName(); Name = _fieldname; keyname = _keyname; diff --git a/wizards/com/sun/star/wizards/table/ScenarioSelector.java b/wizards/com/sun/star/wizards/table/ScenarioSelector.java index cf0389b84ff3..831c4e7d5a35 100644 --- a/wizards/com/sun/star/wizards/table/ScenarioSelector.java +++ b/wizards/com/sun/star/wizards/table/ScenarioSelector.java @@ -168,19 +168,6 @@ public class ScenarioSelector extends FieldSelection implements XItemListener, X initializeCategory(BUSINESS); } - public int getCategory() - { - if (optBusiness.getState()) - { - curcategory = BUSINESS; - } - else - { - curcategory = PRIVATE; - } - return curcategory; - } - public void selectCategory() { if (optBusiness.getState()) @@ -197,7 +184,8 @@ public class ScenarioSelector extends FieldSelection implements XItemListener, X { try { - oCGCategory.initialize(_iCategory); + oCGCategory.initialize( + _iCategory == PRIVATE ? "private" : "business"); xTableListBox.removeItems((short) 0, xTableListBox.getItemCount()); xTableListBox.addItems(oCGCategory.getTableNames(), (short) _iCategory); initializeTable(0); |