├── doc ├── start.pdf ├── editor.pdf ├── installation.pdf └── bugs_2015-04 │ ├── 3 │ ├── Install.png │ └── Screen shot 2011-11-21 at 1.55.42 AM.png │ ├── 10.pdf │ ├── 11.pdf │ ├── 12.pdf │ ├── 13.pdf │ ├── 14.pdf │ ├── 15.pdf │ ├── 16.pdf │ ├── 17.pdf │ ├── 3.pdf │ ├── 4.pdf │ ├── 5.pdf │ ├── 6.pdf │ ├── 7.pdf │ ├── 8.pdf │ ├── 9.pdf │ └── bugs.pdf ├── org.eclipselabs.matclipse.feature ├── build.properties ├── .project └── feature.xml ├── com.jacob ├── samples │ ├── com │ │ └── jacob │ │ │ └── samples │ │ │ ├── MathProj │ │ │ ├── MathTest.vbw │ │ │ ├── MathTest.dll │ │ │ ├── MathTest.exp │ │ │ ├── MathTest.lib │ │ │ ├── README.txt │ │ │ ├── MathTest.vbp │ │ │ └── Math.cls │ │ │ ├── access │ │ │ └── sample2.mdb │ │ │ ├── visio │ │ │ ├── test_drawing.vsd │ │ │ ├── VisioException.java │ │ │ ├── VisioEventListener.java │ │ │ └── VisioEventAdapter.java │ │ │ ├── office │ │ │ ├── TestDocument.doc │ │ │ ├── ~$stDocument.doc │ │ │ ├── VisioPrintTest.java │ │ │ └── ExcelDispatchTest.java │ │ │ ├── atl │ │ │ ├── MultiFace │ │ │ │ ├── MultiFace.aps │ │ │ │ ├── MultiFace.ncb │ │ │ │ ├── MultiFace.opt │ │ │ │ ├── MultiFace.tlb │ │ │ │ ├── MultiFace.def │ │ │ │ ├── MultiFaceps.def │ │ │ │ ├── StdAfx.cpp │ │ │ │ ├── MultiFaceps.mk │ │ │ │ ├── Face.rgs │ │ │ │ ├── resource.h │ │ │ │ ├── MultiFace.dsw │ │ │ │ ├── dlldata.c │ │ │ │ ├── StdAfx.h │ │ │ │ ├── Face.cpp │ │ │ │ ├── MultiFace_i.c │ │ │ │ ├── MultiFace.plg │ │ │ │ ├── MultiFace.idl │ │ │ │ ├── Face.h │ │ │ │ └── MultiFace.cpp │ │ │ ├── readme.txt │ │ │ └── MultiFaceTest.java │ │ │ ├── applet │ │ │ ├── AppTest.html │ │ │ └── AppTest.java │ │ │ ├── ado │ │ │ ├── ms │ │ │ │ ├── README.txt │ │ │ │ └── testms.java.txt │ │ │ ├── CommandTypeEnum.java │ │ │ ├── Fields.java │ │ │ └── test.java │ │ │ ├── servlet │ │ │ └── readme.txt │ │ │ └── outlook │ │ │ └── Outlook.java │ └── README.txt ├── docs │ └── EventCallbacks.html ├── lib │ ├── junit3.8.1 │ │ └── junit.jar │ └── README.txt ├── release │ ├── x64 │ │ └── jacob-1.15-M4-x64.dll │ └── x86 │ │ └── jacob-1.15-M4-x86.dll ├── unittest │ ├── com │ │ └── jacob │ │ │ ├── com │ │ │ ├── README.txt │ │ │ ├── JacobObjectTest.java │ │ │ ├── DispatchTest.java │ │ │ ├── DispatchValidDispatchTest.java │ │ │ ├── DispatchNullProgramId.java │ │ │ └── DateUtilitiesTest.java │ │ │ └── test │ │ │ ├── excel │ │ │ ├── teste.xls │ │ │ └── ControllerTest.java │ │ │ ├── powerpoint │ │ │ ├── test1.ppt │ │ │ ├── test2.ppt │ │ │ ├── test3.ppt │ │ │ ├── test4.ppt │ │ │ └── test5.ppt │ │ │ ├── safearray │ │ │ ├── SafeArrayViaExcel.xls │ │ │ ├── SafeArrayBasicTest.java │ │ │ └── SafeArrayDispatchTest.java │ │ │ ├── vbscript │ │ │ ├── ScriptTestErrEvents.java │ │ │ └── ScriptTestActiveX.java │ │ │ └── errors │ │ │ └── UnicodeErrorTest.java │ └── readme.txt ├── JacobVersion.properties ├── META-INF │ ├── JacobVersion.properties │ └── MANIFEST.MF ├── build.properties ├── compilation_tools.properties ├── README.txt ├── .classpath ├── .project ├── src │ └── com │ │ └── jacob │ │ └── com │ │ ├── MainSTA.java │ │ ├── VariantViaEvent.java │ │ ├── NotImplementedException.java │ │ ├── WrongThreadException.java │ │ └── JacobException.java └── jni │ ├── util.h │ ├── STA.h │ ├── ComThread.cpp │ ├── ComThread.h │ ├── DispatchEvents.h │ ├── DispatchProxy.h │ ├── EnumVariant.h │ ├── StdAfx.h │ └── STA.cpp ├── org.eclipselabs.matclipse.win32.feature ├── build.properties ├── .project └── feature.xml ├── org.eclipselabs.matclipse.meditor ├── ext_tools │ ├── copycss.sh │ ├── tex2pdf.sh │ └── tex2png.sh ├── config │ ├── shorts.tex │ ├── shortsmltutor.tex │ ├── helpfileexceptions.dtd │ ├── latexpic.template │ ├── consoleproperties.xml │ ├── metadata_osiris.xml │ ├── XML_export_properties.xml │ └── helpfileexceptions.xml ├── icons │ └── matclipse_file.png ├── build.properties ├── .classpath ├── doc │ ├── toc.xml │ └── general.html ├── .project ├── META-INF │ └── MANIFEST.MF └── src │ └── org │ └── eclipselabs │ └── matclipse │ └── meditor │ ├── editors │ ├── IWorkerThreadListener.java │ ├── PdfEditor.java │ ├── partitioner │ │ ├── WhitespaceDetector.java │ │ ├── MatlabEndOfLineRule.java │ │ └── WordPredicateRule.java │ └── MatlabDocumentProvider.java │ └── util │ └── BrowserException.java ├── org.eclipselabs.matclipse.mconsole ├── icons │ ├── L.gif │ ├── c.gif │ ├── d.gif │ ├── h.gif │ ├── s.gif │ ├── cl.gif │ ├── dc.gif │ ├── i16.gif │ ├── i32.gif │ ├── i64.gif │ ├── i8.gif │ ├── il.gif │ ├── sp.gif │ ├── st.gif │ ├── sy.gif │ ├── ui8.gif │ ├── clear.gif │ ├── global.gif │ ├── help.gif │ ├── local.gif │ ├── sample.gif │ ├── types.gif │ ├── ui16.gif │ ├── ui32.gif │ ├── ui64.gif │ ├── class_obj.gif │ ├── command_obj.gif │ ├── debug_view.gif │ ├── export_wiz.gif │ ├── import_wiz.gif │ ├── private_co.gif │ ├── history_view.gif │ ├── snippets_view.gif │ ├── prd_config_wiz.gif │ ├── localvariable_obj.gif │ ├── matlab_file_wizard.gif │ ├── matlab_project_ovr.gif │ ├── matlab_stop_action.gif │ ├── start_application.gif │ ├── matlab_console_view.gif │ ├── matlab_pause_action.gif │ ├── matlab_project_wizard.gif │ ├── matlab_projects_view.gif │ ├── matlab_script_action.gif │ ├── matlab_start_action.gif │ ├── matlab_workspace_view.gif │ ├── matlab_togglenature_action.gif │ └── matlab_workbench_perspective.gif ├── nanoxml-2.2.3.jar ├── xstream-1.1.2.jar ├── doc │ ├── resources │ │ └── inherit.gif │ ├── package-list │ ├── at │ │ └── tugraz │ │ │ └── itp │ │ │ └── matclipse │ │ │ └── mconsole │ │ │ ├── package-frame.html │ │ │ ├── decorators │ │ │ └── package-frame.html │ │ │ ├── internal │ │ │ └── ui │ │ │ │ ├── perspectives │ │ │ │ └── package-frame.html │ │ │ │ ├── wizards │ │ │ │ └── package-frame.html │ │ │ │ └── preferences │ │ │ │ └── package-frame.html │ │ │ ├── builder │ │ │ └── package-frame.html │ │ │ └── matlab │ │ │ └── impl │ │ │ └── package-frame.html │ ├── stylesheet.css │ └── index.html ├── m-files │ ├── keyboard.m │ ├── pause.m │ ├── close_figure.m │ ├── raise_figure.m │ └── input.m ├── html │ ├── tasks │ │ ├── subtopic.html │ │ ├── maintopic.html │ │ └── subtopic2.html │ ├── concepts │ │ ├── maintopic.html │ │ ├── subtopic.html │ │ └── subtopic2.html │ ├── reference │ │ ├── subtopic.html │ │ ├── maintopic.html │ │ └── subtopic2.html │ ├── samples │ │ ├── maintopic.html │ │ ├── subtopic.html │ │ └── subtopic2.html │ ├── toc.html │ └── gettingstarted │ │ ├── subtopic.html │ │ ├── maintopic.html │ │ └── subtopic2.html ├── plugin_customization.ini ├── toctasks.xml ├── tocsamples.xml ├── .settings │ └── org.eclipse.jdt.core.prefs ├── tocconcepts.xml ├── tocreference.xml ├── tocgettingstarted.xml ├── build.properties ├── toc.xml ├── .classpath ├── .project ├── src │ └── org │ │ └── eclipselabs │ │ └── matclipse │ │ └── mconsole │ │ ├── matlab │ │ ├── MatlabNotStartedException.java │ │ ├── MatlabCommunicationException.java │ │ ├── MatlabDataObject.java │ │ └── MatlabDataParent.java │ │ ├── internal │ │ └── ui │ │ │ ├── preferences │ │ │ ├── IPreferenceConstants.java │ │ │ ├── ThemeConstants.java │ │ │ └── PreferenceInitializer.java │ │ │ └── actions │ │ │ ├── MatlabPreferencesAction.java │ │ │ ├── MatlabDemoAction.java │ │ │ ├── OpenImportAction.java │ │ │ └── RunBenchmarkAction.java │ │ ├── views │ │ ├── CommandHistoryProvider.java │ │ └── CommandHistoryEntry.java │ │ └── decorators │ │ └── MatlabDecorator.java └── META-INF │ └── MANIFEST.MF ├── org.eclipselabs.matclipse.util ├── build.properties ├── .settings │ ├── org.eclipse.jst.ws.cxf.core.prefs │ └── org.eclipse.jdt.core.prefs ├── .classpath ├── META-INF │ └── MANIFEST.MF └── .project ├── org.eclipselabs.matclipse.mconsole.win32 ├── build.properties ├── .classpath ├── .settings │ └── org.eclipse.jdt.core.prefs ├── plugin.xml ├── META-INF │ └── MANIFEST.MF ├── .project └── src │ └── org │ └── eclipselabs │ └── matclipse │ └── mconsole │ └── win32 │ ├── MatlabCOMWrapper.java │ └── Activator.java ├── README.md └── LICENSE /doc/start.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/start.pdf -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.feature/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = feature.xml 2 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/MathProj/MathTest.vbw: -------------------------------------------------------------------------------- 1 | Math = 75, 13, 656, 554, 2 | -------------------------------------------------------------------------------- /doc/editor.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/editor.pdf -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.win32.feature/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = feature.xml 2 | -------------------------------------------------------------------------------- /doc/installation.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/installation.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/10.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/11.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/11.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/12.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/12.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/13.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/13.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/14.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/14.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/15.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/15.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/16.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/16.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/17.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/17.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/3.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/4.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/5.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/6.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/7.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/8.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/9.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/9.pdf -------------------------------------------------------------------------------- /doc/bugs_2015-04/bugs.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/bugs.pdf -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/ext_tools/copycss.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cp ./config/$1 "$2" 4 | exit 0 5 | -------------------------------------------------------------------------------- /doc/bugs_2015-04/3/Install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/3/Install.png -------------------------------------------------------------------------------- /com.jacob/docs/EventCallbacks.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/docs/EventCallbacks.html -------------------------------------------------------------------------------- /com.jacob/lib/junit3.8.1/junit.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/lib/junit3.8.1/junit.jar -------------------------------------------------------------------------------- /com.jacob/release/x64/jacob-1.15-M4-x64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/release/x64/jacob-1.15-M4-x64.dll -------------------------------------------------------------------------------- /com.jacob/release/x86/jacob-1.15-M4-x86.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/release/x86/jacob-1.15-M4-x86.dll -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/com/README.txt: -------------------------------------------------------------------------------- 1 | This package exists in case folks need to test the Jacob COM objects and need access to protected methods -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/L.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/L.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/c.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/c.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/d.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/d.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/h.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/h.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/s.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/s.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/cl.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/cl.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/dc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/dc.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/i16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/i16.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/i32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/i32.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/i64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/i64.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/i8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/i8.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/il.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/il.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/sp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/sp.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/st.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/st.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/sy.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/sy.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/ui8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/ui8.gif -------------------------------------------------------------------------------- /com.jacob/JacobVersion.properties: -------------------------------------------------------------------------------- 1 | #Thu Feb 10 10:11:58 CET 2011 2 | version=1.15-M4 3 | build.date=10-Februar-2011 10\:11\:58 4 | build.iteration=118 5 | -------------------------------------------------------------------------------- /com.jacob/lib/README.txt: -------------------------------------------------------------------------------- 1 | Placeholder class to retain directory in CVS so build scripts will work. 2 | Part of directory standardization effort with jacobgen -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/excel/teste.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/unittest/com/jacob/test/excel/teste.xls -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/clear.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/clear.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/global.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/global.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/help.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/help.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/local.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/local.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/sample.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/types.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/types.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/ui16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/ui16.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/ui32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/ui32.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/ui64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/ui64.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/config/shorts.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.meditor/config/shorts.tex -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/nanoxml-2.2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/nanoxml-2.2.3.jar -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/xstream-1.1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/xstream-1.1.2.jar -------------------------------------------------------------------------------- /com.jacob/META-INF/JacobVersion.properties: -------------------------------------------------------------------------------- 1 | #Thu Feb 10 10:11:58 CET 2011 2 | version=1.15-M4 3 | build.date=10-Februar-2011 10\:11\:58 4 | build.iteration=118 5 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/access/sample2.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/samples/com/jacob/samples/access/sample2.mdb -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/powerpoint/test1.ppt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/unittest/com/jacob/test/powerpoint/test1.ppt -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/powerpoint/test2.ppt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/unittest/com/jacob/test/powerpoint/test2.ppt -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/powerpoint/test3.ppt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/unittest/com/jacob/test/powerpoint/test3.ppt -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/powerpoint/test4.ppt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/unittest/com/jacob/test/powerpoint/test4.ppt -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/powerpoint/test5.ppt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/unittest/com/jacob/test/powerpoint/test5.ppt -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/class_obj.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/class_obj.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/command_obj.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/command_obj.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/debug_view.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/debug_view.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/export_wiz.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/export_wiz.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/import_wiz.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/import_wiz.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/private_co.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/private_co.gif -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/MathProj/MathTest.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/samples/com/jacob/samples/MathProj/MathTest.dll -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/MathProj/MathTest.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/samples/com/jacob/samples/MathProj/MathTest.exp -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/MathProj/MathTest.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/samples/com/jacob/samples/MathProj/MathTest.lib -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/visio/test_drawing.vsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/samples/com/jacob/samples/visio/test_drawing.vsd -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/history_view.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/history_view.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/snippets_view.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/snippets_view.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/config/shortsmltutor.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.meditor/config/shortsmltutor.tex -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/icons/matclipse_file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.meditor/icons/matclipse_file.png -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/office/TestDocument.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/samples/com/jacob/samples/office/TestDocument.doc -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/office/~$stDocument.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/samples/com/jacob/samples/office/~$stDocument.doc -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/excel/ControllerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/unittest/com/jacob/test/excel/ControllerTest.java -------------------------------------------------------------------------------- /doc/bugs_2015-04/3/Screen shot 2011-11-21 at 1.55.42 AM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/doc/bugs_2015-04/3/Screen shot 2011-11-21 at 1.55.42 AM.png -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/doc/resources/inherit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/doc/resources/inherit.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/prd_config_wiz.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/prd_config_wiz.gif -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.aps -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.ncb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.ncb -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.opt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.opt -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.tlb -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/localvariable_obj.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/localvariable_obj.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_file_wizard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_file_wizard.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_project_ovr.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_project_ovr.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_stop_action.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_stop_action.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/start_application.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/start_application.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.util/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | . 5 | jre.compilation.profile = JavaSE-1.6 6 | -------------------------------------------------------------------------------- /com.jacob/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/,\ 2 | unittest/,\ 3 | samples/ 4 | bin.includes = META-INF/,\ 5 | .,\ 6 | release/ 7 | -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/safearray/SafeArrayViaExcel.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/unittest/com/jacob/test/safearray/SafeArrayViaExcel.xls -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole.win32/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | plugin.xml 6 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_console_view.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_console_view.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_pause_action.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_pause_action.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_project_wizard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_project_wizard.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_projects_view.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_projects_view.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_script_action.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_script_action.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_start_action.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_start_action.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_workspace_view.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_workspace_view.gif -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/safearray/SafeArrayBasicTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/com.jacob/unittest/com/jacob/test/safearray/SafeArrayBasicTest.java -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_togglenature_action.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_togglenature_action.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/m-files/keyboard.m: -------------------------------------------------------------------------------- 1 | function keyboard 2 | % nothing to be done 3 | % should be disabled 4 | fprintf(1,'%s\n','Keyboard Mode: Presently not supported in matclipse.') -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/config/helpfileexceptions.dtd: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/icons/matlab_workbench_perspective.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krystophny/matclipse/HEAD/org.eclipselabs.matclipse.mconsole/icons/matlab_workbench_perspective.gif -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.util/.settings/org.eclipse.jst.ws.cxf.core.prefs: -------------------------------------------------------------------------------- 1 | #Sun May 02 15:33:04 CEST 2010 2 | eclipse.preferences.version=1 3 | org.eclipse.jst.ws.cxf.core.runtime.version=2.2.7 4 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/config/latexpic.template: -------------------------------------------------------------------------------- 1 | \documentclass[12pt]{article} 2 | \usepackage{amssymb,amsmath} 3 | \pagestyle{empty} 4 | \begin{document} 5 | 6 | 7 | 8 | \end{document} 9 | -------------------------------------------------------------------------------- /com.jacob/unittest/readme.txt: -------------------------------------------------------------------------------- 1 | This directory contains junit tests and other/older tests for 2 | specific functions. Sometimes tests in this directory migrate 3 | to the samples directory as they are updated to show more functionality. -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/MathProj/README.txt: -------------------------------------------------------------------------------- 1 | A Simple VB COM DLL that exposes two methods and raises events. 2 | 3 | The dll must be registered with your system 4 | 5 | Run --> regsvr32 \com\jacob\test\MathProj\MathTest.dll -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/applet/AppTest.html: -------------------------------------------------------------------------------- 1 | Applet Test (1.1) 2 |

