About: Add Java import statements automatically   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

Vim can do it just fine. Well, I just got this working today, and it may need some tweaking. If It doesn't work for you, take some java that compiles. Break one of the imports (assume you don't using foo.*; syntax much). Then comment lines below starting from bottom up. Watch editing happen. Try to do edits slowly to reproduce what's here. I generally hit F1 key to build with (jikes) (VimTip3). I hit F1 (:make), then hit F9 (add import for keyword found under cursor). Then F1 (make/build), and so on. Add Import Make :noremap :update:makej:cw 3p

AttributesValues
rdfs:label
  • Add Java import statements automatically
rdfs:comment
  • Vim can do it just fine. Well, I just got this working today, and it may need some tweaking. If It doesn't work for you, take some java that compiles. Break one of the imports (assume you don't using foo.*; syntax much). Then comment lines below starting from bottom up. Watch editing happen. Try to do edits slowly to reproduce what's here. I generally hit F1 key to build with (jikes) (VimTip3). I hit F1 (:make), then hit F9 (add import for keyword found under cursor). Then F1 (make/build), and so on. Add Import Make :noremap :update:makej:cw 3p
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 819(xsd:integer)
Category
  • Java
  • Automated Text Insertion
Text
  • JavaImp plugin
Author
  • Richard Faber
Complexity
  • basic
Created
  • 2004(xsd:integer)
ID
  • 325(xsd:integer)
  • 822(xsd:integer)
NEXT
  • 823(xsd:integer)
Rating
  • 6(xsd:integer)
abstract
  • Vim can do it just fine. Well, I just got this working today, and it may need some tweaking. If It doesn't work for you, take some java that compiles. Break one of the imports (assume you don't using foo.*; syntax much). Then comment lines below starting from bottom up. Watch editing happen. Try to do edits slowly to reproduce what's here. I generally hit F1 key to build with (jikes) (VimTip3). I hit F1 (:make), then hit F9 (add import for keyword found under cursor). Then F1 (make/build), and so on. Add Import :noremap \}o//TEMP MARKER \P1G/public classyypG?importp \P1G/packageyypG?importp \$xa.0jwwikdd \wDxkJxx$a; \0cwimport \:update \/TEMP MARKERdd Make :noremap :update:makej:cw 3p
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software