rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
listeners.remove(l); }
kbListeners.remove(l); }
public synchronized void removeKeyboardListener(KeyboardListener l) { listeners.remove(l); }
final Device dev = getDevice(); this.daemon = new KeyboardDaemon(dev.getId() + "-daemon"); daemon.start(); dev.registerAPI(KeyboardAPI.class, this);
final Device dev = getDevice(); final String id = dev.getId(); this.daemon = new KeyboardDaemon(id + "-daemon"); daemon.start(); this.eventQueueThread = new QueueProcessorThread(id + "-dispatcher", eventQueue, new KeyboardEventDispatcher()); eventQueueThread.start(); dev.registerAPI(KeyboardAPI.class, this); dev.regist...
protected synchronized void startDevice() throws DriverException { this.channel = getChannel(); this.kbInterpreter = createKeyboardInterpreter(); final Device dev = getDevice(); this.daemon = new KeyboardDaemon(dev.getId() + "-daemon"); daemon.start(); dev.registerAPI(KeyboardAPI.class, this); // If no inputstr...
getDevice().unregisterAPI(KeyboardAPI.class); KeyboardDaemon daemon = this.daemon; if (System.in == kis) { System.setIn(null); } if (daemon != null) { daemon.interrupt(); } this.daemon = null;
final Device dev = getDevice(); dev.unregisterAPI(KeyboardAPI.class); dev.unregisterAPI(SystemTriggerAPI.class); KeyboardDaemon daemon = this.daemon; if (System.in == kis) { System.setIn(null); } if (eventQueueThread != null) { eventQueueThread.stopProcessor(); } this.eventQueueThread = null; if (daemon != null) { daem...
protected synchronized void stopDevice() throws DriverException { getDevice().unregisterAPI(KeyboardAPI.class); KeyboardDaemon daemon = this.daemon; if (System.in == kis) { System.setIn(null); } if (daemon != null) { daemon.interrupt(); } this.daemon = null; try { channel.close(); } catch (IOException e...
static EditorKit createEditorKitForContentType(String type) { return new PlainEditorKit(); }
protected static EditorKit createEditorKitForContentType(String type) { return new PlainEditorKit(); }
static EditorKit createEditorKitForContentType(String type) { return new PlainEditorKit(); }
String getContentType() { return ctype; }
public String getContentType() { return ctype; }
String getContentType() { return ctype; }
static String getEditorKitClassNameForContentType(String type) { return "text/plain"; }
public static String getEditorKitClassNameForContentType(String type) { return "text/plain"; }
static String getEditorKitClassNameForContentType(String type) { return "text/plain"; }
EditorKit getEditorKitForContentType(String type) { return kit; }
public EditorKit getEditorKitForContentType(String type) { return kit; }
EditorKit getEditorKitForContentType(String type) { return kit; }
void read(InputStream in, Object desc)
public void read(InputStream in, Object desc)
void read(InputStream in, Object desc) { //This method initializes from a stream. }
static void registerEditorKitForContentType(String type, String classname)
public static void registerEditorKitForContentType(String type, String classname)
static void registerEditorKitForContentType(String type, String classname) { //Establishes the default bindings of type to classname. }
void setContentType(String type)
public void setContentType(String type)
void setContentType(String type) { ctype = type; invalidate(); repaint(); }
void setEditorKitForContentType(String type, EditorKit k)
public void setEditorKitForContentType(String type, EditorKit k)
void setEditorKitForContentType(String type, EditorKit k) { ctype = type; setEditorKit(k); }
appendTag(buf, 1, "millis", record.getMillis());
appendTag(buf, 1, "millis", millis);
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(400); Level level = record.getLevel(); long millis = record.getMillis(); Object[] params = record.getParameters(); ResourceBundle bundle = record.getResourceBundle(); String message; buf.append("<record>"); buf.append(lin...
return VMIOUtils.getAPI().canRead(path);
return VMIOUtils.getAPI().canRead(getNormalizedPath(path));
static synchronized boolean canRead(String path) { try { return VMIOUtils.getAPI().canRead(path); } catch (IOException ex) { return false; } }
return VMIOUtils.getAPI().canWrite(path);
return VMIOUtils.getAPI().canWrite(getNormalizedPath(path));
static synchronized boolean canWrite(String path) { try { return VMIOUtils.getAPI().canWrite(path); } catch (IOException ioe) { return (false); } }
static boolean create(String path) throws IOException { if(exists(path)) return false; VMFileHandle vmFileHandler=VMIOUtils.getAPI().open(path,VMOpenMode.WRITE); vmFileHandler.close(); return true; }
static boolean create(String path) throws IOException { if (exists(path)) return false; VMFileHandle vmFileHandler = VMIOUtils.getAPI().open(getNormalizedPath(path), VMOpenMode.WRITE); vmFileHandler.close(); return true; }
static boolean create(String path) throws IOException { //moved from JNode File.createInternal(File file) v1.3 : if(exists(path)) return false; VMFileHandle vmFileHandler=VMIOUtils.getAPI().open(path,VMOpenMode.WRITE); vmFileHandler.close(); return true; }
static boolean delete(String path) { try { VMIOUtils.getAPI().delete(path); return true; } catch (IOException ex) { return false; } }
static boolean delete(String path) { try { VMIOUtils.getAPI().delete(getNormalizedPath(path)); return true; } catch (IOException ex) { return false; } }
static boolean delete(String path) { try { VMIOUtils.getAPI().delete(path); return true; } catch (IOException ex) { return false; } }
static boolean exists(String string) { try { return VMIOUtils.getAPI().fileExists(string); } catch (IOException ex) { return false; } }
static boolean exists(String path) { try { return VMIOUtils.getAPI().fileExists(getNormalizedPath(path)); } catch (IOException ex) { return false; } }
static boolean exists(String string) { try { return VMIOUtils.getAPI().fileExists(string); } catch (IOException ex) { return false; } }
static boolean isDirectory(String string) {
static boolean isDirectory(String path) {
static boolean isDirectory(String string) { try { return VMIOUtils.getAPI().isDirectory(string); } catch (IOException ex) { return false; } }
return VMIOUtils.getAPI().isDirectory(string);
return VMIOUtils.getAPI().isDirectory(getNormalizedPath(path));
static boolean isDirectory(String string) { try { return VMIOUtils.getAPI().isDirectory(string); } catch (IOException ex) { return false; } }
return VMIOUtils.getAPI().isFile(path);
return VMIOUtils.getAPI().isFile(getNormalizedPath(path));
static boolean isFile(String path) { try { return VMIOUtils.getAPI().isFile(path); } catch (IOException ex) { return false; } }
return VMIOUtils.getAPI().getLastModified(path);
return VMIOUtils.getAPI().getLastModified(getNormalizedPath(path));
static long lastModified(String path) { try { return VMIOUtils.getAPI().getLastModified(path); } catch (IOException ex) { return 0; } }
return VMIOUtils.getAPI().getLength(path);
return VMIOUtils.getAPI().getLength(getNormalizedPath(path));
static long length(String path) { try { return VMIOUtils.getAPI().getLength(path); } catch (IOException ex) { return 0; } }
static String[] list(String path) { try { return VMIOUtils.getAPI().list(path); } catch (IOException ex) { return new String[0]; } }
static String[] list(String path) { try { return VMIOUtils.getAPI().list(getNormalizedPath(path)); } catch (IOException ex) { return new String[0]; } }
static String[] list(String path) { try { return VMIOUtils.getAPI().list(path); } catch (IOException ex) { return new String[0]; } }
static boolean mkdir(String path) { try{ return VMIOUtils.getAPI().mkDir(path,VMOpenMode.WRITE); }catch(IOException io){ return false; } }
static boolean mkdir(String path) { try { return VMIOUtils.getAPI().mkDir(getNormalizedPath(path), VMOpenMode.WRITE); } catch (IOException io) { return false; } }
static boolean mkdir(String path) { try{ return VMIOUtils.getAPI().mkDir(path,VMOpenMode.WRITE); }catch(IOException io){ return false; } }
VMIOUtils.getAPI().setLastModified(path, time);
VMIOUtils.getAPI().setLastModified(getNormalizedPath(path), time);
static boolean setLastModified(String path, long time) { try { VMIOUtils.getAPI().setLastModified(path, time); return true; } catch (IOException ex) { return false; } }
VMIOUtils.getAPI().setReadOnly(path);
VMIOUtils.getAPI().setReadOnly(getNormalizedPath(path));
static boolean setReadOnly(String path) { try { VMIOUtils.getAPI().setReadOnly(path); return true; } catch (IOException ex) { return false; } }
public static String toCanonicalForm(String path) throws IOException { return PlatformHelper.toCanonicalForm(path); }
final static String toCanonicalForm(String path) throws IOException { return PlatformHelper.toCanonicalForm(path); }
public static String toCanonicalForm(String path) throws IOException { // FIXME: this only works on UNIX return PlatformHelper.toCanonicalForm(path); }
}
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); for (ListIterator i = positions.listIterat...
}
void setPositionsInRange(int offset, int length, int value) { int endOffset = offset + length; int index1 = Collections.binarySearch(positions, new GapContentPosition(offset)); if (index1 < 0) index1 = -(index1 + 1); for (ListIterator i = positions.listIterat...
public void addNotify() {
addNotify() {
public void addNotify() { if (peer == null) peer = getToolkit().createLabel(this); super.addNotify(); }
public int getAlignment() { return (alignment); }
getAlignment() { return(alignment); }
public int getAlignment() { return (alignment); }
public String getText() { return (text); }
getText() { return(text); }
public String getText() { return (text); }
protected String paramString() { return ("text=" + getText() + ",alignment=" + getAlignment() + "," + super.paramString()); }
paramString() { return ("text=" + getText() + ",alignment=" + getAlignment() + "," + super.paramString()); }
protected String paramString() { return ("text=" + getText() + ",alignment=" + getAlignment() + "," + super.paramString()); }
public synchronized void setAlignment(int alignment) {
setAlignment(int alignment) {
public synchronized void setAlignment(int alignment) { if (alignment != CENTER && alignment != LEFT && alignment != RIGHT) throw new IllegalArgumentException("invalid alignment: " + alignment); this.alignment = alignment; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setAlignment(alignment); } }
lp.setAlignment(alignment); }
lp.setAlignment (alignment);
public synchronized void setAlignment(int alignment) { if (alignment != CENTER && alignment != LEFT && alignment != RIGHT) throw new IllegalArgumentException("invalid alignment: " + alignment); this.alignment = alignment; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setAlignment(alignment); } }
}
public synchronized void setAlignment(int alignment) { if (alignment != CENTER && alignment != LEFT && alignment != RIGHT) throw new IllegalArgumentException("invalid alignment: " + alignment); this.alignment = alignment; if (peer != null) { LabelPeer lp = (LabelPeer) peer; lp.setAlignment(alignment); } }
if (tid == null | tid.getReference().get () == null)
if (tid.getReference().get () == null)
public StepFilter (ThreadId tid, int size, int depth) throws InvalidThreadException { if (tid == null | tid.getReference().get () == null) throw new InvalidThreadException (tid.getId ()); _tid = tid; _size = size; _depth = depth; }
config = new NullConfiguration();
config = new GnuConfiguration();
static Configuration getConfig() { if (config == null) { String conf = (String) AccessController.doPrivileged (new PrivilegedAction() { public Object run() { return Security.getProperty ("login.configuration.provider"); } ...
if(completion.hasItems()) { out.println(); String[] list = completion.getItems(); for(int i = 0 ; i < list.length ; i++) out.println(list[i]); } if(completion.needNewPrompt()) { out.print(currentPrompt + currentLine.getContent()); currentLine.start(console, true); }
CompletionInfo complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } completion = new CompletionInfo(); String result = null; try { ...
ke.consume(); currentLine.moveBegin();
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
if(currentLine.complete(console, this)) refreshCurrentLine();
CompletionInfo info = currentLine.complete(currentPrompt); if(completion.needNewPrompt()) { currentLine.start(true); } refreshCurrentLine();
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
currentLine.refreshCurrentLine(console, currentPrompt, out);
currentLine.refreshCurrentLine(currentPrompt);
private void refreshCurrentLine() { currentLine.refreshCurrentLine(console, currentPrompt, out); }
currentLine.start(console);
currentLine.start();
public void run() { // Run commands from the JNode commandline first final String cmdLine = (String) AccessController .doPrivileged(new GetPropertyAction("jnode.cmdline", "")); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { ...
public boolean complete(ScrollableShellConsole console, CommandShell shell)
public CompletionInfo complete(String currentPrompt)
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
CompletionInfo info; boolean completed = false;
CompletionInfo info = null; int oldPosOnCurrentLine = posOnCurrentLine;
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
completed = true;
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
return completed;
return info;
public boolean complete(ScrollableShellConsole console, CommandShell shell) { CompletionInfo info; boolean completed = false; if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); info = shell.complete(currentLine.substring(0, ...
public void refreshCurrentLine(ScrollableShellConsole console, String currentPrompt, PrintStream out) {
public void refreshCurrentLine(String currentPrompt) {
public void refreshCurrentLine(ScrollableShellConsole console, String currentPrompt, PrintStream out) { try { int x = consoleX; int width = console.getWidth(); int nbLines = ((x + maxLength) / width); if(((x + maxLength) % width) != 0) nbLines++; ...
public void start(ScrollableShellConsole console)
public void start()
public void start(ScrollableShellConsole console) { start(console, false); }
start(console, false);
start(false);
public void start(ScrollableShellConsole console) { start(console, false); }
public Object clone() throws CloneNotSupportedException
public final Object clone() throws CloneNotSupportedException
public Object clone() throws CloneNotSupportedException { Mac result = new Mac((MacSpi) macSpi.clone(), provider, algorithm); result.virgin = virgin; return result; }
public int getMacLength()
public final int getMacLength()
public int getMacLength() { return macSpi.engineGetMacLength(); }
super(JOptionPane.this);
protected AccessibleJOptionPane() { super(JOptionPane.this); }
if (parentComponent == null) return null; if (parentComponent instanceof JDesktopPane) return (JDesktopPane) parentComponent; JDesktopPane parent = null; while (parentComponent.getParent() != null) { parentComponent = parentComponent.getParent(); if (parentComponent instanceof JDesktopPane) { parent = (JDesktopPane) pa...
return (JDesktopPane) SwingUtilities.getAncestorOfClass(JDesktopPane.class, parentComponent);
public static JDesktopPane getDesktopPaneForComponent(Component parentComponent) { if (parentComponent == null) return null; if (parentComponent instanceof JDesktopPane) return (JDesktopPane) parentComponent; JDesktopPane parent = null; while (parentComponent.getParent() != null) { paren...
if (parentComponent == null) return null; if (parentComponent instanceof Frame) return (Frame) parentComponent; Frame parent = null; while (parentComponent.getParent() != null) { parentComponent = parentComponent.getParent(); if (parentComponent instanceof Frame) { parent = (Frame) parentComponent; break; } } return pa...
return (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parentComponent);
public static Frame getFrameForComponent(Component parentComponent) { if (parentComponent == null) return null; if (parentComponent instanceof Frame) return (Frame) parentComponent; Frame parent = null; while (parentComponent.getParent() != null) { parentComponent = parentComponent.getParent...
return;
entries = new HashSet();
public void refresh(){ return; }
JPanel rightSide = new JPanel() { public Dimension getPreferredSize() { int w = Math.max(optionPane.getSize().width, minimumWidth); Insets i = optionPane.getInsets(); Dimension orig = super.getPreferredSize(); Dimension value = new Dimension(w - i.left - i.right - iconSize, orig.height); return value; } };
JPanel rightSide = new JPanel();
protected Container createMessageArea() { JPanel messageArea = new JPanel(); messageArea.setLayout(new BorderLayout()); addIcon(messageArea); JPanel rightSide = new JPanel() { public Dimension getPreferredSize() { int w = Math.max(optionPane.getSize().width, minimumWidth); Insets i = opti...
log.debug("getGraphics");
public Graphics getGraphics() { log.debug("getGraphics"); return SystemProperties.getProperty("gnu.javax.swing.noGraphics2D") == null ? new JNodeGraphics2D(this) : new JNodeGraphics(this); }
if (factory == null) { Iterator iter = ServiceFactory.lookupProviders (PreferencesFactory.class, null); if (iter != null && iter.hasNext()) factory = (PreferencesFactory) iter.next(); }
private static PreferencesFactory getFactory() throws SecurityException { // First check for permission SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(prefsPermission); } // Get the factory if (factory == null) { ...
items.insertElementAt(item, index);
MenuPeer peer = (MenuPeer) getPeer(); if (peer == null) return;
insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); items.insertElementAt(item, index); MenuPeer mp = (MenuPeer)getPeer(); // FIXME: Need to add a peer method here.// if (mp != null)// mp.insertItem(item, index);}
MenuPeer mp = (MenuPeer)getPeer();
int count = getItemCount (); if (index >= count) peer.addItem (item); else { for (int i = count - 1; i >= index; i--) peer.delItem (i); peer.addItem (item); for (int i = index; i < count; i++) peer.addItem ((MenuItem) items.elementAt (i)); } items.insertElementAt(item, index);
insert(MenuItem item, int index){ if (index < 0) throw new IllegalArgumentException("Index is less than zero"); items.insertElementAt(item, index); MenuPeer mp = (MenuPeer)getPeer(); // FIXME: Need to add a peer method here.// if (mp != null)// mp.insertItem(item, index);}
return(isTearOff);
return(tearOff);
isTearOff(){ return(isTearOff);}
return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu
return (",tearOff=" + tearOff + ",isHelpMenu=" + isHelpMenu
paramString(){ return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString());}
public Container getContainer();
Container getContainer();
public Container getContainer();
private HashMap getEntries() throws IOException
private LinkedHashMap getEntries() throws IOException
private HashMap getEntries() throws IOException { synchronized(raf) { checkClosed(); if (entries == null) readEntries(); return entries; } }
HashMap entries = getEntries();
LinkedHashMap entries = getEntries();
public ZipEntry getEntry(String name) { checkClosed(); try { HashMap entries = getEntries(); ZipEntry entry = (ZipEntry) entries.get(name); // If we didn't find it, maybe it's a directory. if (entry == null && !name.endsWith("/")) entry = (ZipEntry) entries.get(name + '/'); re...
HashMap entries = getEntries();
LinkedHashMap entries = getEntries();
public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; PartialInputStream inp = new PartialInputStream(raf, 1024); inp.s...
entries = new HashMap(count+count/2);
entries = new LinkedHashMap(count+count/2);
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * Note that a comment has a maximum length of 64K, so that is the * maximum we search backwards. */ PartialInputStream inp = new...
log.finest("certificate = " + certificate);
if (Configuration.DEBUG) log.fine("certificate = " + certificate);
private void ensureReplyIsOurs(Collection certificates) throws IOException, UnsupportedCallbackException, KeyStoreException { log.entering(this.getClass().getName(), "ensureReplyIsOurs"); //$NON-NLS-1$ Certificate certificate = (Certificate) certificates.iterator().next(); log.finest("certificate = " +...
if (Configuration.DEBUG)
private void ensureReplyIsOurs(Collection certificates) throws IOException, UnsupportedCallbackException, KeyStoreException { log.entering(this.getClass().getName(), "ensureReplyIsOurs"); //$NON-NLS-1$ Certificate certificate = (Certificate) certificates.iterator().next(); log.finest("certificate = " +...
log.entering(this.getClass().getName(), "findTrustAndUpdate",
if (Configuration.DEBUG) log.exiting(this.getClass().getName(), "findTrustAndUpdate",
private boolean findTrustAndUpdate(LinkedList reply, boolean promptUser) throws IOException, NoSuchAlgorithmException, CertPathValidatorException, KeyStoreException, UnrecoverableKeyException, UnsupportedCallbackException, CertificateEncodingException { log.entering(this.getClass().getName(), "find...
if (Configuration.DEBUG)
private PKIXCertPathValidatorResult findTrustInStore(X509CertPath certPath, CertPathValidator validator) { log.entering(this.getClass().getName(), "findTrustInStore"); //$NON-NLS-1$ PKIXCertPathValidatorResult result; try { PKIXParameters par...
if (Configuration.DEBUG)
private PKIXParameters getCertPathParameters(String type, String pathName) { log.entering(this.getClass().getName(), "getCertPathParameters", //$NON-NLS-1$ new Object[] { type, pathName }); FileInputStream stream = null; PKIXParameters result = null; try { KeyStore cacerts = K...
if (Configuration.DEBUG)
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.IMPORT_CMD, true); result.setHeader(Messages.getString("ImportCmd.27")); //$NON-NLS-1$ result.setFooter(Messages.getString("ImportCmd.26")); //$NON-NLS-1$ OptionGroup o...
if (Configuration.DEBUG)
private void importCertificate(Certificate certificate) throws NoSuchAlgorithmException, CertPathValidatorException, KeyStoreException, UnrecoverableKeyException, IOException, UnsupportedCallbackException, CertificateException { log.entering(this.getClass().getName(), "importCertificate", certifica...
if (Configuration.DEBUG)
private void importCertificateReply() throws CertificateException, IOException, UnsupportedCallbackException, KeyStoreException, NoSuchAlgorithmException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "importCertificateReply"); //$NON-NLS-1$ Coll...
if (Configuration.DEBUG)
private void importChain(Collection chain) throws NoSuchAlgorithmException, CertPathValidatorException, KeyStoreException, UnrecoverableKeyException, IOException, UnsupportedCallbackException, CertificateException { log.entering(this.getClass().getName(), "importChain", chain); //$NON-NLS-1$ LinkedLi...
log.finest("certificate = " + certificate);
if (Configuration.DEBUG) log.fine("certificate = " + certificate);
private void importNewTrustedCertificate() throws CertificateException, KeyStoreException, NoSuchAlgorithmException, IOException, UnsupportedCallbackException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "importNewTrustedCertificate"); //$NON-NLS-...
if (Configuration.DEBUG)
private void importNewTrustedCertificate() throws CertificateException, KeyStoreException, NoSuchAlgorithmException, IOException, UnsupportedCallbackException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "importNewTrustedCertificate"); //$NON-NLS-...
log.entering(this.getClass().getName(), "orderChain", result);
if (Configuration.DEBUG) log.exiting(this.getClass().getName(), "orderChain", result);
private LinkedList orderChain(Collection chain) { log.entering(this.getClass().getName(), "orderChain"); //$NON-NLS-1$ LinkedList in = new LinkedList(chain); int initialCount = in.size(); LinkedList result = new LinkedList(); Principal issuer = selfSignedCertificate.getIssuerDN(); ListIterator it; ...
setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL);
setKeyStoreParams(true, _providerClassName, _ksType, _ksPassword, _ksURL);
void setup() throws Exception { setInputStreamParam(_certFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); log.finer("-import handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alia...
log.finer("-import handler will use the following options:"); log.finer(" -alias=" + alias); log.finer(" -file=" + _certFileName); log.finer(" -noprompt=" + noPrompt); log.finer(" -trustcacerts=" + trustCACerts); log.finer(" -storetype=" + storeType); log.finer(" -keystore=" + storeURL); log.finer(" -provider=" ...
if (Configuration.DEBUG) { log.fine("-import handler will use the following options:"); log.fine(" -alias=" + alias); log.fine(" -file=" + _certFileName); log.fine(" -noprompt=" + noPrompt); log.fine(" -trustcacerts=" + trustCACerts); log.fine(" -storetype=" + storeType); log.fine(" -keystore=" + storeURL); log.f...
void setup() throws Exception { setInputStreamParam(_certFileName); setKeyStoreParams(_providerClassName, _ksType, _ksPassword, _ksURL); setAliasParam(_alias); setKeyPasswordNoPrompt(_password); log.finer("-import handler will use the following options:"); //$NON-NLS-1$ log.finer(" -alias=" + alia...
if (Configuration.DEBUG)
void start() throws CertificateException, KeyStoreException, IOException, UnsupportedCallbackException, NoSuchAlgorithmException, CertPathValidatorException, UnrecoverableKeyException { log.entering(this.getClass().getName(), "start"); //$NON-NLS-1$ if (trustCACerts) { String fs = SystemP...
if (Configuration.DEBUG)
private PKIXCertPathValidatorResult validate(CertPathValidator validator, X509CertPath certPath, PKIXParameters params) { log.entering(this.getClass().getName(), "validate"); //$NON-NLS-1$ PKIXCertPathValidatorResult re...
IPv4Address network_address;
final IPv4Address networkAddress; final IPv4Address serverAddr = new IPv4Address(hdr.getServerIPAddress()); networkAddress = serverAddr.and(serverAddr.getDefaultSubnetmask());
protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ...
if (hdr.getServerIPAddress().getAddress()[0] < IPv4Constants.NETWORK_CLASSA) { network_address = new IPv4Address(hdr.getServerIPAddress().getAddress()[0] + "." + hdr.getServerIPAddress().getAddress()[1] + "." + hdr.getServerIPAddress().getAddress()[2] + ".0"); } else if (hdr.getServerIPAddress().getAddress()[0] < IPv4C...
if (hdr.getGatewayIPAddress().isAnyLocalAddress()) { cfg.addRoute(serverAddr, null, device, false); cfg.addRoute(networkAddress, null, device, false); } else { cfg.addRoute(networkAddress, new IPv4Address(hdr .getGatewayIPAddress()), device, false); } }
protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ...
invalidate(); repaint();
public void updateUI() { setUI((ScrollBarUI) UIManager.getUI(this)); invalidate(); repaint(); }
if (inBounds && e.getClickCount() == 2 && !isLeaf(row))
if (e.getClickCount() == 2 && !isLeaf(row))
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExp...
}
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExp...
int max = mod.getChildCount(curr);
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; ...
int max = mod.getChildCount(curr);
int paintRecursive(Graphics g, int indentation, int descent, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; ...
bounds.width = preferredSize.width;
if (!validCachedPreferredSize) updateCachedPreferredSize();
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelect...
bounds.width = preferredSize.width + bounds.x;
protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { boolean selected = tree.isPathSelect...
while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0))));
else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0))));
void updateCurrentVisiblePath() { Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) ||...
tibOffset = ObjectLayout.TIB_SLOT * refSize;
public HeapHelperImpl(VmArchitecture arch) { if (Vm.getVm() != null) { throw new SecurityException( "Cannot instantiate HeapHelpImpl at runtime"); } final int refSize = arch.getReferenceSize(); flagsOffset = ObjectLayout.FLAGS_SLOT * refSize; tibOffset = ObjectLayout.TIB_S...
{new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243),
{new Float(0.3), new Float(0.0), new ColorUIResource(221, 232, 243),
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
{new Double(1.0), new Double(0.0), new ColorUIResource(Color.WHITE),
{new Float(1.0), new Float(0.0), new ColorUIResource(Color.WHITE),
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
{new Double(1.0), new Double(0.0), new ColorUIResource(Color.WHITE), new ColorUIResource(218, 218, 218), new ColorUIResource(218, 218, 218)}));
{new Float(0.3), new Float(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)}));
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
{new Double(0.3), new Double(0.2), new ColorUIResource(200, 221, 242),
{new Float(0.3), new Float(0.2), new ColorUIResource(200, 221, 242), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("Slider.focusGradient", Arrays.asList(new Object[] {new Float(0.3), new Float(0.2), new ColorUIResource(200, 221, 242),
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...
ColorUIResource c1 = new ColorUIResource(200, 221, 242); ColorUIResource c2 = new ColorUIResource(153, 153, 153); ColorUIResource c3 = new ColorUIResource(204, 204, 204); ColorUIResource c4 = new ColorUIResource(210, 226, 239); ColorUIResource c5 = new ColorUIResource(218, 218, 218); defaults.put("Button.disabledToolBa...
public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.gradient", Arrays.asList(new Object[] {new Double(0.3), new Double(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.gradient", Arra...