How can i customize a dialog box in GMF

Hi,
I am doing a project in GMF. I want to customize the standard dialog box which contains a set of values on the left side (Choices), that can be selected to the right side (Feature), and can be moved up or down.
I would like to add a new button (i.e. Info) that shows informations about the selected item in the left list.
Kindly help me or suggest me a valid example...
Thanks

Hi Gregorio,
There are several ways, more or less intruisive.
Perhaps the better for you is to start from this tutorial: http://doc.hammurapi.com/dokuwiki/doku.php?id=gmf_cheat_sheet#custom_property_editors
Regards,

Similar Messages

  • How do I customize a Dialog Box theme for my macbook pro?

    I am tired of the gray dialog boxes. If possible, I would like to use a picture. I also want a different color bar on the top of the screen. I also would like a different color scroll bars. I also want different options (as in colors) for cursors. Thank you!

    I have no doubt that someone with too much time on his hands has written something you could use to customize your dock, cursors, dialog boxes, menu bar, and all manner of other things. What I'm suggesting is that that's a dumb thing for him and you to waste time and energy on, and a silly and completely unnecessary risk with little or no benefit. If you have things to get done with your computer, do them, and don't get bogged down fooling with the eye candy.
    And by the way, no one owes you answers to your questions. Everyone here is a volunteer.

  • How can I get past dialog box that wants my country/region?  Premiere Elements 13 will not open!!!

    Cannot get past the country/region dialog box because the list will not allow me to select the United States as the place where I live.  The list is too long and no way to get to the bottom to select the United States!!!  I can't get into Premiere Element 13.

    TNDOGGER888
    Thank you for the reply.
    Let us start with
    1. Is the computer operating system Windows 7, 8, or 8.1 64 bit? If it is and you are installing Premiere Elements 13, then the program files will go by default to Local Disk C/Program Files/Adobe/Adobe Premiere Elements 13 as the default location. If you have a computer that is using other than Windows 7, 8, or 8.1 64 bit, then it will not. Another question is, when your drives were set up, was the SSD drive designated the C drive?
    2. From what you wrote, I understood that you were using your installation files or installation disc to install the program, but were getting stopped very early in the installation process because you could not set the country/language. Typically that setting is done while you are starting the installation. One of the early dialog boxes that you get in that process is named Choose Setup Language (or something like that). That is where I believed you could not set the country/language. Is that the place to which you were referring or some place else?
    3. You do not need to uninstall Premiere Elements 10 to install and run Premiere Elements 13. Just use one program at a time.
    Typically 32 bit applications in a 64 bit computer operating system run in the 32 bit compatibility mode of the 64 bit system. And, these 32 bit applications program files will be in Program Files (x86) Folder. The 64 bit applications program files would be in Program Files. With regard to Premiere Elements 10, some of its files may be found in Program Files and Program Files (x86).
    But, the main focus now is getting Premiere Elements 13 installed to the default location on the Local Disk C/Program Files/Adobe/Adobe Premiere Elements 13 during the installation process after you designate the country/language and are given a country dependent NTSC or PAL system with which to work.
    From a quick look at 13 installation on Windows 7 64 bit, the first installation dialog that mentions language with country implications is
    This is for Premiere Elements 13 on Windows 7 or 8.1 64 bit. Since you say that the United States is further down the list in your case, I suspect this is not the place where you are having problems. Note the default location in this Options dialog. Did you leave that as is or change it to something else?
    Are you having these issues when you get to the Sign In dialog or some place else?
    Please consider and then let us decide what next.
    Many thanks for the follow up. Appreciated.
    ATR

  • How can I get print dialog box to show accurately?

    My print dialog box shows the image too large. If I go to print it prints correctly. I have tried updating drivers and reinstalling Illustrator. It has been happening since new update to CC.

    When viewing the print settings, in the Summary List, it shows the Paper width as 9 inches rather than 8.5.
    The Navigator window shows (in my test file) 4 plus signs across the top of an 8.5 by 11 inch page.
    The Print Preview in the Print Dialog shows  only 3.  My printer is set to standard 8.5 by 11 page size.
    Everything prints perfectly in CS6 when I bring the file in.

  • Can i customize the dialog box message

    hi,
    i wnt to change dialog box message in business catalyst like BC Default Message Is
    "ERROR: Please choose relevant options before adding to cart"
    But i want
    "Please Select The Size"
    anyone have any idea please tell me
    thanks

    thanks
    mario_gudelj,

  • How can I detect a dialog and respond?

    I'm having trouble doing something that's probably not that hard. I'm trying to "Print to PDF" a bunch of old AppleWorks documents. When you open a document created in AppleWorks v6 it opens right up, but when you open a document created in AppleWorks 5 you get a dialog box that says, "This document was created by a previous version of AppleWorks. A copy will be opened and "[v6.0]" will be added to the filename."
    Right now I open the file and then:
    tell application "AppleWorks 6"
            activate
            repeat while not (exists front document)
                    delay .2
            end repeat
    end tell
    When the dialog box pops up, there's no front document so the whole thing freezes until you hit OK. How can I detect this dialog box and dismiss it?
    Thanks
    PS
    When the box is open I ran this and got this result:
    /usr/bin/osascript -e 'tell application "System Events" to get properties of windows of application process "AppleWorks 6"'
    minimum value:missing value, orientation:missing value, position:436, 153, class:window, role description:dialog, accessibility description:missing value, focused:missing value, title:missing value, size:412, 123, value:missing value, help:missing value, enabled:missing value, maximum value:missing value, role:AXWindow, entire contents:, subrole:AXDialog, selected:missing value, name:missing value, description:dialog, minimum value:missing value, orientation:missing value, position:8, 76, class:window, role description:floating window, accessibility description:missing value, focused:missing value, title:Starting Points, size:631, 189, value:missing value, help:missing value, enabled:missing value, maximum value:missing value, role:AXWindow, entire contents:, subrole:AXFloatingWindow, selected:missing value, name:Starting Points, description:floating window, minimum value:missing value, orientation:missing value, position:4, 22, class:window, role description:floating window, accessibility description:missing value, focused:missing value, title:Button Bar, size:612, 51, value:missing value, help:missing value, enabled:missing value, maximum value:missing value, role:AXWindow, entire contents:, subrole:AXFloatingWindow, selected:missing value, name:Button Bar, description:floating window

    Hi,
    The simplest would be to set the application preferences in the script.
    Like this :
    -- *** set prefs ****
    tell application "AppleWorks 6"
          activate
          set oldPrefs to its preferences
          copy oldPrefs to tPrefs
          tell tPrefs
                set old version warning to false --doesn't show the old version warning alert  
                set converted file suffix to true -- append “[v6.0]” to documents converted from older formats
                set locked file warning to false
                set paint reduction warning to false
          end tell
          set preferences to tPrefs
    end tell
    -- *** end set prefs ****
    --**** your script, example ***
    set tfiles to choose file with multiple selections allowed
    tell application "AppleWorks 6"
          repeat with i in tfiles
                open i
                tell front document
                      -- do something
                end tell
          end repeat
    end tell
    --**** end  your script ***
    -- *** reset prefs ****
    tell application "AppleWorks 6" to set preferences to oldPrefs

  • How to avoid the windows "dialog box" when we use flexprintjob class

    in the print segment
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf65381-7ffc.html
    it says
       printJob.start();
    This causes the operating system to display a Print dialog box.
    this  windows "dialog box" which is used to set the page size, page index, or some other page settings.
    but in my case , i can't let user see this dialog box.
        how can i avoid this "dialog box" when i call   printJob.start();
    it is my big issue ,please help to give a suggestion

      hi   how can i set the "ie" "internet explorer"  to avoid the "dialog box."  if i have to do it .
    thank you very much !

  • How to use save as dialog box in swing

    hello,
    at the time of start the application by clicking the button, i hv to give the path to save my output file, how can i used this dialog box
    thanks

    [http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html]

  • How I can diable in firefox dialog box "download error could not be saved, because the source file could not be read. " when file not downloaded

    How I can diable in firefox dialog box "download error could not be saved, because the source file could not be read. " standart download manager when file not downloaded

    It is possible that anti-virus software is corrupting downloaded files or is interfering otherwise.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See:
    *http://kb.mozillazine.org/Unable_to_save_or_download_files
    You can try to set the browser.download.manager.scanWhenDone pref on the <b>about:config</b> page to false.
    *http://kb.mozillazine.org/about:config

  • How to get title in Dialog box

    How to get title in Dialog box like "Adobe® Connect™ "

    Works for me. What happened when you tried?
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    tell application "Finder" to display dialog "I need ® or ™ in dialog box text" with title "I need ® or ™ in dialog box text" buttons {"Aha!"} default button 1</pre>

  • How to develop a file dialog box in a oracle forms

    please help me its an urgent task,
    how to develop a file dialog box in a oracle 6i forms
    in html we will use <input type ="file"/> to open a dialog box,so that we can upload file to the server .similarly how to upload a file using oracle.

    For Windows there is a library that comes with forms d2kwutil.pll that contains a package win_api_dialog. use the open_file procedure.
    NOTE******** when you select a file from whatever windows directory you choose, it will change your working directory to that directory so right after that you will need to reassign your working directory back to what it originally was.
    Also, you will need to have d2kwut60.dll in the same directory as your d2kwutil.pll. Both come with Developer.
    Example code is
    v_runpath := win_api_environment.get_working_directory(TRUE);
    v_filename := win_api_dialog.open_file('Find File','C:\','*.*',TRUE, 0, TRUE);
    win_api_environment.set_working_directory(v_runpath,true);
    Hope this helps

  • How can i customize ActionBox in QM01 Transaction

    hello guru's,
      i have a requirement to add additional link with icon in actionbox (which displays right side of the screen)to perform actions based on uesr need.i found include program
    LQM07F30 (in SAPLQM07) which prepares all the links and icons in actionbox.
    my requirement is, is there any exits available to customise this actionbox to add onemore link in actionbox..?if so, how...?
    if someone works on this kind of issue plz guide me.
    thanks in advance.
    innu

    Documentation Regarding Action Box Creation
    Define Action Box
    In this step, you define additional functions (activities) that can be performed during the processing of a notification. You define these functions using a key and an identifier and they are assigned to a notification type. The follow-up functions appear in a separate screen section (action box) in the header, when you process notifications.
    You can control the structure of the action box in the following way:
    To call the function, you can define an icon with descriptive quick info in addition to the identifier.
    You use the sort number to define the order of the functions as they appear in the action box.
    In addition to the notification type, you can enter a scenario. If you do this, the function only appears in the action box if this scenario is assigned to the notification.
    You define the transactions in which the function is to appear in the action box by choosing an activity type.
    The usage defines whether the function is available at notification level or at task level.
    You can control the execution of the function in the following way:
    You can document the processing of the function using a task or activity.
    Note: When you display the notification, the system only offers the functions that were defined with attribute "No documentation". The assigned function module cannot make any changes to the notification.
    You can enter a user-defined function module for each function. This module is processed when the function is called. You can also program a dialog box to be used with this function module.
    If you link a business operation to the function, it will only be triggered if the status of the operation in the quality notification allows this.
    (The system checks the user authorization for this operation.)
    If the function is generated for a task, there are two statuses for this task, either released or completed. Additionally, you can define a workflow task that is activated when the notification is saved. You can also enter a function module that changes the workflow container when the notification is saved.
    For each function, you can also define several dependent functions (dependent follow-up functions). These dependent follow-up functions can be triggered from the action box, after the higher-level function has been executed. In this way you can ensure the adherence to certain sequences during processing. For more information about setting up these sequences, see the documentation for the function module QM07_MERGE_ACTIONBOX.
    Standard Settings
    To simplify the programming of your own function modules, the standard system contains non-operational examples for tasks, activities and change workflow container . You can take the interface that supports your own function modules from these examples.
    The standard system contains various example functions that you can use as sources and copy models for your own definitions. You search for the appropriate function modules using the generic keys:
    QM06_FA* Function modules for activities
    QM06_FM* Function modules for tasks
    The data relating to these examples (table settings and corresponding catalog entries) is contained in client 000 in the standard system and must be transferred to the current client if required.
    Recommendation
    Note that with each Release, there may be additional useful examples contained in the standard system. Transfer these examples if required into the current client.
    Activities
    1. Determine which recurring functions you can define, dependent on the notification type.
    2. Define these functions. Perform any programming necessary for the function modules you require. Proceed as follows:
    a) Define the key and identifier for the function
    b) Assign a function to the notification type
    c) Define the controls for the function
    d) Enter a function module with the required flow logic (optional)
    e) Define icons and text
    f) Enter code group and code for the task or activity from the catalog that is assigned to the notification type, if the function is to be documented as a task or activity.
    You must enter a status for the task that is to be included in the notification.
    3. Determine if tasks are to be supplemented by the workflow and define the workflow tasks if required. If the assigned function module has a container for the Workflow task, the container must also have an entry.
    4. Determine whether the functions are to be triggered in a particular sequence and if so, define the dependent follow-up functions.
    Further Notes
    In the notification header, only those functions appear, for which the user has authorization. Tip: For tasks and activities, use the authorization for use of certain code groups.
    Return ->
    Application

  • How can I customize the skin of my AIR app

    Hi all,
    I have created an AIR app from my RoboHelp v7 WebHelp.
    Works and looks quite nice. Great. It's just that it did not use the WebHelp skin I created. It uses some default skin.
    How can I customize the skin of my AIR app? When I run the RH Packager for Adobe AIR, I get a dlg box come up, called, "General Options - RoboHelp Packager for Adobe AIR" and it offers me a few default skins, but it does not offer me the skin I made for my WebHelp.
    I also heard that if you learn FLEX you might be able to change the skins.
    TIA
    avi

    Heya,
    In order to change it alle just set it up as ordinary html webpage so heres and example of css:
    style.css - In the main directory of your app.
    body {
         margin:0;
         padding:0;
    #wrap {
         margin:0;
         padding:0;
         text-aling:left;
    #header {
         padding:2px;
         background:#000;
         color:#fff;
    #content {
         padding:1em;
         margin:0;
         background:#ccc;
    #footer {
         padding:2px;
         background:#000;
         color:#fff;
    Now for the html file:
    <html>
         <head>
              <title>My App</title>
              <link href="style.css" rel="stylesheet" media="screen" />
              // Scripts go here
         </head>
         <body>
              <div id="wrap">
                   <div id="header">
                        My Application title
                   </div>
                   <div id="content">
                        bla bla bla lorem lipsum.
                   </div>
                   <div id="footer">
                        Copyright'n stuff
                   </div>
              </div>
         </body>
    </html>
    If you need more help or examples I recomend that you go here and read some stuff on a lot of it all , you can also download theese samples it contains a lot of good stuff which makes it all A LOT easier to understand, the way I learnt most of what I know even though I am still missing some things.
    Hope it helped!
    Best Regards
    Buch

  • How to dispose the modal dialog box

    hi all
    can any one please tell me how to supress the modal dialog box.
    Means iam triggering the a new pop up (modal dialog box) after this
    when iam click ok or cancel buttons on this modal dialog box it is not returing to
    the screen from where it is tiggering. Can any one tell how to achieve this.
    what r the statements i have to write for this in the PAI.

    HI,
    in PAI u have to write like..
    CASE OK_CODE.
    WHEN 'OK'.
    UR CODE.........
    WHEN 'CANC'.
       SET SCREEN 0.
       LEAVE SCREEN.
    OR
       LEAVE TO SCREEN XXX. " UR CALLING SCREEN NUMBER
    ENDCASE.
    Pls close the thread if the problem is solved and reward to all helpful answers.
    Regards
    SAB

  • How can I make the combo box turn to the value of black.

    When the show button is pressed (and not before), a filled black square should be
    displayed in the display area. The combo box (or drop down list) that enables the user to choose the colour of
    the displayed shape and the altering should take effect immediately.When the show button is pressed,
    the image should immediately revert to the black square, the combo box should show the value that
    correspond to the black.
    Now ,the problem is: after I pressed show button, the image is reverted to the black square,but I don't know
    how can I make the combo box turn to the value of black.
    Any help or hint?Thanks a lot!
    coding 1.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class test extends JFrame {
         private JPanel buttonPanel;
         private DrawPanel myPanel;
         private JButton showButton;
         private JComboBox colorComboBox;
    private boolean isShow;
         private int shape;
         private boolean isFill=true;
    private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
    "green", "lightgray", "magenta", "orange",
    "pink", "red", "white", "yellow"}; // color names list in ComboBox
    private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
                              Color.gray, Color.green, Color.lightGray, Color.magenta,
                              Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
         public test() {
         super("Draw Shapes");
         // creat custom drawing panel
    myPanel = new DrawPanel(); // instantiate a DrawPanel object
    myPanel.setBackground(Color.white);
         // set up showButton
    // register an event handler for showButton's ActionEvent
    showButton = new JButton ("show");
         showButton.addActionListener(
              // anonymous inner class to handle showButton events
         new ActionListener() {
                   // draw a black filled square shape after clicking showButton
         public void actionPerformed (ActionEvent event) {
                             // call DrawPanel method setShowStatus and pass an parameter
              // to decide if show the shape
         myPanel.setShowStatus(true);
                   isShow = myPanel.getShowStatus();
                                            shape = DrawPanel.SQUARE;
                        // call DrawPanel method setShape to indicate shape to draw
                                            myPanel.setShape(shape);
                        // call DrawPanel method setFill to indicate to draw a filled shape
                                            myPanel.setFill(true);
                        // call DrawPanel method draw
                                            myPanel.draw();
                             myPanel.setFill(true);
                             myPanel.setForeground(Color.black);
                   }// end anonymous inner class
         );// end call to addActionListener
    // set up colorComboBox
    // register event handlers for colorComboBox's ItemEvent
    colorComboBox = new JComboBox(colorNames);
    colorComboBox.setMaximumRowCount(5);
    colorComboBox.addItemListener(
         // anonymous inner class to handle colorComboBox events
         new ItemListener() {
         // select shape's color
         public void itemStateChanged(ItemEvent event) {
         if(event.getStateChange() == ItemEvent.SELECTED)
         // call DrawPanel method setForeground
         // and pass an element value of colors array
         myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
    myPanel.draw();
    }// end anonymous inner class
    ); // end call to addItemListener
    // set up panel containing buttons
         buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
         buttonPanel.add(showButton);
    buttonPanel.add(colorComboBox);
    JPanel radioButtonPanel = new JPanel();
    radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
    Container container = getContentPane();
    container.setLayout(new BorderLayout(10,10));
    container.add(myPanel, BorderLayout.CENTER);
         container.add(buttonPanel, BorderLayout.EAST);
    setSize(500, 400);
         setVisible(true);
         public static void main(String args[]) {
         test application = new test();
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    coding 2
    import java.awt.*;
    import javax.swing.*;
    public class DrawPanel extends JPanel {
         public final static int CIRCLE = 1, SQUARE = 2;
         private int shape;
         private boolean fill;
         private boolean showStatus;
    private int shapeSize = 100;
    private Color foreground;
         // draw a specified shape
    public void paintComponent (Graphics g){
              super.paintComponent(g);
              // find center
    int x=(getSize().width-shapeSize)/2;
              int y=(getSize().height-shapeSize)/2;
              if (shape == CIRCLE) {
         if (fill == true){
         g.setColor(foreground);
              g.fillOval(x, y, shapeSize, shapeSize);
    else{
                   g.setColor(foreground);
    g.drawOval(x, y, shapeSize, shapeSize);
              else if (shape == SQUARE){
         if (fill == true){
         g.setColor(foreground);
                        g.fillRect(x, y, shapeSize, shapeSize);
    else{
                        g.setColor(foreground);
    g.drawRect(x, y, shapeSize, shapeSize);
    // set showStatus value
    public void setShowStatus (boolean s) {
              showStatus = s;
         // return showstatus value
    public boolean getShowStatus () {
              return showStatus;
         // set fill value
    public void setFill(boolean isFill) {
              fill = isFill;
         // set shape value
    public void setShape(int shapeToDraw) {
              shape = shapeToDraw;
    // set shapeSize value
    public void setShapeSize(int newShapeSize) {
              shapeSize = newShapeSize;
    // set foreground value
    public void setForeground(Color newColor) {
              foreground = newColor;
         // repaint DrawPanel
    public void draw (){
              if(showStatus == true)
              repaint();

    Hello,
    does setSelectedIndex(int anIndex)
    do what you need?
    See Java Doc for JComboBox.

Maybe you are looking for