Applet Test (1.1)

3 |
4 | 5 | 6 |
7 | The source. 8 |
9 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/config/consoleproperties.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | false 6 | 7 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = plugin.xml,\ 4 | META-INF/,\ 5 | .,\ 6 | icons/,\ 7 | doc/,\ 8 | ext_tools/,\ 9 | config/ 10 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/ext_tools/tex2pdf.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cd "$1" 3 | cp $2 __tmp.tex 4 | pdflatex -interaction=nonstopmode __tmp.tex >__tmp.log 5 | #pdflatex -interaction=nonstopmode __tmp.tex 6 | #latex __tmp.tex 7 | mv __tmp.pdf ${2:0:${#2}-4}.pdf 8 | rm __tmp.* 9 | exit 0 10 | -------------------------------------------------------------------------------- /com.jacob/compilation_tools.properties: -------------------------------------------------------------------------------- 1 | JDK=C:\\Program Files (x86)\\Java\\jdk1.6.0_23 2 | MSDEV_DIR=C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC 3 | MSSDK_DIR=C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A 4 | MSDEV_IDE_DIR=C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE 5 | version=1.15-M4 6 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.def: -------------------------------------------------------------------------------- 1 | ; MultiFace.def : Declares the module parameters. 2 | 3 | LIBRARY "MultiFace.DLL" 4 | 5 | EXPORTS 6 | DllCanUnloadNow @1 PRIVATE 7 | DllGetClassObject @2 PRIVATE 8 | DllRegisterServer @3 PRIVATE 9 | DllUnregisterServer @4 PRIVATE 10 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFaceps.def: -------------------------------------------------------------------------------- 1 | 2 | LIBRARY "MultiFacePS" 3 | 4 | DESCRIPTION 'Proxy/Stub DLL' 5 | 6 | EXPORTS 7 | DllGetClassObject @1 PRIVATE 8 | DllCanUnloadNow @2 PRIVATE 9 | GetProxyDllInfo @3 PRIVATE 10 | DllRegisterServer @4 PRIVATE 11 | DllUnregisterServer @5 PRIVATE 12 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/tasks/subtopic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sub Topic 7 | 8 | 9 | 10 |

Sub Topic

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/config/metadata_osiris.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | www.itp.tugraz.at/~osiris 5 | osiris 6 | osiris@itp.tugraz.at 7 | 8 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/concepts/maintopic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Main Topic 7 | 8 | 9 | 10 |

Main Topic

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/concepts/subtopic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sub Topic 7 | 8 | 9 | 10 |

Sub Topic

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/reference/subtopic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sub Topic 7 | 8 | 9 | 10 |

Sub Topic

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/samples/maintopic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Main Topic 7 | 8 | 9 | 10 |

Main Topic

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/samples/subtopic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sub Topic 7 | 8 | 9 | 10 |

Sub Topic

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/tasks/maintopic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Main Topic 7 | 8 | 9 | 10 |

Main Topic

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/tasks/subtopic2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sub Topic 2 7 | 8 | 9 | 10 |

Sub Topic 2

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/toc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Table of Contents 7 | 8 | 9 | 10 |

Table of Contents

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /com.jacob/samples/README.txt: -------------------------------------------------------------------------------- 1 | The ADO sample is a wrapper for the ADO classes. This demonstrates how 2 | to write JACOB wrappers. 3 | 4 | The applet sample shows how to use JACOB in an applet. The trick is to 5 | initialize and use the COM object in the same thread. 6 | 7 | The test directory has numerous tests that test various features 8 | of the JACOB functionality. 9 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/concepts/subtopic2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sub Topic 2 7 | 8 | 9 | 10 |

Sub Topic 2

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/gettingstarted/subtopic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sub Topic 7 | 8 | 9 | 10 |

Sub Topic

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/reference/maintopic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Main Topic 7 | 8 | 9 | 10 |

Main Topic

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/reference/subtopic2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sub Topic 2 7 | 8 | 9 | 10 |

Sub Topic 2

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/samples/subtopic2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sub Topic 2 7 | 8 | 9 | 10 |

Sub Topic 2

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/gettingstarted/maintopic.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Main Topic 7 | 8 | 9 | 10 |

Main Topic

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/html/gettingstarted/subtopic2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sub Topic 2 7 | 8 | 9 | 10 |

Sub Topic 2

11 | Please enter your text here. 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/ext_tools/tex2png.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd "$1" 4 | latex temp.tex 5 | dvips temp.dvi 6 | gs -r300x300 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=bmp16m -sOutputFile=temp.bmp -dBATCH -dNOPAUSE temp.ps 7 | mogrify -crop 0x0 temp.bmp 8 | convert -bordercolor white -border 5x2 -antialias -quality 100 -geometry 35%x35% temp.bmp "$2" 9 | rm temp.* 10 | exit 0 11 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/plugin_customization.ini: -------------------------------------------------------------------------------- 1 | org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP = false 2 | org.eclipse.core.resources/encoding=ISO-8859-1 3 | at.tugraz.itp.mltutor.matlabengine/choicePreference=jpedal 4 | org.eclipse.ui/presentationFactoryId=de.loskutov.EclipseSkins.extvs.EVSPresentationFactory 5 | org.eclipse.ui/defaultPerspectiveId=org.eclipselabs.matclipse.mconsole.perspectives.MatlabWorkbench 6 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // stdafx.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | #ifdef _ATL_STATIC_REGISTRY 8 | #include 9 | #include 10 | #endif 11 | 12 | #include 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/doc/toc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.util/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/ado/ms/README.txt: -------------------------------------------------------------------------------- 1 | This is the WFC equivalent of the JACOB ADO example. 2 | 3 | This code must be compiled with JVC and run with JVIEW. 4 | 5 | The file testms.java has been renamed to tesetms.java.txt 6 | because most folks building this application will 7 | not have the MS JVM installed and will get compiler 8 | warnings. The MS JVM is going away eventually 9 | so this whole test will eventually go away. -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole.win32/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/m-files/pause.m: -------------------------------------------------------------------------------- 1 | function pause(varargin) 2 | 3 | if nargin==1 && ~ischar(varargin{1}) 4 | if varargin{1} > 2.0, 5 | varargin{1} = 2.0; 6 | fprintf(1,'%s\n','Pause Mode: Automatically terminated after 2 seconds.') 7 | end 8 | builtin('pause',varargin{:}); 9 | else 10 | fprintf(1,'%s\n','Pause Mode: Automatically terminated after 2 seconds.') 11 | builtin('pause',2); 12 | end -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/toctasks.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/tocsamples.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | #Thu Nov 26 00:27:49 CET 2009 2 | eclipse.preferences.version=1 3 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 5 | org.eclipse.jdt.core.compiler.compliance=1.5 6 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.source=1.5 9 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/tocconcepts.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/tocreference.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.util/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | #Wed Dec 22 16:03:27 CET 2010 2 | eclipse.preferences.version=1 3 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 5 | org.eclipse.jdt.core.compiler.compliance=1.6 6 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.source=1.6 9 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole.win32/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | #Thu Feb 10 11:35:15 CET 2011 2 | eclipse.preferences.version=1 3 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 5 | org.eclipse.jdt.core.compiler.compliance=1.6 6 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.source=1.6 9 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/tocgettingstarted.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.feature/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipselabs.matclipse.feature 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.FeatureBuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.pde.FeatureNature 16 | 17 | 18 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/ado/CommandTypeEnum.java: -------------------------------------------------------------------------------- 1 | package com.jacob.samples.ado; 2 | 3 | // Enum: CommandTypeEnum 4 | 5 | public interface CommandTypeEnum { 6 | public static final int adCmdUnspecified = -1; 7 | public static final int adCmdUnknown = 8; 8 | public static final int adCmdText = 1; 9 | public static final int adCmdTable = 2; 10 | public static final int adCmdStoredProc = 4; 11 | public static final int adCmdFile = 256; 12 | public static final int adCmdTableDirect = 512; 13 | } 14 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/readme.txt: -------------------------------------------------------------------------------- 1 | This example demonstrates how to access multiple interfaces. 2 | 3 | To run it, chdir to MultiFace\Debug and run: 4 | regsvr32 MultiFace.dll 5 | 6 | Then, run (in this dir): 7 | java MultiFace 8 | 9 | As you can see from MultiFace\MultiFace.idl - there are 3 interfaces. 10 | 11 | By default JACOB attaches to the default interface. 12 | 13 | The file MultiFace.java shows how to use the new Dispatch.QueryInterface 14 | to get access to the other interfaces. 15 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole.win32/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.win32.feature/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipselabs.matclipse.win32.feature 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.FeatureBuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.pde.FeatureNature 16 | 17 | 18 | -------------------------------------------------------------------------------- /com.jacob/README.txt: -------------------------------------------------------------------------------- 1 | JACOB (Java-COM bridge) is hosted on Sourceforge http://sourceforge.net/project/jacob-project 2 | 3 | Information about what's new in this release can be found in docs/ReleaseNotes.html 4 | 5 | Instructions on building this project can be found in docs/BuildingJacobFromSource.html 6 | Detailed instructions on creating a build configuration file are in build.xml 7 | 8 | Put the appropriate DLL for your platform into your runtime library path. 9 | jacob for 32 bit windows is located in /x86. 10 | 11 | There is no good usage guide at this time. -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/doc/package-list: -------------------------------------------------------------------------------- 1 | org.eclipselabs.matclipse.mconsole 2 | org.eclipselabs.matclipse.mconsole.builder 3 | org.eclipselabs.matclipse.mconsole.decorators 4 | org.eclipselabs.matclipse.mconsole.internal.ui.actions 5 | org.eclipselabs.matclipse.mconsole.internal.ui.perspectives 6 | org.eclipselabs.matclipse.mconsole.internal.ui.preferences 7 | org.eclipselabs.matclipse.mconsole.internal.ui.wizards 8 | org.eclipselabs.matclipse.mconsole.matlab 9 | org.eclipselabs.matclipse.mconsole.matlab.impl 10 | org.eclipselabs.matclipse.mconsole.views 11 | -------------------------------------------------------------------------------- /com.jacob/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFaceps.mk: -------------------------------------------------------------------------------- 1 | 2 | MultiFaceps.dll: dlldata.obj MultiFace_p.obj MultiFace_i.obj 3 | link /dll /out:MultiFaceps.dll /def:MultiFaceps.def /entry:DllMain dlldata.obj MultiFace_p.obj MultiFace_i.obj \ 4 | kernel32.lib rpcndr.lib rpcns4.lib rpcrt4.lib oleaut32.lib uuid.lib \ 5 | 6 | .c.obj: 7 | cl /c /Ox /DWIN32 /D_WIN32_WINNT=0x0400 /DREGISTER_PROXY_DLL \ 8 | $< 9 | 10 | clean: 11 | @del MultiFaceps.dll 12 | @del MultiFaceps.lib 13 | @del MultiFaceps.exp 14 | @del dlldata.obj 15 | @del MultiFace_p.obj 16 | @del MultiFace_i.obj 17 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = plugin.xml,\ 4 | META-INF/,\ 5 | .,\ 6 | icons/,\ 7 | nanoxml-2.2.3.jar,\ 8 | m-files/,\ 9 | xstream-1.1.2.jar,\ 10 | plugin_customization.ini,\ 11 | toc.xml,\ 12 | tocconcepts.xml,\ 13 | tocgettingstarted.xml,\ 14 | tocreference.xml,\ 15 | tocsamples.xml,\ 16 | toctasks.xml,\ 17 | html/ 18 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/toc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/vbscript/ScriptTestErrEvents.java: -------------------------------------------------------------------------------- 1 | package com.jacob.test.vbscript; 2 | 3 | import com.jacob.com.Variant; 4 | import com.jacob.test.BaseTestCase; 5 | 6 | /** 7 | * Extracted from ScriptTest so everyone can see this Made a test solely because 8 | * it made the ant test easier 9 | */ 10 | public class ScriptTestErrEvents extends BaseTestCase { 11 | 12 | public void Error(Variant[] args) { 13 | System.out.println("java callback for error!"); 14 | } 15 | 16 | public void Timeout(Variant[] args) { 17 | System.out.println("java callback for error!"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/Face.rgs: -------------------------------------------------------------------------------- 1 | HKCR 2 | { 3 | MultiFace.Face.1 = s 'Face Class' 4 | { 5 | CLSID = s '{9BF24412-B2E0-11D4-A695-00104BFF3241}' 6 | } 7 | MultiFace.Face = s 'Face Class' 8 | { 9 | CLSID = s '{9BF24412-B2E0-11D4-A695-00104BFF3241}' 10 | } 11 | NoRemove CLSID 12 | { 13 | ForceRemove {9BF24412-B2E0-11D4-A695-00104BFF3241} = s 'Face Class' 14 | { 15 | ProgID = s 'MultiFace.Face.1' 16 | VersionIndependentProgID = s 'MultiFace.Face' 17 | InprocServer32 = s '%MODULE%' 18 | { 19 | val ThreadingModel = s 'both' 20 | } 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.util/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Util Plug-in 4 | Bundle-SymbolicName: org.eclipselabs.matclipse.util 5 | Bundle-Version: 0.5.0.qualifier 6 | Bundle-Activator: org.eclipselabs.matclipse.util.MatclipseUtilPlugin 7 | Require-Bundle: org.eclipse.core.runtime, 8 | org.eclipse.jface, 9 | org.eclipse.ui, 10 | org.eclipse.jface.text, 11 | org.eclipse.ui.workbench.texteditor, 12 | org.eclipse.core.resources 13 | Bundle-ActivationPolicy: lazy 14 | Export-Package: org.eclipselabs.matclipse.util 15 | Bundle-RequiredExecutionEnvironment: JavaSE-1.6 16 | Bundle-ClassPath: . 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # matclipse 2 | .m file editor and console that connects to MATLAB® 3 | 4 | This project grew out of our requirement to work with MATLAB® in an Eclipse environment and is not affiliated with MathWorks. 5 | 6 | ## Development 7 | * Open Eclipse 8 | * Make sure to have the following installed: 9 | * Eclipse SDK 10 | * Eclipse Platform SDK 11 | * Eclipse Plugin Development Tools 12 | * File -> Import -> Git -> Projects from Git 13 | * Clone URI: https://github.com/krystophny/matclipse.git 14 | * Select "Import Eclipse project directories 15 | * Disable win32 and com.jacob if not on win32 16 | * Create run configuration with features available in workspace 17 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by MultiFace.rc 4 | // 5 | #define IDS_PROJNAME 100 6 | #define IDS_FACE_DESC 101 7 | #define IDR_Face 102 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 201 14 | #define _APS_NEXT_COMMAND_VALUE 32768 15 | #define _APS_NEXT_CONTROL_VALUE 201 16 | #define _APS_NEXT_SYMED_VALUE 103 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/config/XML_export_properties.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ./config/ 6 | ./xml/test/ 7 | schema.xsd 8 | true 9 | CONFDIR/html.xsl 10 | CONFDIR/html_lines.xsl 11 | CONFDIR/latex.xsl 12 | CONFDIR/latex_lines.xsl 13 | 14 | 15 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "MultiFace"=.\MultiFace.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/visio/VisioException.java: -------------------------------------------------------------------------------- 1 | package com.jacob.samples.visio; 2 | 3 | /** 4 | * Created as part of sourceforge 1386454 to demonstrate returning values in 5 | * event handlers 6 | * 7 | * @author miles@rowansoftware.net 8 | * 9 | * This extends runtime exception so that we can be sloppy and not put catch 10 | * blocks everywhere 11 | */ 12 | public class VisioException extends Exception { 13 | /** 14 | * Totally dummy value to make Eclipse quit complaining 15 | */ 16 | private static final long serialVersionUID = 1L; 17 | 18 | public VisioException(String msg) { 19 | super(msg); 20 | } 21 | 22 | public VisioException(Throwable cause) { 23 | super(cause); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/com/JacobObjectTest.java: -------------------------------------------------------------------------------- 1 | package com.jacob.com; 2 | 3 | import com.jacob.test.BaseTestCase; 4 | 5 | /** 6 | * This will eventually be changed to a unit test. 7 | *

