How to print line numbers in NWDS for Java?
Hi everyone,
does someone know how to print out program code with line numbers from the Netweaver Developer Studio for Java? This is inevitable for code reviews.
In Eclipse 3.4 this issue is solved. Is there possibly such a patch for NWDS as well?
Thanks,
Maria
Hi Pascal,
thanks for the quick reply. The setting you mention displays line numbers on the screen alright, but printing out does not work.
We use: SAP NetWeaver Developer Studio for SAP NetWeaver 7.1 SP06 PAT0000, Build id: 200807051938.
I guess it just does not work, because it was fixed only for Eclipse 3.4, and the above NWDS version bases on Eclipse 3.3.
What do you recommend for code inspections - copy/paste into PSPad or do you know a more comfortable practice?
Greetings
Maria
Similar Messages
-
How to print page numbers in adobe form
Hi,
Can anybody tell me how to print page numbers in adobe form.
Thanks in advance
ChaitanyaHi,
Yes the field page n of m is used normally for printing page numbers. But it won't display the current page of total pages by itself. You have to set the run time property to n (current page ) and m (Total number of pages). Carefully select the # (current page ) and ## (Total number of pages). Hope this works for you.
My requirement is to have the user control on current page. For Example:
Example for a Invoice with 5 PO items (stands on 2 pages) :
1st page is the letter : no page number
2nd page is the 1st page of the 1st copy of the invoice : we should read u201C1 / 2u201D
3rd page is the 2nd page of the 1st copy of the invoice : we should read u201C2 / 2u201D
4th page is the 1st page of the 2nd copy of the invoice : we should read u201C1 / 2u201D
5th page is the 2nd page of the 2nd copy of the invoice : we should read u201C2 / 2u201D
Presently i cam getting the current page number for page 4th as 3 / 2 and for 5th page 4 / 2. I could able to control the total number of pages from print program. But when i am printing the second copy (4th and 5th pages), I couldn't able to control the current page number. I need to initialize the Current page count (4th page ) as 1.
I have used the follwing java scripting:
this.rawValue = wv_pages - xfa.layout.page(this)
where wv_pages is total no of pages calculated from print program.
Please help me in this regard with some formcal or java scripting conditions.
Thank You,
Regards,
Naresh. -
How to insert line numbers in InDesign CS5
I am creating a document that needs to have line numbers appear every for every 5 lines of text. Using the list function, I can get a number for every line, but can't find a way to just number line 5, 10, 15, 20, etc.
All help appreciated,
CathyThanks for the prompt reply, Bob, but from what I read in the comments on the script is that it inserts line numbers for every line and has no options for customizing to show numbers for only lines 5, 10, 15, etc. Also, using the list function in InDesign on selected text I can get the same result (including multi page if I select all text) and then convert the auto list numbers to text, which would allow me to remove unwanted numbers and leave just the ones I need (although that would be a painful manual process for a longer document.).
Am I missing something about the script?
I must admit that I'm shocked that this isn't a built in capability in InDesign! -
How can I read cookies in WebDynPro for Java
Hi,
in WebDynPro for Java I found a possibility to to get a "request-object" like the standard "HttpServletRequest-object"
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
debugEnabled = (request.getParameter("Debug") != null);
With this request-object I can read request-prameters but I couldn't find a possibility to get cookies from the request.
There is no method like the "getCookies().method" in the HTTPServletRequest-Interface:-((
Has anybody an idea, how I can read cookies in WebDynPro for Java ?
Regards
SteffenHi,
This is the latest update I could look for regarding cookies and webdynpro.
Panic - WebContextAdapter is depracted - no more cookies now?
Regards,
Harini S -
HOW TO PRINT THE EXCEL CELL COMMENT IN JAVA SWING FRAME ?
How to print the excel cell comment in java swing frame
user can print the data of cell with comment in bracket in java swing frame.
please make one java code to read an excel spreed sheet and print the output in Java swing frame as follows
EMP NO - 1, 2, 3
EMP NAME - aname (amitesh:very good), bname (amitesh: average), cname (amitesh: very bad)
EMP AGE - 11, 22, 33
EMP DESG - ad, bd, cd
Note: the bracket portion is the excel comments put in that cellhello everyone i'm new to this forum..how are you all...
Jack Brosnan
[mobile phone|http://www.mobilephonesforsale.net.au/apple-iphone-f-2.html] -
How to print Sequential Numbers like purchase order?
I ma new to mac and Numbers 09 and have a quick question. How do I print sequential numbers? I have my own MS Excel purchase order number with macro and I want to use Iwork Numbers to print the numbers. For example, Purchase Order: 70085-1 is in my form. When I ask to print 20 copies, it will print 70085-1, 70085-1, 70085-3, etc.
Thanks in advanceHere is a modified version of my original script which was posted in :
http://discussions.apple.com/thread.jspa?messageID=12679002
This time, with a single run, we may define the number of consecutive invoices to create.
--[SCRIPT openAndNameInvoiceWithAnumber]
Enregistrer le script en tant que Script : openAndNameInvoiceWithAnumber.scpt
déplacer le fichier créé dans le dossier
<VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications:Pages:
Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
aller au menu Scripts , choisir Pages puis choisir openAndNameInvoiceWithAnumber
crée un nouveau document à partir du modèle personnel prédéfini
et renomme le document avec un nouveau numéro.
Il insère également le numéro de facture au début du document.
--=====
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
+++++++
Save the script as Script, Application or Application Bundle: openAndNameInvoiceWithAnumber.xxx
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
Maybe you would have to create the folder Pages and even the folder Applications by yourself.
go to the Scripts Menu, choose Pages, then choose openAndNameInvoiceWithAnumber
will create a new document from the defined user template
and name it with a new number.
It also insert the invoice number at the very beginning of the document.
--=====
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
--=====
Yvan KOENIG (Vallauris, FRANCE)
2010/11/30
2010/12/20 edited to apply if the template is a flatfile one.
2011/01/11 added ability to build several invoices in a single call
property theApp : "Pages"
property theExt : ""
property myTemplate : "ma_facture.template" (*
Adapter à vos besoins
Put your preferred template name *)
property fichierNum : "le_numéro.txt" (*
Adapter à vos gouts
Put your preferred text file name *)
--=====
on run
if theApp is "Pages" then
set theExt to "pages"
else
if my parleAnglais() then
error "The application “" & theApp & "” is not supported !"
else
error "L’application « " & theApp & " » n’est pas gérée"
end if
end if
if my parleAnglais() then
set nombredefactures to my askAnumber("Enter the number of consecutive invoices needed", 1, "i")
else
set nombredefactures to my askAnumber("Saisir le nombre de factures consécutives demandé", 1, "i")
end if
repeat nombredefactures times
my buildaninvoice()
end repeat
end run
--=====
on buildaninvoice()
set {p2myTemplate, numero} to my prepare()
set numero to text -5 thru -1 of ("0000" & numero) (* pour numéro de 5 chiffres *)
set UNTITLED_loc to my getLocalizedFrameWorksName(theApp, "Untitled")
tell application "Pages"
activate
try
close document UNTITLED_loc
end try
end tell -- to Pages
tell application "Pages"
activate
open p2myTemplate
set theDoc to numero & "." & theExt
set name of document 1 to theDoc
tell document 1
tell body text
if my parleAnglais() then
set paragraph 1 to "invoice #" & numero & return & paragraph 1
else
set paragraph 1 to "facture n°" & numero & return & paragraph 1
end if
end tell
end tell
end tell
end buildaninvoice
--=====
on getLocalizedFrameWorksName(theApp, x)
local p2bndl
set p2bndl to (path to application support as text) & "iWork '09:Frameworks:SFApplication.framework:Versions:A:Resources:"
set x_loc to my getLocalizedName(theApp, x, p2bndl)
return x_loc
end getLocalizedFrameWorksName
--=====
on getLocalizedFunctionName(theApp, x)
local p2bndl
set p2bndl to (path to application support as text) & "iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:"
set x_loc to my getLocalizedName(theApp, x, p2bndl)
return x_loc
end getLocalizedFunctionName
--=====
on getLocalizedName(aa, tt, ff)
tell application aa to return localized string tt from table "Localizable" in bundle file ff
end getLocalizedName
--=====
on prepare()
local d1, d2, p2d, containerOfTemplates, pathToTheTemplate, p2n, nn
tell application theApp
set d1 to localized string "Templates" (* nom local du dossier "Modèles" *)
set d2 to localized string "My Templates" (* nom local du dossier "Mes Modèles" *)
end tell -- theApp
set p2d to (path to application support from user domain) as Unicode text
set containerOfTemplates to p2d & "iWork:" & theApp & ":" & d1 & ":" & d2 & ":"
set pathToTheTemplate to containerOfTemplates & myTemplate & ":"
try
set pathToTheTemplate to pathToTheTemplate as alias
on error
if my parleAnglais() then
error "The template “" & pathToTheTemplate & "” is unavailable! Please make sure the template file “" & myTemplate & "” is installed in Numbers “Templates:My Templates” folder, then rerun this script."
else
error "Le modèle « " & pathToTheTemplate & " » est introuvable! Veuillez installer le fichier modèle « " & myTemplate & " » dans le dossier « Modèles:Mes modèles » de Numbers avant de relancer ce script."
end if
end try
tell application "System Events"
if class of disk item (pathToTheTemplate as text) is file then
(* flat file *)
set p2n to containerOfTemplates & fichierNum
if not (exists file p2n) then
make new file at end of folder containerOfTemplates with properties {name:fichierNum}
write "100" to file p2n (* mettez le numéro de départ de votre choix *)
end if -- not…
else
(* package *)
set p2n to "" & pathToTheTemplate & fichierNum
if not (exists file p2n) then
make new file at end of pathToTheTemplate with properties {name:fichierNum}
write "100" to file p2n (* mettez le numéro de départ de votre choix *)
end if -- not…
end if
end tell -- System Events
set nn to read file p2n
set nn to ((nn as integer) + 1) as text
write nn to file p2n starting at 1
return {pathToTheTemplate, nn}
end prepare
--=====
on parleAnglais()
local z
try
tell application theApp to set z to localized string "Cancel"
on error
set z to "Cancel"
end try
return (z is not "Annuler")
end parleAnglais
--=====
Asks for an entry and checks that it is an floating number
set myInteger to my askAnumber(Prompt, DefaultValue, "i")
set myFloating to my askAnumber(Prompt, DefaultValue, "f")
on askAnumber(lPrompt, lDefault, IorF)
local lPrompt, lDefault, n
tell application (path to frontmost application as string)
if IorF is in {"F", "f"} then
set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
try
set n to n as number (* try to convert the value as an number *)
return n
on error
if my parleAnglais() then
display alert "The value needs to be a floating number." & return & "Please try again."
else
display alert "La valeur saisie doit être un nombre décimal." & return & "Veuillez recommencer."
end if
end try
else
set n to text returned of (display dialog lPrompt default answer lDefault as text)
try
set n to n as integer (* try to convert the value as an integer *)
return n
on error
if my parleAnglais() then
display alert "The value needs to be an integer." & return & "Please try again."
else
display alert "La valeur saisie doit être un nombre entier." & return & "Veuillez recommencer."
end if
end try -- 1st attempt
end if -- IorF…
end tell -- application
Here if the first entry was not of the wanted class
second attempt *)
tell application (path to frontmost application as string)
if IorF is in {"F", "f"} then
set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
try
set n to n as number (* try to convert the value as an number *)
return n
on error
end try
else
set n to text returned of (display dialog lPrompt default answer lDefault as text)
try
set n to n as integer (* try to convert the value as an integer *)
return n
on error
end try -- 1st attempt
end if -- IorF…
end tell -- application
if my parleAnglais() then
error "The value you entered was not numerical !" & return & "Goodbye !"
else
error "La valeur saisie n’est pas numérique !" & return & "Au revoir !"
end if
end askAnumber
--=====
--[/SCRIPT]
Yvan KOENIG (VALLAURIS, France) mardi 11 janvier 2011 09:30:37 -
How to print a numbers spreadsheet so column numbers show
I'm writing this with zero experience so please be nice I am trying to print a numbers spreadsheet and I want the Column numbers to show (1,2,3 down the side and A, B,C up top) How can I do this? Thanks.
Hi John,
Apple's design philosophy (keep it simple and non-technical on the surface) is pretty well known, so to me it's not that surprising when they extend that philosophy to Numbers: quite a bit of power under the hood but a deceptively simple interface.
My experience shouldn't be an issue here. But since you brought it up, I am a long-time heavy user of spreadsheets, of Excel more than Numbers, but I find Numbers handy as well, and thought I'd point out my perspective, in response to your "are you kidding?" comment.
In Numbers, column letters and row numbers are just a quick click or a tap away, quite handy for my needs, and I like the fact that they recede gracefully into the background when not needed.
If unlike me you still do a lot of printing out to static reports (as opposed to sharing results dynamically online or on, say, a tablet) then you won't be as happy with Numbers as with many other spreadsheets.
But, as I say, you might consider in your menu going to Numbers > Provide Numbers Feedback.
SG -
Printing line numbers in eclipse
I'm on Windows XP and I must print out the line numbers when I print out source code. However, I can't find how to do this in eclipse. Does anyone know?? I've tried everything.
never mind... I found it
-
How to print line item 2times in two different main window in Sap Script
Hi,
I am designing check printing form using Sap script. I need to print line items 2times in different 2main window.can yu pls explain how print like this.
JKi cud not get ur query..pls elaborate
-
How to implement line numbers in order acknowledge report
Hi all,
I am newbie to Oracle Reports.
I have an order acknowledgement report in which i show columns like
line number
Ordered item
ship from
quantity
unit price
extended price
In above table format i need to show line numbers as 1.1
1.2
1.3....
2.1
2.2
2.3....
so, how can i achieve this functionality
ThanksThat still doesn't say much. How do you need to get from line number in your table to line number on the report? Give an example of your data.
I can give you an example:
with line_numbers as (
select 11 lineno from dual
union all
select 12 lineno from dual
union all
select 13 lineno from dual
union all
select 21 lineno from dual
select lineno /10 lineno
from line_numbers
order by lineno
LINENO
1.1
1.2
1.3
2.1 -
How to get Line numbers in KVM stack traces
Hello!
I am fairly new to kvm programming and might have missed the obvious. When my program dumps a stack trace under kvm it gives me an offset (I dont know what the number corresponds to) from the method but not source line numbers like I am used to seeing under J2SE. I complie the code using -g and run it using kvm_g. For example, I see soemething like
java.lang.NullPointerException
at myclass.mymethod(+5)
at parentclass.parentmethod(+10)
Where I dont know what the +5 or +10 stand for as it relates to my source code.
Can somebody help with trying to correlate the stack trace to my source code.
Thanks.
Ranga.I would like to know too. Has anyone found an answer?
-
How to print batch numbers on the AR invoice print out
Hi Gurus;
Here is my question; I need to be able to print batch numbers on the print out of AR invoices, I used variable 492 in PLD and I am able to see the batch numbers directly linked with the AR invoice, meaning that I wont be able to see batch numbers that I entered on the Delivery even is the delivery doc was copy to the AR invoice.
Is there anyway that I can see the batch numbers on the AR invoice print if I entered the batch number on the delivery and then copied that delivery to an invoice??
My client wants to be able to send their customers and invoice with a batch number but he always follow the process from sales order to delivery and delivery to AR invoice and what this means is that he always entered the batch numbers on the delivery documents.
Please help me!!!
Thanks
JennyIf the ad hoc printer mode is not available for the envy, there are some reasonably cheap ways to get a wifi network in your car. A cheap router from best but will generate the wifi network. Does not matter if you have Internet or not. A ifi device will also work, and most/ all of them run on batteries. Lastly, if you have a smart phone or I phone that generates a wifi hotspot, that may be enough to support the printing function. ( I need to test my I phone later today to see if that works.)
-
Printing Line numbers while dumping stack trace during crash..
Hi,
I want to dump the stack trace of all threads with the line numbers when the program crashes. I am able to do that by cathing the signals and invoking "pstack" utility to dump the stack. But it does not dump the line numbers of each function. Is there some way of doing that?
Thanks
AtulIf you run the executable under dbx then you can type 'where' when the program crashes or set a breakpoint in your signal handler. Line numbers will only show up in the dbx stack trace if the application was compiled with -g and not stripped.
-
How to print a text file contents using java.
Using Input and Output streams I can add and retrive the contents to/from text file. But how to send this file contents to the printer or how to print the file.
Example from my code:
private void printErrorReport()
PrintJob pjob = getToolkit().getPrintJob(m_frame,null,null);
if (pjob != null) {
Graphics pg = pjob.getGraphics();
if (pg != null) {
String s = detailsArea.getText();
printLongString (pjob, pg, s);
pg.dispose();
pjob.end();
// Utility method needed
void printLongString (PrintJob pjob, Graphics pg, String s) {
int pageNum = 1;
int linesForThisPage = 0;
int linesForThisJob = 0;
// Note: String is immutable so won't change while printing.
if (!(pg instanceof PrintGraphics)) {
throw new IllegalArgumentException ("Graphics context not PrintGraphics");
StringReader sr = new StringReader (s);
LineNumberReader lnr = new LineNumberReader (sr);
String nextLine = " ";
int pageHeight = pjob.getPageDimension().height;
pageHeight -= 20;
Font helv = new Font("Arial", Font.PLAIN, 12);
//have to set the font to get any output
pg.setFont (helv);
FontMetrics fm = pg.getFontMetrics(helv);
int fontHeight = fm.getHeight();
int fontDescent = fm.getDescent();
int curHeight = 0;
try {
do {
nextLine = lnr.readLine();
if (nextLine != null) {
if ((curHeight + fontHeight) > pageHeight) {
// New Page
System.out.println ("" + linesForThisPage + " lines printed for page " + pageNum);
pageNum++;
linesForThisPage = 0;
pg.dispose();
pg = pjob.getGraphics();
if (pg != null) {
pg.setFont (helv);
curHeight = 0;
curHeight += fontHeight;
if (pg != null) {
pg.drawString (nextLine, 0, curHeight - fontDescent);
linesForThisPage++;
linesForThisJob++;
} else {
System.out.println ("pg null");
} while (nextLine != null);
} catch (EOFException eof) {
// Fine, ignore
} catch (Throwable t) { // Anything else
t.printStackTrace();
System.out.println ("" + linesForThisPage + " lines printed for page " + pageNum);
System.out.println ("pages printed: " + pageNum);
System.out.println ("total lines printed: " + linesForThisJob);
} -
How to convert .ear file of webdynpro for java application to webdynpro pro
Hi All,
I have a .ear file which belongs one web dynpro for java application.
I do have other information about the same.
I need to convert it into a web dynpro project and use it in NWDS to make changes.
How can I do it? I could not find any solution on SDN.. I hope I get here...
Thanks and Regards,
Aditya Deshapnde
Edited by: Aditya Deshpande on Nov 23, 2010 1:55 PMHi Friend,
This is almost not possible even if you have Java Decompiler -- WD has a lot compile(design)-time only artifacts that are not exist in generated EAR.
Hope this is help full for u.
Regards
Vijay Kalluri
Maybe you are looking for
-
Cursor Issues with Snow Leopard
I am having two cursor-related issues with my mid-2010 MBP, running 10.6.7. Both problems are intermittent and occur with either the built-in trackpad or the external Magic Trackpad. Problem #1: Cursor movement is normal, however if I attempt to cl
-
Video imported from Samsung Galaxy S3
Hi, when I imported video from the Samsung Galaxy S3 in Premiere 12 audio and video seem to be disconnacted (the audio is faster...). But they are ok on pc and other devices... So, what could i do?
-
Not Able to Connect to the Hyperion shared Services or any other components
Hi All, I am not able to login to Any of the Hyperion components, It was working fine until today afternoon. But now I get the following error EPMCSS-00387: Failed to authenticate user from user directory MSAD. Invalid password. EPMCSS-07047:Failed t
-
Can someone explain how "Hybrid Power" works on the GT70?
I have had my GT70 20C for a couple months now and have yet to see Hybrid Power working once. I have been playing games that are clearly taxing my system to the max (SC Blacklist and Rome 2) but the Hybrid Power monitor always says "OFF". Am i missin
-
Set af:outputText height
I'm trying to set height of af:outputText with inlineStyle="height:20px" but it doesn't react at all! I tried doing this in my .css file, no change again. In the css file, setting .AFFieldText{ height:20px changes every inputText, LOV, DateFields to