Author: jacopoc
Date: Fri Dec 5 08:16:22 2014 New Revision: 1643183 URL: http://svn.apache.org/viewvc?rev=1643183&view=rev Log: Two Groovy DSL descriptors for Eclipse and IntelliJ in order to get the autocompletion and similar features while editing Groovy files in OFBiz. Added: ofbiz/trunk/framework/base/src/org/ofbiz/base/OfbizDslDescriptorForEclipse.dsld ofbiz/trunk/framework/base/src/org/ofbiz/base/OfbizDslDescriptorForIntelliJ.gdsl Added: ofbiz/trunk/framework/base/src/org/ofbiz/base/OfbizDslDescriptorForEclipse.dsld URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/OfbizDslDescriptorForEclipse.dsld?rev=1643183&view=auto ============================================================================== --- ofbiz/trunk/framework/base/src/org/ofbiz/base/OfbizDslDescriptorForEclipse.dsld (added) +++ ofbiz/trunk/framework/base/src/org/ofbiz/base/OfbizDslDescriptorForEclipse.dsld Fri Dec 5 08:16:22 2014 @@ -0,0 +1,39 @@ +/******************************************************************************* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + *******************************************************************************/ + +contribute(currentType(subType('groovy.lang.Script'))) { + property name : 'parameters', type : 'java.util.Map' + property name: 'context', type: 'java.util.Map' + property name: 'delegator', type: 'org.ofbiz.entity.Delegator' + property name: 'dispatcher', type: 'org.ofbiz.service.LocalDispatcher' + + method name: 'runService', type: 'java.util.Map', params: [serviceName: 'String', inputMap: 'java.util.Map'] + method name: 'makeValue', type: 'java.util.Map', params: [entityName: 'String'] + method name: 'findOne', type: 'java.util.Map', params: [entityName: 'String', inputMap: 'java.util.Map'] + method name: 'findList', type: 'java.util.List', params: [entityName: 'String', inputMap: 'java.util.Map'] + method name: 'select', type: 'org.ofbiz.entity.util.EntityQuery', params: [entity: 'java.util.Set'] + method name: 'select', type: 'org.ofbiz.entity.util.EntityQuery', params: [entity: 'String...'] + method name: 'from', type: 'org.ofbiz.entity.util.EntityQuery', params: [entity: 'java.lang.Object'] + method name: 'success', type: 'def', params: [message: 'String'] + method name: 'failure', type: 'java.util.Map', params: [message: 'String'] + method name: 'error', type: 'def', params: [message: 'String'] + method name: 'logInfo', type: 'void', params: [message: 'String'] + method name: 'logWarning', type: 'void', params: [message: 'String'] + method name: 'logError', type: 'void', params: [message: 'String'] +} Added: ofbiz/trunk/framework/base/src/org/ofbiz/base/OfbizDslDescriptorForIntelliJ.gdsl URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/OfbizDslDescriptorForIntelliJ.gdsl?rev=1643183&view=auto ============================================================================== --- ofbiz/trunk/framework/base/src/org/ofbiz/base/OfbizDslDescriptorForIntelliJ.gdsl (added) +++ ofbiz/trunk/framework/base/src/org/ofbiz/base/OfbizDslDescriptorForIntelliJ.gdsl Fri Dec 5 08:16:22 2014 @@ -0,0 +1,44 @@ +/******************************************************************************* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + *******************************************************************************/ +package org.ofbiz.base + +def groovyContext = context(filetypes: ['groovy'], scope: scriptScope()) + +contributor(groovyContext) { + provider = 'OFBiz DSL' + property name: 'parameters', type: 'java.util.Map' + property name: 'context', type: 'java.util.Map' + property name: 'delegator', type: 'org.ofbiz.entity.Delegator' + property name: 'dispatcher', type: 'org.ofbiz.service.LocalDispatcher' + + method name: 'runService', type: 'java.util.Map', params: [serviceName: 'String', inputMap: 'java.util.Map'] + method name: 'run', type: 'java.util.Map', params: [args: 'java.util.Map'] + method name: 'makeValue', type: 'java.util.Map', params: [entityName: 'String'] + method name: 'select', type: 'org.ofbiz.entity.util.EntityQuery', params: [entity: 'java.util.Set'] + method name: 'select', type: 'org.ofbiz.entity.util.EntityQuery', params: [entity: 'String...'] + method name: 'from', type: 'org.ofbiz.entity.util.EntityQuery', params: [entity: 'java.lang.Object'] + + method name: 'success', type: 'def', params: [message: 'String'] + method name: 'failure', type: 'java.util.Map', params: [message: 'String'] + method name: 'error', type: 'def', params: [message: 'String'] + + method name: 'logInfo', type: 'void', params: [message: 'String'] + method name: 'logWarning', type: 'void', params: [message: 'String'] + method name: 'logError', type: 'void', params: [message: 'String'] +} \ No newline at end of file |
Free forum by Nabble | Edit this page |