8 | * May need to run with some command line options (including from inside 9 | * Eclipse). Look in the docs area at the Jacob usage document for command line 10 | * options. 11 | */ 12 | public class JacobObjectTest extends BaseTestCase { 13 | 14 | /** 15 | * verify the build version and date functions work correctly 16 | */ 17 | public void testBuildVersion() { 18 | System.out.println("build version is " + JacobReleaseInfo.getBuildVersion()); 19 | System.out.println("build date is " + JacobReleaseInfo.getBuildDate()); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/m-files/close_figure.m: -------------------------------------------------------------------------------- 1 | function close_figure(in) 2 | % Loescht Figures. 3 | % Aufruf: close_figure('all') - alle Figures 4 | % close_figure(h) - h ist Handle oder Vektor von Handles 5 | % close_figure(tag) - tag for findobj 6 | % 7 | % Winfried Kernbichler 15.02.2006 8 | if nargin < 1, return; end 9 | 10 | if ischar(in) 11 | if strcmp(in,'all') 12 | figs = get(0,'children'); 13 | else 14 | figs = findobj(0,'Tag',in); 15 | if isempty(figs), return; end 16 | end 17 | elseif any(ishandle(in)) 18 | figs = intersect(get(0,'children'),in(:)); 19 | else 20 | return 21 | end 22 | 23 | for k = numel(figs):-1:1 24 | if strcmp(get(figs(k),'Type'),'figure'), close(figs(k)); end 25 | end 26 | 27 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/m-files/raise_figure.m: -------------------------------------------------------------------------------- 1 | function raise_figure(in) 2 | % Holt Figures in den Vordergrund. 3 | % Aufruf: raise_figure('all') - alle Figures 4 | % raise_figure(h) - h ist Handle oder Vektor von Handles 5 | % raise_figure(tag) - tag for findobj 6 | % 7 | % Winfried Kernbichler 15.02.2006 8 | if nargin < 1, return; end 9 | 10 | if ischar(in) 11 | if strcmp(in,'all') 12 | figs = get(0,'children'); 13 | else 14 | figs = findobj(0,'Tag',in); 15 | if isempty(figs), return; end 16 | end 17 | elseif any(ishandle(in)) 18 | figs = intersect(get(0,'children'),in(:)); 19 | else 20 | return 21 | end 22 | 23 | for k = numel(figs):-1:1 24 | if strcmp(get(figs(k),'Type'),'figure'), figure(figs(k)); end 25 | end 26 | 27 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.util/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipselabs.matclipse.util 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipselabs.matclipse.mconsole 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole.win32/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: MConsole win32 4 | Bundle-SymbolicName: org.eclipselabs.matclipse.mconsole.win32;singleton:=true 5 | Bundle-Version: 0.5.0.qualifier 6 | Require-Bundle: org.eclipse.ui, 7 | org.eclipse.core.runtime, 8 | com.jacob;bundle-version="1.15.0", 9 | org.eclipse.core.resources;bundle-version="3.6.0", 10 | org.eclipselabs.matclipse.mconsole;bundle-version="0.5.0" 11 | Bundle-ActivationPolicy: lazy 12 | Bundle-RequiredExecutionEnvironment: JavaSE-1.6 13 | Export-Package: org.eclipselabs.matclipse.mconsole.win32, 14 | org.eclipselabs.matclipse.mconsole.win32.impl 15 | Eclipse-PlatformFilter: (& (osgi.os=win32) (|(osgi.arch=x86)(osgi.arch=x86_64))) 16 | Bundle-Activator: org.eclipselabs.matclipse.mconsole.win32.Activator 17 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipselabs.matclipse.meditor 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole.win32/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.eclipselabs.matclipse.mconsole.win32 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Meditor Plug-in 4 | Bundle-SymbolicName: org.eclipselabs.matclipse.meditor;singleton:=true 5 | Bundle-Version: 0.5.0.qualifier 6 | Bundle-Activator: org.eclipselabs.matclipse.meditor.Activator 7 | Require-Bundle: org.eclipse.ui, 8 | org.eclipse.core.runtime, 9 | org.eclipse.jface.text, 10 | org.eclipse.ui.editors, 11 | org.eclipse.core.resources, 12 | org.eclipse.ui.workbench.texteditor, 13 | org.eclipse.ui.views, 14 | org.eclipse.ui.browser, 15 | org.eclipse.ui.ide, 16 | org.eclipse.jdt.ui 17 | Bundle-ActivationPolicy: lazy 18 | Export-Package: org.eclipselabs.matclipse.meditor, 19 | org.eclipselabs.matclipse.meditor.editors, 20 | org.eclipselabs.matclipse.meditor.editors.partitioner, 21 | org.eclipselabs.matclipse.meditor.util 22 | Bundle-RequiredExecutionEnvironment: JavaSE-1.6 23 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/MathProj/MathTest.vbp: -------------------------------------------------------------------------------- 1 | Type=OleDll 2 | Class=Math; Math.cls 3 | Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINNT\System32\StdOle2.Tlb#OLE Automation 4 | Startup="(None)" 5 | HelpFile="" 6 | Title="MathTest" 7 | ExeName32="MathTest.dll" 8 | Command32="" 9 | Name="MathTest" 10 | HelpContextID="0" 11 | CompatibleMode="1" 12 | CompatibleEXE32="MathTest.dll" 13 | MajorVer=1 14 | MinorVer=0 15 | RevisionVer=0 16 | AutoIncrementVer=0 17 | ServerSupportFiles=0 18 | VersionCompanyName="Inventure America, Inc." 19 | CompilationType=0 20 | OptimizationType=0 21 | FavorPentiumPro(tm)=0 22 | CodeViewDebugInfo=0 23 | NoAliasing=0 24 | BoundsCheck=0 25 | OverflowCheck=0 26 | FlPointCheck=0 27 | FDIVCheck=0 28 | UnroundedFP=0 29 | StartMode=1 30 | Unattended=0 31 | Retained=0 32 | ThreadPerObject=0 33 | MaxNumberOfThreads=1 34 | ThreadingModel=1 35 | DebugStartupOption=0 36 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/doc/general.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Meditor 4 | 5 | 6 |

General

7 | Meditor is a Matlab editor that provides support for writing matlab code, getting help and exporting code to several output formats. 8 | 9 |

Features

10 | These are Meditor's main features: 11 |
    12 |
  • Syntax highlighting
  • 13 |
  • Automatic indentation
  • 14 |
  • Visualization of matching brackets
  • 15 |
  • Matlab help access
  • 16 |
  • Export of Matlab code, extended by the possibility to use formatted text
  • 17 |
18 | 19 |

Licence

20 | Meditor is published under the Eclipse Public License Version 1.0 ("EPL")
21 | For details see http://www.eclipse.org/legal/epl-v10.html 22 | 23 | 24 | -------------------------------------------------------------------------------- /com.jacob/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.jacob 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jdt.core.javanature 26 | org.eclipse.pde.PluginNature 27 | 28 | 29 | 30 | java 31 | 2 32 | C:/Users/chris/eclipse/matclipse/com.jacob/release/java 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/dlldata.c: -------------------------------------------------------------------------------- 1 | /********************************************************* 2 | DllData file -- generated by MIDL compiler 3 | 4 | DO NOT ALTER THIS FILE 5 | 6 | This file is regenerated by MIDL on every IDL file compile. 7 | 8 | To completely reconstruct this file, delete it and rerun MIDL 9 | on all the IDL files in this DLL, specifying this file for the 10 | /dlldata command line option 11 | 12 | *********************************************************/ 13 | 14 | #define PROXY_DELEGATION 15 | 16 | #include 17 | 18 | #ifdef __cplusplus 19 | extern "C" { 20 | #endif 21 | 22 | EXTERN_PROXY_FILE( MultiFace ) 23 | 24 | 25 | PROXYFILE_LIST_START 26 | /* Start of list */ 27 | REFERENCE_PROXY_FILE( MultiFace ), 28 | /* End of list */ 29 | PROXYFILE_LIST_END 30 | 31 | 32 | DLLDATA_ROUTINES( aProxyFileList, GET_DLL_CLSID ) 33 | 34 | #ifdef __cplusplus 35 | } /*extern "C" */ 36 | #endif 37 | 38 | /* end of generated dlldata file */ 39 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, 3 | // but are changed infrequently 4 | 5 | #if !defined(AFX_STDAFX_H__9BF24406_B2E0_11D4_A695_00104BFF3241__INCLUDED_) 6 | #define AFX_STDAFX_H__9BF24406_B2E0_11D4_A695_00104BFF3241__INCLUDED_ 7 | 8 | #if _MSC_VER > 1000 9 | #pragma once 10 | #endif // _MSC_VER > 1000 11 | 12 | #define STRICT 13 | #ifndef _WIN32_WINNT 14 | #define _WIN32_WINNT 0x0400 15 | #endif 16 | #define _ATL_APARTMENT_THREADED 17 | 18 | #include 19 | //You may derive a class from CComModule and use it if you want to override 20 | //something, but do not change the name of _Module 21 | extern CComModule _Module; 22 | #include 23 | 24 | //{{AFX_INSERT_LOCATION}} 25 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 26 | 27 | #endif // !defined(AFX_STDAFX_H__9BF24406_B2E0_11D4_A695_00104BFF3241__INCLUDED) 28 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/matlab/MatlabNotStartedException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.matlab; 16 | 17 | public class MatlabNotStartedException extends Exception { 18 | 19 | /** 20 | * 21 | */ 22 | private static final long serialVersionUID = 641368856171033140L; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/matlab/MatlabCommunicationException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.matlab; 16 | 17 | public class MatlabCommunicationException extends Exception { 18 | 19 | /** 20 | * 21 | */ 22 | private static final long serialVersionUID = -4742591016584397299L; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Plasma Physics at ITPcp, TU Graz 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/visio/VisioEventListener.java: -------------------------------------------------------------------------------- 1 | package com.jacob.samples.visio; 2 | 3 | import com.jacob.com.Variant; 4 | 5 | /** 6 | * Created as part of sourceforge 1386454 to demonstrate returning values in 7 | * event handlers 8 | * 9 | * @author miles@rowansoftware.net 10 | * 11 | * There are many more Visio events available. See the Microsoft Office SDK 12 | * documentation. To receive an event, add a method to this interface whose name 13 | * matches the event name and has only one parameter, Variant[]. The JACOB 14 | * library will use reflection to call that method when an event is received. 15 | */ 16 | public interface VisioEventListener { 17 | 18 | public void BeforeQuit(Variant[] args); 19 | 20 | public void DocumentChanged(Variant[] args); 21 | 22 | public void DocumentCloseCanceled(Variant[] args); 23 | 24 | public void DocumentCreated(Variant[] args); 25 | 26 | public void DocumentOpened(Variant[] args); 27 | 28 | public void DocumentSaved(Variant[] args); 29 | 30 | public void DocumentSavedAs(Variant[] args); 31 | 32 | public Variant QueryCancelQuit(Variant[] args); 33 | } 34 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/doc/at/tugraz/itp/matclipse/mconsole/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.eclipselabs.matclipse.mconsole 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | org.eclipselabs.matclipse.mconsole 20 | 21 | 22 | 27 | 28 |
23 | Classes  24 | 25 |
26 | MConsolePlugin
29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/com/DispatchTest.java: -------------------------------------------------------------------------------- 1 | package com.jacob.com; 2 | 3 | import com.jacob.activeX.ActiveXComponent; 4 | import com.jacob.test.BaseTestCase; 5 | 6 | /** 7 | * Test some of the Dispatch utility methods 8 | *

9 | * May need to run with some command line options (including from inside 10 | * Eclipse). Look in the docs area at the Jacob usage document for command line 11 | * options. 12 | */ 13 | public class DispatchTest extends BaseTestCase { 14 | 15 | /** 16 | * Verify this detects word's exit 17 | */ 18 | public void testDispatchHasExited() { 19 | String pid = "Word.Application"; 20 | ActiveXComponent axc = new ActiveXComponent(pid); 21 | assertEquals(0, Dispatch.hasExited(axc)); 22 | axc.invoke("Quit", new Variant[] {}); 23 | // should take some amount of time for Word to Quit so should = !exited 24 | assertEquals(0, Dispatch.hasExited(axc)); 25 | try { 26 | // sleep some reasonable amount of time waiting for it to quit 27 | Thread.sleep(2000); 28 | } catch (InterruptedException e) { 29 | fail("should not have been interrupted"); 30 | } 31 | assertEquals(1, Dispatch.hasExited(axc)); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/errors/UnicodeErrorTest.java: -------------------------------------------------------------------------------- 1 | package com.jacob.test.errors; 2 | 3 | import com.jacob.test.BaseTestCase; 4 | import com.jacob.activeX.ActiveXComponent; 5 | import com.jacob.com.ComException; 6 | 7 | /** 8 | * This test verifies patch SF 1794811 . It shows how unicode filenames throw 9 | * exceptions in 1.13M4 and earlier. 10 | * 11 | * @author justme84 12 | * 13 | */ 14 | public class UnicodeErrorTest extends BaseTestCase { 15 | 16 | /** 17 | * verifies that messages can now have unicode in them like when the file 18 | * names have unicode characters 19 | */ 20 | public void testUnicodeCharactersInErrorMessage() { 21 | ActiveXComponent application = new ActiveXComponent("Word.Application"); 22 | ActiveXComponent documents = application 23 | .getPropertyAsComponent("Documents"); 24 | String fileName = "abc\u0411\u0412\u0413\u0414def"; 25 | try { 26 | documents.invoke("Open", fileName); 27 | fail("Should have thrown an exception"); 28 | } catch (ComException e) { 29 | assertTrue("Error message should contain file name with unicode " 30 | + "characters in it. " + e.getMessage(), e.getMessage() 31 | .indexOf(fileName) > 0); 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/doc/at/tugraz/itp/matclipse/mconsole/decorators/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.eclipselabs.matclipse.mconsole.decorators 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | org.eclipselabs.matclipse.mconsole.decorators 20 | 21 | 22 | 27 | 28 |
23 | Classes  24 | 25 |
26 | MatlabDecorator
29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /com.jacob/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: JACOB 4 | Bundle-SymbolicName: com.jacob 5 | Bundle-Version: 1.15.0.M4 6 | Export-Package: com.jacob.activeX, 7 | com.jacob.com, 8 | com.jacob.samples.JavaWebStart, 9 | com.jacob.samples.MathProj, 10 | com.jacob.samples.access, 11 | com.jacob.samples.ado, 12 | com.jacob.samples.ado.ms, 13 | com.jacob.samples.applet, 14 | com.jacob.samples.atl, 15 | com.jacob.samples.atl.MultiFace, 16 | com.jacob.samples.office, 17 | com.jacob.samples.outlook, 18 | com.jacob.samples.servlet, 19 | com.jacob.samples.system, 20 | com.jacob.samples.visio, 21 | com.jacob.test, 22 | com.jacob.test.errors, 23 | com.jacob.test.events, 24 | com.jacob.test.excel, 25 | com.jacob.test.powerpoint, 26 | com.jacob.test.safearray, 27 | com.jacob.test.vbscript, 28 | com.jacob.test.windowsmedia 29 | Bundle-ActivationPolicy: lazy 30 | Bundle-RequiredExecutionEnvironment: JavaSE-1.6 31 | Bundle-NativeCode: /release/x86/jacob-1.15-M4-x86.dll; osname="win32"; osname="windows server 2008 r2"; processor=x86, 32 | /release/x64/jacob-1.15-M4-x64.dll; osname="win32"; osname="windows server 2008 r2"; processor=x86-64 33 | Eclipse-PlatformFilter: (& (osgi.os=win32) (|(osgi.arch=x86)(osgi.arch=x86_64))) 34 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/ado/Fields.java: -------------------------------------------------------------------------------- 1 | package com.jacob.samples.ado; 2 | 3 | import com.jacob.com.Dispatch; 4 | import com.jacob.com.Variant; 5 | 6 | public class Fields extends Dispatch { 7 | /** 8 | * This constructor is used instead of a case operation to turn a Dispatch 9 | * object into a wider object - it must exist in every wrapper class whose 10 | * instances may be returned from method calls wrapped in VT_DISPATCH 11 | * Variants. 12 | */ 13 | public Fields(Dispatch d) { 14 | super(d); 15 | } 16 | 17 | public int getCount() { 18 | return Dispatch.get(this, "Count").getInt(); 19 | } 20 | 21 | public Variant _NewEnum() { 22 | return Dispatch.call(this, "_NewEnum"); 23 | } 24 | 25 | public void Refresh() { 26 | Dispatch.call(this, "Refresh"); 27 | } 28 | 29 | public Field getItem(int Index) { 30 | return new Field(Dispatch.call(this, "Item", new Variant(Index)) 31 | .toDispatch()); 32 | } 33 | 34 | public void Append(String Name, int Type, int DefinedSize, int Attrib) { 35 | Dispatch.call(this, "Append", Name, new Variant(Type), new Variant( 36 | DefinedSize), new Variant(Attrib)); 37 | } 38 | 39 | public void Delete(Variant Index) { 40 | Dispatch.call(this, "Delete", Index); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/doc/at/tugraz/itp/matclipse/mconsole/internal/ui/perspectives/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.eclipselabs.matclipse.mconsole.internal.ui.perspectives 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | org.eclipselabs.matclipse.mconsole.internal.ui.perspectives 20 | 21 | 22 | 27 | 28 |
23 | Classes  24 | 25 |
26 | MatlabWorkbench
29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/MathProj/Math.cls: -------------------------------------------------------------------------------- 1 | VERSION 1.0 CLASS 2 | BEGIN 3 | MultiUse = -1 'True 4 | Persistable = 0 'NotPersistable 5 | DataBindingBehavior = 0 'vbNone 6 | DataSourceBehavior = 0 'vbNone 7 | MTSTransactionMode = 0 'NotAnMTSObject 8 | END 9 | Attribute VB_Name = "Math" 10 | Attribute VB_GlobalNameSpace = False 11 | Attribute VB_Creatable = True 12 | Attribute VB_PredeclaredId = False 13 | Attribute VB_Exposed = True 14 | Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes" 15 | Attribute VB_Ext_KEY = "Top_Level" ,"Yes" 16 | 'To fire this event, use RaiseEvent with the following syntax: 17 | 'RaiseEvent DoneAdd[(arg1, arg2, ... , argn)] 18 | Public Event DoneAdd(result As Variant) 19 | 'To fire this event, use RaiseEvent with the following syntax: 20 | 'RaiseEvent DoneMult[(arg1, arg2, ... , argn)] 21 | Public Event DoneMult(result As Variant) 22 | 23 | 24 | Public Function Mult(in1 As Variant, in2 As Variant) As Variant 25 | Mult = in1 * in2 26 | RaiseEvent DoneMult(in1 * in2) 27 | End Function 28 | 29 | Public Function Add(in1 As Variant, in2 As Variant) As Variant 30 | Add = in1 + in2 31 | RaiseEvent DoneAdd(in1 + in2) 32 | End Function 33 | 34 | Public Function getNothing() As Variant 35 | Set getNothing = Nothing 36 | End Function 37 | 38 | -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/com/DispatchValidDispatchTest.java: -------------------------------------------------------------------------------- 1 | package com.jacob.com; 2 | 3 | import com.jacob.test.BaseTestCase; 4 | 5 | /** 6 | * Test armoring of dispatch static methods 7 | *

8 | * May need to run with some command line options (including from inside 9 | * Eclipse). Look in the docs area at the Jacob usage document for command line 10 | * options. 11 | */ 12 | public class DispatchValidDispatchTest extends BaseTestCase { 13 | 14 | /** 15 | * force an IllegalArgumentException to verify the utility method throws 16 | * correctly. 17 | */ 18 | public void testThrowIllegalArgumentException() { 19 | try { 20 | Dispatch.call(null, 0); 21 | fail("Failed to throw IllegalArgumentException"); 22 | } catch (IllegalArgumentException iae) { 23 | System.out.println("Caught correct IllegalArgumentException: " 24 | + iae); 25 | } 26 | } 27 | 28 | /** 29 | * force an IllegalStateException to verify the utility method throws 30 | * correctly. 31 | */ 32 | public void testThrowIllegalStateException() { 33 | try { 34 | Dispatch foo = new Dispatch(); 35 | Dispatch.call(foo, 0); 36 | fail("Failed to throw IllegalStateException"); 37 | } catch (IllegalStateException ise) { 38 | System.out.println("Caught correct IllegalStateException " + ise); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/doc/at/tugraz/itp/matclipse/mconsole/builder/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.eclipselabs.matclipse.mconsole.builder 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | org.eclipselabs.matclipse.mconsole.builder 20 | 21 | 22 | 29 | 30 |
23 | Classes  24 | 25 |
26 | MatlabBuilder 27 |
28 | MatlabNature
31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/com/DispatchNullProgramId.java: -------------------------------------------------------------------------------- 1 | package com.jacob.com; 2 | 3 | import com.jacob.test.BaseTestCase; 4 | 5 | /** 6 | * This test verifies that the Dispatch object protects itself when the 7 | * constructor is called with a null program id. Prior to this protection, the 8 | * VM might crash.m 9 | *

10 | * May need to run with some command line options (including from inside 11 | * Eclipse). Look in the docs area at the Jacob usage document for command line 12 | * options. 13 | */ 14 | public class DispatchNullProgramId extends BaseTestCase { 15 | 16 | /** 17 | * Verify that dispatch constructors are protected from null program ids. 18 | */ 19 | public void testNullProgramId() { 20 | try { 21 | String nullParam = null; 22 | new Dispatch(nullParam); 23 | fail("the dispatch failed to protect itself from null program ids"); 24 | } catch (IllegalArgumentException iae) { 25 | System.out 26 | .println("the dispatch protected itself from null program ids"); 27 | } 28 | try { 29 | String nullParam = ""; 30 | new Dispatch(nullParam); 31 | fail("the dispatch failed to protect itself from empty string program ids"); 32 | } catch (IllegalArgumentException iae) { 33 | System.out 34 | .println("the dispatch protected itself from empty string program ids"); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /com.jacob/src/com/jacob/com/MainSTA.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | package com.jacob.com; 21 | 22 | /** 23 | * We provide our own main sta thread to avoid COM tagging a random thread as 24 | * the main STA - this is the thread in which all Apartment threaded components 25 | * will be created if the client chooses an MTA threading model for the java 26 | * side of the app. 27 | */ 28 | public class MainSTA extends STA { 29 | } -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/src/org/eclipselabs/matclipse/meditor/editors/IWorkerThreadListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Institute of Theoretical and Computational Physics (ITPCP), 3 | * Graz University of Technology. 4 | * All rights reserved. This program and the accompanying materials 5 | * are made available under the terms of the Eclipse Public License v1.0 6 | * which accompanies this distribution, and is available at 7 | * http://www.eclipse.org/legal/epl-v10.html 8 | * 9 | * Contributors: 10 | * Georg Huhs, Winfried Kernbichler, David Camhy (ITPCP) - 11 | * initial API and implementation 12 | * Last changed: 13 | * 2007-03-09 14 | *******************************************************************************/ 15 | 16 | package org.eclipselabs.matclipse.meditor.editors; 17 | 18 | 19 | import java.util.EventListener; 20 | import java.util.HashMap; 21 | 22 | import org.eclipse.core.runtime.IPath; 23 | 24 | 25 | /** 26 | * Interface for listeners for threads that want to announce exceptions and 27 | * the completion of their work. 28 | * @author Georg Huhs 29 | */ 30 | public interface IWorkerThreadListener extends EventListener { 31 | public void exceptionOccured(String message, Exception e); 32 | public void workFinished(HashMap generatedFiles); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Mconsole Plug-in 4 | Bundle-SymbolicName: org.eclipselabs.matclipse.mconsole;singleton:=true 5 | Bundle-Version: 0.5.0.qualifier 6 | Bundle-Activator: org.eclipselabs.matclipse.mconsole.MConsolePlugin 7 | Require-Bundle: org.eclipse.ui, 8 | org.eclipse.core.runtime, 9 | org.eclipse.core.resources, 10 | org.eclipse.ui.ide, 11 | org.eclipse.jface.text, 12 | org.eclipse.ui.editors, 13 | org.eclipselabs.matclipse.util, 14 | org.eclipse.ui.navigator, 15 | org.eclipse.ui.views.properties.tabbed, 16 | org.eclipse.ui.navigator.resources;bundle-version="3.4.1", 17 | org.eclipselabs.matclipse.meditor;bundle-version="0.5.0" 18 | Bundle-ActivationPolicy: lazy 19 | Bundle-ClassPath: ., 20 | nanoxml-2.2.3.jar, 21 | xstream-1.1.2.jar 22 | Bundle-RequiredExecutionEnvironment: J2SE-1.5 23 | Export-Package: org.eclipselabs.matclipse.mconsole, 24 | org.eclipselabs.matclipse.mconsole.builder, 25 | org.eclipselabs.matclipse.mconsole.decorators, 26 | org.eclipselabs.matclipse.mconsole.internal.ui.actions, 27 | org.eclipselabs.matclipse.mconsole.internal.ui.perspectives, 28 | org.eclipselabs.matclipse.mconsole.internal.ui.preferences, 29 | org.eclipselabs.matclipse.mconsole.internal.ui.wizards, 30 | org.eclipselabs.matclipse.mconsole.matlab, 31 | org.eclipselabs.matclipse.mconsole.matlab.impl, 32 | org.eclipselabs.matclipse.mconsole.views 33 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.win32.feature/feature.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | [Enter Feature Description here.] 10 | 11 | 12 | 13 | [Enter Copyright Description here.] 14 | 15 | 16 | 17 | [Enter License Description here.] 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 34 | 35 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /com.jacob/src/com/jacob/com/VariantViaEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | package com.jacob.com; 21 | 22 | /** 23 | * a public class to variant that is used to track which variant objects are 24 | * created by event callbacks This is solely used for that purpose. 25 | */ 26 | public class VariantViaEvent extends Variant { 27 | 28 | /** 29 | * Standard constructor used by JNI event handling layer 30 | */ 31 | public VariantViaEvent() { 32 | super(); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /com.jacob/jni/util.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | #include 21 | extern "C" { 22 | VARIANT *extractVariant(JNIEnv *env, jobject arg); 23 | void ThrowComFail(JNIEnv *env, const char* desc, jint hr); 24 | void ThrowComFailUnicode(JNIEnv *env, const wchar_t* desc, jint hr); 25 | IDispatch *extractDispatch(JNIEnv *env, jobject arg); 26 | SAFEARRAY *extractSA(JNIEnv *env, jobject arg); 27 | void setSA(JNIEnv *env, jobject arg, SAFEARRAY *sa, int copy); 28 | SAFEARRAY *copySA(SAFEARRAY *psa); 29 | } 30 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/servlet/readme.txt: -------------------------------------------------------------------------------- 1 | This sample runs in Weblogic 5.1 as a servlet. 2 | 3 | 0. Rename JacobScript.java_nocompile to JacobScript.java 4 | 1. Compile this file (make sure you have jdk1.2 installed or the 5 | javax.servlet.* classes in your classpath). 6 | 2. Make sure the weblogic policy file allows native access. The easiest 7 | way is to replace the contents with this: 8 | 9 | grant codeBase "file:d:/weblogic/-" { 10 | permission java.security.AllPermission; 11 | }; 12 | 13 | grant codeBase "file:/c:/classes/-" { 14 | permission java.security.AllPermission; 15 | }; 16 | 17 | 18 | grant codeBase "file:${java.home}/lib/ext/-" { 19 | permission java.security.AllPermission; 20 | }; 21 | 22 | grant { 23 | permission java.security.AllPermission; 24 | }; 25 | 26 | 3. Add the servlet to the weblogic.properties file: 27 | 28 | weblogic.httpd.register.JacobScript=JacobScript 29 | 30 | 4. Either add your CLASSPATH to weblogic.classpath in startWebLogic.cmd 31 | or copy the com directory into weblogic/myserver/servletclasses 32 | 33 | 5. Copy the jacob/samples/servlet/* into weblogic/myserver/servletclasses 34 | 6. Start weblogic 35 | 36 | 7. Type the url: http://localhost:7001/JacobScript into the browser 37 | (If you run on port 7001) 38 | 39 | 8. Enter a VBScript expression like: 40 | 1+2 41 | Now 42 | "hello" & " world" 43 | etc. 44 | and watch the MS Script control (which you must have installed) 45 | evaluate and return the result. 46 | -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/safearray/SafeArrayDispatchTest.java: -------------------------------------------------------------------------------- 1 | package com.jacob.test.safearray; 2 | 3 | import com.jacob.activeX.ActiveXComponent; 4 | import com.jacob.com.ComException; 5 | import com.jacob.com.Dispatch; 6 | import com.jacob.com.SafeArray; 7 | import com.jacob.com.Variant; 8 | import com.jacob.test.BaseTestCase; 9 | 10 | /** 11 | * Test class to verify dispatch with SafeArray 12 | */ 13 | public class SafeArrayDispatchTest extends BaseTestCase { 14 | public void testDispatchWithSafeArray() { 15 | try { 16 | String scriptCommand = "1+(2*4)-3"; 17 | String lang = "VBScript"; 18 | ActiveXComponent sControl = new ActiveXComponent("ScriptControl"); 19 | Dispatch.put(sControl, "Language", lang); 20 | 21 | Variant result = Dispatch.call(sControl, "Eval", scriptCommand); 22 | assertTrue(result.toString().equals("6")); 23 | 24 | // wrap the script control in a variant 25 | Variant v = new Variant(sControl); 26 | 27 | // create a safe array of type dispatch 28 | SafeArray sa = new SafeArray(Variant.VariantDispatch, 1); 29 | 30 | // put the variant in the array 31 | sa.setVariant(0, v); 32 | 33 | // take it back out 34 | Variant v2 = sa.getVariant(0); 35 | Dispatch d = v2.toDispatch(); 36 | 37 | // make sure you can call eval on it 38 | result = Dispatch.call(d, "Eval", scriptCommand); 39 | assertTrue(result.toString().equals("6")); 40 | } catch (ComException e) { 41 | e.printStackTrace(); 42 | fail("script failure " + e); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/doc/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Javadoc style sheet */ 2 | 3 | /* Define colors, fonts and other style attributes here to override the defaults */ 4 | 5 | /* Page background color */ 6 | body { background-color: #FFFFFF; color:#000000 } 7 | 8 | /* Headings */ 9 | h1 { font-size: 145% } 10 | 11 | /* Table colors */ 12 | .TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ 13 | .TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ 14 | .TableRowColor { background: #FFFFFF; color:#000000 } /* White */ 15 | 16 | /* Font used in left-hand frame lists */ 17 | .FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } 18 | .FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } 19 | .FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } 20 | 21 | /* Navigation bar fonts and colors */ 22 | .NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ 23 | .NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ 24 | .NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} 25 | .NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} 26 | 27 | .NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} 28 | .NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} 29 | 30 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/doc/at/tugraz/itp/matclipse/mconsole/matlab/impl/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.eclipselabs.matclipse.mconsole.matlab.impl 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | org.eclipselabs.matclipse.mconsole.matlab.impl 20 | 21 | 22 | 31 | 32 |
23 | Classes  24 | 25 |
26 | MatlabInterpreterCOM 27 |
28 | MatlabInterpreterImpl 29 |
30 | OctaveInterpreter
33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/applet/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.jacob.samples.applet; 2 | 3 | import java.applet.Applet; 4 | import java.awt.Button; 5 | import java.awt.FlowLayout; 6 | import java.awt.TextField; 7 | import java.awt.event.ActionEvent; 8 | import java.awt.event.ActionListener; 9 | 10 | import com.jacob.activeX.ActiveXComponent; 11 | import com.jacob.com.Dispatch; 12 | import com.jacob.com.Variant; 13 | 14 | /** 15 | * Applet test case 16 | */ 17 | public class AppTest extends Applet implements ActionListener { 18 | /** 19 | * unique identifier added by Eclipse because this class is serializable 20 | */ 21 | private static final long serialVersionUID = -6676420357823607065L; 22 | 23 | TextField in; 24 | 25 | TextField out; 26 | 27 | Button calc; 28 | 29 | ActiveXComponent sC = null; 30 | 31 | /** 32 | * startup method 33 | */ 34 | public void init() { 35 | setLayout(new FlowLayout()); 36 | add(in = new TextField("1+1", 16)); 37 | add(out = new TextField("?", 16)); 38 | add(calc = new Button("Calculate")); 39 | calc.addActionListener(this); 40 | 41 | } 42 | 43 | /** 44 | * action method that receives button actions 45 | * 46 | * @param ev 47 | * the event 48 | */ 49 | public void actionPerformed(ActionEvent ev) { 50 | if (sC == null) { 51 | String lang = "VBScript"; 52 | sC = new ActiveXComponent("ScriptControl"); 53 | Dispatch.put(sC, "Language", lang); 54 | } 55 | Variant v = Dispatch.call(sC, "Eval", in.getText()); 56 | out.setText(v.toString()); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/office/VisioPrintTest.java: -------------------------------------------------------------------------------- 1 | package com.jacob.samples.office; 2 | 3 | import com.jacob.activeX.ActiveXComponent; 4 | import com.jacob.com.ComFailException; 5 | import com.jacob.com.Dispatch; 6 | 7 | /** 8 | * Snippet to show Visio print dialog 9 | *

10 | * Sample submitted by fatbuttlarry in SourceForge 1803140 as part of bug report 11 | *

12 | * Tested with Java 6.0SE and MS Office 2003 ** Note: 1010 = VB's 13 | * visCmdFilePrint constant 14 | */ 15 | public class VisioPrintTest { 16 | 17 | /** 18 | * Runs the print ant lets the user say ok or cancel. Note the funky Visio 19 | * behavior if someone hits the cancel button 20 | * 21 | */ 22 | public void testPrintDialog() { 23 | ActiveXComponent oActiveX = new ActiveXComponent("Visio.Application"); 24 | Dispatch oDocuments = oActiveX.getProperty("Documents").toDispatch(); 25 | // create a blank document 26 | Dispatch.call(oDocuments, "Add", ""); 27 | try { 28 | Dispatch.call(oActiveX, "DoCmd", new Integer(1010)).getInt(); 29 | System.out.println("User hit the ok button."); 30 | } catch (ComFailException e) { 31 | System.out.println("User hit the cancel button: " + e); 32 | } finally { 33 | oActiveX.invoke("Quit"); 34 | } 35 | return; 36 | } 37 | 38 | /** 39 | * quick main() to test this 40 | * 41 | * @param args 42 | * standard command line arguments 43 | */ 44 | public static void main(String[] args) { 45 | VisioPrintTest testObject = new VisioPrintTest(); 46 | testObject.testPrintDialog(); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/Face.cpp: -------------------------------------------------------------------------------- 1 | // Face.cpp : Implementation of CMultiFaceApp and DLL registration. 2 | 3 | #include "stdafx.h" 4 | #include "MultiFace.h" 5 | #include "Face.h" 6 | 7 | ///////////////////////////////////////////////////////////////////////////// 8 | // 9 | 10 | STDMETHODIMP Face::InterfaceSupportsErrorInfo(REFIID riid) 11 | { 12 | static const IID* arr[] = 13 | { 14 | &IID_IFace1, 15 | &IID_IFace2, 16 | &IID_IFace3, 17 | }; 18 | 19 | for (int i=0;i 2 | 3 | 4 | 5 | 6 | 7 | org.eclipselabs.matclipse.mconsole.internal.ui.wizards 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | org.eclipselabs.matclipse.mconsole.internal.ui.wizards 20 | 21 | 22 | 31 | 32 |
23 | Classes  24 | 25 |
26 | BasicNewResourceWizard 27 |
28 | NewMatlabFileWizard 29 |
30 | NewMatlabProjectWizard
33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Generated Documentation (Untitled) 8 | 9 | 20 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | <H2> 31 | Frame Alert</H2> 32 | 33 | <P> 34 | This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. 35 | <BR> 36 | Link to<A HREF="overview-summary.html">Non-frame version.</A> 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/src/org/eclipselabs/matclipse/meditor/util/BrowserException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Institute of Theoretical and Computational Physics (ITPCP), 3 | * Graz University of Technology. 4 | * All rights reserved. This program and the accompanying materials 5 | * are made available under the terms of the Eclipse Public License v1.0 6 | * which accompanies this distribution, and is available at 7 | * http://www.eclipse.org/legal/epl-v10.html 8 | * 9 | * Contributors: 10 | * Georg Huhs, Winfried Kernbichler, David Camhy (ITPCP) - 11 | * initial API and implementation 12 | * Last changed: 13 | * 2007-03-09 14 | *******************************************************************************/ 15 | 16 | package org.eclipselabs.matclipse.meditor.util; 17 | 18 | 19 | /** 20 | * Exception, thrown if there arose a problem during launching a browser 21 | * @author Georg Huhs 22 | */ 23 | public class BrowserException extends Exception { 24 | 25 | private final static long serialVersionUID = 1L; 26 | 27 | private final static String MESSAGE_START = "Unable to open browser - "; 28 | 29 | BrowserException(){ 30 | super(); 31 | } 32 | 33 | BrowserException(String message){ 34 | super(MESSAGE_START + message); 35 | } 36 | 37 | BrowserException(String message, Throwable cause){ 38 | super(MESSAGE_START + message, cause); 39 | } 40 | 41 | BrowserException(Throwable cause){ 42 | super(cause); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFaceTest.java: -------------------------------------------------------------------------------- 1 | package com.jacob.samples.atl; 2 | 3 | import com.jacob.activeX.ActiveXComponent; 4 | import com.jacob.com.Dispatch; 5 | import com.jacob.com.Variant; 6 | 7 | class MultiFaceTest { 8 | 9 | /** 10 | * standard main() test program 11 | * 12 | * @param args 13 | * the command line arguments 14 | */ 15 | public static void main(String[] args) { 16 | // this method has been deprecated as being unreliable. 17 | // shutdown should be done through other means 18 | // whoever wrote this example should explain what this was intended to 19 | // do 20 | // System.runFinalizersOnExit(true); 21 | 22 | ActiveXComponent mf = new ActiveXComponent("MultiFace.Face"); 23 | try { 24 | // I am now dealing with the default interface (IFace1) 25 | Dispatch.put(mf, "Face1Name", new Variant("Hello Face1")); 26 | System.out.println(Dispatch.get(mf, "Face1Name")); 27 | 28 | // get to IFace2 through the IID 29 | Dispatch f2 = mf 30 | .QueryInterface("{9BF24410-B2E0-11D4-A695-00104BFF3241}"); 31 | // I am now dealing with IFace2 32 | Dispatch.put(f2, "Face2Nam", new Variant("Hello Face2")); 33 | System.out.println(Dispatch.get(f2, "Face2Nam")); 34 | 35 | // get to IFace3 through the IID 36 | Dispatch f3 = mf 37 | .QueryInterface("{9BF24411-B2E0-11D4-A695-00104BFF3241}"); 38 | // I am now dealing with IFace3 39 | Dispatch.put(f3, "Face3Name", new Variant("Hello Face3")); 40 | System.out.println(Dispatch.get(f3, "Face3Name")); 41 | 42 | } catch (Exception e) { 43 | e.printStackTrace(); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/internal/ui/preferences/IPreferenceConstants.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.internal.ui.preferences; 16 | 17 | /** 18 | * Constant definitions for plug-in preferences 19 | */ 20 | public interface IPreferenceConstants { 21 | 22 | public static String ID = "org.eclipselabs.matclipse.mconsole."; 23 | 24 | public static String P_MATLABPATH = ID+"matlabPath"; 25 | public static String P_COMMANDHISTORY = ID+"McommandHistory"; 26 | public static String P_REMEMBERCOMMANDHISTORY = ID+"rememberCommandHistory"; 27 | public static String P_CDFEEDBACK = ID+"feedBackCdEvents"; 28 | public static String P_AUTOMATICCD = ID+"automaticDirectoryChange"; 29 | public static String P_AUTOMATICCDEDITOR = ID+"automaticDirectoryChangeEditor"; 30 | public static String P_MATLABINTERPRETER = ID+"matlabInterpreter"; 31 | public static String P_SHRINKOUTPUT = ID+"shrinkoutput"; 32 | } 33 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/src/org/eclipselabs/matclipse/meditor/editors/PdfEditor.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Institute of Theoretical and Computational Physics (ITPCP), 3 | * Graz University of Technology. 4 | * All rights reserved. This program and the accompanying materials 5 | * are made available under the terms of the Eclipse Public License v1.0 6 | * which accompanies this distribution, and is available at 7 | * http://www.eclipse.org/legal/epl-v10.html 8 | * 9 | * Contributors: 10 | * Georg Huhs, Winfried Kernbichler, David Camhy (ITPCP) - 11 | * initial API and implementation 12 | * Last changed: 13 | * 2007-03-11 14 | *******************************************************************************/ 15 | 16 | package org.eclipselabs.matclipse.meditor.editors; 17 | 18 | 19 | import org.eclipse.jface.viewers.ISelection; 20 | import org.eclipse.swt.widgets.Composite; 21 | import org.eclipse.ui.ISelectionListener; 22 | import org.eclipse.ui.IWorkbenchPart; 23 | import org.eclipse.ui.internal.browser.WebBrowserEditor; 24 | 25 | 26 | public class PdfEditor extends WebBrowserEditor implements ISelectionListener { 27 | 28 | public PdfEditor() { 29 | super(); 30 | } 31 | 32 | 33 | @Override 34 | public void createPartControl(Composite parent) { 35 | super.createPartControl(parent); 36 | getSite().getPage().addSelectionListener((ISelectionListener) this); 37 | } 38 | 39 | 40 | public void selectionChanged(IWorkbenchPart part, ISelection selection) { 41 | 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /com.jacob/src/com/jacob/com/NotImplementedException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | package com.jacob.com; 21 | 22 | /** 23 | * Thrown by java APIs that are not implemented either because they were never 24 | * implemented or because they are being deprecated This is a subclass of 25 | * ComException so callers can still just catch ComException. 26 | */ 27 | public class NotImplementedException extends JacobException { 28 | 29 | /** 30 | * 31 | */ 32 | private static final long serialVersionUID = -9169900832852356445L; 33 | 34 | /** 35 | * @param description 36 | */ 37 | public NotImplementedException(String description) { 38 | super(description); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /com.jacob/src/com/jacob/com/WrongThreadException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | package com.jacob.com; 21 | 22 | /** 23 | * thrown in util.cpp 24 | */ 25 | public class WrongThreadException extends JacobException { 26 | /** 27 | * identifier generated by Eclipse 28 | */ 29 | private static final long serialVersionUID = 6308780364980228692L; 30 | 31 | /** 32 | * standard 0 arg constructor with no message 33 | * 34 | */ 35 | public WrongThreadException() { 36 | super("No Message Provided."); 37 | } 38 | 39 | /** 40 | * standard constructor with a string message 41 | * 42 | * @param s 43 | */ 44 | public WrongThreadException(String s) { 45 | super(s); 46 | } 47 | } -------------------------------------------------------------------------------- /com.jacob/jni/STA.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | #include 21 | /* Header for class STA */ 22 | 23 | #ifndef _Included_com_jacob_com_STA 24 | #define _Included_com_jacob_com_STA 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | /* 29 | * Class: com_jacob_com_STA 30 | * Method: doMessagePump 31 | * Signature: ()V 32 | */ 33 | JNIEXPORT void JNICALL Java_com_jacob_com_STA_doMessagePump 34 | (JNIEnv *, jobject); 35 | 36 | /* 37 | * Class: com_jacob_com_STA 38 | * Method: quitMessagePump 39 | * Signature: ()V 40 | */ 41 | JNIEXPORT void JNICALL Java_com_jacob_com_STA_quitMessagePump 42 | (JNIEnv *, jobject); 43 | 44 | #ifdef __cplusplus 45 | } 46 | #endif 47 | #endif 48 | -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/com/DateUtilitiesTest.java: -------------------------------------------------------------------------------- 1 | package com.jacob.com; 2 | 3 | import java.util.Calendar; 4 | import java.util.Date; 5 | import java.util.GregorianCalendar; 6 | 7 | import junit.framework.TestCase; 8 | 9 | /** 10 | * test cases that should exercise the new date conversion code 11 | *

12 | * This test does not require any command line options because it is only a 13 | * utility test 14 | */ 15 | 16 | public class DateUtilitiesTest extends TestCase { 17 | 18 | /** 19 | * verify date conversion to and from java 20 | */ 21 | public void testDateUtilities() { 22 | Date now = new Date(); 23 | double comTimeForNow = DateUtilities.convertDateToWindowsTime(now); 24 | Date retrievedNow = DateUtilities 25 | .convertWindowsTimeToDate(comTimeForNow); 26 | if (!now.equals(retrievedNow)) { 27 | fail("DateUtilities Date Test failed " + now + " != " 28 | + retrievedNow); 29 | } else { 30 | System.out.println("DateUtilities Date Test passed"); 31 | } 32 | 33 | } 34 | 35 | /** 36 | * Verify that the start of time is when we think it is. 37 | */ 38 | public void testBeginningOfWindowsTime() { 39 | // this is a magic time in the windows world 40 | Date beginningOfWindowsTime = new GregorianCalendar(1899, 41 | Calendar.DECEMBER, 30).getTime(); 42 | double comTimeForBeginningOfWindowsTime = DateUtilities 43 | .convertDateToWindowsTime(beginningOfWindowsTime); 44 | if (comTimeForBeginningOfWindowsTime > 0) { 45 | fail("Beginning of windows time test failed " 46 | + comTimeForBeginningOfWindowsTime); 47 | } else { 48 | System.out.println("Beginning of windows time test passed"); 49 | } 50 | 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /com.jacob/jni/ComThread.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | #include "stdafx.h" 21 | #include 22 | #include "ComThread.h" 23 | // Win32 support for Ole Automation 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include "util.h" 30 | 31 | extern "C" 32 | { 33 | 34 | JNIEXPORT void JNICALL Java_com_jacob_com_ComThread_doCoInitialize 35 | (JNIEnv *env, jclass cls, jint mode) 36 | { 37 | int threadModel = mode; 38 | CoInitializeEx(NULL, threadModel); 39 | } 40 | 41 | JNIEXPORT void JNICALL Java_com_jacob_com_ComThread_doCoUninitialize 42 | (JNIEnv *env, jclass cls) 43 | { 44 | CoUninitialize(); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/m-files/input.m: -------------------------------------------------------------------------------- 1 | function r = input(varargin) 2 | 3 | if nargin < 1 4 | error('MATLAB:minrhs','Not enough input arguments.'); 5 | end 6 | if nargin > 2 7 | error('MATLAB:maxrhs','Too many input arguments.'); 8 | end 9 | if ~ischar(varargin{1}) 10 | error('MATLAB:input:NonCharInput','The first argument to INPUT must be a string.'); 11 | end 12 | if nargin == 2 & ~strcmp(varargin{2},'s') 13 | error('MATLAB:input:UnknownOption','The second argument to INPUT must be ''s''.'); 14 | end 15 | 16 | str = inputdlg(varargin{1},'INPUT',1); 17 | str = str{1}; 18 | %if nargin == 1, try, r = eval(str); catch, r = []; end, end 19 | if nargin == 1 20 | try 21 | r = evalin('caller',str); 22 | catch 23 | if isempty(str) 24 | r = []; 25 | else 26 | errid = 'MATLAB:UndefinedFunction'; 27 | errmsg = ['Undefined function or variable ''',str,'''.']; 28 | error(errid,errmsg) 29 | end 30 | end 31 | end 32 | if nargin == 2 33 | try 34 | r = str; 35 | end 36 | if isempty(r), r = ''; end 37 | end 38 | 39 | 40 | % message = 'INPUT_REQUEST#'; 41 | % fname = 'INPUT_REQUEST_FILE'; 42 | % tlim = 10; 43 | % 44 | % fprintf(1,'%s\n',[message,varargin{1}]); 45 | % fid = -1; 46 | % t0 = clock; 47 | % while fid == -1 48 | % if etime(clock,t0) > tlim 49 | % if nargin == 1, r = []; else, r = ''; end 50 | % return 51 | % end 52 | % fid = fopen(fname,'r'); 53 | % end 54 | % tline = fgetl(fid); 55 | % if nargin == 1, try, r = eval(tline); catch, r = []; end, end 56 | % if nargin == 2, try, r = tline; catch, r = ''; end, end 57 | % fclose(fid); 58 | % delete(fname); 59 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/matlab/MatlabDataObject.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.matlab; 16 | import org.eclipse.core.runtime.IAdaptable; 17 | 18 | public class MatlabDataObject implements IAdaptable { 19 | private Object fElement; 20 | 21 | private MatlabDataParent parent; 22 | 23 | public MatlabDataObject(Object element) { 24 | this.fElement = element; 25 | } 26 | 27 | public String getName() { 28 | if (fElement != null) { 29 | return fElement.toString(); 30 | } 31 | return ""; 32 | } 33 | 34 | public void setParent(MatlabDataParent parent) { 35 | this.parent = parent; 36 | } 37 | 38 | public MatlabDataParent getParent() { 39 | return parent; 40 | } 41 | 42 | public String toString() { 43 | return getName(); 44 | } 45 | 46 | @SuppressWarnings("rawtypes") 47 | public Object getAdapter(Class adapter) { 48 | 49 | return null; 50 | } 51 | 52 | 53 | } 54 | -------------------------------------------------------------------------------- /com.jacob/jni/ComThread.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | #include 21 | /* Header for class com_jacob_com_ComThread */ 22 | 23 | #ifndef _Included_com_jacob_com_ComThread 24 | #define _Included_com_jacob_com_ComThread 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | /* 29 | * Class: com_jacob_com_ComThread 30 | * Method: doCoInitialize 31 | * Signature: (I)V 32 | */ 33 | JNIEXPORT void JNICALL Java_com_jacob_com_ComThread_doCoInitialize 34 | (JNIEnv *, jclass, jint); 35 | 36 | /* 37 | * Class: com_jacob_com_ComThread 38 | * Method: doCoUninitialize 39 | * Signature: ()V 40 | */ 41 | JNIEXPORT void JNICALL Java_com_jacob_com_ComThread_doCoUninitialize 42 | (JNIEnv *, jclass); 43 | 44 | 45 | #ifdef __cplusplus 46 | } 47 | #endif 48 | #endif 49 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/ado/test.java: -------------------------------------------------------------------------------- 1 | package com.jacob.samples.ado; 2 | 3 | import com.jacob.com.Variant; 4 | 5 | public class test { 6 | public static void printRS(Recordset rs) { 7 | Fields fs = rs.getFields(); 8 | 9 | for (int i = 0; i < fs.getCount(); i++) { 10 | System.out.print(fs.getItem(i).getName() + " "); 11 | } 12 | System.out.println(""); 13 | 14 | rs.MoveFirst(); 15 | while (!rs.getEOF()) { 16 | for (int i = 0; i < fs.getCount(); i++) { 17 | Field f = fs.getItem(i); 18 | Variant v = f.getValue(); 19 | System.out.print(v + " "); 20 | } 21 | System.out.println(""); 22 | rs.MoveNext(); 23 | } 24 | } 25 | 26 | // open a recordset directly 27 | public static void getRS(String con, String query) { 28 | System.out.println("Recordset Open"); 29 | Recordset rs = new Recordset(); 30 | rs.Open(new Variant(query), new Variant(con)); 31 | printRS(rs); 32 | } 33 | 34 | // create connection and command objects and use them 35 | // to get a recordset 36 | public static void getCommand(String con, String query) { 37 | System.out.println("Command+Connection -> Recordset"); 38 | Connection c = new Connection(); 39 | c.setConnectionString(con); 40 | c.Open(); 41 | Command comm = new Command(); 42 | comm.setActiveConnection(c); 43 | comm.setCommandType(CommandTypeEnum.adCmdText); 44 | comm.setCommandText(query); 45 | Recordset rs = comm.Execute(); 46 | printRS(rs); 47 | c.Close(); 48 | } 49 | 50 | public static void main(String[] args) { 51 | String connectStr = "DRIVER=SQL Server;SERVER=DANADLER;UID=sa;PWD=;WSID=DANADLER;DATABASE=pubs"; 52 | String queryStr = "select * from authors"; 53 | getCommand(connectStr, queryStr); 54 | getRS(connectStr, queryStr); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.plg: -------------------------------------------------------------------------------- 1 | 2 | 3 |

 4 | 

Build Log

5 |

6 | --------------------Configuration: MultiFace - Win32 Debug-------------------- 7 |

8 |

Command Lines

9 | Creating temporary file "C:\TEMP\RSP335.tmp" with contents 10 | [ 11 | /nologo /MTd /W3 /Gm /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /Fp"Debug/MultiFace.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c 12 | "D:\jacob_15\samples\test\atl\MultiFace\MultiFace.cpp" 13 | "D:\jacob_15\samples\test\atl\MultiFace\Face.cpp" 14 | ] 15 | Creating command line "cl.exe @C:\TEMP\RSP335.tmp" 16 | Creating temporary file "C:\TEMP\RSP336.tmp" with contents 17 | [ 18 | kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /incremental:yes /pdb:"Debug/MultiFace.pdb" /debug /machine:I386 /def:".\MultiFace.def" /out:"Debug/MultiFace.dll" /implib:"Debug/MultiFace.lib" /pdbtype:sept 19 | .\Debug\StdAfx.obj 20 | .\Debug\MultiFace.obj 21 | .\Debug\MultiFace.res 22 | .\Debug\Face.obj 23 | ] 24 | Creating command line "link.exe @C:\TEMP\RSP336.tmp" 25 | Creating temporary file "C:\TEMP\RSP337.bat" with contents 26 | [ 27 | @echo off 28 | regsvr32 /s /c ".\Debug\MultiFace.dll" 29 | echo regsvr32 exec. time > ".\Debug\regsvr32.trg" 30 | ] 31 | Creating command line "C:\TEMP\RSP337.bat" 32 | Compiling... 33 | MultiFace.cpp 34 | Face.cpp 35 | Generating Code... 36 | Linking... 37 |

Output Window

38 | Performing registration 39 | RegSvr32: DllRegisterServer in .\Debug\MultiFace.dll succeeded. 40 | 41 | 42 | 43 | 44 |

Results

45 | MultiFace.dll - 0 error(s), 0 warning(s) 46 |
47 | 48 | 49 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole.win32/src/org/eclipselabs/matclipse/mconsole/win32/MatlabCOMWrapper.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * Christopher Albert (ITPCP) - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipselabs.matclipse.mconsole.win32; 14 | 15 | public interface MatlabCOMWrapper { 16 | 17 | /** 18 | * Executes a command in the Matlab console and returns the output. 19 | * 20 | * @param input the Matlab console input 21 | * @return the Matlab console output 22 | * 23 | * @see Matlab documentation 24 | */ 25 | public abstract String execute(String input); 26 | 27 | /** 28 | * Quits Matlab 29 | */ 30 | public abstract void quit(); 31 | 32 | /** 33 | * Evaluates a Matlab function and returns the result. 34 | * 35 | * @param functionname the name of the Matlab function 36 | * @param numout the number of output arguments 37 | * @param args the input arguments 38 | * @return the function result 39 | * 40 | * @see Matlab documentation 41 | */ 42 | public abstract Object feval(String functionname, int numout, 43 | Object... args); 44 | 45 | } -------------------------------------------------------------------------------- /com.jacob/src/com/jacob/com/JacobException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | package com.jacob.com; 21 | 22 | /** 23 | * The parent class of all Jacob exceptions. They all used to be based off of 24 | * RuntimeException or ComException but it was decided to base them all off of 25 | * one owned by this project. 26 | */ 27 | public class JacobException extends RuntimeException { 28 | 29 | /** 30 | * 31 | */ 32 | private static final long serialVersionUID = -1637125318746002715L; 33 | 34 | /** 35 | * Default constructor. Calls super with a "No Message Provided" string 36 | */ 37 | public JacobException() { 38 | super("No Message Provided"); 39 | } 40 | 41 | /** 42 | * standard constructor 43 | * 44 | * @param message 45 | */ 46 | public JacobException(String message) { 47 | super(message); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /com.jacob/jni/DispatchEvents.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | #include 21 | /* Header for class DispatchEvents */ 22 | 23 | #ifndef _Included_DispatchEvents 24 | #define _Included_DispatchEvents 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | 29 | /* 30 | * Class: com_jacob_com_DispatchEvents 31 | * Method: init3 32 | * Signature: (Lcom/jacob/com/Dispatch;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)V 33 | */ 34 | JNIEXPORT void JNICALL Java_com_jacob_com_DispatchEvents_init3 35 | (JNIEnv *, jobject, jobject, jobject, jstring, jstring); 36 | 37 | /* 38 | * Class: DispatchEvents 39 | * Method: release 40 | * Signature: ()V 41 | */ 42 | JNIEXPORT void JNICALL Java_com_jacob_com_DispatchEvents_release 43 | (JNIEnv *, jobject); 44 | 45 | #ifdef __cplusplus 46 | } 47 | #endif 48 | #endif 49 | 50 | 51 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/src/org/eclipselabs/matclipse/meditor/editors/partitioner/WhitespaceDetector.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Institute of Theoretical and Computational Physics (ITPCP), 3 | * Graz University of Technology. 4 | * All rights reserved. This program and the accompanying materials 5 | * are made available under the terms of the Eclipse Public License v1.0 6 | * which accompanies this distribution, and is available at 7 | * http://www.eclipse.org/legal/epl-v10.html 8 | * 9 | * Contributors: 10 | * Georg Huhs, Winfried Kernbichler, David Camhy (ITPCP) - 11 | * initial API and implementation 12 | * Last changed: 13 | * 2008-01-23 14 | *******************************************************************************/ 15 | 16 | package org.eclipselabs.matclipse.meditor.editors.partitioner; 17 | 18 | 19 | import org.eclipse.jface.text.rules.IWhitespaceDetector; 20 | 21 | 22 | class WhitespaceDetector implements IWhitespaceDetector { 23 | 24 | /** contains all chars that are defined as whitespace */ 25 | private char[] whitespaceList; 26 | 27 | 28 | /** 29 | * constructor for WhitespaceDetector 30 | * @param whitespaces defines which chars are whitespaces 31 | */ 32 | WhitespaceDetector(char[] whitespaces){ 33 | whitespaceList = whitespaces; 34 | } 35 | 36 | 37 | /** 38 | * @see org.eclipse.jface.text.rules.IWhitespaceDetector#isWhitespace(char) 39 | */ 40 | public boolean isWhitespace(char c) { 41 | boolean charFound = false; 42 | for (int i = 0; i < whitespaceList.length; i++) { 43 | if (c == whitespaceList[i]){ 44 | charFound = true; 45 | break; 46 | } 47 | } 48 | return charFound; 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/src/org/eclipselabs/matclipse/meditor/editors/MatlabDocumentProvider.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Institute of Theoretical and Computational Physics (ITPCP), 3 | * Graz University of Technology. 4 | * All rights reserved. This program and the accompanying materials 5 | * are made available under the terms of the Eclipse Public License v1.0 6 | * which accompanies this distribution, and is available at 7 | * http://www.eclipse.org/legal/epl-v10.html 8 | * 9 | * Contributors: 10 | * Georg Huhs, Winfried Kernbichler, David Camhy (ITPCP) - 11 | * initial API and implementation 12 | * Last changed: 13 | * 2007-03-09 14 | *******************************************************************************/ 15 | 16 | package org.eclipselabs.matclipse.meditor.editors; 17 | 18 | 19 | import org.eclipse.core.runtime.CoreException; 20 | import org.eclipse.jface.text.IDocument; 21 | import org.eclipse.jface.text.IDocumentPartitioner; 22 | import org.eclipse.jface.text.rules.FastPartitioner; 23 | import org.eclipse.ui.editors.text.FileDocumentProvider; 24 | 25 | import org.eclipselabs.matclipse.meditor.editors.partitioner.MatlabPartitionScanner; 26 | 27 | 28 | public class MatlabDocumentProvider extends FileDocumentProvider { 29 | 30 | protected IDocument createDocument(Object element) throws CoreException { 31 | IDocument document = super.createDocument(element); 32 | if (document != null) { 33 | IDocumentPartitioner partitioner = 34 | new FastPartitioner( 35 | new MatlabPartitionScanner(), 36 | MatlabPartitionScanner.getConfiguredContentTypes()); 37 | partitioner.connect(document); 38 | document.setDocumentPartitioner(partitioner); 39 | } 40 | return document; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/visio/VisioEventAdapter.java: -------------------------------------------------------------------------------- 1 | package com.jacob.samples.visio; 2 | 3 | import com.jacob.com.Variant; 4 | 5 | /** 6 | * Created as part of sourceforge 1386454 to demonstrate returning values in 7 | * event handlers 8 | * 9 | * @author miles@rowansoftware.net 10 | * 11 | * You can subclass this class and only implement the methods you're interested 12 | * in 13 | */ 14 | public class VisioEventAdapter implements VisioEventListener { 15 | 16 | VisioApp app = null; 17 | 18 | public VisioEventAdapter(VisioApp pApp) { 19 | app = pApp; 20 | System.out.println("Event listener constructed"); 21 | } 22 | 23 | public void BeforeQuit(Variant[] args) { 24 | } 25 | 26 | public void DocumentChanged(Variant[] args) { 27 | System.out.println("documentChanged()"); 28 | } 29 | 30 | public void DocumentCloseCanceled(Variant[] args) { 31 | } 32 | 33 | public void DocumentCreated(Variant[] args) { 34 | } 35 | 36 | public void DocumentOpened(Variant[] args) { 37 | System.out.println("DocumentOpened()"); 38 | } 39 | 40 | public void DocumentSaved(Variant[] args) { 41 | } 42 | 43 | public void DocumentSavedAs(Variant[] args) { 44 | } 45 | 46 | public Variant QueryCancelDocumentClose(Variant[] args) { 47 | System.out.println("QueryCancelDocumentClose()"); 48 | return new Variant(false); 49 | } 50 | 51 | /** 52 | * we don't actually let it quit. We block it so that we don't have to 53 | * relaunch when we look at a new document 54 | */ 55 | public Variant QueryCancelQuit(Variant[] args) { 56 | // these may throw VisioException 57 | System.out 58 | .println("Saving document, hiding and telling visio not to quit"); 59 | try { 60 | app.save(); 61 | app.setVisible(false); 62 | } catch (VisioException ve) { 63 | System.out.println("ailed to openFile()"); 64 | ve.printStackTrace(); 65 | } 66 | return new Variant(true); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /com.jacob/unittest/com/jacob/test/vbscript/ScriptTestActiveX.java: -------------------------------------------------------------------------------- 1 | package com.jacob.test.vbscript; 2 | 3 | import com.jacob.activeX.ActiveXComponent; 4 | import com.jacob.com.ComException; 5 | import com.jacob.com.ComThread; 6 | import com.jacob.com.DispatchEvents; 7 | import com.jacob.com.Variant; 8 | import com.jacob.test.BaseTestCase; 9 | 10 | /** 11 | * In this case the component is created and used in the same thread and it's an 12 | * Apartment Threaded component, so we call InitSTA. 13 | *

14 | * May need to run with some command line options (including from inside 15 | * Eclipse). Look in the docs area at the Jacob usage document for command line 16 | * options. 17 | */ 18 | public class ScriptTestActiveX extends BaseTestCase { 19 | public void testActiveXScript() { 20 | ComThread.InitSTA(true); 21 | DispatchEvents de = null; 22 | 23 | try { 24 | String lang = "VBScript"; 25 | ActiveXComponent sC = new ActiveXComponent("ScriptControl"); 26 | sC.setProperty("Language", lang); 27 | ScriptTestErrEvents te = new ScriptTestErrEvents(); 28 | de = new DispatchEvents(sC, te); 29 | if (de == null) { 30 | System.out 31 | .println("null returned when trying to create DispatchEvents"); 32 | } 33 | Variant result; 34 | result = sC.invoke("Eval", getSampleVPScriptForEval()); 35 | // call it twice to see the objects reused 36 | result = sC.invoke("Eval", getSampleVPScriptForEval()); 37 | // call it 3 times to see the objects reused 38 | result = sC.invoke("Eval", getSampleVPScriptForEval()); 39 | System.out.println("eval(" + getSampleVPScriptForEval() + ") = " 40 | + result); 41 | } catch (ComException e) { 42 | e.printStackTrace(); 43 | } finally { 44 | Integer I = null; 45 | for (int i = 1; i < 1000000; i++) { 46 | I = new Integer(i); 47 | } 48 | System.out.println(I); 49 | ComThread.Release(); 50 | ComThread.quitMainSTA(); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/ado/ms/testms.java.txt: -------------------------------------------------------------------------------- 1 | package samples.ado.ms; 2 | 3 | import com.ms.com.*; 4 | import com.ms.wfc.data.*; 5 | 6 | // an ms-only version of test.java 7 | public class testms 8 | { 9 | public static void printRS(Recordset rs) 10 | { 11 | Fields fs = rs.getFields(); 12 | 13 | for (int i=0;i Recordset"); 47 | Connection c = new Connection(); 48 | c.setConnectionString(con); 49 | c.open(); 50 | Command comm = new Command(); 51 | comm.setActiveConnection(c); 52 | comm.setCommandType(AdoEnums.CommandType.TEXT); 53 | comm.setCommandText(query); 54 | Recordset rs = comm.execute(); 55 | printRS(rs); 56 | c.close(); 57 | } 58 | 59 | public static void main(String[] args) 60 | { 61 | String connectStr = "DRIVER=SQL Server;SERVER=DANADLER;UID=sa;PWD=;WSID=DANADLER;DATABASE=pubs"; 62 | String queryStr = "select * from authors"; 63 | getCommand(connectStr, queryStr); 64 | getRS(connectStr, queryStr); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.idl: -------------------------------------------------------------------------------- 1 | // MultiFace.idl : IDL source for MultiFace.dll 2 | // 3 | 4 | // This file will be processed by the MIDL tool to 5 | // produce the type library (MultiFace.tlb) and marshalling code. 6 | 7 | import "oaidl.idl"; 8 | import "ocidl.idl"; 9 | 10 | [ 11 | object, 12 | uuid(9BF2440F-B2E0-11D4-A695-00104BFF3241), 13 | dual, 14 | helpstring("IFace1 Interface"), 15 | pointer_default(unique) 16 | ] 17 | interface IFace1 : IDispatch 18 | { 19 | [propget, id(1), helpstring("property Face1Name")] HRESULT Face1Name([out, retval] BSTR *pVal); 20 | [propput, id(1), helpstring("property Face1Name")] HRESULT Face1Name([in] BSTR newVal); 21 | }; 22 | 23 | [ 24 | object, 25 | uuid(9BF24410-B2E0-11D4-A695-00104BFF3241), 26 | dual, 27 | helpstring("IFace2 Interface"), 28 | pointer_default(unique) 29 | ] 30 | interface IFace2 : IDispatch 31 | { 32 | [propget, id(1), helpstring("property Face2Nam")] HRESULT Face2Nam([out, retval] BSTR *pVal); 33 | [propput, id(1), helpstring("property Face2Nam")] HRESULT Face2Nam([in] BSTR newVal); 34 | }; 35 | 36 | [ 37 | object, 38 | uuid(9BF24411-B2E0-11D4-A695-00104BFF3241), 39 | dual, 40 | helpstring("IFace3 Interface"), 41 | pointer_default(unique) 42 | ] 43 | interface IFace3 : IDispatch 44 | { 45 | [propget, id(1), helpstring("property Face3Name")] HRESULT Face3Name([out, retval] BSTR *pVal); 46 | [propput, id(1), helpstring("property Face3Name")] HRESULT Face3Name([in] BSTR newVal); 47 | }; 48 | 49 | [ 50 | uuid(9BF24403-B2E0-11D4-A695-00104BFF3241), 51 | version(1.0), 52 | helpstring("MultiFace 1.0 Type Library") 53 | ] 54 | library MULTIFACELib 55 | { 56 | importlib("stdole32.tlb"); 57 | importlib("stdole2.tlb"); 58 | 59 | 60 | [ 61 | uuid(9BF24412-B2E0-11D4-A695-00104BFF3241), 62 | helpstring("Face Class") 63 | ] 64 | coclass Face 65 | { 66 | [default] interface IFace1; 67 | interface IFace2; 68 | interface IFace3; 69 | }; 70 | }; 71 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/internal/ui/actions/MatlabPreferencesAction.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.internal.ui.actions; 16 | 17 | import org.eclipse.jface.action.Action; 18 | import org.eclipse.jface.action.IAction; 19 | import org.eclipse.jface.viewers.ISelection; 20 | import org.eclipse.ui.IWorkbenchWindow; 21 | import org.eclipse.ui.IWorkbenchWindowActionDelegate; 22 | import org.eclipselabs.matclipse.mconsole.MConsolePlugin; 23 | import org.eclipselabs.matclipse.util.MatclipseUtilPlugin; 24 | 25 | 26 | public class MatlabPreferencesAction extends Action implements IWorkbenchWindowActionDelegate { 27 | 28 | public void dispose() { 29 | // TODO Auto-generated method stub 30 | 31 | } 32 | 33 | public void init(IWorkbenchWindow window) { 34 | // TODO Auto-generated method stub 35 | 36 | } 37 | 38 | public void run(IAction action) { 39 | try { 40 | MConsolePlugin.getDefault().getMatlab().eval("preferences"); 41 | } catch (Exception e) { 42 | MatclipseUtilPlugin.getDefault().errorDialog( 43 | "Unable to start Matlab", e); 44 | } 45 | } 46 | 47 | public void selectionChanged(IAction action, ISelection selection) { 48 | // TODO Auto-generated method stub 49 | 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/office/ExcelDispatchTest.java: -------------------------------------------------------------------------------- 1 | package com.jacob.samples.office; 2 | 3 | import com.jacob.activeX.ActiveXComponent; 4 | import com.jacob.com.ComThread; 5 | import com.jacob.com.Dispatch; 6 | import com.jacob.com.Variant; 7 | 8 | /** 9 | * Sample test program snagged out of a question on the sun discussion area. 10 | *

11 | * May need to run with some command line options (including from inside 12 | * Eclipse). Look in the docs area at the Jacob usage document for command line 13 | * options. 14 | */ 15 | public class ExcelDispatchTest { 16 | 17 | /** 18 | * main run loop for test program 19 | * 20 | * @param args 21 | * standard command line arguments 22 | */ 23 | public static void main(String[] args) { 24 | ComThread.InitSTA(); 25 | 26 | ActiveXComponent xl = new ActiveXComponent("Excel.Application"); 27 | try { 28 | System.out.println("version=" + xl.getProperty("Version")); 29 | System.out.println("version=" + Dispatch.get(xl, "Version")); 30 | Dispatch.put(xl, "Visible", new Variant(true)); 31 | Dispatch workbooks = xl.getProperty("Workbooks").toDispatch(); 32 | Dispatch workbook = Dispatch.get(workbooks, "Add").toDispatch(); 33 | Dispatch sheet = Dispatch.get(workbook, "ActiveSheet").toDispatch(); 34 | Dispatch a1 = Dispatch.invoke(sheet, "Range", Dispatch.Get, 35 | new Object[] { "A1" }, new int[1]).toDispatch(); 36 | Dispatch a2 = Dispatch.invoke(sheet, "Range", Dispatch.Get, 37 | new Object[] { "A2" }, new int[1]).toDispatch(); 38 | Dispatch.put(a1, "Value", "123.456"); 39 | Dispatch.put(a2, "Formula", "=A1*2"); 40 | System.out.println("a1 from excel:" + Dispatch.get(a1, "Value")); 41 | System.out.println("a2 from excel:" + Dispatch.get(a2, "Value")); 42 | Variant f = new Variant(false); 43 | Dispatch.call(workbook, "Close", f); 44 | } catch (Exception e) { 45 | e.printStackTrace(); 46 | } finally { 47 | xl.invoke("Quit", new Variant[] {}); 48 | ComThread.Release(); 49 | } 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole.win32/src/org/eclipselabs/matclipse/mconsole/win32/Activator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * Christopher Albert (ITPCP) - initial API and implementation 12 | *******************************************************************************/ 13 | package org.eclipselabs.matclipse.mconsole.win32; 14 | 15 | import org.eclipse.ui.plugin.AbstractUIPlugin; 16 | import org.osgi.framework.BundleContext; 17 | 18 | /** 19 | * The activator class controls the plug-in life cycle 20 | */ 21 | public class Activator extends AbstractUIPlugin { 22 | 23 | // The plug-in ID 24 | public static final String PLUGIN_ID = "org.eclipselabs.matclipse.mconsole.win32"; //$NON-NLS-1$ 25 | 26 | // The shared instance 27 | private static Activator plugin; 28 | 29 | /** 30 | * The constructor 31 | */ 32 | public Activator() { 33 | } 34 | 35 | /* 36 | * (non-Javadoc) 37 | * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) 38 | */ 39 | public void start(BundleContext context) throws Exception { 40 | super.start(context); 41 | plugin = this; 42 | } 43 | 44 | /* 45 | * (non-Javadoc) 46 | * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) 47 | */ 48 | public void stop(BundleContext context) throws Exception { 49 | plugin = null; 50 | super.stop(context); 51 | } 52 | 53 | /** 54 | * Returns the shared instance 55 | * 56 | * @return the shared instance 57 | */ 58 | public static Activator getDefault() { 59 | return plugin; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/Face.h: -------------------------------------------------------------------------------- 1 | // Face.h: Definition of the Face class 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_FACE_H__9BF24413_B2E0_11D4_A695_00104BFF3241__INCLUDED_) 6 | #define AFX_FACE_H__9BF24413_B2E0_11D4_A695_00104BFF3241__INCLUDED_ 7 | 8 | #if _MSC_VER > 1000 9 | #pragma once 10 | #endif // _MSC_VER > 1000 11 | 12 | #include "resource.h" // main symbols 13 | 14 | ///////////////////////////////////////////////////////////////////////////// 15 | // Face 16 | 17 | class Face : 18 | public IDispatchImpl, 19 | public IDispatchImpl, 20 | public IDispatchImpl, 21 | public ISupportErrorInfo, 22 | public CComObjectRoot, 23 | public CComCoClass 24 | { 25 | // IFace1 26 | private: 27 | CComBSTR name1; 28 | 29 | // IFace2 30 | CComBSTR name2; 31 | 32 | // IFace3 33 | CComBSTR name3; 34 | 35 | public: 36 | Face() {} 37 | BEGIN_COM_MAP(Face) 38 | COM_INTERFACE_ENTRY2(IDispatch, IFace1) 39 | COM_INTERFACE_ENTRY(IFace1) 40 | COM_INTERFACE_ENTRY(IFace2) 41 | COM_INTERFACE_ENTRY(IFace3) 42 | COM_INTERFACE_ENTRY(ISupportErrorInfo) 43 | END_COM_MAP() 44 | //DECLARE_NOT_AGGREGATABLE(Face) 45 | // Remove the comment from the line above if you don't want your object to 46 | // support aggregation. 47 | 48 | DECLARE_REGISTRY_RESOURCEID(IDR_Face) 49 | // ISupportsErrorInfo 50 | STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid); 51 | 52 | 53 | 54 | public: 55 | STDMETHOD(get_Face3Name)(/*[out, retval]*/ BSTR *pVal); 56 | STDMETHOD(put_Face3Name)(/*[in]*/ BSTR newVal); 57 | STDMETHOD(get_Face2Nam)(/*[out, retval]*/ BSTR *pVal); 58 | STDMETHOD(put_Face2Nam)(/*[in]*/ BSTR newVal); 59 | STDMETHOD(get_Face1Name)(/*[out, retval]*/ BSTR *pVal); 60 | STDMETHOD(put_Face1Name)(/*[in]*/ BSTR newVal); 61 | }; 62 | 63 | #endif // !defined(AFX_FACE_H__9BF24413_B2E0_11D4_A695_00104BFF3241__INCLUDED_) 64 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/matlab/MatlabDataParent.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.matlab; 16 | 17 | import java.util.ArrayList; 18 | 19 | public class MatlabDataParent extends MatlabDataObject { 20 | private ArrayList children; 21 | 22 | private MatlabData matlabdata; 23 | 24 | public MatlabDataParent(String name, MatlabData matlabdata) { 25 | super(name); 26 | this.matlabdata = matlabdata; 27 | children = new ArrayList(); 28 | } 29 | 30 | public void addChild(MatlabDataParent child) { 31 | if(child != null) 32 | { 33 | children.add(child); 34 | child.setParent(this); 35 | } 36 | } 37 | 38 | public void removeChild(MatlabDataParent child) { 39 | if(child != null) 40 | { 41 | children.remove(child); 42 | child.setParent(null); 43 | } 44 | } 45 | 46 | public MatlabDataParent[] getChildren() { 47 | return (MatlabDataParent[]) children.toArray(new MatlabDataParent[children 48 | .size()]); 49 | } 50 | 51 | public boolean hasChildren() { 52 | return children.size() > 0; 53 | } 54 | 55 | public MatlabData getMatlabdata() { 56 | return matlabdata; 57 | } 58 | 59 | 60 | public void setMatlabdata(MatlabData matlabdata) { 61 | this.matlabdata = matlabdata; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /com.jacob/jni/DispatchProxy.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | #include 21 | /* Header for class com_jacob_com_DispatchProxy */ 22 | 23 | #ifndef _Included_com_jacob_com_DispatchProxy 24 | #define _Included_com_jacob_com_DispatchProxy 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | /* 29 | * Class: com_jacob_com_DispatchProxy 30 | * Method: MarshalIntoStream 31 | * Signature: (Lcom/jacob/com/Dispatch;)V 32 | */ 33 | JNIEXPORT void JNICALL Java_com_jacob_com_DispatchProxy_MarshalIntoStream 34 | (JNIEnv *, jobject, jobject); 35 | 36 | /* 37 | * Class: com_jacob_com_DispatchProxy 38 | * Method: MarshalFromStream 39 | * Signature: ()Lcom/jacob/com/Dispatch; 40 | */ 41 | JNIEXPORT jobject JNICALL Java_com_jacob_com_DispatchProxy_MarshalFromStream 42 | (JNIEnv *, jobject); 43 | 44 | /* 45 | * Class: com_jacob_com_DispatchProxy 46 | * Method: release 47 | * Signature: ()V 48 | */ 49 | JNIEXPORT void JNICALL Java_com_jacob_com_DispatchProxy_release 50 | (JNIEnv *, jobject); 51 | 52 | #ifdef __cplusplus 53 | } 54 | #endif 55 | #endif 56 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/views/CommandHistoryProvider.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.views; 16 | 17 | import java.util.Vector; 18 | 19 | import org.eclipse.jface.viewers.IStructuredContentProvider; 20 | import org.eclipse.jface.viewers.Viewer; 21 | import org.eclipselabs.matclipse.mconsole.MConsolePlugin; 22 | 23 | 24 | 25 | 26 | public class CommandHistoryProvider implements IStructuredContentProvider { 27 | public void inputChanged(Viewer v, Object oldInput, Object newInput) { 28 | } 29 | 30 | public void dispose() { 31 | } 32 | 33 | public Object[] getElements(Object parent) { 34 | Vector history; 35 | try { 36 | history=MConsolePlugin.getDefault().getCommandHistory(); 37 | } catch (NullPointerException e) { 38 | history=new Vector(); 39 | } 40 | CommandHistoryEntry[] retVal= new CommandHistoryEntry[history.size()]; 41 | CommandHistoryEntry[] failure=new CommandHistoryEntry[0]; 42 | //failure[0]= ""; 43 | if (history.size()>0) { 44 | 45 | for (int i=0;i 2 | 3 | 4 | techdoc/matlab_prog/ch12_nd9.html 5 | techdoc/matlab_prog/ch12_nd9.html 6 | techdoc/matlab_prog/ch12_nd9.html 7 | techdoc/matlab_prog/ch12_nd9.html 8 | techdoc/matlab_prog/ch12_nd9.html 9 | techdoc/matlab_prog/ch12_nd9.html 10 | techdoc/matlab_prog/ch12_nd9.html 11 | techdoc/matlab_prog/ch12_nd9.html 12 | techdoc/matlab_prog/ch12_nd9.html 13 | techdoc/matlab_prog/ch12_nd9.html 14 | techdoc/matlab_prog/ch12_nd9.html 15 | techdoc/matlab_prog/ch12_nd9.html 16 | techdoc/matlab_prog/ch12_nd9.html 17 | techdoc/matlab_prog/ch12_nd9.html 18 | 19 | techdoc/matlab_prog/ch12_n10.html 20 | techdoc/matlab_prog/ch12_n10.html 21 | techdoc/matlab_prog/ch12_n10.html 22 | techdoc/matlab_prog/ch12_n10.html 23 | techdoc/matlab_prog/ch12_n10.html 24 | techdoc/matlab_prog/ch12_n10.html 25 | 26 | techdoc/matlab_prog/ch12_n11.html 27 | techdoc/matlab_prog/ch12_n11.html 28 | techdoc/matlab_prog/ch12_n11.html 29 | techdoc/matlab_prog/ch12_n11.html 30 | techdoc/matlab_prog/ch12_n11.html 31 | 32 | techdoc/ref/colon.html 33 | 34 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/views/CommandHistoryEntry.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.views; 16 | 17 | import java.util.ArrayList; 18 | 19 | public class CommandHistoryEntry extends CommandHistoryObject { 20 | private ArrayList children; 21 | 22 | 23 | public CommandHistoryEntry(String name, String displayname, boolean date) { 24 | super(name,displayname,date); 25 | children = new ArrayList(); 26 | 27 | } 28 | public CommandHistoryEntry(String name, boolean date) { 29 | super(name,name,date); 30 | children = new ArrayList(); 31 | 32 | } 33 | public CommandHistoryEntry(String name) { 34 | super(name,name,false); 35 | children = new ArrayList(); 36 | 37 | } 38 | 39 | public void addChild(CommandHistoryEntry child) { 40 | children.add(child); 41 | child.setParent(this); 42 | } 43 | 44 | public void removeChild(CommandHistoryEntry child) { 45 | children.remove(child); 46 | child.setParent(null); 47 | } 48 | 49 | public CommandHistoryEntry[] getChildren() { 50 | return (CommandHistoryEntry[]) children.toArray(new CommandHistoryEntry[children 51 | .size()]); 52 | } 53 | 54 | public boolean hasChildren() { 55 | return children.size() > 0; 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/internal/ui/actions/MatlabDemoAction.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.internal.ui.actions; 16 | 17 | import org.eclipse.jface.action.Action; 18 | import org.eclipse.jface.action.IAction; 19 | import org.eclipse.jface.viewers.ISelection; 20 | import org.eclipse.ui.IWorkbenchWindow; 21 | import org.eclipse.ui.IWorkbenchWindowActionDelegate; 22 | import org.eclipselabs.matclipse.mconsole.MConsolePlugin; 23 | import org.eclipselabs.matclipse.util.MatclipseUtilPlugin; 24 | 25 | 26 | public class MatlabDemoAction extends Action implements IWorkbenchWindowActionDelegate { 27 | 28 | @Override 29 | public void run() { 30 | MConsolePlugin.getDefault().getMatlab().stop(); 31 | } 32 | 33 | public void dispose() { 34 | // TODO Auto-generated method stub 35 | 36 | } 37 | 38 | public void init(IWorkbenchWindow window) { 39 | // TODO Auto-generated method stub 40 | 41 | } 42 | 43 | public void run(IAction action) { 44 | try { 45 | MConsolePlugin.getDefault().getMatlab().eval("demo"); 46 | } catch (Exception e) { 47 | MatclipseUtilPlugin.getDefault().errorDialog( 48 | "Unable to start Matlab", e); 49 | } 50 | } 51 | 52 | public void selectionChanged(IAction action, ISelection selection) { 53 | // TODO Auto-generated method stub 54 | 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/internal/ui/actions/OpenImportAction.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.internal.ui.actions; 16 | 17 | import org.eclipse.jface.action.Action; 18 | import org.eclipse.jface.action.IAction; 19 | import org.eclipse.jface.viewers.ISelection; 20 | import org.eclipse.ui.IWorkbenchWindow; 21 | import org.eclipse.ui.IWorkbenchWindowActionDelegate; 22 | import org.eclipselabs.matclipse.mconsole.MConsolePlugin; 23 | import org.eclipselabs.matclipse.util.MatclipseUtilPlugin; 24 | 25 | 26 | public class OpenImportAction extends Action implements IWorkbenchWindowActionDelegate { 27 | 28 | @Override 29 | public void run() { 30 | MConsolePlugin.getDefault().getMatlab().stop(); 31 | } 32 | 33 | public void dispose() { 34 | // TODO Auto-generated method stub 35 | 36 | } 37 | 38 | public void init(IWorkbenchWindow window) { 39 | // TODO Auto-generated method stub 40 | 41 | } 42 | 43 | public void run(IAction action) { 44 | try { 45 | MConsolePlugin.getDefault().getMatlab().eval("uiimport"); 46 | } catch (Exception e) { 47 | MatclipseUtilPlugin.getDefault().errorDialog( 48 | "Unable to start Matlab", e); 49 | } 50 | } 51 | 52 | public void selectionChanged(IAction action, ISelection selection) { 53 | // TODO Auto-generated method stub 54 | 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/internal/ui/actions/RunBenchmarkAction.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.internal.ui.actions; 16 | 17 | import org.eclipse.jface.action.Action; 18 | import org.eclipse.jface.action.IAction; 19 | import org.eclipse.jface.viewers.ISelection; 20 | import org.eclipse.ui.IWorkbenchWindow; 21 | import org.eclipse.ui.IWorkbenchWindowActionDelegate; 22 | import org.eclipselabs.matclipse.mconsole.MConsolePlugin; 23 | import org.eclipselabs.matclipse.util.MatclipseUtilPlugin; 24 | 25 | 26 | public class RunBenchmarkAction extends Action implements IWorkbenchWindowActionDelegate { 27 | 28 | @Override 29 | public void run() { 30 | MConsolePlugin.getDefault().getMatlab().stop(); 31 | } 32 | 33 | public void dispose() { 34 | // TODO Auto-generated method stub 35 | 36 | } 37 | 38 | public void init(IWorkbenchWindow window) { 39 | // TODO Auto-generated method stub 40 | 41 | } 42 | 43 | public void run(IAction action) { 44 | try { 45 | MConsolePlugin.getDefault().getMatlab().eval("bench"); 46 | } catch (Exception e) { 47 | MatclipseUtilPlugin.getDefault().errorDialog( 48 | "Unable to start Matlab", e); 49 | } 50 | } 51 | 52 | public void selectionChanged(IAction action, ISelection selection) { 53 | // TODO Auto-generated method stub 54 | 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/src/org/eclipselabs/matclipse/meditor/editors/partitioner/MatlabEndOfLineRule.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Institute of Theoretical and Computational Physics (ITPCP), 3 | * Graz University of Technology. 4 | * All rights reserved. This program and the accompanying materials 5 | * are made available under the terms of the Eclipse Public License v1.0 6 | * which accompanies this distribution, and is available at 7 | * http://www.eclipse.org/legal/epl-v10.html 8 | * 9 | * Contributors: 10 | * Georg Huhs, Winfried Kernbichler, David Camhy (ITPCP) - 11 | * initial API and implementation 12 | * Last changed: 13 | * 2008-01-23 14 | *******************************************************************************/ 15 | 16 | package org.eclipselabs.matclipse.meditor.editors.partitioner; 17 | 18 | 19 | import org.eclipse.jface.text.rules.EndOfLineRule; 20 | import org.eclipse.jface.text.rules.ICharacterScanner; 21 | import org.eclipse.jface.text.rules.IToken; 22 | 23 | 24 | /** 25 | * A little modification of EndOfLineRule that was necessary because the original 26 | * rule also catches the \n at the end of a line. But this \n should be recognized as 27 | * a Matlab-Newline partition, which is made possible by this class. 28 | * @author Georg Huhs 29 | */ 30 | class MatlabEndOfLineRule extends EndOfLineRule { 31 | 32 | public MatlabEndOfLineRule(String startSequence, IToken token) { 33 | super(startSequence, token); 34 | } 35 | 36 | 37 | /** 38 | * @see org.eclipse.jface.text.rules.PatternRule 39 | * #evaluate(org.eclipse.jface.text.rules.ICharacterScanner, boolean) 40 | */ 41 | @Override 42 | public IToken evaluate(ICharacterScanner scanner, boolean resume) { 43 | IToken token = super.evaluate(scanner, resume); 44 | if (token.equals(this.fToken)){ 45 | scanner.unread(); // rewind scanner to catch \n ( -> as a newline-partition!) 46 | } 47 | return token; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /com.jacob/jni/EnumVariant.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | #ifndef _Included_EnumVariant 21 | #define _Included_EnumVariant 22 | 23 | #include 24 | 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | /* 29 | * Class: com_jacob_com_EnumVariant 30 | * Method: Next 31 | * Signature: ([Lcom/jacob/com/Variant;)I 32 | */ 33 | JNIEXPORT jint JNICALL Java_com_jacob_com_EnumVariant_Next 34 | (JNIEnv *, jobject, jobjectArray); 35 | 36 | /* 37 | * Class: com_jacob_com_EnumVariant 38 | * Method: Release 39 | * Signature: ()V 40 | */ 41 | JNIEXPORT void JNICALL Java_com_jacob_com_EnumVariant_release 42 | (JNIEnv *, jobject); 43 | 44 | /* 45 | * Class: com_jacob_com_EnumVariant 46 | * Method: Reset 47 | * Signature: ()V 48 | */ 49 | JNIEXPORT void JNICALL Java_com_jacob_com_EnumVariant_Reset 50 | (JNIEnv *, jobject); 51 | 52 | /* 53 | * Class: com_jacob_com_EnumVariant 54 | * Method: Skip 55 | * Signature: (I)V 56 | */ 57 | JNIEXPORT void JNICALL Java_com_jacob_com_EnumVariant_Skip 58 | (JNIEnv *, jobject, jint); 59 | 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | #endif 64 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/internal/ui/preferences/ThemeConstants.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.internal.ui.preferences; 16 | 17 | public interface ThemeConstants { 18 | String ID = "org.eclipselabs.matclipse.mconsole"; 19 | 20 | String CONSOLE_FONT = ID + ".font.consolefont"; 21 | String CONSOLE_TEXT_COLOR = ID + ".color.text"; 22 | String CONSOLE_TEXTINPUT_COLOR= ID+ ".color.input"; 23 | String CONSOLE_TEXTERROR_COLOR= ID+ ".color.error"; 24 | String CONSOLE_BACKGROUND_COLOR = ID + ".color.consolebackground"; 25 | String CONSOLE_INPUT_FONT = ID + ".font.inputconsolefont"; 26 | String CONSOLE_DIRCHOOSER_WSCOLOR = ID+".color.consoledirchooser"; 27 | String WORKSPACE_FONT = ID+ ".font.workspacefont"; 28 | String WORKSPACE_TEXT_COLOR = ID + ".color.workspacetext"; 29 | String WORKSPACE_BACKGROUND_COLOR=ID + ".color.workspacebackground"; 30 | String WORKSPACE_TREE_FONT = ID+ ".font.workspacetreefont"; 31 | String COMMANDHISTORY_BACKGROUND_COLOR=ID + ".color.commandhistorybackground"; 32 | String COMMANDHISTORY_FOREGROUND_COLOR=ID + ".color.commandhistoryforegorund"; 33 | String COMMANDHISTORY_FONT=ID+".font.commandhistoryfont"; 34 | String COMMANDHISTORY_DATE_COLOR=ID + ".color.commandhistorydatecolor"; 35 | String PROJECTSVIEW_TREE_FONT=ID+".font.matlabprojectsview"; 36 | } 37 | -------------------------------------------------------------------------------- /com.jacob/jni/StdAfx.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | // stdafx.h : include file for standard system include files, 21 | // or project specific include files that are used frequently, 22 | // but are changed infrequently 23 | 24 | #if !defined(AFX_STDAFX_H__9988E984_6789_11D3_A646_000000000000__INCLUDED_) 25 | #define AFX_STDAFX_H__9988E984_6789_11D3_A646_000000000000__INCLUDED_ 26 | 27 | #if _MSC_VER > 1000 28 | #pragma once 29 | #endif // _MSC_VER > 1000 30 | 31 | #ifndef STRICT 32 | #define STRICT 33 | #endif 34 | #ifndef _WIN32_WINNT 35 | #define _WIN32_WINNT 0x0400 36 | #endif 37 | //#define _ATL_APARTMENT_THREADED 38 | #include 39 | #include 40 | #include 41 | #include 42 | //You may derive a class from CComModule and use it if you want to override 43 | //something, but do not change the name of _Module 44 | extern CComModule _Module; 45 | //#include 46 | 47 | 48 | //{{AFX_INSERT_LOCATION}} 49 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 50 | 51 | #endif // !defined(AFX_STDAFX_H__9988E984_6789_11D3_A646_000000000000__INCLUDED) 52 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/internal/ui/preferences/PreferenceInitializer.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.internal.ui.preferences; 16 | 17 | import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; 18 | import org.eclipse.jface.preference.IPreferenceStore; 19 | import org.eclipselabs.matclipse.mconsole.MConsolePlugin; 20 | 21 | /** 22 | * Class used to initialize default preference values. 23 | */ 24 | public class PreferenceInitializer extends AbstractPreferenceInitializer { 25 | 26 | /* 27 | * (non-Javadoc) 28 | * 29 | * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences() 30 | */ 31 | public void initializeDefaultPreferences() { 32 | IPreferenceStore store = MConsolePlugin.getDefault().getPreferenceStore(); 33 | store.setDefault(IPreferenceConstants.P_MATLABPATH, "/usr/local/bin"); 34 | store.setDefault(IPreferenceConstants.P_MATLABINTERPRETER, "matlab"); 35 | store.setDefault(IPreferenceConstants.P_COMMANDHISTORY,"Default value"); 36 | store.setDefault(IPreferenceConstants.P_REMEMBERCOMMANDHISTORY,true); 37 | store.setDefault(IPreferenceConstants.P_CDFEEDBACK,false); 38 | store.setDefault(IPreferenceConstants.P_AUTOMATICCD,true); 39 | store.setDefault(IPreferenceConstants.P_AUTOMATICCDEDITOR,true); 40 | store.setDefault(IPreferenceConstants.P_SHRINKOUTPUT,true); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/doc/at/tugraz/itp/matclipse/mconsole/internal/ui/preferences/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.eclipselabs.matclipse.mconsole.internal.ui.preferences 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | org.eclipselabs.matclipse.mconsole.internal.ui.preferences 20 | 21 | 22 | 29 | 30 |
23 | Interfaces  24 | 25 |
26 | IPreferenceConstants 27 |
28 | ThemeConstants
31 | 32 | 33 | 34 | 35 | 44 | 45 |
36 | Classes  37 | 38 |
39 | MatlabConsolePreferencePage 40 |
41 | PreferenceInitializer 42 |
43 | ThemeWrapper
46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/outlook/Outlook.java: -------------------------------------------------------------------------------- 1 | package com.jacob.samples.outlook; 2 | 3 | /** 4 | * JACOB Outlook sample contributed by 5 | * Christopher Brind 6 | */ 7 | 8 | import com.jacob.activeX.ActiveXComponent; 9 | import com.jacob.com.Dispatch; 10 | import com.jacob.com.Variant; 11 | 12 | /** 13 | * sample class to show simple outlook manipulation 14 | */ 15 | public class Outlook { 16 | 17 | private static String pad(int i) { 18 | StringBuffer sb = new StringBuffer(); 19 | 20 | while (sb.length() < i) { 21 | sb.append(' '); 22 | } 23 | 24 | return sb.toString(); 25 | } 26 | 27 | private static void recurseFolders(int iIndent, Dispatch o) { 28 | 29 | if (o == null) { 30 | return; 31 | } 32 | Dispatch oFolders = Dispatch.get(o, "Folders").toDispatch(); 33 | // System.out.println("oFolders=" + oFolders); 34 | if (oFolders == null) { 35 | return; 36 | } 37 | 38 | Dispatch oFolder = Dispatch.get(oFolders, "GetFirst").toDispatch(); 39 | do { 40 | Object oFolderName = Dispatch.get(oFolder, "Name"); 41 | if (null == oFolderName) { 42 | break; 43 | } 44 | 45 | System.out.println(pad(iIndent) + oFolderName); 46 | recurseFolders(iIndent + 3, oFolder); 47 | 48 | oFolder = Dispatch.get(oFolders, "GetNext").toDispatch(); 49 | } while (true); 50 | 51 | } 52 | 53 | /** 54 | * standard run loop 55 | * 56 | * @param asArgs 57 | * command line arguments 58 | * @throws Exception 59 | */ 60 | public static void main(String asArgs[]) throws Exception { 61 | System.out.println("Outlook: IN"); 62 | 63 | ActiveXComponent axOutlook = new ActiveXComponent("Outlook.Application"); 64 | try { 65 | System.out.println("version=" + axOutlook.getProperty("Version")); 66 | 67 | Dispatch oOutlook = axOutlook.getObject(); 68 | System.out.println("version=" + Dispatch.get(oOutlook, "Version")); 69 | 70 | Dispatch oNameSpace = axOutlook.getProperty("Session").toDispatch(); 71 | System.out.println("oNameSpace=" + oNameSpace); 72 | 73 | recurseFolders(0, oNameSpace); 74 | 75 | } finally { 76 | axOutlook.invoke("Quit", new Variant[] {}); 77 | } 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.mconsole/src/org/eclipselabs/matclipse/mconsole/decorators/MatlabDecorator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Graz University of Technology, 3 | * Institute of Theoretical and Computational Physics (ITPCP) 4 | * 5 | * All rights reserved. This program and the accompanying materials 6 | * are made available under the terms of the Eclipse Public License v1.0 7 | * which accompanies this distribution, and is available at 8 | * http://www.eclipse.org/legal/epl-v10.html 9 | * 10 | * Contributors: 11 | * David Camhy, Winfried Kernbichler, Georg Huhs (ITPCP) - 12 | * initial API and implementation 13 | * Christopher Albert (ITPCP) - refactoring 14 | *******************************************************************************/ 15 | package org.eclipselabs.matclipse.mconsole.decorators; 16 | 17 | import org.eclipse.jface.viewers.ILabelDecorator; 18 | import org.eclipse.jface.viewers.ILabelProviderListener; 19 | import org.eclipse.swt.graphics.Image; 20 | 21 | public class MatlabDecorator implements ILabelDecorator { 22 | 23 | public Image decorateImage(Image image, Object element) { 24 | // if (element instanceof IFile) { 25 | // IFile file=(IFile) element; 26 | // try { 27 | // if (file.getProject().hasNature(MatlabNature.NATURE_ID) && file.getName().endsWith(".m")) { 28 | // if (file.ge) 29 | // } else return image; 30 | // } catch (CoreException e) { 31 | // return null; 32 | // } 33 | // } 34 | // else return null; 35 | return null; 36 | } 37 | 38 | public String decorateText(String text, Object element) { 39 | // TODO Auto-generated method stub 40 | return null; 41 | } 42 | 43 | public void addListener(ILabelProviderListener listener) { 44 | // TODO Auto-generated method stub 45 | 46 | } 47 | 48 | public void dispose() { 49 | // TODO Auto-generated method stub 50 | 51 | } 52 | 53 | public boolean isLabelProperty(Object element, String property) { 54 | // TODO Auto-generated method stub 55 | return false; 56 | } 57 | 58 | public void removeListener(ILabelProviderListener listener) { 59 | // TODO Auto-generated method stub 60 | 61 | } 62 | 63 | 64 | 65 | } 66 | -------------------------------------------------------------------------------- /com.jacob/jni/STA.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2004 Sourceforge JACOB Project. 3 | * All rights reserved. Originator: Dan Adler (http://danadler.com). 4 | * Get more information about JACOB at http://sourceforge.net/projects/jacob-project 5 | * 6 | * This library is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this library; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | #include "stdafx.h" 21 | #include 22 | #include "ComThread.h" 23 | // Win32 support for Ole Automation 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include "util.h" 30 | 31 | extern "C" 32 | { 33 | 34 | JNIEXPORT void JNICALL Java_com_jacob_com_STA_doMessagePump 35 | (JNIEnv *env, jobject obj) 36 | { 37 | // store the current thread id so we can kill it 38 | jclass argClass = env->GetObjectClass(obj); 39 | jfieldID ajf = env->GetFieldID( argClass, "threadID", "I"); 40 | jint threadID = (jint)GetCurrentThreadId(); 41 | env->SetIntField(obj, ajf, threadID); 42 | 43 | MSG msg; 44 | 45 | ZeroMemory(&msg, sizeof(msg)); 46 | msg.wParam = S_OK; 47 | 48 | while (GetMessage(&msg, NULL, 0, 0)) 49 | { 50 | DispatchMessage(&msg); 51 | } 52 | } 53 | 54 | JNIEXPORT void JNICALL Java_com_jacob_com_STA_quitMessagePump 55 | (JNIEnv *env, jobject obj) 56 | { 57 | jclass argClass = env->GetObjectClass(obj); 58 | jfieldID ajf = env->GetFieldID( argClass, "threadID", "I"); 59 | jint threadID = env->GetIntField(obj, ajf); 60 | PostThreadMessage((DWORD)threadID, WM_QUIT, 0, 0); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.meditor/src/org/eclipselabs/matclipse/meditor/editors/partitioner/WordPredicateRule.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2006, 2011 Institute of Theoretical and Computational Physics (ITPCP), 3 | * Graz University of Technology. 4 | * All rights reserved. This program and the accompanying materials 5 | * are made available under the terms of the Eclipse Public License v1.0 6 | * which accompanies this distribution, and is available at 7 | * http://www.eclipse.org/legal/epl-v10.html 8 | * 9 | * Contributors: 10 | * Georg Huhs, Winfried Kernbichler, David Camhy (ITPCP) - 11 | * initial API and implementation 12 | * Last changed: 13 | * 2008-01-23 14 | *******************************************************************************/ 15 | 16 | package org.eclipselabs.matclipse.meditor.editors.partitioner; 17 | 18 | 19 | import org.eclipse.jface.text.rules.ICharacterScanner; 20 | import org.eclipse.jface.text.rules.IPredicateRule; 21 | import org.eclipse.jface.text.rules.IToken; 22 | import org.eclipse.jface.text.rules.IWordDetector; 23 | import org.eclipse.jface.text.rules.WordRule; 24 | 25 | 26 | /** 27 | * Implementation of a WordRule that implements IPredicateRule such that it 28 | * can be used by a RuleBasedPartitionScanner 29 | * => adapter class 30 | */ 31 | class WordPredicateRule extends WordRule implements IPredicateRule { 32 | 33 | private IToken fSuccessToken; 34 | 35 | 36 | public WordPredicateRule(IWordDetector detector, 37 | IToken successToken, IToken defaultToken) { 38 | 39 | super(detector, defaultToken); 40 | fSuccessToken= successToken; 41 | } 42 | 43 | 44 | /* 45 | * @see org.eclipse.jface.text.rules.IPredicateRule# 46 | * evaluate(ICharacterScanner, boolean) 47 | */ 48 | public IToken evaluate(ICharacterScanner scanner, boolean resume) { 49 | return super.evaluate(scanner); 50 | } 51 | 52 | 53 | /* 54 | * @see org.eclipse.jface.text.rules.IPredicateRule#getSuccessToken() 55 | */ 56 | public IToken getSuccessToken() { 57 | return fSuccessToken; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /com.jacob/samples/com/jacob/samples/atl/MultiFace/MultiFace.cpp: -------------------------------------------------------------------------------- 1 | // MultiFace.cpp : Implementation of DLL Exports. 2 | 3 | 4 | // Note: Proxy/Stub Information 5 | // To build a separate proxy/stub DLL, 6 | // run nmake -f MultiFaceps.mk in the project directory. 7 | 8 | #include "stdafx.h" 9 | #include "resource.h" 10 | #include 11 | #include "MultiFace.h" 12 | 13 | #include "MultiFace_i.c" 14 | #include "Face.h" 15 | 16 | 17 | CComModule _Module; 18 | 19 | BEGIN_OBJECT_MAP(ObjectMap) 20 | OBJECT_ENTRY(CLSID_Face, Face) 21 | END_OBJECT_MAP() 22 | 23 | ///////////////////////////////////////////////////////////////////////////// 24 | // DLL Entry Point 25 | 26 | extern "C" 27 | BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/) 28 | { 29 | if (dwReason == DLL_PROCESS_ATTACH) 30 | { 31 | _Module.Init(ObjectMap, hInstance, &LIBID_MULTIFACELib); 32 | DisableThreadLibraryCalls(hInstance); 33 | } 34 | else if (dwReason == DLL_PROCESS_DETACH) 35 | _Module.Term(); 36 | return TRUE; // ok 37 | } 38 | 39 | ///////////////////////////////////////////////////////////////////////////// 40 | // Used to determine whether the DLL can be unloaded by OLE 41 | 42 | STDAPI DllCanUnloadNow(void) 43 | { 44 | return (_Module.GetLockCount()==0) ? S_OK : S_FALSE; 45 | } 46 | 47 | ///////////////////////////////////////////////////////////////////////////// 48 | // Returns a class factory to create an object of the requested type 49 | 50 | STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) 51 | { 52 | return _Module.GetClassObject(rclsid, riid, ppv); 53 | } 54 | 55 | ///////////////////////////////////////////////////////////////////////////// 56 | // DllRegisterServer - Adds entries to the system registry 57 | 58 | STDAPI DllRegisterServer(void) 59 | { 60 | // registers object, typelib and all interfaces in typelib 61 | return _Module.RegisterServer(TRUE); 62 | } 63 | 64 | ///////////////////////////////////////////////////////////////////////////// 65 | // DllUnregisterServer - Removes entries from the system registry 66 | 67 | STDAPI DllUnregisterServer(void) 68 | { 69 | return _Module.UnregisterServer(TRUE); 70 | } 71 | 72 | 73 | -------------------------------------------------------------------------------- /org.eclipselabs.matclipse.feature/feature.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | [Enter Feature Description here.] 9 | 10 | 11 | 12 | [Enter Copyright Description here.] 13 | 14 | 15 | 16 | [Enter License Description here.] 17 | 18 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 56 | 57 | 63 | 64 | 65 | --------------------------------------------------------------------------------