mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
[220306] Improve RXTX Serial Install Instructions
This commit is contained in:
parent
adc560d25e
commit
7171bec2d2
5 changed files with 60 additions and 51 deletions
|
@ -2,7 +2,7 @@
|
||||||
<feature
|
<feature
|
||||||
id="org.eclipse.tm.terminal.serial"
|
id="org.eclipse.tm.terminal.serial"
|
||||||
label="%featureName"
|
label="%featureName"
|
||||||
version="2.0.0.qualifier"
|
version="2.0.1.qualifier"
|
||||||
provider-name="%providerName">
|
provider-name="%providerName">
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
|
@ -20,9 +20,6 @@
|
||||||
<url>
|
<url>
|
||||||
<update label="%tmUpdateSiteName" url="http://download.eclipse.org/dsdp/tm/updates/3.0"/>
|
<update label="%tmUpdateSiteName" url="http://download.eclipse.org/dsdp/tm/updates/3.0"/>
|
||||||
<discovery label="%tmUpdateSiteName" url="http://download.eclipse.org/dsdp/tm/updates/3.0"/>
|
<discovery label="%tmUpdateSiteName" url="http://download.eclipse.org/dsdp/tm/updates/3.0"/>
|
||||||
<!-- TODO reference the RXTX discovery site once it exists
|
|
||||||
<discovery label="%tmRXTXSiteName" url="http://download.eclipse.org/dsdp/tm/updates/3.0"/>
|
|
||||||
-->
|
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
<requires>
|
<requires>
|
||||||
|
|
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %pluginName
|
Bundle-Name: %pluginName
|
||||||
Bundle-SymbolicName: org.eclipse.tm.terminal.serial;singleton:=true
|
Bundle-SymbolicName: org.eclipse.tm.terminal.serial;singleton:=true
|
||||||
Bundle-Version: 2.0.0.qualifier
|
Bundle-Version: 2.0.1.qualifier
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
Import-Package: gnu.io;resolution:=optional
|
Import-Package: gnu.io;resolution:=optional
|
||||||
Require-Bundle: org.eclipse.ui,
|
Require-Bundle: org.eclipse.ui,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Important note:
|
Important note:
|
||||||
---------------
|
---------------
|
||||||
This README is for terminal.serial version 0.9.100 and later, corresponding
|
This README is for terminal.serial version 1.0.0 and later, corresponding
|
||||||
to RSE downloads after 2.0M4. Instructions for previous versions (using
|
to RSE downloads after 2.0M4. Instructions for previous versions (using
|
||||||
Sun javacomm / javax.comm package instead of gnu.io) are still available from
|
Sun javacomm / javax.comm package instead of gnu.io) are still available from
|
||||||
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.core/terminal/org.eclipse.tm.terminal.serial/README.txt?root=DSDP_Project&view=markup&pathrev=R1_0_1
|
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.core/terminal/org.eclipse.tm.terminal.serial/README.txt?root=DSDP_Project&view=markup&pathrev=R1_0_1
|
||||||
|
@ -11,16 +11,18 @@ Prerequisites:
|
||||||
In order to compile and run this plugin, RXTX has to be installed.
|
In order to compile and run this plugin, RXTX has to be installed.
|
||||||
There are two options: Either installing RXTX as an Eclipse plugin,
|
There are two options: Either installing RXTX as an Eclipse plugin,
|
||||||
or installing RXTX as a JVM extension. For installation as plugin,
|
or installing RXTX as a JVM extension. For installation as plugin,
|
||||||
you can download a ZIP archive or use the Update Manager.
|
you can download a ZIP archive or use the Update Manager; if an
|
||||||
|
Eclipse plugin is not available for your Platform, you'll need
|
||||||
|
to install RXTX into the JVM (option B, below).
|
||||||
|
|
||||||
In either case, once RXTX is installed, you'll need to quit and
|
In either case, once RXTX is installed, you'll need to quit and
|
||||||
re-start Eclipse PDE in order to recompute the classpath.
|
re-start Eclipse PDE in order to recompute the classpath.
|
||||||
|
|
||||||
|
|
||||||
Option A.1: Installation as an Eclipse Plugin via Update Manager:
|
Option A.1: Installation as an Eclipse Plugin via Update Manager:
|
||||||
-----------------------------------------------------------------
|
-----------------------------------------------------------------
|
||||||
* In Eclipse, choose Help > Software Updates > Find and Install
|
* In Eclipse, choose Help > Software Updates...
|
||||||
- Search for New Features to Install, Next
|
- Add New Remote Site:
|
||||||
- New Remote Site:
|
|
||||||
Name = RXTX
|
Name = RXTX
|
||||||
URL = http://rxtx.qbang.org/eclipse/
|
URL = http://rxtx.qbang.org/eclipse/
|
||||||
- Finish, select proper version, Install All
|
- Finish, select proper version, Install All
|
||||||
|
@ -30,7 +32,9 @@ Option A.2: Installation as an Eclipse Plugin via Download:
|
||||||
-----------------------------------------------------------
|
-----------------------------------------------------------
|
||||||
* Download RXTX SDK or Runtime ZIP from
|
* Download RXTX SDK or Runtime ZIP from
|
||||||
http://rxtx.qbang.org/eclipse/downloads/
|
http://rxtx.qbang.org/eclipse/downloads/
|
||||||
and extract it into your Eclipse installation.
|
and extract it into your Eclipse installation. The download
|
||||||
|
link mentioned also has a README with version and licensing
|
||||||
|
information.
|
||||||
|
|
||||||
|
|
||||||
Option B: Installation as a JVM Extension:
|
Option B: Installation as a JVM Extension:
|
||||||
|
@ -47,8 +51,14 @@ Option B: Installation as a JVM Extension:
|
||||||
http://users.frii.com/jarvi/rxtx/download.html
|
http://users.frii.com/jarvi/rxtx/download.html
|
||||||
|
|
||||||
|
|
||||||
|
For help, contact the RXTX mailing list available via the
|
||||||
|
RXTX website at http://www.rxtx.org or see the notes on
|
||||||
|
https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336
|
||||||
|
|
||||||
|
|
||||||
Changelog:
|
Changelog:
|
||||||
----------
|
----------
|
||||||
|
2.0.1 - Revised Update Site text to comply with P2 in Eclipse 3.4
|
||||||
1.0.1 - Added options for installing RXTX as an Eclipse Plugin
|
1.0.1 - Added options for installing RXTX as an Eclipse Plugin
|
||||||
0.9.100 - switched from Sun javax.comm to rxtx gnu.io for serial support
|
0.9.100 - switched from Sun javax.comm to rxtx gnu.io for serial support
|
||||||
0.9.0 - first version
|
0.9.0 - first version
|
|
@ -25,18 +25,19 @@ PARITY = Parity
|
||||||
FLOWCONTROL = Flow Control
|
FLOWCONTROL = Flow Control
|
||||||
TIMEOUT = Timeout (sec)
|
TIMEOUT = Timeout (sec)
|
||||||
ERROR_LIBRARY_NOT_INSTALLED = The RXTX library has not been installed properly! \n\
|
ERROR_LIBRARY_NOT_INSTALLED = The RXTX library has not been installed properly! \n\
|
||||||
|
\n\
|
||||||
Installation:\n\
|
Installation:\n\
|
||||||
-------------\n\
|
-------------\n\
|
||||||
* Get RXTX binaries from\n\
|
* Either (a) Use Help > Software Updates, Add Site and install from:\n\
|
||||||
ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7-bins-r2.zip\n\
|
\ \ \ http://rxtx.qbang.org/eclipse/\n\
|
||||||
* Copy RXTXcomm.jar into $JRE/lib/ext\n\
|
* Or (b) Download and install RXTX for Eclipse from:\n\
|
||||||
* Copy the native libs for your Platform (*.so, *.jnilib, *.dll)\n\
|
\ \ \ http://rxtx.qbang.org/eclipse/downloads/\n\
|
||||||
into the respective native lib folder of your RSE \n\
|
\n\
|
||||||
* More installation instructions are at\n\
|
For other Platforms, more info and help see\n\
|
||||||
http://rxtx.qbang.org/wiki/index.php/Main_Page\n\
|
\ \ \ http://www.rxtx.org/\n\
|
||||||
* More downloads for other platforms (currently about 30)\n\
|
\ \ \ https://bugs.eclipse.org/bugs/show_bug.cgi?id=175336#c6\n\
|
||||||
are available from the "ToyBox" link on\n\
|
\n\
|
||||||
http://users.frii.com/jarvi/rxtx/download.html
|
This message is also available in your Error Log for Copy & Paste.
|
||||||
|
|
||||||
# Port Ownership Handling
|
# Port Ownership Handling
|
||||||
PORT_IN_USE = Serial port \''{0}\'' is currently in use by {1}\!\nDo you want to try and steal the port?
|
PORT_IN_USE = Serial port \''{0}\'' is currently in use by {1}\!\nDo you want to try and steal the port?
|
||||||
|
|
|
@ -168,11 +168,14 @@ public final class Logger {
|
||||||
*/
|
*/
|
||||||
public static final void logException(Exception ex) {
|
public static final void logException(Exception ex) {
|
||||||
// log in eclipse error log
|
// log in eclipse error log
|
||||||
if(TerminalPlugin.getDefault()!=null)
|
if (TerminalPlugin.getDefault() != null) {
|
||||||
TerminalPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, TerminalPlugin.PLUGIN_ID, IStatus.OK, ex.getMessage(), ex));
|
TerminalPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, TerminalPlugin.PLUGIN_ID, IStatus.OK, ex.getMessage(), ex));
|
||||||
|
} else {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
|
// Additional Tracing for debug purposes:
|
||||||
// Read my own stack to get the class name, method name, and line number
|
// Read my own stack to get the class name, method name, and line number
|
||||||
// of
|
// of where this method was called
|
||||||
// where this method was called.
|
|
||||||
if(logStream!=null) {
|
if(logStream!=null) {
|
||||||
StackTraceElement caller = new Throwable().getStackTrace()[1];
|
StackTraceElement caller = new Throwable().getStackTrace()[1];
|
||||||
int lineNumber = caller.getLineNumber();
|
int lineNumber = caller.getLineNumber();
|
||||||
|
@ -190,8 +193,6 @@ public final class Logger {
|
||||||
+ "." + methodName + ":" + lineNumber + ": " + //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
|
+ "." + methodName + ":" + lineNumber + ": " + //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
|
||||||
"Caught exception: " + ex); //$NON-NLS-1$
|
"Caught exception: " + ex); //$NON-NLS-1$
|
||||||
ex.printStackTrace(tmpStream);
|
ex.printStackTrace(tmpStream);
|
||||||
} else {
|
|
||||||
ex.printStackTrace();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue