Author: cmarcum Date: Sun Feb 28 18:25:10 2016 New Revision: 1732774 URL: http://svn.apache.org/viewvc?rev=1732774&view=rev Log: #i126770# changed uno method to guno to avoid name conflict with GroovyForOpenOffice extension
Modified: openoffice/devtools/guno-extension/trunk/build.gradle openoffice/devtools/guno-extension/trunk/src/main/groovy/org/openoffice/guno/UnoExtension.groovy openoffice/devtools/guno-extension/trunk/src/test/groovy/org/openoffice/guno/UnoSpec.groovy Modified: openoffice/devtools/guno-extension/trunk/build.gradle URL: http://svn.apache.org/viewvc/openoffice/devtools/guno-extension/trunk/build.gradle?rev=1732774&r1=1732773&r2=1732774&view=diff ============================================================================== --- openoffice/devtools/guno-extension/trunk/build.gradle (original) +++ openoffice/devtools/guno-extension/trunk/build.gradle Sun Feb 28 18:25:10 2016 @@ -10,7 +10,7 @@ repositories { } group 'org.openoffice' -version "0.1.3" +version "0.1.4" description 'Groovy UNO Extension extends the Apache OpenOffice UNO API' mainClassName = 'org.openoffice.FakeClassName' Modified: openoffice/devtools/guno-extension/trunk/src/main/groovy/org/openoffice/guno/UnoExtension.groovy URL: http://svn.apache.org/viewvc/openoffice/devtools/guno-extension/trunk/src/main/groovy/org/openoffice/guno/UnoExtension.groovy?rev=1732774&r1=1732773&r2=1732774&view=diff ============================================================================== --- openoffice/devtools/guno-extension/trunk/src/main/groovy/org/openoffice/guno/UnoExtension.groovy (original) +++ openoffice/devtools/guno-extension/trunk/src/main/groovy/org/openoffice/guno/UnoExtension.groovy Sun Feb 28 18:25:10 2016 @@ -57,7 +57,7 @@ class UnoExtension { * @param clazz the object type to return. * @return Object the requested object. */ - static Object uno(final Object self, Class clazz) { + static Object guno(final Object self, Class clazz) { UnoRuntime.queryInterface(clazz, self) } Modified: openoffice/devtools/guno-extension/trunk/src/test/groovy/org/openoffice/guno/UnoSpec.groovy URL: http://svn.apache.org/viewvc/openoffice/devtools/guno-extension/trunk/src/test/groovy/org/openoffice/guno/UnoSpec.groovy?rev=1732774&r1=1732773&r2=1732774&view=diff ============================================================================== --- openoffice/devtools/guno-extension/trunk/src/test/groovy/org/openoffice/guno/UnoSpec.groovy (original) +++ openoffice/devtools/guno-extension/trunk/src/test/groovy/org/openoffice/guno/UnoSpec.groovy Sun Feb 28 18:25:10 2016 @@ -136,7 +136,7 @@ class UnoSpec extends Specification { // feature methods - def "use uno method in spreadsheet"() { + def "use guno method in spreadsheet"() { setup: XSpreadsheets xSpreadsheets = xSpreadsheetDocument.getSheets() xSpreadsheets.insertNewByName("MySheet", (short) 0) @@ -149,7 +149,7 @@ class UnoSpec extends Specification { when: - XText xCellText = xCell.uno(XText.class) + XText xCellText = xCell.guno(XText.class) then: xCellText != null