Comix viewer is a simple eclipse plugin allowing a developer to view their favorite daily comic strips.
The plugin remembers the last comic viewed and allows for easy import and export of online comic profiles.
Source code available for download.
Use the update site at http://www.oblivion.ch/rcp/update/ or download the plugin from Comix Viewer Downloads
![]() |
Save any changes. The elements in the list will be a light yellow if there are changes that need to be saved. |
![]() |
Add a new profile, will add a new row which then needs to be populated. Must be saved after the data has been entered. |
![]() |
Delete the selected profile. |
![]() |
Export (see below). |
![]() |
Import (see below). |
Initial URL | This is the initial page to get | http://xkcd.com/1/ |
---|---|---|
Current URL | The current image url being used. The java url created from this uses the initial url as a base which allows for relative paths. | /2/ |
Image Pattern | The pattern used to get the image url from the page source. | <h3>Image URL [(]for hotlinking/embedding[)][:][\s](.*)</h3> |
Next Pattern | The pattern used to get the next page url. This will become the current url when the next page is called | <li><a href="(.*)" accesskey="n">Next |
Title Pattern | The pattern used to get the comic title. This is optional and can be left blank. | <title>xkcd - A Webcomic - (.*)</title> |
The ComixManager uses the xstream xml serializer library. This generates very clean readable xml based on the internal objects. This xml stream can be used for exporting and importing profiles.
Importing a profile will not overwrite any profile with the existing initial page
An example of an importable xml object. The set is the root xml element and may only appear once, it may contain many ch.oblivion.comix.plugin.model.PageParser elements.<set> <ch.oblivion.comix.plugin.model.PageParser> <pageUrlInitial>http://xkcd.com/1/</pageUrlInitial> <patternImage> <pattern><h3>Image URL [(]for hotlinking/embedding[)][:][\s](.*)</h3></pattern> <flags>0</flags> </patternImage> <patternTitle> <pattern><title>xkcd - A Webcomic - (.*)</title></pattern> <flags>0</flags> </patternTitle> <patternNextPage> <pattern><li><a href="(.*)" accesskey="n">Next</pattern> <flags>0</flags> </patternNextPage> <pageUrlNext>http://xkcd.com/1/</pageUrlNext> </ch.oblivion.comix.plugin.model.PageParser> </set>