rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
startItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_start")); | startItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuStart")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
cloneItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_clone")); | cloneItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuClone")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
closeItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_close")); | closeItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuClose")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_tag")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuTag")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_info")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuInfo")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_edit")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuEdit")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_encoding")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuEncoding")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_print")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuPrint")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
new MenuItem(Main.messages.getString("gcjwebplugin.menu_properties")); | new MenuItem(Messages.getString("StandaloneAppletWindow.MenuProperties")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
quitItem = new MenuItem(Main.messages.getString("gcjwebplugin.menu_quit")); | quitItem = new MenuItem(Messages.getString("StandaloneAppletWindow.MenuQuit")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
Menu menuApplet = new Menu(Main.messages.getString("gcjwebplugin.menu_title")); | Menu menuApplet = new Menu(Messages.getString("StandaloneAppletWindow.MenuTitle")); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
setTitle("GNU Classpath Applet Viewer: " + tag.code); | setTitle(Messages.getString("StandaloneAppletWindow.WindowTitle") + " " + tag.code); | StandaloneAppletWindow(AppletTag tag, List appletWindows) { appletWindows.add(this); applet = Main.createApplet(tag); if (contexts.get(tag.codebase) == null) contexts.put(tag.codebase, new StandaloneAppletContext(appletWindows)); setLayout(new BorderLayout()); add(applet, BorderLayout.CENTER); ... |
public MenuItem add(MenuItem item) { | add(MenuItem item) { | public MenuItem add(MenuItem item) { items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item; } |
public void addSeparator() { add(separator); } | addSeparator() { add(new MenuItem(separatorLabel)); } | public void addSeparator() { add(separator); } |
if (width != 0 && height != 0) stub.appletResize (width, height); | public final void setStub(AppletStub stub) { this.stub = stub; } | |
public synchronized void setText(String text) { | setText(String text) { | public synchronized void setText(String text) { this.text = text; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setText(text); } } |
lp.setText(text); } | lp.setText (text); | public synchronized void setText(String text) { this.text = text; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setText(text); } } |
} | public synchronized void setText(String text) { this.text = text; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setText(text); } } | |
final Class cls = Thread.currentThread().getContextClassLoader().loadClass(className); | final ClassLoader cl = getPluginClassLoader(); final Class cls = cl.loadClass(className); | private Plugin createPlugin() throws PluginException { if (className == null) { return new EmptyPlugin(this); } else { try { final Class cls = Thread.currentThread().getContextClassLoader().loadClass(className); final Constructor cons = cls.getConstructor(new Class[] { PluginDescriptor.class }); return ... |
|| name.equals(Registry.DSS_KPG)) | || name.equalsIgnoreCase(Registry.DSS_KPG)) | public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator(); }... |
hs.add(Registry.DSA_KPG); | public static final Set getNames() { HashSet hs = new HashSet(); hs.add(Registry.DSS_KPG); hs.add(Registry.RSA_KPG); hs.add(Registry.DH_KPG); hs.add(Registry.SRP_KPG); return Collections.unmodifiableSet(hs); } | |
IllegalArgumentException iae = new IllegalArgumentException ("strong crypto key pair generator not available: " + clazz); iae.initCause (x); throw iae; | throw new IllegalArgumentException( "strong crypto key pair generator not available: " + clazz, x); | private static IKeyPairGenerator makeInstance (String clazz) { try { Class c = Class.forName (clazz); Constructor ctor = c.getConstructor (new Class[0]); return (IKeyPairGenerator) ctor.newInstance (new Object[0]); } catch (Exception x) { IllegalArgumentException iae ... |
setHorizontalAlignment(LEFT); | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); if (isSelected) { ... | |
this(null, null); | this(null, null, false); | public JToggleButton() { this(null, null); } |
return null; | if (accessibleContext == null) { accessibleContext = new AccessibleJToggleButton(); } return accessibleContext; | public AccessibleContext getAccessibleContext() { return null; } |
ButtonUI b = (ButtonUI)UIManager.getUI(this); setUI(b); | setUI((ButtonUI)UIManager.getUI(this)); | public void updateUI() { ButtonUI b = (ButtonUI)UIManager.getUI(this); setUI(b); } |
public static ComponentUI createUI(final JComponent c) { | public static ComponentUI createUI(JComponent c) { | public static ComponentUI createUI(final JComponent c) { return new BasicCheckBoxUI(); } |
window.getRootPane().add(contents); | window.getContentPane().add(contents); | public JWindowPopup(Component owner, Component contents, int x, int y) { /* Checks whether contents is null. */ super(owner, contents, x, y); window = new JWindow(); window.getRootPane().add(contents); window.setLocation(x, y); window.pack(); } |
window.pack(); | window.setFocusableWindowState(false); | public JWindowPopup(Component owner, Component contents, int x, int y) { /* Checks whether contents is null. */ super(owner, contents, x, y); window = new JWindow(); window.getRootPane().add(contents); window.setLocation(x, y); window.pack(); } |
window.setSize(contents.getSize()); | public void show() { window.show(); } | |
if (canStart(d)) { BootLog.debug("Starting " + d.getId()); d.getPlugin().start(); } else { BootLog.warn("Skipping start of " + d.getId() + " due to to depencies."); | try { if (canStart(d)) { BootLog.debug("Starting " + d.getId()); d.getPlugin().start(); } else { BootLog.warn("Skipping start of " + d.getId() + " due to to depencies."); } } catch (PluginException ex) { BootLog.error("Error starting " + d.getId()); throw ex; } catch (Throwable ex) { BootLog.error("Error starting " + d... | public void startPlugin(PluginDescriptor d) throws PluginException { if (canStart(d)) { BootLog.debug("Starting " + d.getId()); d.getPlugin().start(); } else { BootLog.warn("Skipping start of " + d.getId() + " due to to depencies."); } } |
errors.add(ex); | errors.add(new StartError(ex, descr.getId())); | public void startPlugins() throws PluginException { final List descrList = createPluginDescriptorList(); final ArrayList errors = new ArrayList(descrList.size()); for (Iterator i = descrList.iterator(); i.hasNext();) { final PluginDescriptor descr = (PluginDescriptor) i.next(); try { //===== Removed to call ... |
final Throwable ex = (Throwable) i.next(); BootLog.error("Error starting plugins", ex); | final StartError error = (StartError) i.next(); BootLog.error("Error starting plugin " + error.getPluginId(), error.getException()); | public void startPlugins() throws PluginException { final List descrList = createPluginDescriptorList(); final ArrayList errors = new ArrayList(descrList.size()); for (Iterator i = descrList.iterator(); i.hasNext();) { final PluginDescriptor descr = (PluginDescriptor) i.next(); try { //===== Removed to call ... |
} else { BootLog.debug("Plugin " + descriptor.getId() + " already started"); | public final void start() throws PluginException { if (!started) { startPlugin(); started = true; } } | |
assertCondition(kind > 0, "Invalid kind"); | Item(int kind, int offsetToFP) { this.kind = kind; this.offsetToFP = offsetToFP; } | |
throw new Error("not implemented"); | if (done) throw new NoSuchElementException(); switch (srcSegType) { case PathIterator.SEG_CLOSE: return srcSegType; case PathIterator.SEG_MOVETO: case PathIterator.SEG_LINETO: coords[0] = srcPosX; coords[1] = srcPosY; return srcSegType; case PathIterator.SEG_QUADTO: if (stackSize == 0) { coords[0] = srcPosX; coords[... | public int currentSegment(double[] coords) { throw new Error("not implemented"); } |
return PathIterator.SEG_LINETO; case PathIterator.SEG_CUBICTO: if (stackSize == 0) { coords[0] = srcPosX; coords[1] = srcPosY; } else { int sp = stack.length - 6 * stackSize; coords[0] = stack[sp + 4]; coords[1] = stack[sp + 5]; } return PathIterator.SEG_LINETO; } throw new IllegalStateException(); } | public int currentSegment(double[] coords) { throw new Error("not implemented"); } | |
return flatness; | return Math.sqrt(flatnessSq); | public double getFlatness() { return flatness; } |
return limit; | return recursionLimit; | public int getRecursionLimit() { return limit; } |
return subIterator.getWindingRule(); | return srcIter.getWindingRule(); | public int getWindingRule() { return subIterator.getWindingRule(); } |
return subIterator.isDone(); | return done; | public boolean isDone() { return subIterator.isDone(); } |
throw new Error("not implemented"); | if (stackSize > 0) { --stackSize; if (stackSize > 0) { switch (srcSegType) { case PathIterator.SEG_QUADTO: subdivideQuadratic(); return; case PathIterator.SEG_CUBICTO: subdivideCubic(); return; default: throw new IllegalStateException(); } } } srcIter.next(); fetchSegment(); | public void next() { throw new Error("not implemented"); } |
final boolean jdkStatic = ((jdkFields[i].getModifiers() & Modifier.STATIC) != 0); if (f.isStatic() != jdkStatic) { jdkFields[i] = null; exact = false; } | private final Field[] toJdkFields(Class jdkType, List jnodeFields) { final int cnt = jnodeFields.size(); final Field[] jdkFields = new Field[cnt]; for (int i = 0; i < cnt; i++) { final VmField f = (VmField)jnodeFields.get(i); try { jdkFields[i] = jdkType.get... | |
if (e instanceof AbstractMap.BasicMapEntry) | if (e instanceof AbstractMap.SimpleEntry) | public void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.BasicMapEntry) { AbstractMap.BasicMapEntry<? extends... |
AbstractMap.BasicMapEntry<? extends K, ? extends V> entry = (AbstractMap.BasicMapEntry<? extends K, ? extends V>) e; | AbstractMap.SimpleEntry<? extends K, ? extends V> entry = (AbstractMap.SimpleEntry<? extends K, ? extends V>) e; | public void putAll(Map<? extends K, ? extends V> m) { Map<K,V> addMap; addMap = (Map<K,V>) m; for (Map.Entry<K,V> e : addMap.entrySet()) { // Optimize in case the Entry is one of our own. if (e instanceof AbstractMap.BasicMapEntry) { AbstractMap.BasicMapEntry<? extends... |
lmPI = Math.min(piList.lastModified(), systemPluginList.lastModified()); | lmPI = Math.max(piList.lastModified(), systemPluginList.lastModified()); | public void execute() throws BuildException { final long start = System.currentTimeMillis(); final PluginList piList; final PluginList systemPluginList; final long lmPI; try { piList = getPluginList(); systemPluginList = getSystemPluginList(); if (... |
for (PluginList inc : includes) { max = Math.max(max, inc.lastModified()); } | public long lastModified() throws IOException { long max = 0; for (int i = 0; i < descrList.length; i++) { final URLConnection conn2 = pluginList[i].openConnection(); max = Math.max(max, conn2.getLastModified()); } return max; } | |
if (isShowing()) | if (isShowing() && isLightweight()) | public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if... |
else { position(limit()); limit(capacity()); } | public CharBuffer compact () { if (position () > 0) { int count = limit () - position (); bb.shiftDown(offset, offset + 2 * position(), 2 * count); position (count); limit (capacity ()); } return this; } | |
if(Modifier.isPublic(method.getModifiers()) && !Modifier.isStatic(method.getModifiers())) { | if(Modifier.isPublic(method.getModifiers())) { | public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers()) && !Modifier.isStatic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equals(... |
return new cdrEncapsCodec(orb, | return new CdrEncapsCodecImpl(orb, | public Codec create_codec(Encoding for_encoding) throws UnknownEncoding { if (for_encoding.format != ENCODING_CDR_ENCAPS.value) throw new UnknownEncoding("Only ENCODING_CDR_ENCAPS is " + "supported by this factory." ); return new cdrEncapsCodec(... |
} | public boolean dispatchEvent (AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (targe... | |
pt.x = 0; if (rowHeader != null && rowHeader.getViewPosition() != pt) rowHeader.setViewPosition(pt); pt.x = xpos; pt.y = 0; if (columnHeader != null && columnHeader.getViewPosition() != pt) columnHeader.setViewPosition(pt); | ChangeListener createScrollListener() { return new ChangeListener() { public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPan... | |
pt.x = 0; if (rowHeader != null && rowHeader.getViewPosition() != pt) rowHeader.setViewPosition(pt); pt.x = xpos; pt.y = 0; if (columnHeader != null && columnHeader.getViewPosition() != pt) columnHeader.setViewPosition(pt); | public void stateChanged(ChangeEvent event) { JScrollBar vsb = JScrollPane.this.getVerticalScrollBar(); JScrollBar hsb = JScrollPane.this.getHorizontalScrollBar(); JViewport vp = JScrollPane.this.getViewport(); if (vp != null && event.getSource() == vp) ... | |
public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues) { this(bits, size, reds, greens, blues, null); | public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues) { this (bits, size, reds, greens, blues, (byte[]) null); | public IndexColorModel(int bits, int size, byte[] reds, byte[] greens, byte[] blues) { this(bits, size, reds, greens, blues, null); } |
public final int getAlpha(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 24) & 0xFF); } else { | public final int getAlpha (int pixel) { if (pixel < map_size) return (int) ((generateMask (3) & rgb[pixel]) >> (3 * pixel_bits)); | public final int getAlpha(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 24) & 0xFF); } else { return 0; } } |
} | public final int getAlpha(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 24) & 0xFF); } else { return 0; } } | |
public final int getBlue(int pixel) { if (pixel < map_size) { return (rgb[pixel] & 0xFF); } else { | public final int getBlue (int pixel) { if (pixel < map_size) return (int) (generateMask (0) & rgb[pixel]); | public final int getBlue(int pixel) { if (pixel < map_size) { return (rgb[pixel] & 0xFF); } else { return 0; } } |
} | public final int getBlue(int pixel) { if (pixel < map_size) { return (rgb[pixel] & 0xFF); } else { return 0; } } | |
for (i = 0; i < max; i++) { c[i] = (byte) (rgb[i] >> (ci * 8)); } | for (i = 0; i < max; i++) c[i] = (byte) ((generateMask (ci) & rgb[i]) >> (ci * pixel_bits)); | private void getComponents(byte[] c, int ci) { int i, max = (map_size < c.length) ? map_size : c.length; for (i = 0; i < max; i++) { c[i] = (byte) (rgb[i] >> (ci * 8)); } } |
public final int getGreen(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 8) & 0xFF); } else { | public final int getGreen (int pixel) { if (pixel < map_size) return (int) ((generateMask (1) & rgb[pixel]) >> (1 * pixel_bits)); | public final int getGreen(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 8) & 0xFF); } else { return 0; } } |
} | public final int getGreen(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 8) & 0xFF); } else { return 0; } } | |
public final int getRed(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 16) & 0xFF); } else { | public final int getRed (int pixel) { if (pixel < map_size) return (int) ((generateMask (2) & rgb[pixel]) >> (2 * pixel_bits)); | public final int getRed(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 16) & 0xFF); } else { return 0; } } |
} | public final int getRed(int pixel) { if (pixel < map_size) { return ((rgb[pixel] >> 16) & 0xFF); } else { return 0; } } | |
out.println(c.getPrompt()); | out.print(c.getPrompt()); | protected void handleConfirmation(ConfirmationCallback c) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); if (c.getPrompt() != null) out.println(c.getPrompt()); String[] choices = null; int[] values = null; switch (c.getOptionType()) { case... |
messages.getString("callback.shortNo") }; values = new int[] { ConfirmationCallback.YES, ConfirmationCallback.NO, ConfirmationCallback.YES, ConfirmationCallback.NO }; | messages.getString("callback.shortNo") }; values = new int[] { ConfirmationCallback.YES, ConfirmationCallback.NO, ConfirmationCallback.YES, ConfirmationCallback.NO }; int defaultOption = c.getDefaultOption(); if (defaultOption > -1 && defaultOption < choices.length) { out.print("["); out.print(choices[defaultOption]); ... | protected void handleConfirmation(ConfirmationCallback c) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); if (c.getPrompt() != null) out.println(c.getPrompt()); String[] choices = null; int[] values = null; switch (c.getOptionType()) { case... |
out.println(messages.getString("callback.language")); | out.print(messages.getString("callback.language")); | protected void handleLanguage(LanguageCallback c) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); out.println(messages.getString("callback.language")); String reply = null; reply = in.readLine(); if (reply == null) { c.setLocale(Locale.getDefa... |
final Functional_ORB orb = new Functional_ORB(); | final OrbFunctional orb = new OrbFunctional(); | public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWi... |
Functional_ORB.setPort(port); | OrbFunctional.setPort(port); | public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWi... |
Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); | OrbFunctional.setPort(OrbFunctional.DEFAULT_INITIAL_PORT); | public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWi... |
else { position(limit()); limit(capacity()); } | public IntBuffer compact () { if (position () > 0) { int count = limit () - position (); bb.shiftDown(offset, offset + 4 * position(), 4 * count); position (count); limit (capacity ()); } return this; } | |
frame.setBorder(new InternalFrameBorder()); | UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED... | protected void installDefaults() { // FIXME: Move border to MetalBorders frame.setBorder(new InternalFrameBorder()); } |
return new primitiveArrayTypeCode(TCKind.tk_float); | return new ArrayTypeCode(TCKind.tk_float); | public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_float); } |
setSelectionMode(DISCONTIGUOUS_TREE_SELECTION); | public DefaultTreeSelectionModel() { // TODO } | |
return null; | return leadPath; | public TreePath getLeadSelectionPath() { return null; // TODO } |
return 0; | if ((rowMapper == null) || (leadPath == null)) return -1; else return rowMapper.getRowsForPaths(new TreePath[]{ leadPath })[0]; | public int getLeadSelectionRow() { return 0; // TODO } |
return 0; | if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int maxRow = -1; for (int index = 0; index < rows.length; index++) maxRow = Math.max(maxRow, rows[index]); return maxRow; } | public int getMaxSelectionRow() { return 0; // TODO } |
return 0; | if ((rowMapper == null) || (selection == null) || (selection.length == 0)) return -1; else { int[] rows = rowMapper.getRowsForPaths(selection); int minRow = Integer.MAX_VALUE; for (int index = 0; index < rows.length; index++) minRow = Math.min(minRow, rows[index]); return minRow; } | public int getMinSelectionRow() { return 0; // TODO } |
return null; | return rowMapper; | public RowMapper getRowMapper() { return null; // TODO } |
return 0; | if (selection == null) return 0; else return selection.length; | public int getSelectionCount() { return 0; // TODO } |
return 0; | return selectionMode; | public int getSelectionMode() { return 0; // TODO } |
return null; | if ((selection == null) || (selection.length == 0)) return null; else return selection[0]; | public TreePath getSelectionPath() { return null; // TODO } |
return null; | return selection; | public TreePath[] getSelectionPaths() { return null; // TODO } |
return null; | if (rowMapper == null) return null; else return rowMapper.getRowsForPaths(selection); | public int[] getSelectionRows() { return null; // TODO } |
return false; | return ((selection == null) || (selection.length == 0)); | public boolean isSelectionEmpty() { return false; // TODO } |
public void setSelectionMode(int value0) | public void setSelectionMode(int mode) | public void setSelectionMode(int value0) { // TODO } |
selectionMode = mode; | public void setSelectionMode(int value0) { // TODO } | |
keys = (String[]) childCache.keySet().toArray(); | keys = (String[]) childCache.keySet().toArray(new String[]{}); | private void flushNode(boolean sync) throws BackingStoreException { String[] keys = null; synchronized(lock) { if (sync) { syncSpi(); } else { flushSpi(); } keys = (String[]) childCache.keySet().toArray(); } if (keys != null) { for (int i = 0; i < keys.length; i++) { // Have to lock this n... |
throw new Error("not implemented"); | Element el = getParagraphElement(position); if (el instanceof AbstractElement) { AbstractElement ael = (AbstractElement) el; ael.setResolveParent(style); } else throw new AssertionError("paragraph elements are expected to be" + "instances of javax.swing.text.AbstractDocument.AbstractElement"); | public void setLogicalStyle(int position, Style style) { // FIXME: Implement me. throw new Error("not implemented"); } |
public abstract void drawString(AttributedCharacterIterator iterator, float x, float y); | public abstract void drawString(String text, int x, int y); | public abstract void drawString(AttributedCharacterIterator iterator, float x, float y); |
public void drawText(Graphics2D g, String text, Font font, int x, int y); | public void drawText(Surface g, AffineTransform tx, String text, Font font, int x, int y, Color color); | public void drawText(Graphics2D g, String text, Font font, int x, int y); |
public abstract void rotate(double theta, double x, double y); | public abstract void rotate(double theta); | public abstract void rotate(double theta, double x, double y); |
return BadBreakWeight; | int weight = BadBreakWeight; if (len > getPreferredSpan(axis)) weight = GoodBreakWeight; return weight; | public int getBreakWeight(int axis, float pos, float len) { return BadBreakWeight; } |
if (index < -1) return null; Shape childAllocation = getChildAllocation(index, allocation); if (childAllocation.getBounds().contains(x, y)) return getView(index).getToolTipText(x, y, childAllocation); return null; | String text = null; if (index >= 0) { allocation = getChildAllocation(index, allocation); Rectangle r = allocation instanceof Rectangle ? (Rectangle) allocation : allocation.getBounds(); if (r.contains(x, y)) text = getView(index).getToolTipText(x, y, allocation); } return text; | public String getToolTipText(float x, float y, Shape allocation) { int index = getViewIndex(x, y, allocation); if (index < -1) return null; Shape childAllocation = getChildAllocation(index, allocation); if (childAllocation.getBounds().contains(x, y)) return getView(index).getToolTipText(x, y, c... |
updateChildren(ec, ev, vf); | { if (! updateChildren(ec, ev, vf)) ec = null; } | public void insertUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Element el = getElement(); DocumentEvent.ElementChange ec = ev.getChange(el); if (ec != null) updateChildren(ec, ev, vf); forwardUpdate(ec, ev, shape, vf); updateLayout(ec, ev, shape); } |
} | public void insertUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { Element el = getElement(); DocumentEvent.ElementChange ec = ev.getChange(el); if (ec != null) updateChildren(ec, ev, vf); forwardUpdate(ec, ev, shape, vf); updateLayout(ec, ev, shape); } | |
if (parent != null) parent.preferenceChanged(this, width, height); | View p = getParent(); if (p != null) p.preferenceChanged(this, width, height); | public void preferenceChanged(View child, boolean width, boolean height) { if (parent != null) parent.preferenceChanged(this, width, height); } |
replace(0, getViewCount(), new View[0]); | replace(0, getViewCount(), null); | public void removeAll() { replace(0, getViewCount(), new View[0]); } |
getView(i).setParent(null); | { View child = getView(i); if (child.getParent() == this) child.setParent(null); } | public void setParent(View parent) { if (parent == null) { int numChildren = getViewCount(); for (int i = 0; i < numChildren; i++) getView(i).setParent(null); } this.parent = parent; } |
View[] newChildren = new View[added.length]; | View[] newChildren = null; if (added != null) { newChildren = new View[added.length]; | protected boolean updateChildren(DocumentEvent.ElementChange ec, DocumentEvent ev, ViewFactory vf) { Element[] added = ec.getChildrenAdded(); Element[] removed = ec.getChildrenRemoved(); int index = ec.getIndex(); View[] newChildren = ne... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.