mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix annoying editor
This commit is contained in:
@@ -30,6 +30,7 @@ import javax.swing.table.TableCellRenderer;
|
||||
import javax.swing.table.TableColumn;
|
||||
import javax.swing.table.TableColumnModel;
|
||||
import java.awt.*;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.util.ArrayList;
|
||||
import java.util.EventObject;
|
||||
import java.util.List;
|
||||
@@ -83,6 +84,7 @@ public abstract class FileColorSettingsTable extends JBTable {
|
||||
|
||||
@Override
|
||||
public boolean editCellAt(int row, int column, EventObject e) {
|
||||
if (e instanceof MouseEvent && ((MouseEvent)e).getClickCount() == 1) return false;
|
||||
final Object at = getModel().getValueAt(row, column);
|
||||
final FileColorConfigurationEditDialog dialog = new FileColorConfigurationEditDialog(myManager, ((FileColorConfiguration)at));
|
||||
dialog.getScopeComboBox().setEnabled(false);
|
||||
@@ -90,11 +92,6 @@ public abstract class FileColorSettingsTable extends JBTable {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCellEditable(int row, int column) {
|
||||
return column == 1;
|
||||
}
|
||||
|
||||
public boolean isModified() {
|
||||
final List<FileColorConfiguration> current = getModel().getConfigurations();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user