Showing 14,752 of 14,752 total issues
Method getDBLits
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public synchronized static List<LiteratureItem> getDBLits() {
if (dbLits == null) {
dbLits = new LinkedList<>();
try (ResultSet rs = DBKernel.getResultSet("SELECT * FROM \"Literatur\"", true)) {
- Create a ticketCreate a ticket
Method write
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void write(List<KnimeTuple> tuples, boolean isPMFX, String dir, String mdName, Metadata metadata,
boolean splitModels, String notes, ExecutionContext exec) throws Exception {
// Group tuples according to its secondary model
- Create a ticketCreate a ticket
Method readSecondaryTable
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void readSecondaryTable(BufferedDataTable table) {
readPrimaryTable(table);
KnimeRelationReader reader = new KnimeRelationReader(
SchemaFactory.createM2Schema(), table);
- Create a ticketCreate a ticket
Method write
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void write(List<KnimeTuple> tuples, boolean isPMFX, String dir, String mdName, Metadata metadata,
boolean splitModels, String notes, ExecutionContext exec) throws Exception {
// Group tuples according to its secondary model
- Create a ticketCreate a ticket
Method configure
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected DataTableSpec[] configure(final DataTableSpec[] inSpecs)
throws InvalidSettingsException {
if (set.getFittingType().equals(SettingsHelper.NO_FITTING)) {
throw new InvalidSettingsException("Node has to be configured!");
- Create a ticketCreate a ticket
Method readPrimaryTable
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void readPrimaryTable(BufferedDataTable table) {
parameterLimits = new LinkedHashMap<>();
KnimeRelationReader reader = new KnimeRelationReader(
SchemaFactory.createM1Schema(), table);
- Create a ticketCreate a ticket
Method mergeTuples
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static KnimeTuple mergeTuples(final KnimeTuple dataTuple, final KnimeTuple m1Tuple) {
final KnimeTuple tuple = new KnimeTuple(SchemaFactory.createM1DataSchema());
// Copies data columns
tuple.setValue(TimeSeriesSchema.ATT_CONDID, dataTuple.getInt(TimeSeriesSchema.ATT_CONDID));
- Create a ticketCreate a ticket
Method writeSettingsToVariables
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void writeSettingsToVariables() {
if (!selectionPanel.getSelectedIDs().isEmpty()) {
set.setSelectedID(selectionPanel.getSelectedIDs().get(0));
} else {
set.setSelectedID(null);
- Create a ticketCreate a ticket
Method readSecondaryTable
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void readSecondaryTable(BufferedDataTable table) {
readPrimaryTable(table);
KnimeRelationReader reader = new KnimeRelationReader(
SchemaFactory.createM2Schema(), table);
- Create a ticketCreate a ticket
Method combase2XMLNew
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private PmmXmlDoc combase2XMLNew(String misc) {
PmmXmlDoc result = null;
if (misc != null) {
result = new PmmXmlDoc();
for (String s : misc.split(";")) {
- Create a ticketCreate a ticket
Method write
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void write(List<KnimeTuple> tuples, boolean isPMFX, String dir, String mdName, Metadata metadata,
boolean splitModels, String notes, ExecutionContext exec) throws Exception {
List<ManualTertiaryModel> tms = new LinkedList<>();
- Create a ticketCreate a ticket
Method actionPerformed
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void actionPerformed(ActionEvent e) {
int retVal = JOptionPane.showConfirmDialog(DBKernel.mainFrame, "Soll der Export den Volltext beinhalten?\n\nJa:\nAlle Felder werden im Volltext abgespeichert.\n\nNein:\nFür (die grauen) \"Fremdfelder\" werden nur die VerlinkungsIDs abgespeichert.",
"Excel Export - Wie?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
String retValStr = ""; // Bei Gelegenheit mal aktivieren (parsen!) hier!
/*(String)JOptionPane.showInputDialog(
- Create a ticketCreate a ticket
Method startMainFrame
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void startMainFrame(MainFrame mf, MyDBTable myDB, boolean openTheGui) {
if (mf != null) {
if (!mf.getMyList().setSelection(DBKernel.prefs.get("LAST_SELECTED_TABLE", null))) {
mf.getMyList().setSelection(null);
}
- Create a ticketCreate a ticket
Method setSelectedRowCol
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void setSelectedRowCol(final int row, int col, final int verticalScrollerPosition, final int horizontalScrollerPosition, final boolean forceCol) {
if (row >= 0) {
JScrollPane scroller = this.getScroller();
if (scroller != null) {
scroller.getVerticalScrollBar().setValue(verticalScrollerPosition);
- Create a ticketCreate a ticket
Method updateRowHeader
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void updateRowHeader(final boolean setVisible) {
JScrollPane scroller = getScroller();
if (scroller != null) {
if (setVisible) {
- Create a ticketCreate a ticket
Method mouseClicked
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void mouseClicked(final MouseEvent e) {
int lastClickedRow;// = e.getY()/this.getTable().getRowHeight();
int val = 0;
for (lastClickedRow = 0; lastClickedRow < this.getTable().getRowCount(); lastClickedRow++) {
- Create a ticketCreate a ticket
Method getMNVals
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void getMNVals(JTextArea textArea, String firstTablename, String mnTablename, String secondTablename, int id, String fields) {
textArea.setText("");
textArea.setToolTipText(id+"");
String sql= "SELECT " + fields + " FROM " + DBKernel.delimitL(firstTablename) +
" LEFT JOIN " + DBKernel.delimitL(mnTablename) +
- Create a ticketCreate a ticket
Method getID
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Integer getID(final String tablename, final String[] feldname, final String[] feldVal) {
Integer result = null;
String sql = "SELECT " + delimitL("ID") + " FROM " + delimitL(tablename) + " WHERE ";
String where = " ";
for (int i = 0; i < feldname.length; i++) {
- Create a ticketCreate a ticket
Method recreateTriggers
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void recreateTriggers() {
for(String key : allTables.keySet()) {
String tableName = allTables.get(key).getTablename();
DBKernel.sendRequest("DROP TRIGGER " + DBKernel.delimitL("B_" + tableName + "_U"), false);
- Create a ticketCreate a ticket
Method createScriptPanel
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private JPanel createScriptPanel() {
DefaultMutableTreeNode modelNode = new DefaultMutableTreeNode("Model scripts");
buildNode(modelNode, this, 0);
- Create a ticketCreate a ticket