Removing unused showEditor method, test 84227 release61_base
authorMax Sauer <msauer@netbeans.org>
Thu, 03 Apr 2008 14:15:54 +0200
changeset 11831acd3e740b6f5
parent 11830 05347aa6185d
child 11832 bbdd5e1a1d4f
Removing unused showEditor method, test 84227
a11ychecker/src/org/netbeans/modules/a11ychecker/output/ResultPanel.form
a11ychecker/src/org/netbeans/modules/a11ychecker/output/ResultPanel.java
     1.1 --- a/a11ychecker/src/org/netbeans/modules/a11ychecker/output/ResultPanel.form	Thu Apr 03 13:54:08 2008 +0200
     1.2 +++ b/a11ychecker/src/org/netbeans/modules/a11ychecker/output/ResultPanel.form	Thu Apr 03 14:15:54 2008 +0200
     1.3 @@ -27,7 +27,7 @@
     1.4                <Group type="103" groupAlignment="0" attributes="0">
     1.5                    <Group type="102" alignment="0" attributes="0">
     1.6                        <EmptySpace max="-2" attributes="0"/>
     1.7 -                      <Component id="jScrollPane1" pref="706" max="32767" attributes="0"/>
     1.8 +                      <Component id="jScrollPane1" pref="766" max="32767" attributes="0"/>
     1.9                    </Group>
    1.10                    <Group type="102" alignment="0" attributes="0">
    1.11                        <EmptySpace min="-2" pref="13" max="-2" attributes="0"/>
     2.1 --- a/a11ychecker/src/org/netbeans/modules/a11ychecker/output/ResultPanel.java	Thu Apr 03 13:54:08 2008 +0200
     2.2 +++ b/a11ychecker/src/org/netbeans/modules/a11ychecker/output/ResultPanel.java	Thu Apr 03 14:15:54 2008 +0200
     2.3 @@ -418,54 +418,6 @@
     2.4      }
     2.5  
     2.6      /**
     2.7 -     * XXX remove
     2.8 -     * obsolete
     2.9 -     * Shows property editor for a component
    2.10 -     * @param comp the component which property is edited
    2.11 -     * @param beanPropertyName which property
    2.12 -     */
    2.13 -    private void showEditor(RADComponent comp, String beanPropertyName) {
    2.14 -        try {
    2.15 -            RADProperty props[] = comp.getAllBeanProperties();
    2.16 -            RADProperty rProp = comp.getBeanProperty("icon");   //NOI18N
    2.17 -            //java.util.List actionProps = comp.getActionProperties();
    2.18 -//            RADComponentNode rNode = new RADComponentNode(comp);
    2.19 -//            FormProperty fProp = rNode.getProperty(beanPropertyName);
    2.20 -//            Action[] actions = rNode.getActions(false);
    2.21 -
    2.22 -//            java.util.List actionProps = comp.getActionProperties();
    2.23 -//                Iterator iter = actionProps.iterator();
    2.24 -//                while (iter.hasNext()) {
    2.25 -//                    final RADProperty prop = (RADProperty)iter.next();
    2.26 -//                    Action action = PropertyAction.createIfEditable(prop);
    2.27 -//                    if (action != null) {
    2.28 -//                        action.actionPerformed(null);
    2.29 -//                    }
    2.30 -//                }
    2.31 -
    2.32 -//            ((Action)Array.get(actions, 17)).actionPerformed(null);
    2.33 -//            
    2.34 -//            for (int i = 0; i < actions.length; i++) {
    2.35 -//                Action action = actions[i];
    2.36 -//                if(action instanceof org.netbeans.modules.form.actions.PropertyAction) {
    2.37 -//                    System.out.println("### PrppertyAction " + action);
    2.38 -//                    ((PropertyAction) action).actionPerformed(null);
    2.39 -//                }
    2.40 -//            }
    2.41 -
    2.42 -
    2.43 -            FormProperty prop = comp.getBeanProperty(beanPropertyName);
    2.44 -            //new PropertyAction(prop).actionPerformed(null);
    2.45 -
    2.46 -            Action action = PropertyAction.createIfEditable(prop);
    2.47 -            action.actionPerformed(null);
    2.48 -
    2.49 -        } catch (Throwable th) {
    2.50 -            th.printStackTrace();
    2.51 -        }
    2.52 -    }
    2.53 -
    2.54 -    /**
    2.55       * Sets up dialog for editing LabelFor
    2.56       */
    2.57      private DialogDescriptor createLabelForEditorDescriptor(final FormDesigner formDesigner, final LabelForPropertyPanel panel, final String header, final RADVisualComponent rvc) {