-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COM support: Added significant enhancements. #397
Closed
Closed
Changes from 50 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
f279e84
COM: Added Running Object Table bits.
dhakehurst c5c8da5
Added pom files for building eclipse p2-repository, features and bundles
dhakehurst c153e96
Added eclipse project files
dhakehurst fe0ed1c
renaming packages and interfaces in new COM bits
dhakehurst 0f399d5
Added more eclipse files
dhakehurst 06c884a
Added .gitignore
dhakehurst cdff360
Calls to COM objects via ...utils should now all run on a single thread.
dhakehurst 39e14d6
Improve COM.utils tests
dhakehurst 58054dd
rename eclipse folder to maven folder
dhakehurst 209bd2f
change MsWord example to use new com stuff
dhakehurst 2ccf522
Adding support for COM event callbacks
dhakehurst 1141286
Adding support for COM Event callbacks
dhakehurst 00e6de5
COM Event Callback support
dhakehurst 046169f
COM.utils.Factoy should not be an static INSTANCE, may want different
dhakehurst f368ad4
COM/COM.utils Copyright header modification
dhakehurst f5c4bd5
Now supporting Event callbacks
dhakehurst 02d7d3d
Fix: Callback events executed on their own thread
dhakehurst 048ed54
COM.utilÖ updates
dhakehurst c4e8aab
Remove UNUSED_ENV macro from Java_com_sun_jna_Native_getWindowHandle0…
dhakehurst b42ba9d
enable comparison of COM.util objects
dhakehurst b53fd3a
Iterator required 'remove' to be implemented for < Java 1.8
dhakehurst b5c542b
comment out inclusion of testlib
dhakehurst 81ffec8
comment out dependency on missing testlib
dhakehurst 4cd8d30
COM.util: bug fix: arguments to callback events now converted where
dhakehurst 22915e0
...COM.util: proxy must AddRef on COM handle and Release it
dhakehurst 581cc00
..COM.utils: maven build pom update
dhakehurst 669697a
added parameter to pom to allow commandline additional.pluginRepository
dhakehurst 58ea371
it needs a vaild default
dhakehurst 88c9a5f
pom update
dhakehurst 0cdd1cb
maven build: update
dhakehurst d91d5cc
...COM.util: Added (I think) correct management of COM Refs via
dhakehurst 421a2dc
msoffice Demo: added ..COM.util version for Excel
dhakehurst b20e95b
Merge remote-tracking branch 'origin/master'
dhakehurst 1ebbff4
Update Excel Test,
dhakehurst f110246
Using new version of p2 generator
dhakehurst 4b9362f
..COM.util: reorganise disposing
dhakehurst ed27da3
Enable COM calls to timeout and throw exception
dhakehurst 201139c
COM.util bug fix
dhakehurst 57abe60
..COM.util: Catch exceptions in ComThread-firstTask
dhakehurst 280f1e3
...COM.utild: add capability to return <? extends IComEnum> from methods
dhakehurst 04fa536
fix null pointer issue in COMException
dhakehurst 25f1b08
Improve thread safety
dhakehurst 756685e
added use java 1.6 to pom.xml files
dhakehurst d60291b
...COM.util: improve equals and hashCode for ProxyObject
dhakehurst 4e0aa5e
test update
dhakehurst c171c2f
added a file
dhakehurst af5db87
header comment modification
dhakehurst ce7a463
minor modifications
dhakehurst 293a62e
...COM.util:
dhakehurst 81ba1be
Merge branch 'master' of https://github.com/twall/jna
dhakehurst 57aeb2f
updated full stops
dhakehurst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ Release 4.2 | |
|
||
Features | ||
-------- | ||
* Significant enhancements to COM support under com.sun.jna.platform.win32.COM.util, - [@dhakehurst](https://github.com/dhakehurst) | ||
* Use of interfaces and annotations to provide easier implementation of COM interfaces (uses InvocationHandler). - [@dhakehurst](https://github.com/dhakehurst) | ||
* Support for COM event callbacks (this was particularly tricky, very happy I got it to work). - [@dhakehurst](https://github.com/dhakehurst) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You have an extra period at the end of the text and missing an extra period at the end. I am sure this looks like small stuff, but we're trying to maintain some consistency across the project with so many contributors. Please don't take it personally. |
||
* Support for COM interface discovery by iteration over the RunningObjectTable. - [@dhakehurst](https://github.com/dhakehurst) | ||
* Updated AIX natives and build - [@twall](https://github.com/twall). | ||
* [#290](https://github.com/twall/jna/pull/290): Improved the stacktrace for the exceptions thrown by `com.sun.jna.Structure` - [@ebourg](https://github.com/ebourg). | ||
* [#332](https://github.com/twall/jna/pull/332): Added Win32 Monitor Configuration API in `com.sun.jna.platform.win32.Dxva2` - [@msteiger](https://github.com/msteiger). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
contrib/msoffice/src/com/sun/jna/platform/win32/COM/util/office/MSOfficeExcelDemo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/* Copyright (c) 2014 Dr David H. Akehurst (itemis), All Rights Reserved | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
*/ | ||
package com.sun.jna.platform.win32.COM.util.office; | ||
|
||
import java.io.File; | ||
|
||
import com.sun.jna.platform.win32.COM.office.MSExcel; | ||
import com.sun.jna.platform.win32.COM.util.AbstractComEventCallbackListener; | ||
import com.sun.jna.platform.win32.COM.util.Factory; | ||
import com.sun.jna.platform.win32.COM.util.office.excel.ComExcel_Application; | ||
import com.sun.jna.platform.win32.COM.util.office.excel.ComIAppEvents; | ||
import com.sun.jna.platform.win32.COM.util.office.excel.ComIApplication; | ||
import com.sun.jna.platform.win32.COM.util.office.excel.ComIRange; | ||
import com.sun.jna.platform.win32.COM.util.office.excel.ComIWorksheet; | ||
import com.sun.jna.platform.win32.COM.util.office.word.ComWord_Application; | ||
|
||
public class MSOfficeExcelDemo { | ||
|
||
/** | ||
* @param args | ||
*/ | ||
public static void main(String[] args) { | ||
new MSOfficeExcelDemo(); | ||
} | ||
|
||
private String currentWorkingDir = new File("").getAbsolutePath() + File.separator; | ||
|
||
public MSOfficeExcelDemo() { | ||
this.testMSExcel(); | ||
} | ||
|
||
public void testMSExcel() { | ||
ComExcel_Application excelObject = null; | ||
ComIApplication msExcel = null; | ||
Factory factory = null; | ||
try { | ||
factory = new Factory(); | ||
excelObject = factory.createObject(ComExcel_Application.class); | ||
msExcel = excelObject.queryInterface(ComIApplication.class); | ||
System.out.println("MSExcel version: " + msExcel.getVersion()); | ||
msExcel.setVisible(true); | ||
// msExcel.newExcelBook(); | ||
msExcel.getWorkbooks().Open(currentWorkingDir + "jnatest.xls"); | ||
msExcel.getActiveSheet().getRange("A1").setValue("Hello from JNA!"); | ||
// wait 1sec. before closing | ||
Thread.currentThread().sleep(1000); | ||
// // close and save the active sheet | ||
// msExcel.getActiveWorkbook().Close(true); | ||
// msExcel.setVisible(true); | ||
// // msExcel.newExcelBook(); | ||
// msExcel.getWorkbooks().Open(currentWorkingDir + "jnatest.xls"); | ||
// msExcel.getActiveSheet().getRange("A2").setValue("Hello again from JNA!"); | ||
|
||
class Listener extends AbstractComEventCallbackListener implements ComIAppEvents { | ||
boolean SheetSelectionChange_called; | ||
|
||
@Override | ||
public void errorReceivingCallbackEvent(String message, Exception exception) { | ||
} | ||
|
||
@Override | ||
public void SheetSelectionChange(ComIWorksheet sheet, ComIRange target) { | ||
SheetSelectionChange_called = true; | ||
} | ||
|
||
}; | ||
Listener listener = new Listener(); | ||
msExcel.advise(ComIAppEvents.class, listener); | ||
// | ||
// msExcel.getActiveSheet().getRange("A5").Activate(); | ||
// | ||
// Thread.currentThread().sleep(500); | ||
|
||
// close and save the active sheet | ||
msExcel.getActiveWorkbook().Close(true); | ||
|
||
msExcel.Quit(); | ||
msExcel = null; | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} finally { | ||
if (null != msExcel) { | ||
msExcel.Quit(); | ||
} | ||
if (null != factory) { | ||
factory.disposeAll(); | ||
} | ||
} | ||
} | ||
} |
109 changes: 109 additions & 0 deletions
109
contrib/msoffice/src/com/sun/jna/platform/win32/COM/util/office/MSOfficeWordDemo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
/* Copyright (c) 2014 Dr David H. Akehurst (itemis), All Rights Reserved | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
*/ | ||
package com.sun.jna.platform.win32.COM.util.office; | ||
|
||
import java.io.File; | ||
|
||
import com.sun.jna.platform.win32.COM.COMException; | ||
import com.sun.jna.platform.win32.COM.util.Factory; | ||
import com.sun.jna.platform.win32.COM.util.office.word.ComIApplication; | ||
import com.sun.jna.platform.win32.COM.util.office.word.ComWord_Application; | ||
import com.sun.jna.platform.win32.COM.util.office.word.WdOriginalFormat; | ||
import com.sun.jna.platform.win32.COM.util.office.word.WdSaveFormat; | ||
|
||
public class MSOfficeWordDemo { | ||
|
||
/** | ||
* @param args | ||
*/ | ||
public static void main(String[] args) { | ||
new MSOfficeWordDemo(); | ||
} | ||
|
||
private String currentWorkingDir = new File("").getAbsolutePath() + File.separator; | ||
|
||
public MSOfficeWordDemo() { | ||
this.testMSWord(); | ||
} | ||
|
||
public void testMSWord() { | ||
ComWord_Application msWordObject = null; | ||
ComIApplication msWord = null; | ||
Factory factory = null; | ||
try { | ||
String tempDir = System.getProperty("java.io.tmpdir"); | ||
System.out.println("Files in temp dir: "+tempDir); | ||
|
||
factory = new Factory(); | ||
msWordObject = factory.createObject(ComWord_Application.class); | ||
msWord = msWordObject.queryInterface(ComIApplication.class); | ||
|
||
System.out.println("MSWord version: " + msWord.getVersion()); | ||
|
||
msWord.setVisible(true); | ||
// msWord.newDocument(); | ||
msWord.getDocuments().Open(currentWorkingDir + "jnatest.doc"); | ||
msWord.getSelection().TypeText("Hello from JNA! \n\n"); | ||
// wait 10sec. before closing | ||
Thread.sleep(1000); | ||
// save in different formats | ||
// pdf format is only supported in MSWord 2007 and above | ||
msWord.getActiveDocument().SaveAs(tempDir+"\\jnatestSaveAs.doc", WdSaveFormat.wdFormatDocument); | ||
msWord.getActiveDocument().SaveAs(tempDir+"\\jnatestSaveAs.pdf", WdSaveFormat.wdFormatPDF); | ||
msWord.getActiveDocument().SaveAs(tempDir+"\\jnatestSaveAs.rtf", WdSaveFormat.wdFormatRTF); | ||
msWord.getActiveDocument().SaveAs(tempDir+"\\jnatestSaveAs.html", WdSaveFormat.wdFormatHTML); | ||
// close and save the document | ||
msWord.getActiveDocument().Close(false); | ||
msWord.getDocuments().Add(); | ||
// msWord.openDocument(currentWorkingDir + "jnatest.doc", true); | ||
msWord.getSelection() | ||
.TypeText( | ||
"Hello from JNA! \n Please notice that JNA can control MS Word via the new COM interface! \nHere we are creating a new word document and we save it to the 'TEMP' directory!"); | ||
// save with no user prompt | ||
msWord.getActiveDocument().SaveAs(tempDir+"\\jnatestNewDoc1.docx", WdSaveFormat.wdFormatDocumentDefault); | ||
msWord.getActiveDocument().SaveAs(tempDir+"\\jnatestNewDoc2.docx", WdSaveFormat.wdFormatDocumentDefault); | ||
msWord.getActiveDocument().SaveAs(tempDir+"\\jnatestNewDoc3.docx", WdSaveFormat.wdFormatDocumentDefault); | ||
// close and save the document | ||
msWord.getActiveDocument().Close(false); | ||
// open 3 documents | ||
msWord.getDocuments().Open(tempDir+"\\jnatestNewDoc1.docx"); | ||
msWord.getSelection().TypeText("Hello some changes from JNA!\n"); | ||
msWord.getDocuments().Open(tempDir+"\\jnatestNewDoc2.docx"); | ||
msWord.getSelection().TypeText("Hello some changes from JNA!\n"); | ||
msWord.getDocuments().Open(tempDir+"\\jnatestNewDoc3.docx"); | ||
msWord.getSelection().TypeText("Hello some changes from JNA!\n"); | ||
// save the document and prompt the user | ||
msWord.getDocuments().Save(false, WdOriginalFormat.wdPromptUser); | ||
// wait then close word | ||
msWord.Quit(); | ||
msWord = null; | ||
} catch (InterruptedException ie) { | ||
ie.printStackTrace(); | ||
} catch (COMException e) { | ||
if (e.getExcepInfo() != null) { | ||
System.out.println("bstrSource: " + e.getExcepInfo().bstrSource); | ||
System.out.println("bstrDescription: " + e.getExcepInfo().bstrDescription); | ||
} | ||
|
||
// print stack trace | ||
e.printStackTrace(); | ||
} finally { | ||
if (msWord != null) { | ||
msWord.Quit(); | ||
} | ||
if (null != factory) { | ||
factory.getComThread().terminate(500); | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...b/msoffice/src/com/sun/jna/platform/win32/COM/util/office/excel/ComExcel_Application.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.sun.jna.platform.win32.COM.util.office.excel; | ||
|
||
import com.sun.jna.platform.win32.COM.util.IUnknown; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComMethod; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComObject; | ||
|
||
@ComObject(progId="Excel.Application") | ||
public interface ComExcel_Application extends IUnknown { | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
contrib/msoffice/src/com/sun/jna/platform/win32/COM/util/office/excel/ComIAppEvents.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.sun.jna.platform.win32.COM.util.office.excel; | ||
|
||
import com.sun.jna.platform.win32.COM.util.annotation.ComEventCallback; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComInterface; | ||
|
||
@ComInterface(iid="{00024413-0000-0000-C000-000000000046}") | ||
public interface ComIAppEvents { | ||
|
||
@ComEventCallback(dispid=1558) | ||
public void SheetSelectionChange(ComIWorksheet sheet, ComIRange target); | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
contrib/msoffice/src/com/sun/jna/platform/win32/COM/util/office/excel/ComIApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.sun.jna.platform.win32.COM.util.office.excel; | ||
|
||
import com.sun.jna.platform.win32.COM.util.IConnectionPoint; | ||
import com.sun.jna.platform.win32.COM.util.IUnknown; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComInterface; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComMethod; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComProperty; | ||
|
||
@ComInterface(iid="{000208D5-0000-0000-C000-000000000046}") | ||
public interface ComIApplication extends IUnknown, IConnectionPoint { | ||
|
||
@ComProperty | ||
String getVersion(); | ||
|
||
@ComProperty | ||
boolean getVisible(); | ||
|
||
@ComProperty | ||
void setVisible(boolean value); | ||
|
||
@ComProperty | ||
ComIWorkbooks getWorkbooks(); | ||
|
||
@ComProperty | ||
ComIWorksheet getActiveSheet(); | ||
|
||
@ComProperty | ||
ComIWorkbook getActiveWorkbook(); | ||
|
||
@ComMethod | ||
void Quit(); | ||
} |
25 changes: 25 additions & 0 deletions
25
contrib/msoffice/src/com/sun/jna/platform/win32/COM/util/office/excel/ComIRange.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.sun.jna.platform.win32.COM.util.office.excel; | ||
|
||
import com.sun.jna.platform.win32.COM.util.annotation.ComInterface; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComMethod; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComProperty; | ||
|
||
@ComInterface(iid = "{00020846-0000-0000-C000-000000000046}") | ||
public interface ComIRange { | ||
|
||
@ComProperty | ||
ComIApplication getApplication(); | ||
|
||
@ComProperty | ||
String getText(); | ||
|
||
@ComMethod | ||
void Select(); | ||
|
||
@ComProperty | ||
void setValue(String value); | ||
|
||
@ComMethod | ||
void Activate(); | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
contrib/msoffice/src/com/sun/jna/platform/win32/COM/util/office/excel/ComIWorkbook.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.sun.jna.platform.win32.COM.util.office.excel; | ||
|
||
import com.sun.jna.platform.win32.COM.util.annotation.ComInterface; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComMethod; | ||
|
||
@ComInterface(iid="{0002096B-0000-0000-C000-000000000046}") | ||
public interface ComIWorkbook { | ||
|
||
@ComMethod | ||
void Close(boolean saveChanges); | ||
|
||
|
||
} |
19 changes: 19 additions & 0 deletions
19
contrib/msoffice/src/com/sun/jna/platform/win32/COM/util/office/excel/ComIWorkbooks.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.sun.jna.platform.win32.COM.util.office.excel; | ||
|
||
import com.sun.jna.platform.win32.COM.util.annotation.ComInterface; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComMethod; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComProperty; | ||
|
||
@ComInterface(iid = "{000208DB-0000-0000-C000-000000000046}") | ||
public interface ComIWorkbooks { | ||
|
||
@ComProperty | ||
long getCount(); | ||
|
||
@ComMethod | ||
ComIWorkbook Item(long index); | ||
|
||
@ComMethod | ||
ComIWorkbook Open(Object FileName); | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
contrib/msoffice/src/com/sun/jna/platform/win32/COM/util/office/excel/ComIWorksheet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.sun.jna.platform.win32.COM.util.office.excel; | ||
|
||
import com.sun.jna.platform.win32.COM.util.annotation.ComInterface; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComMethod; | ||
import com.sun.jna.platform.win32.COM.util.annotation.ComProperty; | ||
|
||
@ComInterface(iid="{000208D8-0000-0000-C000-000000000046}") | ||
public interface ComIWorksheet { | ||
|
||
@ComProperty | ||
String getName(); | ||
|
||
@ComProperty | ||
ComIRange getRange(String cell1); | ||
|
||
@ComProperty | ||
ComIApplication getApplication(); | ||
|
||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have an extra
,
at the end of this line before your name.