Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Power beep

Power beep

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lutoslaw
    wrote on last edited by
    #1

    I have just found this piece of code in a "Common" class (original comments preserved)...

    public static boolean openConfirmDeleteDialog() {
    // a very fast double beep sound :) which is rather an intensified single one :)
    Display.getCurrent().beep();
    Display.getCurrent().beep();
    return Common.openQuestionDialog(ViewsMessages.H_CONFIRM, "Are you sure that you want to delete this record?");
    }

    Greetings - Jacek

    J Sander RosselS P 3 Replies Last reply
    0
    • L Lutoslaw

      I have just found this piece of code in a "Common" class (original comments preserved)...

      public static boolean openConfirmDeleteDialog() {
      // a very fast double beep sound :) which is rather an intensified single one :)
      Display.getCurrent().beep();
      Display.getCurrent().beep();
      return Common.openQuestionDialog(ViewsMessages.H_CONFIRM, "Are you sure that you want to delete this record?");
      }

      Greetings - Jacek

      J Offline
      J Offline
      Julien Villers
      wrote on last edited by
      #2

      Hey, wrong forum, you wanted to put this in Clever Code! Or maybe a tips/tricks entry? :laugh:

      'As programmers go, I'm fairly social. Which still means I'm a borderline sociopath by normal standards.' Jeff Atwood

      L 1 Reply Last reply
      0
      • J Julien Villers

        Hey, wrong forum, you wanted to put this in Clever Code! Or maybe a tips/tricks entry? :laugh:

        'As programmers go, I'm fairly social. Which still means I'm a borderline sociopath by normal standards.' Jeff Atwood

        L Offline
        L Offline
        Lutoslaw
        wrote on last edited by
        #3

        Julien Villers wrote:

        Or maybe a tips/tricks entry?

        It would rather be a TIP!!.

        Greetings - Jacek

        1 Reply Last reply
        0
        • L Lutoslaw

          I have just found this piece of code in a "Common" class (original comments preserved)...

          public static boolean openConfirmDeleteDialog() {
          // a very fast double beep sound :) which is rather an intensified single one :)
          Display.getCurrent().beep();
          Display.getCurrent().beep();
          return Common.openQuestionDialog(ViewsMessages.H_CONFIRM, "Are you sure that you want to delete this record?");
          }

          Greetings - Jacek

          Sander RosselS Offline
          Sander RosselS Offline
          Sander Rossel
          wrote on last edited by
          #4

          That's just genius! :laugh:

          It's an OO world.

          public class Naerling : Lazy<Person>{}

          1 Reply Last reply
          0
          • L Lutoslaw

            I have just found this piece of code in a "Common" class (original comments preserved)...

            public static boolean openConfirmDeleteDialog() {
            // a very fast double beep sound :) which is rather an intensified single one :)
            Display.getCurrent().beep();
            Display.getCurrent().beep();
            return Common.openQuestionDialog(ViewsMessages.H_CONFIRM, "Are you sure that you want to delete this record?");
            }

            Greetings - Jacek

            P Offline
            P Offline
            Pravin Patil Mumbai
            wrote on last edited by
            #5

            This could be a good tip.... Clever code....

            I quit being afraid when my first venture failed and the sky didn't fall down.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups