Package org.pdtextensions.core.ui.actions.GenerateGettersHandler

Examples of org.pdtextensions.core.ui.actions.GenerateGettersHandler.GetterSetterEntry


    public boolean select(Viewer viewer, Object parentElement,
        Object element) {

      if (element instanceof GetterSetterEntry) {
     
        GetterSetterEntry entry = (GetterSetterEntry) element;
       
        try {
          for (IMethod method : type.getMethods()) {
       
            if (entry.isGetter) {             
              if (method.getElementName().compareToIgnoreCase("get" + entry.getRawFieldName()) == 0) {
                return false;
              }
            } else {
              if (method.getElementName().compareToIgnoreCase("set" + entry.getRawFieldName()) == 0) {
                return false;
              }             
            }
          }
        } catch (ModelException e) {
View Full Code Here

TOP

Related Classes of org.pdtextensions.core.ui.actions.GenerateGettersHandler.GetterSetterEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.