This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 205819
Collapse All | Expand All

(-)nb-trunk-orig/db.sql.editor//src/org/netbeans/modules/db/sql/editor/resources/layer.xml (-1 / +8 lines)
Lines 58-64 Link Here
58
                <!-- #128873 - to show icon in toolbar (keep in sync with RunSQLAction.ICON_PATH) -->
58
                <!-- #128873 - to show icon in toolbar (keep in sync with RunSQLAction.ICON_PATH) -->
59
                <attr name="iconBase" stringvalue="org/netbeans/modules/db/sql/editor/resources/runsql.png"/>
59
                <attr name="iconBase" stringvalue="org/netbeans/modules/db/sql/editor/resources/runsql.png"/>
60
            </file>
60
            </file>
61
            <file name="org-netbeans-modules-db-sql-editor-ui-actions-RunSQLSelectionAction.instance"/>
61
            <file name="org-netbeans-modules-db-sql-editor-ui-actions-RunSQLSelectionAction.instance">
62
                <attr name="iconBase" stringvalue="org/netbeans/modules/db/sql/editor/resources/runsql-partial.png"/>
63
            </file>
62
            <file name="org-netbeans-modules-db-sql-editor-ui-actions-SQLHistoryAction.instance">
64
            <file name="org-netbeans-modules-db-sql-editor-ui-actions-SQLHistoryAction.instance">
63
                <!-- #128873 - to show icon in toolbar (keep in sync with SQLHistoryAction.ICON_PATH) -->
65
                <!-- #128873 - to show icon in toolbar (keep in sync with SQLHistoryAction.ICON_PATH) -->
64
                <attr name="iconBase" stringvalue="org/netbeans/modules/db/sql/editor/resources/sql_history_16.png"/>
66
                <attr name="iconBase" stringvalue="org/netbeans/modules/db/sql/editor/resources/sql_history_16.png"/>
Lines 134-139 Link Here
134
                            <attr name="originalFile" stringvalue="Actions/System/org-netbeans-modules-db-sql-editor-ui-actions-RunSQLAction.instance"/>
136
                            <attr name="originalFile" stringvalue="Actions/System/org-netbeans-modules-db-sql-editor-ui-actions-RunSQLAction.instance"/>
135
                            <attr name="position" intvalue="800"/>
137
                            <attr name="position" intvalue="800"/>
136
                        </file>
138
                        </file>
139
                        <file name="org-netbeans-modules-db-sql-editor-ui-actions-RunSQLSelectionAction.shadow">
140
                            <attr name="originalFile" stringvalue="Actions/System/org-netbeans-modules-db-sql-editor-ui-actions-RunSQLSelectionAction.instance"/>
141
                            <attr name="position" intvalue="850"/>
142
                        </file>     
143
                        
137
                        <file name="org-netbeans-modules-db-sql-editor-ui-actions-SelectInExplorerAction.instance">
144
                        <file name="org-netbeans-modules-db-sql-editor-ui-actions-SelectInExplorerAction.instance">
138
                            <attr name="position" intvalue="900"/>
145
                            <attr name="position" intvalue="900"/>
139
                        </file>
146
                        </file>
(-)nb-trunk-orig/db.sql.editor//src/org/netbeans/modules/db/sql/editor/ui/actions/RunSQLSelectionAction.java (+7 lines)
Lines 64-74 Link Here
64
    private static final Logger LOGGER = Logger.getLogger(RunSQLSelectionAction.class.getName());
64
    private static final Logger LOGGER = Logger.getLogger(RunSQLSelectionAction.class.getName());
65
    private static final boolean LOG = LOGGER.isLoggable(Level.FINE);
65
    private static final boolean LOG = LOGGER.isLoggable(Level.FINE);
66
66
67
    private static final String ICON_PATH = "org/netbeans/modules/db/sql/editor/resources/runsql-partial.png"; // NOI18N
68
67
    protected void initialize() {
69
    protected void initialize() {
68
        putValue(Action.NAME, NbBundle.getMessage(RunSQLSelectionAction.class, "LBL_RunSQLSelectionAction"));
70
        putValue(Action.NAME, NbBundle.getMessage(RunSQLSelectionAction.class, "LBL_RunSQLSelectionAction"));
69
        putValue("noIconInMenu", Boolean.TRUE);
71
        putValue("noIconInMenu", Boolean.TRUE);
70
    }
72
    }
71
73
74
    @Override
75
    protected String getIconBase() {
76
        return ICON_PATH;
77
    }
78
    
72
    public String getDisplayName(SQLExecution sqlExecution) {
79
    public String getDisplayName(SQLExecution sqlExecution) {
73
        if (sqlExecution == null || sqlExecution.isSelection()) {
80
        if (sqlExecution == null || sqlExecution.isSelection()) {
74
            return NbBundle.getMessage(RunSQLSelectionAction.class, "LBL_RunSelectionAction");
81
            return NbBundle.getMessage(RunSQLSelectionAction.class, "LBL_RunSelectionAction");

Return to bug 205819