Understanding the basic feature of the editor

The JDeveloper does edit time code check. It complains for a method like,
public String test() {
return 2; // invalid return
but it does not complain for,
public String test() {
// no return statement
Please someone explain the idea behind this behavior.
Thanks in advance.
Regards,
Amod

Hi,
As I have observed the JDeveloper does some semantics check while coding and displays errors. This check does not involve all the compilation checks.
Ofcourse, in the previous example there was a chance to go back and edit a return. Take another example,
public String test() throws Exception
return "Hello";
throw new Exception("Not approachable");
The JDeveloper editor should display an error. The error is displayed only after the code is complied.
What I understand and suggest is to have JIT compilation and display all the compilation errors as and when the code is saved.
Regards,
Amod

Similar Messages

  • Trying to understand the basics of iTunes

    It may sound stupid, but after having read various manuals, guides, forum discussions, I still don't understand the basics of iTunes - is a 64 yo maybe too old for this?
    Yes, I can fill my iPod with music and sync it with my laptop. But to manage everything well, I need answers on these questions:
    - After I add my laptop folder MY MUSIC to the iTunes library, does iTunes make COPIES of all my files in that folder? Or just links? If copies, where are they stored?
    - What does the term synchronisation include? Does it mean: the music in the iTunes library will be identical to the music in the iPod? Or:
    - Will all changes in that folder automatically lead to updates of my iTunes library? Changes such as adding/removing files, changing filenames, modifying files with audio editors. If the contents are not automatically updated/synchronised, is there a manual way to do that?
    - And vice versa: if I delete a song in iTunes, does that effect the source file in MY MUSIC? If not, is there an option to delete the song there as well?
    - Could I theoretically delete the whole contents of MY MUSIC folder after all files have been added to iTunes? Is it recommended to do so? Or should I keep the 'originals'?
    - The same goes for cd's: After I (automatically or manually) added the contents of a cd to iTunes, could I theoretically throw or give it away?
    - There is the option to find doubles. If I want to delete one or more of them, how do I know which file I delete. I mean this: if song X is part of album A but also of a bunch of single files, then I would like to keep the album folder complete and just delete the 'single' occurrence. But how to determine that?
    - Changing filenames in MY MUSIC often has no effect on the filename as displayed in iTunes. Why not?
    - I think that is all for now. Maybe later I still come across more basic questions.
    Could anyone give me the basic answers? And if possible in language for dummies, not in nerd slang, please
    Thanks!
    WimYogya
    Dutchman in Indonesia

    *After I add my laptop folder MY MUSIC to the iTunes library, does iTunes make COPIES of all my files in that folder? Or just links? If copies, where are they stored?*
    That depends. Open iTunes and go to Edit>Preferences>Advanced. If "Copy files to iTunes Music Folder" is checked then iTunes is "copying" the files into the iTunes Music folder which is inside the iTunes folder. The library is then referenced to the location of the copy ( in this case you can if you wish delete the original). If it's unchecked it is adding the songs to to your iTunes library but referencing the location that the file is in without making a copy.
    *Will all changes in that folder automatically lead to updates of my iTunes library? Changes such as adding/removing files, changing filenames, modifying files with audio editors.*
    No, iTunes doesn't support folder watching so all changes have to be made within iTunes.
    *If the contents are not automatically updated/synchronised, is there a manual way to do that?*
    File>Add File to Library: Adding Content to iTunes
    *if I delete a song in iTunes, does that effect the source file in MY MUSIC? If not, is there an option to delete the song there as well?*
    iTunes will delete songs from the library and move them to Trash (Recycle Bin) only if they are in the iTunes Music folder. (iTunes will ask if you want to trash the file if this is the case, it doesn't trash it automatically). If your songs are kept outside of this folder then deleting only removes the reference to the song from the library and you have to go to the folder they are located in to trash the file itself.
    *Could I theoretically delete the whole contents of MY MUSIC folder after all files have been added to iTunes? Is it recommended to do so? Or should I keep the 'originals'?*
    You could only delete the songs from the original folder if you have set the preference above to copy the files to the iTunes Music folder, if not you have to keep them where they are. Regardless of where the files are stored you would be well advised to back them up in case you have problems with your computer. You might also find this article interesting/useful: iLounge - The Complete Guide to Backing Up your iTunes Library
    *The same goes for cd's: After I (automatically or manually) added the contents of a cd to iTunes, could I theoretically throw or give it away?*
    You don't own the copyright of the song, basically you own the license to play it. if you make a copy and then sell/give the CD away you are essentially sharing the files illegally.
    *There is the option to find doubles. If I want to delete one or more of them, how do I know which file I delete. I mean this*
    You would have to check the location of the file manually to be sure which one you wanted to keep.
    *Changing filenames in MY MUSIC often has no effect on the filename as displayed in iTunes*
    Because iTunes doesn't support folder watching, changes need to be made within iTunes. Changing the name of a file outside of iTunes can cause iTunes to lose the location of the file since it is referenced under the name it had when you added it.

  • About the iPhone and it's "lack of basic features"

    There are SO MANY rants going on in this discussing board about the iPhone lacking "basic features" of a cellphone. Here is my response to all of them at once. (I know this has nothing to do with user-to-user technical support, but the topic is discussed on here enough to warrant this post.)
    Sure, I would like to be able to send texts messages to multiple contacts, I would love to be able to add my own ringtones, copy and paste, and picture message. Here's the deal, Apple didn't set out to create a product with those features, they didn't set out to create a product that is like all the others or that has all the best features that every other phone has. They started over. They didn't compare it to any other phone. They have said over and over that the iPhone is a completely new product from the ground up. Sure it includes some features that can be found in phones that came before it, but it's all done in a new way. It's not some super phone that combines the best of every smartphone out there. They were very open about this and listed EVERYTHING the phone was going to be capable of. No, they didn't tell you the things that it wouldn't do, that's not the angle they were taking when designing and marketing this product, no one does that. The iPhone does everything they said it would do and does it better than any other phone that has the same features. So how can anyone come on here a gripe about it lacking basic features? The features I listed above are features that someone else reading this may never need or want. Basic features to you are not going to be basic features to me. Basic features 3 years ago are not basic features today nor will they be in 3 years. There are no basic features when it comes to the iPhone, other then perhaps the phone part. When you set out to create a product from the ground up, you don't start with a list of features that need to be included. You start with a blank slate and build on that, from your own ideas, your own technology, not based on what anyone else is doing or what has been done in the past. This is what Apple has done, and they have been very clear about it from day one. So please, if you feel that the iPhone lacks the "basic features" on a cell phone, take it back so that someone else can have that phone and enjoy its "basic features," that are like no other phone before it.

    Your posting should have went to the Apple.com feedback section instead of posting it here in the user to user forum, this goes back to doing research on what the iphone can and cannot do before making the purchase you have to remember this is just the first generation iphone just like there was a first generation ipod most likely they'll be enhancements coming up for the iphone i myself am happy with my iphone, how many cell phones out there have visual voicemail?

  • Trying to understand the basic concept of object oriented programming.

    I am trying to understand the basic concept of object oriented programming.
    Object - a region of storage that define is defined by both state/behavior.
    ( An object is the actual thing that behavior affects.)
    State - Represented by a set of variables and the values they contain.
    (Is the location or movement or action that is the goal that the behavior is trying to accomplish.)
    Variables- (What does this mean?)
    Value - (What does this mean?)
    Behavior - Represented by a set of methods and the logic they implement.
    ( A set of methods that is built up to tell's the how object to change it's state. )
    Methods - A procedure that is executed when an object receives a message.
    ( A very basic comand.For example the method tells the object to move up, another method tells the method to go left. Thus making the object move up/left that combination is the behavior.)
    Class - A template from which the objects are created.
    ( I am very confused on what classes are.)
    - The definitions of the words I obtained from the "Osborne Teach Yourself Java". The () statements are how I interperate the Mechanisms (I do not know if Thats what you call them.) interact with each other. I understand my interpretation may be horribly wrong. I will incredibly appreciate all the support I may get from you.
    Thank you

    Object oriented programming is a replacement for the older idea of procedural programming (you can research procedural programming in google). As I understand it, in procedural programming, you have a step by step set of function calls to accomplish some task. Each function receives a data structure, manipulates it, and passes it to the next function. The problem with this is that each function preforms some action for the overall task and can't easily be reused by some other task. Its also harder to read the flow of what is happening with raw data structures flying all over the place.
    In object oriented programming, an object calls a function of another object and receives back, not a data structure, but another object. Objects contain a data structure that can only be accessed by its functions. An object is not so much a sub component of a bigger task, as it is a service that any other task can use for any purpose. Also, when you pass an object to the caller, the caller can ask questions about the data structure via its functions. The developer doesnt have to know what the previous function did to the data by reading up on any documentation, or having to reverse engineer the code.
    I suggest the best way of learning this is to code something like a library object.
    A library object contains a collection of book objects
    A book object contains a collection of chapter objects
    A chapter object contains a collection of paragraph objects
    A paragraph object contains a collection of sentence objects
    A sentence object contains a collection of word objects.
    Add functions to each object to provide a service
    Example: A library object should have a:
    public void addBook(Book book)
    public Book getBook(String title)
    public boolean isBookInLibrary(String title)
    The key is to add functions to provide a service to anyone who uses your object(s)
    For example, what functions (service) should a paragraph object provide?
    It shouldn't provide a function that tells how many words there are in a sentence. That function belongs to a sentence object.
    Lets say you want to add a new chapter to a book. The task is easy to read
    if you write your objects well:
    Sentence sentence1=new Sentence("It was a dark and stormy night");
    Sentence sentence2=new Sentence("Suddenly, a shot ran out");
    Paragraph paragraph=new Paragraph();
    paragraph.addSentence(sentence1);
    paragraph.addSentence(sentence2);
    Paragraphs paragraphs=new Paragraphs();
    paragraphs.addParagraph(paragraph);
    Library library= new Library();
    library.getBook("My Novel").addChapter("Chapter 1",paragraphs).
    Now, lets say you want to have a word count for the entire book.
    The book should ask each chapter how many words it contains.
    Each chapter should ask its paragraphs, each paragraph should ask
    its sentences. The total of words should ripple up and be tallied at each
    stage until it reaches the book. The book can then report the total.
    Only the sentence object actually counts words. The other objects just tallies the counts.
    Now, where would you assign a librarian? What object(s) and functions would you provide?
    If written well, the project is easily extensible.

  • I'm trying to understand the difference between Photoshop Elements and Lightroom software.

    Does one have things the other does not?

    Hi,
    Lightroom is to manage photos and produce derivative images without ever modifying an original file. Its processing functionality has a narrow feature-set covering the most common needs of professional photographers whereas Elements is a simpler yet powerful photo manipulation tool. Elements is designed to satisfy the needs of photo enthusiasts who like to manipulate images.
    You can also go through the thread to understand the basic difference between PSE and Lightroom.
    Check if this helps.
    Thanks,
    Swapnil

  • Understanding the way to connect a MDD to BlackMagic Decklink Extreme card

    Hi,
    I require some help in the following:
    I recently bought myself a Blackmagic DeckLink Extreme™ with 10bit SDI/analog video and audio capture card.
    Looking at the specs, http://www.blackmagic-design.com/products/sd/specs/, can someone give me directions as to the best setup I can do from the following sources and what other equipment I may require to achieve it.
    - mono stereo audio VHS -> has 1 video/audio in and 1 video/audio out (composite connections)
    - stereo audio video camera -> has 1 8 pin S-Video out port to composite connections (Hi8 tape type)
    - DVD player -> has composite 2 x 2ch stereo audio out, 1 x 5.1ch stereo audio out, 2 x video out, 1x component video out, 2 x S-video out, 2 x digital audio out; 1 x RCA/OPT
    - 2 x 23" monitors connected by ADC and DVI connections to a Apple MDD G4, may relay to 60" Plasma for video monitoring from video card prior to creating DVD final piece for playback.
    Basically, I wanted to have multiple source inputs and outputs, but I'm having difficulty in understanding the setup. Please refer to http://www.blackmagic-design.com/downloads/connections/decklinkdiagram.pdf page 5/6.
    I purchased the following from JayCar
    - 6 x PA3655 ADPT PLG RCA:
    https://secure4.vivid-design.com.au/jaycar2005/productView.asp?ID=PA3655&CATID=& keywords=PA3655&SPECIAL=&form=KEYWORD&ProdCodeOnly=&Keyword1=&Keyword2=&pageNumb er=&priceMin=&priceMax=&SUBCATID=
    - 1 x AC1668 SWITCH AV 3WAY:
    https://secure4.vivid-design.com.au/jaycar2005/productView.asp?ID=AC1668&CATID=& keywords=AC1668&SPECIAL=&form=KEYWORD&ProdCodeOnly=&Keyword1=&Keyword2=&pageNumb er=&priceMin=&priceMax=&SUBCATID=
    What other devices do I need to set up the equipment in the following way:
    <pre>
    Computer ------- Video In + Stereo In -----------> 3WAY SWITCH BOARD
    | | ^ ^ ^
    | | | | |
    Bigpond |---- OUT ---> TV --------|-----|-----|
    (Satellite Internet) | | | |
    FOXTEL DVD VCR V/CAM
    (Satellite TV)
    </pre>
    Currently I have not succeeded.
    I have just done a simple test like so:
    <pre>
    Computer ------- Video In + Stereo In ---------> DVD (*)
    |
    Bigpond
    </pre>
    (*) Tested using the following:
    <pre>
    From Decklink -- Y IN (from deck) --> DVD Y port
    -- B-Y IN (from deck) --> DVD Pb port
    -- R-Y IN (from deck) --> DVD Pr port
    -- SDI IN (from deck) ---> DVD Digital audio out
    ASWELL AS
    From Decklink -- Y OUT (from deck) --> DVD Y port
    -- B-Y OUT (from deck) --> DVD Pb port
    -- R-Y OUT (from deck) --> DVD Pr port
    -- SDI OUT (from deck) ---> DVD Digital audio out
    </pre>
    Not one has seemed to work. What am I missing here?
    Thanks
    Tiberius
    PPC MDD Dual Boot/Dual 1.25GHz   Mac OS 9.2.x   2 x 23" Apple HD Display, 2GB RAM, 2x150GB + 1x1TB HD

    pomme4moi wrote:
    I want to buy a hard disk (not a NAS device) and plug it into my Airport Extreme in order to share data between two Mac computers, and to stream iTunes content to my Apple TV.
    One option is to purchase a hard drive (say, a 2TB Hitachi G-Technology drive) and connect it to the USB port on the back of the Apple Extreme. The other option is to purchase a drive with an ethernet connection (say, a 2TB Lacie drive) and connect it to an ethernet port on the Apple Extreme.
    In the second case what you'd have actually is a NAS. Apple's AirPort routers aren't known for fast file sharing. The NAS option might be faster.
    Is either option better for streaming movies from the hard drive to my Apple TV?
    I could be wrong, but an AppleTV may not be able to access content directly from a network drive. It may require that a Mac serve as an intermediary.

  • How can I get the edited value from the editor in JTable

    I have a JTextField added as an editor to a cell in JTable.
    I value gets changed when I press enter.
    but in actionPerformed of the JTextField when I say
    String txtEditorValue = txtEditor.getText();
    I am getting the old value. How can I get the edited value? Thanks.

    Hi,
    I guess, your understanding of how JTable works together with its models is not good enough - for example the method getTableCellEditorComponent(...) of the TableCellEditor interface is used to get the component, that should be used as editing component - its second parameter is a value that should be used to setup the editing component - it is normally not the editing component itself.
    JTable uses an underlying TableModel to store the cell values - if you have edited a cell, JTable gets the value of the editing component by itself and stores it in the TableModel using its setValueAt(...) method. To retrieve this data you only need to query the TableModel using row and column of this cell as parameters
    say jt is your JTable, and row and column are the row and column of the cell - so to get the value, simply use
    Object obj = jt.getModel().getValueAt(row,column);
    if you know, that there is a String in this cell use
    String str = (String) jt.getModel().getValueAt(row,column);
    The editor component is used for the view of the JTable - you only want the data, which is stored in the model - you don't have to deal with the GUI components in this case.
    greetings Marsian

  • Could you please help me understand the logic behind certain things in OSX?

    Ok, so I try to be an open-minded guy, and I bear no particular allegiance to either OS. I own a Sony TZ and a Mac mini, and my wife has a MacBook Pro. I use both Oses.
    There are certain things I have trouble understanding in th Mac OS, so what I'd really like to understand the logic behind certain design decisions in the OS, and why these might be better ways of accomplishing things. I know how to get around all of the things I mention, so I'm not looking for instructions; rather I'm looking for well-thought out explanations for why these features are the way they are.
    *1. Programs don't quit when you close the window.*
    - This totally puzzles me. Why design it so that program windows are independent are from the running program itself? There must be a reason, cold someone explain how this is more efficient? To me, it's simpler to click an X on the window you are working on to completely shut down a program, rather than to either mouse through menus to select quit, or be obligated to using Command Q keyboard shortcut.
    *2. Menu bars are on the desktop.*
    - Related to the first point, why make the main thing framing your desktop be something which is always changing depending on the program? Why have file menus outside the main window of the program. Having the menu bar on the desktop then necessitates an additional area, the dock, which has to be used as a launch bar and to tell you what programs are currently running. That obligates you to having 3 different areas of screen: 1 for program menus, 1 for running programs, and the program window itself. This seems very inefficient to me. Not to mention all the messy-looking floating palettes all over the place, again because everything is separated and not nicely contained in a single program window.
    - Really, having a changing menu bar that frames the desktop isn't even consistent wth the whole desktop metaphor, which is that you place things on a desktop, like programs, files, etc. Are you changing the whole desk everytime you load a new program, yet the wallpaper stays the same? Doesn't seem to be logically consistent to me.
    *3. No delete key.*
    - This one really gets me. Why make such a commonly used key be a function key (Fn + Backspace)? Why make the user press a secondary key for a major function?
    *4. No Cut command.*
    - I read something about how Cut doesn't actually make sense when moving files around, but I obviously didn't fully understand it. Why make the user command drag, when you can just do Ctrl X??.
    *5. Launching Apps from the Finder.*
    - This seems weird to me, that you find and launch applications from the same thing you use to view files. Program icons in the finder are placeholders for the entire program, not files, yet they are found in the file viewer. Again, to me this seems logically mixed. I really dislike scrolling through Finder to look for apps. I know there is Spotlight and the dock (used as a quicklauncher), but these are really just workarounds for a setup which seems inherently illogical. To me at least, a menu of applications make more sense, ie, the start menu.
    Anyway, those are all I can think of now, although there are other things aout OSX that don't make sense to me.
    Thanks in advance! If I can understand Apple's reasoning and it is convincingly better, that will go a long way towards making me more comfortable with this OS.

    1. Programs don't quit when you close the window.
    That's really more a matter of what you're used to. It comes down to a programming decision as to what Apple and Microsoft considered to make sense. MS thinks that if there are no open windows, you're done using the app. Apple thinks you aren't necessarily done yet, as others have mentioned. I certainly wouldn't want Photoshop to quit every time I closed the last open image I was working on. Would be nice though if Safari would quit when I close the last open browser window. It's quick to relaunch if you really weren't done with it, so wouldn't be much of a bother to have it shut down with the last window.
    2. Menu bars are on the desktop.
    Makes way more sense the Microsoft's approach of repeating the same file menu on every open document in a program. How many places do you need to see File, Options and other common menu headings?
    2. Menu bars are on the desktop.
    Related to number two. The forward app is the only one you can directly work in, so why not have the menu bar change to reflect the choices for that application? When you go back to the previous app you were in, the menu bar changes back. So what loss of functionality is there? It comes back to not having menu bars on every single open window. There's no need or purpose for it.
    3. No delete key.
    Backspace does the same thing.
    4. No Cut command.
    Command+X, not Ctrl+X. This is Mac, not Windows. There's also very little need to ever do this from the keyboard. If you're moving files that are on the same drive/partition, then just drag and drop from the target folder window to the source. It's automatically a move. If going from one physical drive or partition to another, it's automatically a copy. Press and hold the Command key during the drag to make it a move.
    Besides, you don't really think Windows cuts the entire folder or file contents into RAM, do you? If your computer has 4 GB of RAM, and you cut 12 GB of data, it of course can't possibly fit in the clipboard. All Windows does when you do a cut is visually remove the files and folders from the screen. If the items are going to a location on the same drive/partition, it does the same thing as if you did a drag and drop move. The file table is simply updated to reflect the new file or folder locations. If it's to a different drive/partition, it then performs a copy then delete action, same as OS X.
    5. Launching Apps from the Finder.
    A program is just as much a file as any other file. It takes up space on the drive. The OS of course knows what to do with it when you double click an app. Same as it knows what to do when you double click a document related to an app. Windows is no different. An .exe file is also just as much a file as a .doc file. The .exe extension tells Windows to try and treat it as a program to load into RAM. It's not just a simple placeholder. The program has to be made up of something.

  • I still don't totally understand the difference on my iPhone between PhotoStream (with iCloud icon), Photos (the icon) and Albums and Camera Roll (under Photos icon) and and Camera Roll (under Camera icon).  I want to delete photos from my iPhone 4.

    I  don’t  understand the difference on my iPhone between PhotoStream (with iCloud icon), Photos (the icon) and Albums and Camera Roll (under Photos icon) and and Camera Roll (under Camera icon).  They seem to be more or less the same thing, but deleting photos in one place does not delete them elsewhere.
    When I tried to import from my camera to my iMac computer the computer would not recognized 900 of the 920 photos on the camera so I had to (successfully) use the Image Capture application to import them.
    I want to delete photos from my iPhone 4 in order to free up storage (I only have 8GB.)  But in synching I do not want to delete any images from my iPhoto on my computer.
    Is there a way that I can Delete All under Edit in either Photos or Camera on my iPhone and check about 20 ijmages to remain on the iPhone?  I could find no command to Select All and then uncheck the 20 photos I want to keep.
    I have the 8GB iPhone and the iMac with OS 10.9.2 and iPhoto '09 Version 8.1.2.
    Help!

    I have Version 6.1.3 because the clogged storage will not allow me to upload Version 7.1.  Catch 22.  This is basically a storage issue, I believe.  I cannot delete enough stuff on my iPhone to allow me to either back up or upload the new OS 7.  I am unwilling to pay for more storage in iCloud, so I want to delete stuff I don't need.  But I haven't yet figured out how to successfully do that.  I synch my phone and computer.  I want to delete mail on the Mail app and photos and still keep my photos on my computer on iPhoto, but not on my phone.  I seem unable to do that.  Any advice?

  • Help with understanding the Home Folder plus User Accounts

    I just got the IMac (replacing an ageing...that is an understatement...Grape iMac from long ago) and this is my first go at the OSX. My previous iMac had OS9.2
    I am having a problem understanding the Home folder and the Users to a point. The concepts are fine, it is the changing of names that is the problem. When I first started the iMac and went through the set-up and finally looked at the file structure, there was the Home Folder with a name, which i guess was pre-entered during set-up since I did not enter it (lets call it JOE). There was also 1 User, JOE with all the iLife folders. Since I did not like the name, i went to the Systems Preferences, into Accounts and found that JOE is an Admin. So, I changed the name to, lets say BILL, who still is an Admin. I also changed some settings and made BILL the auto log account. OK so far I am happy. I go back to the HD and find that now there are 2 users (folders), BILL and JOE, and that the Home Folder is still named JOE butall the iLife files are now under BILL.
    So I went and also renamed the Home Folder to BILL, so everything looks fine. But when I restarted the iMac latter it lost all the settings (mouse, etc.) This is really getting confusing.
    Here is what I want to do (after some reasearch):
    I want to change the Short Name (JOE) but so far I have read that you can not do that. Where did this name come from (basically my first initial and my last name) because I don't want my Home Folder to be named that. I found somewhere that the only way to do that is an Erase and Install. I am willing to do that since I have a backup of all the iLife files on an external disk anyways and I have not put anything new yet.
    Can someone enlighten me as to what would be the best course of action....this Short Name thing is frustrating.
    iMac 20" 2.33MHz   Mac OS X (10.4.9)  

    Welcome To Discussions kapklo!
    First you need to sort out the extra Home folder issue, that was created by changing the Short Names.
    The info in one or more of the articles linked to below, will help you with that.
    Return to Default Desktop, Apparent "Loss" of Home Directory
    My home folder and desktop are different than before
    Recover from renaming your Home folder, authored by Dr Smoke
    Then you can change the Short Name using this Change Short Name The Easy Way.
    Or you could do an Erase & Install, making sure you enter your preferred Short Name, during the setup process.
    ali b

  • Trying to understand the code???

    Hi,
    I am trying to understand the following bit of code, currently the code puts each catalogue into a different row of the table but i want each catalogue to be put in the next column
    (so the catalogues appear across the page on the actual web page). The following code is for the page in question but im not sure how much is relevant so i will paste it all and highlight the section i think is relevant:
    <html>
    <%-- DECLARATIONS --%>
    <%@ page import="se.ibs.ns.cf.*,  se.ibs.ccf.*, se.ibs.bap.*, se.ibs.bap.util.*, se.ibs.bap.web.*,  java.util.*, se.ibs.ns.icat.*, se.ibs.bap.asw.cf.*, java.lang.*" %>
    <% ItemCatalogueBean bean = (ItemCatalogueBean)SessionHelper.getSessionObject("ItemCatalogueBean",session);
       String resourcePath = bean.getResourcePath(null);
       String title = "Product catalogue";
       String languageCode = bean.getLanguageCode();
    %>
    <%@ include file="FuncHead.jsp" %>
    <BODY class="IBSBody" onLoad="loaded = true;">
    <form method="POST" action=<%= bean.getEncodedServlet("se.ibs.ns.icat.ItemCatalogueSearchServlet", response) %> name="basicForm">
    <%@ include file="FuncSubmitScript.jsp" %>
    <%@ include file="FuncPageBegin.jsp" %>
    <div align="center">
      <table border="0" width="895">
        <tr>
          <td align="left" width="502">
    <div align="left">
      <table border="0" width="500">
        <tr>
          <td class="IBSPageTitleText" align="left" valign="top" width="238">
              <%@ include file="FuncPageTitle.jsp" %>
              <%@ include file="FuncPageTitleImage.jsp" %>
                    <br>
           On this page you can see the product catalogues. Click on one of the
           links to go to the next level. Alternatively you can click the <b>Search
           catalogue</b> button to find the products of interest.</td>
               <td width="248" valign="bottom">
                <div align="left"><%@ include file="FuncShoppingCart.jsp" %></div>
               </td>
        </tr>
      </table>
    </div></td></tr></table></div>
    <input type="submit" value="Search catalogue" name="ACTION_NONE" onClick="submitButtonOnce(this); return false">
    <hr>
    <%-- REPEAT CATALOGUES --%>
    <div align="left">
    <table border="0" width="100%">
    <% Vector catalogues = bean.getItemCatalogues();
            int cataloguesSize = catalogues.size();
               for (int i = 0; i < cataloguesSize; i++){
                      BAPItemCatalogue cat =  (BAPItemCatalogue) catalogues.elementAt(i); %>
              <%-- LINK AND MARK AS NEW --%>
                  <tr>
                         <td width="23%"><a class="IBSMenuLink" href="link" onClick="javascript:invokeLink('<%= bean.getEncodedServlet("se.ibs.ns.icat.ItemCatalogueCategoryServlet", response) %>?CODE=<%= ToolBox.encodeURLParameter(cat.getCode())%>'); return false">
                              <%= cat.getDescription(languageCode) %></a>
                         </td>
                         <td width="40%" align="right">
                              <% if (cat.isNew()) {%>
                                     <img border=0 src="<%= resourcePath %>new.gif">
                              <% } %>
                        </td>
                  </tr>
              <%--  CATALOGUES IMAGE AND INTERNET INFORMATION (text, multimedia objects,downloads, links...) --%>
                  <tr>
                         <td width="23%" valign="top" align="left">
                              <% if (bean.isAdvanced(cat) && bean.hasMultimediaImage(cat)) { %>
                                   <a href="link" onClick="javascript:invokeLink('<%= bean.getEncodedServlet("se.ibs.ns.icat.ItemCatalogueCategoryServlet", response) %>?CODE=<%= ToolBox.encodeURLParameter(cat.getCode())%>'); return false">
                                   <img border="0" src="<%= bean.getMultimediaImage(cat) %>"></a>
                        <% } else {%>     
                                   <img border="0" src="<%= resourcePath %>Catalog.gif">
                              <% } %>
                         </td>
                         <td class="IBSTextNormal" width="40%" valign="top">
                              <%= bean.getWebText(cat) %>
                         </td>
                  </tr>
                  <tr>
                         <td width="23%">
                         </td>
                         <td width="40%">
                         <% Vector mmLinks = bean.getMultimediaLinks(cat);
                      int mmLinksSize = mmLinks.size();     
                              for (int ml=0; ml<mmLinksSize; ml++){
                                   BAPCodeAndDescription mmLink = (BAPCodeAndDescription)mmLinks.elementAt(ml); %>
                                   <a class="IBSLink" href="<%= mmLink.getCode() %>" target="_blank"><%= mmLink.getDescription() %></a><br>
                         <% } %>
                   <% Vector webLinks = bean.getWebLinks(cat);
                        int webLinksSize = webLinks.size();
                        for (int wl=0; wl<webLinksSize; wl++){
                                   BAPCodeAndDescription webLink = (BAPCodeAndDescription)webLinks.elementAt(wl); %>
                                   <a class="IBSLink" href="<%= webLink.getCode() %>" target="_blank"><%= webLink.getDescription() %></a><br>
                        <% } %>
                         </td>
                  </tr>
                <%}%>
    </table>
    </div>
    <%@ include file="FuncPageLinks.jsp" %>
    <%@ include file="FuncPageEnd.jsp" %>
    </form>
    </body>
    </html>i hope someone could help me to understand this,
    thank you for your help

    You've probably already seen these, but here are a couple of links that may help.
    http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/operators.html#array_a ccess
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/Array.html
    What's basically happening is that the "for" loop goes through each item in the array.  Don't be confused by the fact that two of the items in the array are Strings and one is an Integer - variable i being a String has nothing to do with the data type of the elements in the array.
    The following code:
    private function createLabels():void
         var myArray:Array = ['one', 'two', 3];
         for(var i:String in myArray)
              trace("i = " + i);
              trace(myArray[i]);
    gives the following results:
    i = 0
    one
    i = 1
    two
    i = 2
    3
    From that we can see that the "for" loop is assigning the index number of each array element, not the actual array element ('one', 'two', or 3) to the variable i.  So calling myArray[i] is the same as calling myArray[0] the first time through the loop.  This type of "for" loop is just a shorter way of doing the following, which produces exactly the same results:
    private function createLabels():void
         var myArray:Array = ['one', 'two', 3];
         for(var i:int = 0; n < myArray.length; i++)
              trace("i = " + i);
              trace(myArray[i]);
    Hope that helps.
    Cheers!

  • Whenever I open the editor in Photoshop Elements 12 it does not work. When I try to click open in the application it does not do anything. None of the buttons work. When I open a photo using file at the top it opens but I cannot edit it or use any of the

    Whenever I open the editor in Photoshop Elements 12 it does not work. When I try to click open in the application it does not do anything. None of the buttons work. When I open a photo using file at the top it opens but I cannot edit it or use any of the features on the left side.

    Hi Nealeh
    Thanks i think I got it working of a fashion.
    Except the replace colour, does not seem to end up with the colour I picked using the picker tool. Its as though it hads not replaced the colour but blended in the desired colour with the old incorrect colour!
    Buy trial and error picking not the right colour but close - which when mixed with the existing colour is close.
    Sorry I can't post the pictures as the Lingerie Mfg, has me under non disclosure.
    The scenario is:-  say a blonded mainly tanned model a high cut [at the hips] corsette style basque, with an ultra low bra line.
    Our dear model, has just come back from St Barts with a fabulous Tan, and equally striking bold Tan lines!.
    So we have great tanned legs, then the 'porcelain white band' where her swimsuit was.
    Likewise we have a tanned face, and arms, shoulders etc and a great tan on the top of the cleavage, then it stops, white band to the top of the ultralow cut bra line of the basque.
    She must have lived in like the most conservative bikini on the planet [50's style], for 2 weeks!
    Had she had a normal skimpy bikini on, no problem!
    If i don't solve it, she will get fired!
    Not a lack of interest in your post, but I was out, and tried to log in to this site; which I could do, on my iPad Air / 5 [whatever its the new one]. And tried to 'sign in' - but it just hung at the
    "Join Adobe Community" adobe sign in splash screen! with he little whell spinning around continuously!!!
    I have Safari on this iPad. Guess that is all it runs.
    So technology is not my friend today!

  • When an image is inserted here using clipboard, it appears in the editor, but it does not appear in

    when an image is inserted here in forum po editor using clipboard, it appears in the editor, but it does not appear in the post. When the image is inserted from a file, it works

    Im not completely sure, why you are pointing out the very same thing I'm pointing out too. If you re-read my original post thoroughly, you will find - at its very end - the sentence "When the image is inserted from a file, it works". Since I'm not aware of the way how to insert the image from a file in a procedure other, then clicking the "camera" icon, I hold such a sentence for more then enough to point out, that the camera icon works fine for me (if you re-read my post thoroughly and pay detailed attention of my expression "using clipboard", then you shall definitely evaluate this expression as covering both ways an image can reach the cliboard, eg. Copying from a graphical editor/processor or dragging&dropping a graphical file).
    However more then this, your post does in fact NOT reply to the fact, why the WYSIWYG editor box allows the insertion of an image from clipboard, but then fails to upload it and thus it is not displayed in the post.
    For the sake of completness, I must also point out, that your last sentence of your post "And that's what it is there for" does not bring much clarity about that thing - while I fully understand, as one can observe from my "When the image...it works" sentence, the functionality, purpose and propper handling of the "camera" icon, I cannot agree with such a behaviour of the editor, that allows an operation to be done (What You See) that does not affect the outcoming result (Is What You Get).
    From the theory of designing (G)UIs one may learn, that in such a case the operation should either fulfill completly (eg. display the clipboard-inserted image in the resulting post) or fail completly in the beginning (when Pasting the image into the text), either silently (just not displaying the image in the editor field) or with an error warning such as "Insertion of images/bitmaps from clipboard is not permitted". For Windows-like environments (such as, but not limited to, Microsoft Explorer, KDE, Gnome, IceWm....) the change of the dragging cursor to display a kind of "No way" or "no entry" pictogram, is also advisable.
    For the sake of completness of my reaction I also might percieve your last sentence as a kind of irony or sarcasm, which however I definitely do not find appropriate behaviour, more over I might call it an "arogant rudeness" in case of such a "VIP" member with more then 9000 posts in the time when this post is being written, with a hint of overworking, malicous intends, inattention, ego-centricism or any other personal failure(s) or a combination of them, that you should - in case they are present - definitely pay attention to in your private life.
    Moreover, let me please point out, that Im not much pleased about the way this forum works with its users, since I find the bug I have discovered, only a small one (a category B one might say in the A-B-C scheme, eg. a category, that does not directly influence or prohibit the execution of the main business cases, however it may result in discomfort, data loss or operation repetition, such a category would be most possibly a category C in the A-B-C-D scheme). Therefore I must explicitly express my annoyance that you have the guts to handle the post I did like this, when - in my opinion - the post has been written in such a manner that it was merly a polite point out of a small bug, thus it was kept as brief as possible, but fully covering the description of the scenario, alternate scenarios and their outcomes. Moreover, I'm definitely displeased, that you allow yourself to post such a post, that - instead of exploring the matter - throws the whole matter on the head and inside-out, or, one may say, kicks the bucket, and forces the original author, in this case me, for re-accounting for himself, moreover the ambivalency of your post opens such many possibilities to account for, that the time and resources the self-accounting autor has to spent, heavily overweighting the importance, significance and impact of the bug itslef.
    So let me please advise you for the next time:
    - to explore posts with more thoroughness, evaluating their expressions and sentences much more deeply, rather then just glance through on their surface
    - think twice before answering and try to figure out how such answer might be percieved
    - try to do less posts, but with higher quality
    - try to employ more politeness and correct behaviour
    - approach the matter with more humble and curious attitude rather then with a "I-know-everyting-better" standpoint
    With regards
    Lukas Plachy
    Misstypes corrected by rheingold.

  • [q] how to understand the 'order' of a list?

    hi,everyone
    there's a test program:
    import java.util.*;
    public class testList
    void test()
    LinkedList ll= new LinkedList();
    ll.add("3");
    ll.add("1");
    ll.add("2");
    ll.add("5");
    ListIterator li = ll.listIterator();
    while (li.hasNext())
    System.out.println(li.next());
    public static void main(String[] args)
    testList tl = new testList();
    tl.test();
    As we know, order is the most important feature of a List.
    But this program's result is " 3 1 2 5 " which is not a sorted list!
    How we understand the phrase 'order' ?
    And , is there any method in Collection which can sort the elements in one collection (list or set)?
    thanx a lot!

    As we know, order is the most important feature of a
    List. Yes, and it preserves the order you have used to put elements in the List. :)
    But this program's result is " 3 1 2 5 " which is not
    a sorted list!Well, what order to you actually like? "1 2 3 5"? Why not "5 3 2 1"? And for more complicated objects "natural" order may be even less obvious. And never forget that List may contain objects that belong to different classes - for example Integer, String and Date - how they are to be ordered? (Of course, such usage is not recommended).
    How we understand the phrase 'order' ?
    And , is there any method in Collection which can
    sort the elements in one collection (list or set)?There are sort-methods in java.util.Collections class.

  • Understanding the get-help syntax

    Hi,
    I was studying on how to learn how to find and get powershell cmdlets.   However, when following the advice from an article:
    http://www.windowsnetworking.com/articles-tutorials/windows-server-2012/powershell-essentials-part3.html
    =====================================================
    I will be the first to admit that the information that is displayed as a result of using the Get-Help cmdlet can be a
    little bit overwhelming. However, things really aren’t as difficult as they might at first appear. The trick is to know
    how to read the syntax information. To show you what I mean, let’s take a look at the last block of text in the
    screen capture above.
    The text starts out with Get-PhysicalDisk. Obviously this is the cmdlet that we are using. From there, you will notice
    the following text:
    [-Usage <usage[]>
    Anything that appears in brackets [] references an optional parameter. In this case, we have a bracket [ followed
    by –Usage. This indicates that –Usage is an optional parameter.
    The next thing that we see after –Usage is <usage[]> this indicates that the Usage parameter requires some
    additional information. You can’t just use the command Get-PhysicalDisk –Usage because even though Usage is
    a valid parameter, PowerShell needs more information. It needs to know what kind of usage you are interested in.
    Any time you see a word in between the less than < and greater than > signs, it indicates that you are going to
    need to provide some additional information to the parameter. So in this case, -Usage is the parameter and
    <usage[]> is the additional data.
    Of course this raises the question of where we can find this additional data. Well, it is included in the command
    syntax. You will notice that the next section of the syntax is:
    {Unknown | AutoSelect | ManualSelect | HotSpare | Retired | Journal}
    You will notice that the list of words is enclosed in braces {}. These braces indicate that the words within can be
    used in conjunction to the optional parameter. To show you what I mean, let’s go back to the original example in
    which I wanted to find information related to retired physical disks. To get this information, I could use the
    following command:
    Get-PhysicalDisk –Usage Retired
    So you can see that I am appending the –Usage parameter to the Get-PhysicalDisk cmdlet, and then I am telling
    PowerShell what type of Usage I am interested in.
    The syntax that is displayed within the above figure continues on, but the basic pattern repeats. The syntax
    information lists a number of optional parameters and the data that can be used with those parameters. Some of
    the other optional parameters for instance are –Description, -Manufacturer, -Model, -CanPool, and –HealthStatus,
    and the list goes on.
    =====================================================
    I like to follow along so I got it that []= optional , <>=mandatory, {}= list of items
    However, I ran the command and got something different:
    PS C:\Users\Administrator.BWCAT> get-help Get-PhysicalDisk
    NAME
        Get-PhysicalDisk
    SYNOPSIS
        Gets a list of all PhysicalDisk objects visible across any available Storage Management Providers, or optionally a
        filtered list.
    SYNTAX
        Get-PhysicalDisk [-AsJob] [-CanPool <Boolean[]>] [-CimSession <CimSession[]>] [-Description <String[]>]
        [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>] [-ThrottleLimit <Int32>]
        [-UniqueId <String[]>] [-Usage <Usage[]>] [<CommonParameters>]
        Get-PhysicalDisk [-AsJob] [-CanPool <Boolean[]>] [-CimSession <CimSession[]>] [-Description <String[]>]
        [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>] [-StoragePool <CimInstance>]
        [-ThrottleLimit <Int32>] [-Usage <Usage[]>] [<CommonParameters>]
        Get-PhysicalDisk [-AsJob] [-CanPool <Boolean[]>] [-CimSession <CimSession[]>] [-Description <String[]>]
        [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>] [-StorageNode <CimInstance>]
        [-ThrottleLimit <Int32>] [-Usage <Usage[]>] [<CommonParameters>]
        Get-PhysicalDisk [-AsJob] [-CanPool <Boolean[]>] [-CimSession <CimSession[]>] [-Description <String[]>]
        [-HasAllocations <Boolean>] [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>]
        [-SelectedForUse <Boolean>] [-ThrottleLimit <Int32>] [-Usage <Usage[]>] [-VirtualDisk <CimInstance>]
        [-VirtualRangeMax <UInt64>] [-VirtualRangeMin <UInt64>] [<CommonParameters>]
        Get-PhysicalDisk [-AsJob] [-CanPool <Boolean[]>] [-CimSession <CimSession[]>] [-Description <String[]>]
        [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>] [-StorageEnclosure <CimInstance>]
        [-ThrottleLimit <Int32>] [-Usage <Usage[]>] [<CommonParameters>]
        Get-PhysicalDisk [-AsJob] [-CanPool <Boolean[]>] [-CimSession <CimSession[]>] [-Description <String[]>]
        [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>] [-StorageSubSystem <CimInstance>]
        [-ThrottleLimit <Int32>] [-Usage <Usage[]>] [<CommonParameters>]
        Get-PhysicalDisk [[-FriendlyName] <String[]>] [-AsJob] [-CanPool <Boolean[]>] [-CimSession <CimSession[]>]
        [-Description <String[]>] [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>]
        [-ThrottleLimit <Int32>] [-Usage <Usage[]>] [<CommonParameters>]
    I then tried to do what they said:
    Get-PhysicalDisk -Description string        ((However you can see that what he says does not seem to apply to the string, and I dont see a list of things to choose from.  So I am confused on how to understand the syntax here can
    someone help me to understand the syntax?
    Thanks,

    It said the following in the -full
     -Description <String[]>
         Gets the physical disks that contain the specified description. Enter a description, or use wildcard
         characters to enter a description pattern.
         Required?                    false
         Position?                    named
         Default value
         Accept pipeline input?       false
         Accept wildcard characters?  false
    When I read that I take it to mean that it wants me to enter the string after -description as a filter in order to tailor my search?  because if I type  Get-physicaldisk -description "*"    or I enter get-physical -description
    *   that command seems to work and pull up information.  in my case I only have one disk.
    =========================================
    PS C:\Users\Administrator.BWCAT> Get-PhysicalDisk -HealthStatus healthy
    FriendlyName        CanPool             OperationalStatus   HealthStatus        Usage                            
     Size
    PhysicalDisk0       False               OK                  Healthy             Auto-Select            
              40 GB
    PS C:\Users\Administrator.BWCAT> Get-PhysicalDisk -Description "*"
    FriendlyName        CanPool             OperationalStatus   HealthStatus        Usage                            
     Size
    PhysicalDisk0       False               OK                  Healthy             Auto-Select            
              40 GB
    PS C:\Users\Administrator.BWCAT> Get-PhysicalDisk -Description *
    FriendlyName        CanPool             OperationalStatus   HealthStatus        Usage                            
     Size
    PhysicalDisk0       False               OK                  Healthy             Auto-Select            
              40 GB
    PS C:\Users\Administrator.BWCAT>
    =========================================

  • Focus on the editor Tab which is already opened (vspackage)

    I am binding  list of items to the toolwindow from database,when i click the item, corresponding item name editor tab opens but  when i click the same item i want to Focus(Active) the same editor tab.It should not open the new tab.I am using following
    code to open the editor.
    string name = item.name + ".  ";
    string path = @"VSkbEditor Files\VSkbEditor";
    DTE ppHier = (DTE)Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(DTE));                    
    ppHier.ItemOperations.NewFile(path, name, EnvDTE.Constants.vsViewKindDesigner);
    Thanks in advance.

    Hi jnanesh,
    You can either set the focus back to the original editor window or firstly hide the opened editor window, for example:
    DTE dte = GetService(typeof(SDTE)) as DTE;
    Window originalWindow = dte.ActiveWindow;
    dte.ItemOperations.NewFile();
    originalWindow.Activate();
    //DTE dte = GetService(typeof(SDTE)) as DTE;
    //dte.ItemOperations.NewFile().Visible=false;
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Is it possible to sync your iphone to 2 pc's (work/home)and keep outlook calendar?

    I had a iphone but returned it, but now I need confirmation that it is possible to have an iphone sync between to PCs (work / home).  I want to know if its possible to have it sync the phone with two computers.  Home has itunes for music and such, wo

  • ITunes crashes when I access iTunes Store/get Microsoft error message

    I run iTunes on XP. I can open/play/synch iTunes just fine. But over the last two days, as soon as I access the iTunes Store, I get a Windows error message (that iTunes has encountered an error and needs to close, etc.). The event viewer indicates th

  • Can I access iCloud on a computer that is not mine?

    Is it possible to access all of my icloud stuff off a computer that is not mine?

  • Manual creation of Oracle RAC Database

    Hello Guru's, I successfully installed Oracle Grid(clusterware) and Oracle RDBMS 11.2.0.1.0 for RAC containing 2 nodes on Linux 5.3 64 bit. All the clusterware services and ASM instance are running fine on both nodes. Now im planning to create databa

  • No Problems at all...

    Just thought I would chime in with my experiences with the MPB... I know this is a support forum for people with problems, so this thread might get deleted. I've had my MPB for three days now and I am very happy with it. It is quiet; no buzzing sound