- Timestamp:
- 2009-01-22T11:04:31+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/cdm/PluginManager.java
r17752 r18412 471 471 button_pane = new JPanel(); 472 472 central_pane = new JPanel(); 473 473 button_pane.setComponentOrientation(Dictionary.getOrientation()); 474 central_pane.setComponentOrientation(Dictionary.getOrientation()); 475 474 476 configure = new GLIButton(Dictionary.get("CDM.PlugInManager.Configure"), Dictionary.get("CDM.PlugInManager.Configure_Tooltip")); 475 477 configure.setEnabled(false); … … 483 485 484 486 movement_pane = new JPanel(); 485 487 movement_pane.setComponentOrientation(Dictionary.getOrientation()); 488 486 489 PluginComboboxListener picl = new PluginComboboxListener(); 487 490 plugin_combobox = new JComboBox(getAvailablePlugins()); 488 491 plugin_combobox.setOpaque(!Utility.isMac()); 489 492 plugin_combobox.setEditable(false); 493 plugin_combobox.setComponentOrientation(Dictionary.getOrientation()); 494 490 495 picl.itemStateChanged(new ItemEvent(plugin_combobox, 0, null, ItemEvent.SELECTED)); 491 496 492 497 plugin_label = new JLabel(Dictionary.get("CDM.PlugInManager.PlugIn")); 493 498 plugin_label.setComponentOrientation(Dictionary.getOrientation()); 499 494 500 plugin_list = new JList(model); 495 501 plugin_list.setOpaque(true); 496 502 plugin_list.setCellRenderer(new ListRenderer()); 497 503 plugin_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 498 plugin_list_label = new JLabel(Dictionary.get("CDM.PlugInManager.Assigned")); 504 plugin_list.setComponentOrientation(Dictionary.getOrientation()); 505 506 plugin_list_label = new JLabel(Dictionary.get("CDM.PlugInManager.Assigned")); 499 507 //plugin_list_label.setHorizontalAlignment(JLabel.CENTER); 500 508 plugin_list_label.setOpaque(true); 501 509 plugin_list_label.setComponentOrientation(Dictionary.getOrientation()); 510 502 511 plugin_list_pane = new JPanel(); 512 plugin_list_pane.setComponentOrientation(Dictionary.getOrientation()); 513 503 514 plugin_pane = new JPanel(); 504 515 plugin_pane.setOpaque(true); 505 516 plugin_pane.setComponentOrientation(Dictionary.getOrientation()); 517 506 518 remove = new GLIButton(Dictionary.get("CDM.PlugInManager.Remove"), Dictionary.get("CDM.PlugInManager.Remove_Tooltip")); 507 519 remove.setEnabled(false); … … 526 538 movement_pane.setLayout(new GridLayout(4,1)); 527 539 movement_pane.add(move_up_button); 528 movement_pane.add(new JPanel()); 529 movement_pane.add(new JPanel()); 540 JPanel tmp = new JPanel(); 541 tmp.setComponentOrientation(Dictionary.getOrientation()); 542 movement_pane.add(tmp); 543 tmp = new JPanel(); 544 tmp.setComponentOrientation(Dictionary.getOrientation()); 545 movement_pane.add(tmp); 530 546 movement_pane.add(move_down_button); 531 547 … … 539 555 plugin_pane.setBorder(BorderFactory.createEmptyBorder(5,0,5,0)); 540 556 plugin_pane.setLayout(new BorderLayout(5,0)); 541 plugin_pane.add(plugin_label, BorderLayout. WEST);557 plugin_pane.add(plugin_label, BorderLayout.LINE_START); 542 558 plugin_pane.add(plugin_combobox, BorderLayout.CENTER); 543 559 … … 551 567 temp.add(plugin_pane, BorderLayout.NORTH); 552 568 temp.add(button_pane, BorderLayout.SOUTH); 553 569 temp.setComponentOrientation(Dictionary.getOrientation()); 570 554 571 central_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 555 572 central_pane.setLayout(new BorderLayout()); … … 915 932 setSize(size); 916 933 setTitle(Dictionary.get("CDM.PluginManager.SuggestedPluginListTitle")); 917 934 this.setComponentOrientation(Dictionary.getOrientation()); 935 918 936 String[] args = new String[1]; 919 937 args[0] = filename; … … 925 943 instructions_textarea.setRows(5); 926 944 instructions_textarea.setWrapStyleWord(true); 927 945 instructions_textarea.setComponentOrientation(Dictionary.getOrientation()); 946 928 947 JLabel suitable_plugins_label = new JLabel(Dictionary.get("CDM.PlugInManager.PlugIn")); 929 948 suitable_plugins_label.setBorder(BorderFactory.createEmptyBorder(0,0,5,0)); 930 949 suitable_plugins_label.setComponentOrientation(Dictionary.getOrientation()); 950 931 951 suitable_plugins_combobox = new GComboBox(suitable_plugins); 932 952 suitable_plugins_combobox.setBackgroundNonSelectionColor(Configuration.getColor("coloring.editable_background", false)); … … 934 954 suitable_plugins_combobox.setTextNonSelectionColor(Configuration.getColor("coloring.workspace_tree_foreground", false)); 935 955 suitable_plugins_combobox.setTextSelectionColor(Configuration.getColor("coloring.collection_selection_foreground", false)); 936 956 suitable_plugins_combobox.setComponentOrientation(Dictionary.getOrientation()); 957 937 958 JPanel suitable_plugins_pane = new JPanel(); 959 suitable_plugins_pane.setComponentOrientation(Dictionary.getOrientation()); 938 960 //suitable_plugins_pane.setBorder(BorderFactory.createEmptyBorder(5,0,5,0)); 939 961 suitable_plugins_pane.setLayout(new BorderLayout(5,0)); 940 suitable_plugins_pane.add(suitable_plugins_label, BorderLayout. WEST);962 suitable_plugins_pane.add(suitable_plugins_label, BorderLayout.LINE_START); 941 963 suitable_plugins_pane.add(suitable_plugins_combobox, BorderLayout.CENTER); 942 964 … … 951 973 button_pane.add(add_button); 952 974 button_pane.add(ignore_button); 953 975 button_pane.setComponentOrientation(Dictionary.getOrientation()); 976 954 977 JPanel controls_pane = new JPanel(); 955 978 controls_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); … … 957 980 controls_pane.add(suitable_plugins_pane); 958 981 controls_pane.add(button_pane); 959 982 controls_pane.setComponentOrientation(Dictionary.getOrientation()); 983 960 984 JPanel content_pane = (JPanel) getContentPane(); 985 content_pane.setComponentOrientation(Dictionary.getOrientation()); 961 986 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 962 987 content_pane.setLayout(new BorderLayout());
Note:
See TracChangeset
for help on using the changeset viewer.