AbstractG4MApplication g4mApp = (AbstractG4MApplication) AIFUtility.getCurrentApplication(); AbstractG4MContext m_context = g4mApp.getG4MContext(); InterfaceAIFComponent[] interfaceAIFComponents = g4mApp.getTargetComponents(); for(int i=0;i<interfaceAIFComponents.length;i++) { System.out.println("interfaceAIFComponents[i] == "+interfaceAIFComponents[i]); } G4MTreeNode g4mTreeNode = m_context.getTree().getSelectedNode(); if(g4mTreeNode==null) { MessageBox.post("请选择分类!", "提示", MessageBox.INFORMATION); return null; }