Package com.dci.intellij.dbn.editor.data

Examples of com.dci.intellij.dbn.editor.data.DatasetEditorManager


                    );
            JComponent toolbarComponent = actionToolbar.getComponent();
            actionsPanel.add(toolbarComponent, BorderLayout.WEST);
            infoPanel.setVisible(true);

            DatasetEditorManager dataEditorManager = DatasetEditorManager.getInstance(table.getProject());
            isPinned = dataEditorManager.isValuePreviewPinned();
            boolean isWrapped = dataEditorManager.isValuePreviewTextWrapping();
            valueTextArea.setLineWrap(isWrapped);
        } else {
            valueTextArea.setLineWrap(true);
            infoPanel.setVisible(false);
        }
View Full Code Here


            super("Wrap/Unwrap", "", Icons.ACTION_WRAP_TEXT);
        }


        public boolean isSelected(AnActionEvent e) {
            DatasetEditorManager dataEditorManager = getDataEditorManager(e);
            return dataEditorManager != null && dataEditorManager.isValuePreviewTextWrapping();
        }
View Full Code Here

            DatasetEditorManager dataEditorManager = getDataEditorManager(e);
            return dataEditorManager != null && dataEditorManager.isValuePreviewTextWrapping();
        }

        public void setSelected(AnActionEvent e, boolean state) {
            DatasetEditorManager editorManager = getDataEditorManager(e);
            editorManager.setValuePreviewTextWrapping(state);
            valueTextArea.setLineWrap(state);
        }
View Full Code Here

        }

        @Override
        public void update(AnActionEvent e) {
            super.update(e);
            DatasetEditorManager dataEditorManager = getDataEditorManager(e);
            boolean isWrapped = dataEditorManager != null && dataEditorManager.isValuePreviewTextWrapping();
            e.getPresentation().setText(isWrapped ? "Unwrap content" : "Wrap content");

        }
View Full Code Here

        public boolean isSelected(AnActionEvent e) {
            return isPinned;
        }

        public void setSelected(AnActionEvent e, boolean state) {
            DatasetEditorManager editorManager = getDataEditorManager(e);
            editorManager.setValuePreviewPinned(state);
            isPinned = state;
        }
View Full Code Here

    @Override
    public void actionPerformed(AnActionEvent event) {
        Project project = ActionUtil.getProject(event);
        if (project != null) {
            DatasetEditorManager datasetEditorManager = DatasetEditorManager.getInstance(project);
            datasetEditorManager.openDataEditor(filterInput);
        }
    }
View Full Code Here

    @Override
    public void actionPerformed(AnActionEvent event) {
        Project project = ActionUtil.getProject(event);
        if (project != null) {
            DatasetEditorManager datasetEditorManager = DatasetEditorManager.getInstance(project);
            datasetEditorManager.openRecordViewer(filterInput);
        }
    }
View Full Code Here

        public OpenInEditorAction() {
            super("Open In Editor", Icons.OBEJCT_EDIT_DATA);
        }

        public void actionPerformed(ActionEvent e) {
            DatasetEditorManager datasetEditorManager = DatasetEditorManager.getInstance(record.getDataset().getProject());
            datasetEditorManager.openDataEditor(record.getFilterInput());
            doCancelAction();
        }
View Full Code Here

    }

    @Override
    public void actionPerformed(AnActionEvent e) {
        Project project = filterInput.getDataset().getProject();
        DatasetEditorManager datasetEditorManager = DatasetEditorManager.getInstance(project);
        datasetEditorManager.openDataEditor(filterInput);
    }
View Full Code Here

            if (column!= null && column.isForeignKey() && cell.getUserValue() != null) {
                table.clearSelection();
                DatasetFilterInput filterInput = table.getModel().resolveForeignKeyRecord(cell);
                if (filterInput.getColumns().size() > 0) {
                    DatasetEditorManager datasetEditorManager = DatasetEditorManager.getInstance(column.getProject());
                    datasetEditorManager.navigateToRecord(filterInput, event);
                    event.consume();
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.editor.data.DatasetEditorManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.