Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0
scilab
scilab-xcos-java9.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File scilab-xcos-java9.patch of Package scilab
From 1f13645c66b8307bcecf9e87fb45db2c0e88a1a8 Mon Sep 17 00:00:00 2001 From: Paul Bignier <paul.bignier@scilab-enterprises.com> Date: Fri, 10 Feb 2017 14:54:11 +0100 Subject: [PATCH 1/1] Xcos java: minor cleanup Change-Id: Ibd88d95fe2a8a9f37969e08d76c7e3f53e660f69 --- .../modules/xcos/actions/ExportAllAction.java | 1 - .../xcos/block/actions/CodeGenerationAction.java | 1 - .../modules/xcos/graph/ScicosParameters.java | 1 - .../org/scilab/modules/xcos/palette/Palette.java | 2 -- 4 files changed, 5 deletions(-) Index: scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/actions/ExportAllAction.java =================================================================== --- scilab-6.0.1.orig/modules/xcos/src/java/org/scilab/modules/xcos/actions/ExportAllAction.java +++ scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/actions/ExportAllAction.java @@ -46,7 +46,6 @@ import org.scilab.modules.xcos.JavaContr import org.scilab.modules.xcos.Kind; import org.scilab.modules.xcos.ObjectProperties; import org.scilab.modules.xcos.VectorOfScicosID; -import org.scilab.modules.xcos.Xcos; import org.scilab.modules.xcos.XcosTab; import org.scilab.modules.xcos.configuration.ConfigurationManager; import org.scilab.modules.xcos.graph.XcosDiagram; Index: scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/block/actions/CodeGenerationAction.java =================================================================== --- scilab-6.0.1.orig/modules/xcos/src/java/org/scilab/modules/xcos/block/actions/CodeGenerationAction.java +++ scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/block/actions/CodeGenerationAction.java @@ -20,7 +20,6 @@ package org.scilab.modules.xcos.block.ac import java.awt.Cursor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import java.util.logging.Logger; import org.scilab.modules.action_binding.highlevel.ScilabInterpreterManagement.InterpreterException; import static org.scilab.modules.action_binding.highlevel.ScilabInterpreterManagement.asynchronousScilabExec; import static org.scilab.modules.action_binding.highlevel.ScilabInterpreterManagement.buildCall; Index: scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/graph/ScicosParameters.java =================================================================== --- scilab-6.0.1.orig/modules/xcos/src/java/org/scilab/modules/xcos/graph/ScicosParameters.java +++ scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/graph/ScicosParameters.java @@ -18,7 +18,6 @@ package org.scilab.modules.xcos.graph; import java.beans.PropertyChangeEvent; import java.beans.PropertyVetoException; -import java.beans.VetoableChangeListener; import java.beans.VetoableChangeSupport; import java.io.Serializable; Index: scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/palette/Palette.java =================================================================== --- scilab-6.0.1.orig/modules/xcos/src/java/org/scilab/modules/xcos/palette/Palette.java +++ scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/palette/Palette.java @@ -17,7 +17,6 @@ package org.scilab.modules.xcos.palette; import com.mxgraph.model.mxGeometry; -import java.awt.Dimension; import java.awt.GraphicsEnvironment; import java.awt.image.BufferedImage; import java.io.File; @@ -50,7 +49,6 @@ import org.scilab.modules.xcos.palette.m import org.scilab.modules.xcos.palette.model.PaletteBlock; import org.scilab.modules.xcos.palette.model.PaletteNode; import org.scilab.modules.xcos.palette.model.PreLoaded; -import org.scilab.modules.xcos.palette.view.PaletteManagerPanel; import org.scilab.modules.xcos.utils.BlockPositioning; import org.scilab.modules.xcos.utils.XcosConstants; Index: scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/BrowserView.java =================================================================== --- scilab-6.0.1.orig/modules/xcos/src/java/org/scilab/modules/xcos/BrowserView.java +++ scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/BrowserView.java @@ -21,6 +21,7 @@ import java.util.LinkedList; import javax.swing.SwingUtilities; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeModel; +import javax.swing.tree.TreeNode; import org.scilab.modules.xcos.explorer.BrowserTreeNodeData; @@ -257,8 +258,8 @@ public class BrowserView extends View { final DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot(); DefaultMutableTreeNode node; - for (Enumeration<DefaultMutableTreeNode> e = root.depthFirstEnumeration(); e.hasMoreElements();) { - node = e.nextElement(); + for (Enumeration<TreeNode> e = root.depthFirstEnumeration(); e.hasMoreElements();) { + node = (DefaultMutableTreeNode) e.nextElement(); BrowserTreeNodeData data = (BrowserTreeNodeData) node.getUserObject(); if (data.getId() == uid) { return node; Index: scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/palette/model/Palette.java =================================================================== --- scilab-6.0.1.orig/modules/xcos/src/java/org/scilab/modules/xcos/palette/model/Palette.java +++ scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/palette/model/Palette.java @@ -58,7 +58,7 @@ public abstract class Palette extends Pa * @see javax.swing.tree.TreeNode#children() */ @Override - public Enumeration<Object> children() { + public Enumeration<? extends TreeNode> children() { return null; } Index: scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/block/actions/SuperblockMaskCustomizeAction.java =================================================================== --- scilab-6.0.1.orig/modules/xcos/src/java/org/scilab/modules/xcos/block/actions/SuperblockMaskCustomizeAction.java +++ scilab-6.0.1/modules/xcos/src/java/org/scilab/modules/xcos/block/actions/SuperblockMaskCustomizeAction.java @@ -22,6 +22,7 @@ import java.awt.event.ActionListener; import java.util.Arrays; import java.util.Iterator; import java.util.List; +import java.util.Vector; import java.util.Map; import java.util.Set; import java.util.logging.Level; @@ -755,12 +756,14 @@ public final class SuperblockMaskCustomi * it */ @SuppressWarnings("unchecked") - final List < List<? >> data = model.getDataVector(); + final Vector<Vector> data = model.getDataVector(); /* Inverting data */ - List<?> tmp = data.get(row2); - data.set(row2, data.get(row1)); - data.set(row1, tmp); + Vector tmp = data.get(row2); + model.removeRow(row2); + model.insertRow(row2, data.get(row1)); + model.removeRow(row1); + model.insertRow(row1, tmp); } } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor