}
private Vector<String> getFBTypeComponentList( String fbName,
boolean isEvent, boolean isInput){
boolean isResource = getElement().getParentNode().getNodeName().equalsIgnoreCase("Resource");
GraphModel model = GraphModel.forElement(isResource ?
(Element) getElement().getParentNode() : getElement());
Vector<String> fbTypeComponentList = new Vector<String>();
String connectionType = new String();
if(isEvent && isInput)
connectionType = "EventInputs";
else if(isEvent && !isInput)
connectionType = "EventOutputs";
else if(!isEvent && isInput)
connectionType = "InputVars";
else if(!isEvent&& !isInput)
connectionType = "OutputVars";
for ( Enumeration els = model.getGraph().elements(); els.hasMoreElements();) {
GraphElement ge = (GraphElement) els.nextElement();
if(ge instanceof FB){
FB fb = (FB)ge;
if(fb.getMainLabel().getText().equals(fbName)){
Document fbDocument = Library.getDocument(fb.getFBType() + ".fbt");