I really like those links to be clickable from my web-browser, I also really love eclipse.
Here's how you make them play together:
import java.awt.Color; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.RenderingHints; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import javax.imageio.ImageIO; |
package jobs; | |
import static utils.MWUtils.fetch; | |
import static utils.MWUtils.findReferences; | |
import static utils.MWUtils.getTagParameter; | |
import static utils.MWUtils.removeLinks; | |
import static utils.MWUtils.clean; | |
import static utils.MWUtils.findHeadlines; | |
import java.util.ArrayList; |
class ExampleController{ | |
public static void search( String query, String someParam, int page ){ | |
// get search results ... | |
// usually you end up with this: | |
int total = ... // total number of results | |
List<Item> results, = ... // subset of results | |
// now create pagination info | |
PaginationInfo paginationInfo = new PaginationInfo( |
Usage: | |
public class MyModel extends ...{ | |
@Reference | |
public static List<Blob2> images; | |
@Reference |
package models; | |
import java.awt.image.BufferedImage; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import javax.imageio.ImageIO; | |
import play.libs.MimeTypes; | |
import play.modules.morphia.Blob; |
/****************************************************************************** | |
* * | |
* PROJECT : EOS Digital Software Development Kit EDSDK * | |
* NAME : EDSDKErros.h * | |
* * | |
* Description: ERROR DEFINITION FOR EDSDK * | |
* * | |
******************************************************************************* | |
* * | |
* Written and developed by Canon Inc. * |
package org.sd.doodle.server.model | |
import _root_.net.liftweb.mapper._ | |
import _root_.net.liftweb.util._ | |
class DrawingModel extends LongKeyedMapper[DrawingModel] with IdPK{ | |
def getSingleton = DrawingModel | |
object timestamp extends MappedLong(this) { |
package org.sd.doodle.server.lib | |
import org.sd.doodle.server.model.DrawingModel | |
import net.liftweb.http.{Req, GetRequest, PostRequest, | |
LiftRules, JsonResponse, PlainTextResponse, XmlResponse} | |
import net.liftweb.util.Helpers | |
import net.liftweb.common._ | |
import net.liftweb.http.js.JE._ | |
import net.liftweb.mapper._ |
if( keyCode == ENTER ){ | |
if( focusElement == rect2 ) .... | |
if( focusElement == rect4 ) ... | |
// afaik the "name" button is rect 1, in which case we just loop through all lines and print the names | |
if( focusElement == rect1 ){ | |
for( int i =0; i < lines.length; i++ ){ | |
println( lines[i].substring( NAME_START, NAME_END ) ); | |
} | |
} |