rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
inspector = new DOMInspector( root.panel.view.doc, root.panel.view.c, (XRStyleReference)root.panel.view.c.css );
inspector = new DOMInspector( root.panel.view.getDocument(), root.panel.view.getContext(), (XRStyleReference)root.panel.view.getContext().css );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
if ( root.panel.view.c.css instanceof CSSBank ) { inspector.setForDocument( root.panel.view.doc );
if ( root.panel.view.getContext().css instanceof CSSBank ) { inspector.setForDocument( root.panel.view.getDocument() );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
inspector.setForDocument( root.panel.view.doc, root.panel.view.c, (XRStyleReference)root.panel.view.c.css );
inspector.setForDocument( root.panel.view.getDocument(), root.panel.view.getContext(), (XRStyleReference)root.panel.view.getContext().css );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
log.info("Added message " + m + " to my list");
log.trace("Added message " + m + " to my list");
public void onMessage(Message m) { messages.add(m); log.info("Added message " + m + " to my list"); latch.release(); //latch = new Latch(); };
log.info("Got message:" + count);
log.trace("Got message:" + count);
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.info("Got message:" + count); if (count == 0) { if (!("a".equals(tm.getText()))) { failed = true; ...
log.trace("Should be c but was " + tm.getText());
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.info("Got message:" + count); if (count == 0) { if (!("a".equals(tm.getText()))) { failed = true; ...
super.drainDestination(cf, queue); super.drainDestination(cf, queue2);
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployQueue("Queue2"); ServerManagement.deployTopic("Topic"); ServerManagement.depl...
sess2.close(); sess3.close();
public void testMultipleConcurrentConsumers() throws Exception { consumerConnection.start(); Session sess1 = consumerConnection.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sess2 = consumerConnection.createSession(false, Session.AUTO_ACKNOWLEDGE); Session sess3 = consumerConnection.c...
MessageProducer prod = sess.createProducer(queue);
MessageProducer prod = sessSend.createProducer(queue);
public void testRedelMessageListener2() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = sess.createConsumer(queue); RedelMessageListenerImpl listene...
sess.commit();
public void testRedelMessageListener2() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = sess.createConsumer(queue); RedelMessageListenerImpl listene...
conn.close();
public void testRedelMessageListener2() throws Exception { Connection conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageConsumer cons = sess.createConsumer(queue); RedelMessageListenerImpl listene...
log.info("Set message listener1");
log.trace("Set message listener1");
public void testSetMessageListenerTwice() throws Exception { if (log.isTraceEnabled()) log.trace("testSetMessageListenerTwice"); MessageListenerImpl listener1 = new MessageListenerImpl(); topicConsumer.setMessageListener(listener1); log.info("Set message listener1"); MessageListenerI...
log.info("Set message listener2");
log.trace("Set message listener2");
public void testSetMessageListenerTwice() throws Exception { if (log.isTraceEnabled()) log.trace("testSetMessageListenerTwice"); MessageListenerImpl listener1 = new MessageListenerImpl(); topicConsumer.setMessageListener(listener1); log.info("Set message listener1"); MessageListenerI...
log.info(e.getMessage());
log.trace(e.getMessage());
public void testSetMessageListenerWhileReceiving() throws Exception { if (log.isTraceEnabled()) log.trace("testSetMessageListenerWhileReceiving"); consumerConnection.start(); worker1= new Thread(new Runnable() { public void run() { try { topic...
log.info("timeToSleep = " + timeToSleep + " ms, elapsed = " + elapsed + " ms");
log.trace("timeToSleep = " + timeToSleep + " ms, elapsed = " + elapsed + " ms");
public void testTimeoutReceiveOnClose() throws Exception { if (log.isTraceEnabled()) log.trace("testTimeoutReceiveOnClose"); consumerConnection.start(); final Latch latch = new Latch(); final long timeToSleep = 1000; Thread closerThread = new Thread(new Runnable() { public voi...
assert (new Float(absVal).intValue() > 0);
private float calcFloatProportionalValue(float relVal, short primitiveType, float baseValue, CssContext ctx) { float absVal = Float.MIN_VALUE; // NOTE: absolute datatypes (px, pt, pc, cm, etc.) are converted once and stored. // this could be done on instantiation, but it seems more clear to hav...
is = new URL(resolveURI(uri)).openStream();
is = new URL(uri).openStream();
public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } if (img != null) { ...
is = new URL(resolveURI(uri)).openStream();
is = new URL(uri).openStream();
public java.io.Reader getReader(String uri) { java.io.InputStream is = null; Reader reader = null; try { is = new URL(resolveURI(uri)).openStream(); reader = new BufferedReader(new java.io.InputStreamReader(is)); } catch (java.net.MalformedURLException e) { ...
public JOptionPane(Object message, int messageType, int optionType)
public JOptionPane()
public JOptionPane(Object message, int messageType, int optionType) { this(message, messageType, optionType, null, null, null); }
this(message, messageType, optionType, null, null, null);
this("JOptionPane message", PLAIN_MESSAGE, DEFAULT_OPTION, null, null, null);
public JOptionPane(Object message, int messageType, int optionType) { this(message, messageType, optionType, null, null, null); }
dialog.invalidate(); dialog.repaint();
public JDialog createDialog(Component parentComponent, String title) { Frame toUse = getFrameForComponent(parentComponent); if (toUse == null) toUse = getRootFrame(); JDialog dialog = new JDialog(toUse, title); inputValue = UNINITIALIZED_VALUE; value = UNINITIALIZED_VALUE; // FIXME: This dialo...
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
public static String showInputDialog(Component parentComponent, Object message)
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSele...
JOptionPane pane = new JOptionPane(message, messageType);
JOptionPane pane = new JOptionPane(message, QUESTION_MESSAGE);
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSele...
pane.setIcon(icon); pane.setSelectionValues(selectionValues); pane.setInitialSelectionValue(initialSelectionValue); JDialog dialog = pane.createDialog(parentComponent, title);
JDialog dialog = pane.createDialog(parentComponent, null);
public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSele...
assertEquals("Unexpected first history step", 1, ((Step) history.get(0)).getStepId()); assertEquals("Unexpected second history step", 2, ((Step) history.get(1)).getStepId());
assertEquals("Unexpected first history step", 2, ((Step) history.get(0)).getStepId()); assertEquals("Unexpected second history step", 1, ((Step) history.get(1)).getStepId());
public void testExecTwoActions() throws Exception { long id = workflow.initialize(getClass().getResource("/samples/auto3.xml").toString(), 100, null); List currentSteps = workflow.getCurrentSteps(id); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEqual...
assertEquals("Unexpected status of last history step", "LastFinished", ((Step) historySteps.get(historySteps.size() - 1)).getStatus());
assertEquals("Unexpected status of last history step", "LastFinished", ((Step) historySteps.get(0)).getStatus());
public void testSimpleFinish() throws Exception { long id = workflow.initialize(getClass().getResource("/samples/finish1.xml").toString(), 100, null); workflow.doAction(id, 1, null); assertTrue("Finished workflow should have no current actions", workflow.getCurrentSteps(id).size() == 0); ...
checkImplicitFinish(id);
checkImplicitFinish(action, id);
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() != WorkflowEntry.ACTIVATED) { return; } WorkflowDescriptor wf = getConfiguration()....
assertEquals(2, actions.length);
assertEquals(3, actions.length);
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getClass().getResource("/samples/example.xml").toString(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 1)); long workflowId = wo...
assertEquals("Unexpected number of history steps", 4, historySteps.size());
assertEquals("Unexpected number of history steps", 5, historySteps.size());
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getClass().getResource("/samples/example.xml").toString(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 1)); long workflowId = wo...
assertEquals("Unexpected number of history steps", 7, historySteps.size());
assertEquals("Unexpected number of history steps", 8, historySteps.size());
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getClass().getResource("/samples/example.xml").toString(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 1)); long workflowId = wo...
public WorkflowQuery(int field, int type, int operator, Object value) { this.type = type;
public WorkflowQuery(WorkflowQuery left, int operator, WorkflowQuery right) {
public WorkflowQuery(int field, int type, int operator, Object value) { this.type = type; this.operator = operator; this.field = field; this.value = value; }
this.field = field; this.value = value;
this.left = left; this.right = right;
public WorkflowQuery(int field, int type, int operator, Object value) { this.type = type; this.operator = operator; this.field = field; this.value = value; }
public FieldExpression(int field, int context, int operator, Object value) { this.context = context; this.operator = operator; this.field = field; this.value = value;
public FieldExpression() {
public FieldExpression(int field, int context, int operator, Object value) { this.context = context; this.operator = operator; this.field = field; this.value = value; }
completeEntry(id, currentSteps);
completeEntry(null, id, currentSteps);
public void changeEntryState(long id, int newState) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() == newState) { return; } if (canModifyEntryState(id, newState)) { if ((newSt...
MethodInvocation invocation = new MethodInvocation(interceptors, hash, method, method, null);
MethodInfo info = new MethodInfo(); info.hash = hash; info.advisedMethod = method; info.unadvisedMethod = method; MethodInvocation invocation = new JMSMethodInvocation(info, interceptors, this);
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // build the invocation long hash = MethodHashing.calculateHash(method); MethodInvocation invocation = new MethodInvocation(interceptors, hash, method, method, null); invocation.setArguments(args); // init...
List l = new ArrayList(size);
List l = null;
private List readList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List l = new ArrayList(size); for (int i = 0; i < size; i++) { l.add(in.readObject()); } return l; }
for (int i = 0; i < size; i++)
if (size != -1)
private List readList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List l = new ArrayList(size); for (int i = 0; i < size; i++) { l.add(in.readObject()); } return l; }
l.add(in.readObject());
l = new ArrayList(size); for (int i = 0; i < size; i++) { l.add(in.readObject()); }
private List readList(ObjectInput in) throws IOException, ClassNotFoundException { int size = in.readInt(); List l = new ArrayList(size); for (int i = 0; i < size; i++) { l.add(in.readObject()); } return l; }
out.writeInt(l.size()); Iterator iter = l.iterator(); while (iter.hasNext())
if (l == null)
private void writeList(List l, ObjectOutput out) throws IOException { out.writeInt(l.size()); Iterator iter = l.iterator(); while (iter.hasNext()) { out.writeObject(iter.next()); } }
out.writeObject(iter.next());
out.writeInt(-1); } else { out.writeInt(l.size()); Iterator iter = l.iterator(); while (iter.hasNext()) { out.writeObject(iter.next()); }
private void writeList(List l, ObjectOutput out) throws IOException { out.writeInt(l.size()); Iterator iter = l.iterator(); while (iter.hasNext()) { out.writeObject(iter.next()); } }
String name = JOptionPane.showInputDialog("Step Name?");
String name = JOptionPane.showInputDialog(ResourceManager.getString("step.add.name"));
public static void createStep(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location) { // create new step String name = JOptionPane.showInputDialog("Step Name?"); if(name == null || name.trim().length() == 0) return; StepDescriptor step = DescriptorBuilder.createStep(name, Utils.getNextId...
public JBossMessage(long messageID) { this(messageID, true, 0, System.currentTimeMillis(), (byte)4, null, null, null, null, null, null, null, null);
public JBossMessage() {
public JBossMessage(long messageID) { this(messageID, true, 0, System.currentTimeMillis(), (byte)4, null, null, null, null, null, null, null, null); }
payload = null;
public byte[] getPayloadAsByteArray() { if (payloadAsByteArray == null && payload != null) { try { //Convert the payload into a byte array and store internally final int BUFFER_SIZE = 4096; JBossObjectOutputStream oos = null; try ...
log.info("********* LOADING CONFIG FILE: " + persistenceConfigFile);
public void startServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { try { log.debug("creating ServerPeer instance"); // we are using the "default" service deploym...
public WorkflowDescriptor(Element root) { init(root);
public WorkflowDescriptor() {
public WorkflowDescriptor(Element root) { init(root); }
markerData = null;
public static void layoutContent(LayoutContext c, Box box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); Lin...
public int getInlineWidth() {
public int getInlineWidth(CssContext cssCtx) {
public int getInlineWidth() { return inlineWidth; }
SwingUtilities.invokeLater(new Runnable() { public void run() { cbFrame.requestFocus(); System.out.println("Focus requested"); } });
private void buildFrame() { try { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } cbFrame = new JFrame("FS ComparaBrowser"); final JFrame frame = cbFrame; frame.setExtendedSta...
SwingUtilities.invokeLater(new Runnable() { public void run() { cbFrame.requestFocus(); System.out.println("Focus requested"); } });
public void run() { geckoBrowser = new WebBrowser(); geckoBrowser.setSize(new Dimension(0, 0)); geckoBrowser.addWebBrowserListener( new WebBrowserListener() { boolean isFirstPage = true; ...
SwingUtilities.invokeLater(new Runnable() { public void run() { cbFrame.requestFocus(); System.out.println("Focus requested"); } });
public void downloadCompleted(WebBrowserEvent event) { }
html.relayout();
geckoBrowser.setSize(gscroll.getSize());
public void componentResized(ComponentEvent e) { html.relayout(); }
public void setDocument(InputStream stream, String url) throws Exception { super.setDocument(stream, url, new XhtmlNamespaceHandler());
public void setDocument(String uri) { setDocument(loadDocument(uri), uri);
public void setDocument(InputStream stream, String url) throws Exception { super.setDocument(stream, url, new XhtmlNamespaceHandler()); }
Stylesheet ss = _styleFactory.getStylesheet(si);
Stylesheet ss = si.getStylesheet(); if (ss == null) { ss = _styleFactory.getStylesheet(si); si.setStylesheet(ss); }
private int appendStylesheet(StylesheetInfo si, int count, java.util.TreeMap sorter, String media) { if (!si.appliesToMedia(media)) return count; Stylesheet ss = _styleFactory.getStylesheet(si); if (ss == null) return count;//couldn't load it for (java.util.Iterator rulesets = ss.getRule...
throws NotImplementedException
public void nodeStructureChanged(TreeNode node) throws NotImplementedException { // TODO }
int n = getChildCount(root); int[] childIdx = new int[n]; Object[] children = new Object[n]; for (int i = 0; i < n; i++) { childIdx[i] = i; children[i] = getChild(root, i); } fireTreeStructureChanged(this, new Object[] { root }, childIdx, children);
public void nodeStructureChanged(TreeNode node) throws NotImplementedException { // TODO }
throws NotImplementedException
public void reload() throws NotImplementedException { // TODO }
int n = getChildCount(root); int[] childIdx = new int[n]; Object[] children = new Object[n]; for (int i = 0; i < n; i++) { childIdx[i] = i; children[i] = getChild(root, i); } fireTreeStructureChanged(this, new Object[] { root }, childIdx, children);
public void reload() throws NotImplementedException { // TODO }
public void treeNodesChanged(TreeModelEvent event);
void treeNodesChanged(TreeModelEvent event);
public void treeNodesChanged(TreeModelEvent event);
public void treeNodesInserted(TreeModelEvent event);
void treeNodesInserted(TreeModelEvent event);
public void treeNodesInserted(TreeModelEvent event);
public void treeNodesRemoved(TreeModelEvent event);
void treeNodesRemoved(TreeModelEvent event);
public void treeNodesRemoved(TreeModelEvent event);
public void treeStructureChanged(TreeModelEvent event);
void treeStructureChanged(TreeModelEvent event);
public void treeStructureChanged(TreeModelEvent event);
String className = (String) springFunctions.get(type); if (className == null) { className = (String) args.get(Workflow.CLASS_NAME); } if (className != null) { return (FunctionProvider) loadObject(className); }
public FunctionProvider getFunction(String type, Map args) throws WorkflowException { if (SPRING.equals(type)) { return (FunctionProvider) getApplicationContext().getBean((String) args.get(BEANNAME)); } return super.getFunction(type, args); }
this.functions = functions;
this.springFunctions = functions;
public void setFunctions(Map functions) { this.functions = functions; }
public void objectAdded(NamingEvent evt);
void objectAdded(NamingEvent evt);
public void objectAdded(NamingEvent evt);
public void objectRemoved(NamingEvent evt);
void objectRemoved(NamingEvent evt);
public void objectRemoved(NamingEvent evt);
public void objectRenamed(NamingEvent evt);
void objectRenamed(NamingEvent evt);
public void objectRenamed(NamingEvent evt);
for (Iterator i = stripped.iterator(); i.hasNext();) if (i.next() instanceof TextContent) i.remove();
LinkedList pendingStylePushes = new LinkedList(); LinkedList result = new LinkedList(); for (Iterator i = stripped.iterator(); i.hasNext();) { Object o = i.next(); if (o instanceof TextContent) continue; else if (o instanceof StylePush) { pendingStylePushes.addLast(o); } else if (o instanceof StylePop) { if (pendingSty...
private static void stripTextContent(LinkedList stripped) { for (Iterator i = stripped.iterator(); i.hasNext();) if (i.next() instanceof TextContent) i.remove(); }
return pattern.getRE().substituteAll(input, replacement, position);
return pattern.getRE().substituteAll(input, replacement, position, RE.REG_REPLACE_USE_BACKSLASHESCAPE);
public String replaceAll (String replacement) { reset(); return pattern.getRE().substituteAll(input, replacement, position); }
public void namingExceptionThrown(NamingExceptionEvent evt);
void namingExceptionThrown(NamingExceptionEvent evt);
public void namingExceptionThrown(NamingExceptionEvent evt);
super(model, new GraphLayoutCache(model, new WorkflowCellViewFactory()));
super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false);
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model, new GraphLayoutCache(model, new WorkflowCellViewFactory())); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; setDescriptor(descriptor); if(doAutoLayo...
if(value instanceof CustomEdgeView)
if(value instanceof EdgeView)
public String convertValueToString(Object value) { if(value == null) return null; if(value instanceof CustomEdgeView) { return ((CustomEdgeView)value).getCell().toString(); } else { return value.toString(); } }
return ((CustomEdgeView)value).getCell().toString();
return ((EdgeView)value).getCell().toString();
public String convertValueToString(Object value) { if(value == null) return null; if(value instanceof CustomEdgeView) { return ((CustomEdgeView)value).getCell().toString(); } else { return value.toString(); } }
super("Step");
super(ResourceManager.getString("step"));
public CreateStep(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location) { super("Step"); this.workflow = workflow; this.model = model; this.location = location; }
public CreateJoin(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location){ super("Join"); this.workflow = workflow; this.model = model; this.location = location; }
public CreateJoin(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location) { super(ResourceManager.getString("join")); this.workflow = workflow; this.model = model; this.location = location; }
public CreateJoin(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location){ super("Join"); this.workflow = workflow; this.model = model; this.location = location; }
public SetGridSize(WorkflowGraph graph, Point location, int gridSize)
public SetGridSize(WorkflowGraph graph, int gridSize)
public SetGridSize(WorkflowGraph graph, Point location, int gridSize) { super(gridSize>1 ? gridSize + " pt" : ResourceManager.getString("grid.disable")); setIcon(new GridIcon(gridSize)); customHandler = new SetGridSizeWidthHandler(graph, location, gridSize, this.getName()); addActionListener(customHandler); }
super(gridSize>1 ? gridSize + " pt" : ResourceManager.getString("grid.disable")); setIcon(new GridIcon(gridSize)); customHandler = new SetGridSizeWidthHandler(graph, location, gridSize, this.getName()); addActionListener(customHandler);
super(gridSize > 1 ? gridSize + " pt" : ResourceManager.getString("grid.disable")); setIcon(new GridIcon(gridSize)); customHandler = new SetGridSizeWidthHandler(graph, gridSize, this.getName()); addActionListener(customHandler);
public SetGridSize(WorkflowGraph graph, Point location, int gridSize) { super(gridSize>1 ? gridSize + " pt" : ResourceManager.getString("grid.disable")); setIcon(new GridIcon(gridSize)); customHandler = new SetGridSizeWidthHandler(graph, location, gridSize, this.getName()); addActionListener(customHandler); }
int end = child.getEndOffset();
int end = child.getEndOffset() - 1;
float determineMaxLineLength() { // if the longest line is cached, return the cached value if (maxLineLength != -1) return maxLineLength; // otherwise we have to go through all the lines and find it Element el = getElement(); Segment seg = getLineBuffer(); float span = 0; for (int i = 0...
int endOffset = line.getEndOffset();
int endOffset = line.getEndOffset() - 1;
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { Element line = getElement().getElement(lineIndex); int startOffset = line.getStartOffset(); int endOffset = line.getEndOffset(); if (selectionStart <= startOffset) // Selection starts before the lin...
drawSelectedText(g, x, y, selectionStart, selectionEnd);
drawSelectedText(g, x, y, selectionStart, endOffset);
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { Element line = getElement().getElement(lineIndex); int startOffset = line.getStartOffset(); int endOffset = line.getEndOffset(); if (selectionStart <= startOffset) // Selection starts before the lin...
protected Segment getLineBuffer()
protected final Segment getLineBuffer()
protected Segment getLineBuffer() { if (lineBuffer == null) lineBuffer = new Segment(); return lineBuffer; }
int end = child.getEndOffset();
int end = child.getEndOffset() - 1;
protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { float oldMaxLineLength = maxLineLength; Rectangle alloc = a.getBounds(); Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the ...
return 1;
return charWidth((char) ch);
public int charWidth(char ch) { return 1; }
public ElementChange getChange(Element element);
ElementChange getChange(Element element);
public ElementChange getChange(Element element);
public int getOffset();
int getOffset();
public int getOffset();
public EventType getType();
EventType getType();
public EventType getType();
public Element[] getChildrenRemoved();
Element[] getChildrenRemoved();
public Element[] getChildrenRemoved();
public Element[] getChildrenAdded();
Element[] getChildrenAdded();
public Element[] getChildrenAdded();
int x, TabExpander te, int p0)
int x, TabExpander te, int p0, boolean round)
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0) { return getTabbedTextOffset(s, fm, x0, x, te, p0, true); }
return getTabbedTextOffset(s, fm, x0, x, te, p0, true);
int pos; int currentX = x0; for (pos = 0; pos < s.count; pos++) { char nextChar = s.array[s.offset+pos]; if (nextChar == 0) { if (! round && pos > 0) pos--; break; } if (nextChar != '\t') currentX += fm.charWidth(nextChar); else { if (te == null) currentX += fm.charWidth(' '); else currentX = (int) te.nextTabStop(cur...
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0) { return getTabbedTextOffset(s, fm, x0, x, te, p0, true); }
mgr.unregisterConnection(connection.getRemotingClientSessionId());
mgr.unregisterConnection(connection.getJmsClientId(), connection.getRemotingClientSessionId());
public void run() { try { if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } MessagingMarshallable mm = new MessagingMarshallable(connection.getUsingVersion(), this); connection.getCallbackClient().invoke(mm); } ca...
ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID);
ServerConnectionEndpoint unregisterConnection(String jmsClientId, String remotingClientSessionID);
ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID);
throws NotImplementedException
public void addAccessibleSelection(int value0) { // TODO: Implement this properly. }
throws NotImplementedException
public void clearAccessibleSelection() { // TODO: Implement this properly. }
throws NotImplementedException
public Accessible getAccessibleChild(int value0) { return null; }
throws NotImplementedException
public int getAccessibleChildrenCount() { return 0; }
throws NotImplementedException
public AccessibleSelection getAccessibleSelection() { return null; }
throws NotImplementedException
public int getAccessibleSelectionCount() { return 0; }
throws NotImplementedException
public boolean isAccessibleChildSelected(int value0) { return false; }
throws NotImplementedException
public void removeAccessibleSelection(int value0) { // TODO: Implement this properly. }
throws NotImplementedException
public void selectAllAccessibleSelection() { // TODO: Implement this properly. }