rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
assertNull(serviceMonitor.stopError);
if (stopStrategy == StopStrategies.FORCE) { assertNotNull(serviceMonitor.stopError); ForcedStopException cause = (ForcedStopException) serviceMonitor.stopError.getCause(); assertTrue(cause.getUnsatisfiedConditions().contains(stopCondition)); } else { assertNull(serviceMonitor.stopError); }
private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); // these events should never fire in response to start assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); if (initialState == ServiceState.STOPPED) { // // We were alredy stopped so nothing should have happened // assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertSame(ServiceState.STOPPED, serviceManager.getState()); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); // start condition methods assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); // stop condition methods assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (!stopCondition.satisfied) { // // waiting to stop // assertSame(ServiceState.STOPPING, serviceManager.getState()); assertTrue(serviceManager.getStartTime() > 0); assertSame(SERVICE, serviceManager.getService()); // verify expected events fired if (initialState != ServiceState.STOPPING) { assertNotNull(serviceMonitor.stopping); } assertNotNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); // verify events fired in the correct order if (initialState != ServiceState.STOPPING) { assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.waitingToStop.getEventId()); } // our condition should be in the unsatisfied condition list assertNotNull(serviceMonitor.waitingToStop.getUnsatisfiedConditions()); assertTrue(serviceMonitor.waitingToStop.getUnsatisfiedConditions().contains(stopCondition)); // start condition methods assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); // stop condition methods if (initialState == ServiceState.RUNNING) { assertTrue(stopCondition.initializeCalled); } else { assertFalse(stopCondition.initializeCalled); } assertTrue(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (!serviceFactory.throwExceptionFromDestroy) { // // Normal transition to STOPPED from either STARTING, RUNNING or STOPPING // assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); // verify expected events fired if (initialState != ServiceState.STOPPING) { assertNotNull(serviceMonitor.stopping); } assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); // verify events fired in the correct order if (initialState != ServiceState.STOPPING) { assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.stopped.getEventId()); } // start condition methods assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); // stop condition methods if (initialState == ServiceState.STOPPING) { assertFalse(stopCondition.initializeCalled); assertTrue(stopCondition.isSatisfiedCalled); assertTrue(stopCondition.destroyCalled); } else { assertTrue(stopCondition.initializeCalled); assertTrue(stopCondition.isSatisfiedCalled); assertTrue(stopCondition.destroyCalled); } } else { // // Throw an exception from the destroy method // assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertSame(ServiceState.STOPPED, serviceManager.getState()); // verify expected events fired if (initialState != ServiceState.STOPPING) { assertNotNull(serviceMonitor.stopping); } assertNull(serviceMonitor.waitingToStop); assertNotNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); // verify events fired in the correct order if (initialState != ServiceState.STOPPING) { assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.stopError.getEventId()); assertEquals(serviceMonitor.stopping.getEventId() + 2, serviceMonitor.stopped.getEventId()); } else { assertEquals(serviceMonitor.stopError.getEventId() + 1, serviceMonitor.stopped.getEventId()); } // verify that the exception is in the reson field assertSame(serviceFactory.destroyException, serviceMonitor.stopError.getCause()); // start condition methods assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); // stop condition methods if (initialState == ServiceState.RUNNING) { assertTrue(stopCondition.initializeCalled); } else { assertFalse(stopCondition.initializeCalled); } assertTrue(stopCondition.isSatisfiedCalled); assertTrue(stopCondition.destroyCalled); } }
if (initialState != ServiceState.STOPPING) {
if (stopStrategy == StopStrategies.FORCE) { assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.stopError.getEventId()); assertEquals(serviceMonitor.stopping.getEventId() + 2, serviceMonitor.stopped.getEventId()); } else if (initialState != ServiceState.STOPPING) {
private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); // these events should never fire in response to start assertNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNull(serviceMonitor.running); if (initialState == ServiceState.STOPPED) { // // We were alredy stopped so nothing should have happened // assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertSame(ServiceState.STOPPED, serviceManager.getState()); assertNull(serviceMonitor.stopping); assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); // start condition methods assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); // stop condition methods assertFalse(stopCondition.initializeCalled); assertFalse(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (!stopCondition.satisfied) { // // waiting to stop // assertSame(ServiceState.STOPPING, serviceManager.getState()); assertTrue(serviceManager.getStartTime() > 0); assertSame(SERVICE, serviceManager.getService()); // verify expected events fired if (initialState != ServiceState.STOPPING) { assertNotNull(serviceMonitor.stopping); } assertNotNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); // verify events fired in the correct order if (initialState != ServiceState.STOPPING) { assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.waitingToStop.getEventId()); } // our condition should be in the unsatisfied condition list assertNotNull(serviceMonitor.waitingToStop.getUnsatisfiedConditions()); assertTrue(serviceMonitor.waitingToStop.getUnsatisfiedConditions().contains(stopCondition)); // start condition methods assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertFalse(startCondition.destroyCalled); // stop condition methods if (initialState == ServiceState.RUNNING) { assertTrue(stopCondition.initializeCalled); } else { assertFalse(stopCondition.initializeCalled); } assertTrue(stopCondition.isSatisfiedCalled); assertFalse(stopCondition.destroyCalled); } else if (!serviceFactory.throwExceptionFromDestroy) { // // Normal transition to STOPPED from either STARTING, RUNNING or STOPPING // assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); // verify expected events fired if (initialState != ServiceState.STOPPING) { assertNotNull(serviceMonitor.stopping); } assertNull(serviceMonitor.waitingToStop); assertNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); // verify events fired in the correct order if (initialState != ServiceState.STOPPING) { assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.stopped.getEventId()); } // start condition methods assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); // stop condition methods if (initialState == ServiceState.STOPPING) { assertFalse(stopCondition.initializeCalled); assertTrue(stopCondition.isSatisfiedCalled); assertTrue(stopCondition.destroyCalled); } else { assertTrue(stopCondition.initializeCalled); assertTrue(stopCondition.isSatisfiedCalled); assertTrue(stopCondition.destroyCalled); } } else { // // Throw an exception from the destroy method // assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertSame(ServiceState.STOPPED, serviceManager.getState()); // verify expected events fired if (initialState != ServiceState.STOPPING) { assertNotNull(serviceMonitor.stopping); } assertNull(serviceMonitor.waitingToStop); assertNotNull(serviceMonitor.stopError); assertNotNull(serviceMonitor.stopped); assertNull(serviceMonitor.unregistered); // verify events fired in the correct order if (initialState != ServiceState.STOPPING) { assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.stopError.getEventId()); assertEquals(serviceMonitor.stopping.getEventId() + 2, serviceMonitor.stopped.getEventId()); } else { assertEquals(serviceMonitor.stopError.getEventId() + 1, serviceMonitor.stopped.getEventId()); } // verify that the exception is in the reson field assertSame(serviceFactory.destroyException, serviceMonitor.stopError.getCause()); // start condition methods assertFalse(startCondition.initializeCalled); assertFalse(startCondition.isSatisfiedCalled); assertTrue(startCondition.destroyCalled); // stop condition methods if (initialState == ServiceState.RUNNING) { assertTrue(stopCondition.initializeCalled); } else { assertFalse(stopCondition.initializeCalled); } assertTrue(stopCondition.isSatisfiedCalled); assertTrue(stopCondition.destroyCalled); } }
destroy();
destroy(StopStrategies.SYNCHRONOUS);
public void testInitializeDestroy() throws Exception { initialize(); destroy(); initialize(); destroy(); }
startException(StartStrategies.ASYNCHRONOUS); startException(StartStrategies.SYNCHRONOUS); startException(StartStrategies.UNREGISTER); startException(StartStrategies.BLOCK);
startException(StartStrategies.ASYNCHRONOUS, false); startException(StartStrategies.SYNCHRONOUS, false); startException(StartStrategies.UNREGISTER, false); startException(StartStrategies.BLOCK, false);
public void testStartException() throws Exception { startException(StartStrategies.ASYNCHRONOUS); startException(StartStrategies.SYNCHRONOUS); startException(StartStrategies.UNREGISTER); startException(StartStrategies.BLOCK); startException(StartStrategies.ASYNCHRONOUS); startException(StartStrategies.SYNCHRONOUS); startException(StartStrategies.UNREGISTER); startException(StartStrategies.BLOCK); }
startRecursive(StartStrategies.ASYNCHRONOUS); startRecursive(StartStrategies.SYNCHRONOUS); startRecursive(StartStrategies.UNREGISTER); startRecursive(StartStrategies.BLOCK);
startStop(StartStrategies.ASYNCHRONOUS, true); startStop(StartStrategies.SYNCHRONOUS, true); startStop(StartStrategies.UNREGISTER, true); startStop(StartStrategies.BLOCK, true);
public void testStartRecursive() throws Exception { startRecursive(StartStrategies.ASYNCHRONOUS); startRecursive(StartStrategies.SYNCHRONOUS); startRecursive(StartStrategies.UNREGISTER); startRecursive(StartStrategies.BLOCK); startRecursive(StartStrategies.ASYNCHRONOUS); startRecursive(StartStrategies.SYNCHRONOUS); startRecursive(StartStrategies.UNREGISTER); startRecursive(StartStrategies.BLOCK); }
startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHRONOUS); startStop(StartStrategies.UNREGISTER); startStop(StartStrategies.BLOCK);
startStop(StartStrategies.ASYNCHRONOUS, false); startStop(StartStrategies.SYNCHRONOUS, false); startStop(StartStrategies.UNREGISTER, false); startStop(StartStrategies.BLOCK, false);
public void testStartStop() throws Exception { startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHRONOUS); startStop(StartStrategies.UNREGISTER); startStop(StartStrategies.BLOCK); startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHRONOUS); startStop(StartStrategies.UNREGISTER); startStop(StartStrategies.BLOCK); }
startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS);
startWaiting(StartStrategies.ASYNCHRONOUS, false); startWaiting(StartStrategies.SYNCHRONOUS, false); startWaiting(StartStrategies.UNREGISTER, false);
public void testStartWaiting() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); }
start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS);
startWaiting(StartStrategies.ASYNCHRONOUS, false); startWaiting(StartStrategies.SYNCHRONOUS, false); startWaiting(StartStrategies.UNREGISTER, false);
public void testStartWaiting() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); }
startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); startCondition.satisfied = true; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS);
startWaitingStart(StartStrategies.ASYNCHRONOUS, false); startWaitingStart(StartStrategies.SYNCHRONOUS, false); startWaitingStart(StartStrategies.UNREGISTER, false);
public void testStartWaitingStart() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); startCondition.satisfied = true; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); startCondition.satisfied = true; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); }
start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); stopCondition.satisfied = true; stop(StopStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); stopCondition.satisfied = true; stop(StopStrategies.ASYNCHRONOUS);
waitingStop(StopStrategies.ASYNCHRONOUS); waitingStop(StopStrategies.SYNCHRONOUS); waitingStop(StopStrategies.FORCE);
public void testWaitingStop() throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); stopCondition.satisfied = true; stop(StopStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); stopCondition.satisfied = true; stop(StopStrategies.ASYNCHRONOUS); }
ResourceUtils.resButton(logoutWithStatus, "Log out with status");
ResourceUtils.resButton(logoutWithStatus, "Log Out with &status");
private void configureMenu() { // setup file menu JMenuItem exitMenuItem = new JMenuItem("Exit"); // Setup ResourceUtils ResourceUtils.resButton(connectMenu, "&" + Default.getString(Default.APPLICATION_NAME)); ResourceUtils.resButton(contactsMenu, "Con&tacts"); ResourceUtils.resButton(actionsMenu, "&Actions"); ResourceUtils.resButton(exitMenuItem, "&Exit"); ResourceUtils.resButton(pluginsMenu, "&Plugins"); exitMenuItem.setIcon(null); mainWindowBar.add(connectMenu); mainWindowBar.add(contactsMenu); mainWindowBar.add(actionsMenu); //mainWindowBar.add(pluginsMenu); mainWindowBar.add(helpMenu); preferenceMenuItem = new JMenuItem(SparkRes.getImageIcon(SparkRes.PREFERENCES_IMAGE)); preferenceMenuItem.setText("Spark Preferences"); preferenceMenuItem.addActionListener(this); connectMenu.add(preferenceMenuItem); connectMenu.addSeparator(); JMenuItem logoutMenuItem = new JMenuItem("Log Out"); ResourceUtils.resButton(logoutMenuItem, "L&og Out"); logoutMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { logout(false); } }); JMenuItem logoutWithStatus = new JMenuItem("Log Out"); ResourceUtils.resButton(logoutWithStatus, "Log out with status"); logoutWithStatus.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { logout(true); } }); if (Spark.isWindows()) { connectMenu.add(logoutMenuItem); connectMenu.add(logoutWithStatus); } connectMenu.addSeparator(); connectMenu.add(exitMenuItem); Action showTrafficAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { EnhancedDebuggerWindow window = EnhancedDebuggerWindow.getInstance(); window.setVisible(true); } }; showTrafficAction.putValue(Action.NAME, "Show Traffic Window"); showTrafficAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.TRAFFIC_LIGHT_IMAGE)); Action updateAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { checkUpdate(true); } }; updateAction.putValue(Action.NAME, "Check For Updates"); updateAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.DOWNLOAD_16x16)); // Build Help Menu helpMenu.setText("Help"); //s helpMenu.add(helpMenuItem); helpMenu.add(showTrafficAction); helpMenu.add(updateAction); helpMenu.addSeparator(); helpMenu.add(menuAbout); // ResourceUtils - Adds mnemonics ResourceUtils.resButton(preferenceMenuItem, "&Preferences"); ResourceUtils.resButton(helpMenu, "&Help"); ResourceUtils.resButton(menuAbout, "&About"); ResourceUtils.resButton(helpMenuItem, "&Online Help"); // Register shutdown with the exit menu. exitMenuItem.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { shutdown(); } }); helpMenuItem.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { try { BrowserLauncher.openURL("http://www.jivesoftware.org/community/kbcategory.jspa?categoryID=23"); } catch (IOException browserException) { Log.error("Error launching browser:", browserException); } } }); // Show About Box menuAbout.addActionListener(new AbstractAction() { public void actionPerformed(ActionEvent e) { showAboutBox(); } }); int delay = 15000; // 15 sec Date timeToRun = new Date(System.currentTimeMillis() + delay); Timer timer = new Timer(); timer.schedule(new TimerTask() { public void run() { checkUpdate(false); } }, timeToRun); }
public String getInput(String title, String description, Icon icon, Component parent) { textArea = new JTextArea(); subjectField = new JTextField(); textArea.setLineWrap(true);
public String getInput(String title, String description, Icon icon, int width, int height) { this.width = width; this.height = height;
public String getInput(String title, String description, Icon icon, Component parent) { textArea = new JTextArea(); subjectField = new JTextField(); textArea.setLineWrap(true); TitlePanel titlePanel = new TitlePanel(title, description, icon, true); // Construct main panel w/ layout. final JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); mainPanel.add(titlePanel, BorderLayout.NORTH); final JPanel centerPanel = new JPanel(new GridBagLayout()); // The user should only be able to close this dialog. final Object[] options = {"Ok", "Cancel"}; optionPane = new JOptionPane(new JScrollPane(textArea), JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null, options, options[0]); mainPanel.add(optionPane, BorderLayout.CENTER); // Let's make sure that the dialog is modal. Cannot risk people // losing this dialog. JOptionPane p = new JOptionPane(); dialog = p.createDialog(parent, title); dialog.setModal(true); dialog.pack(); dialog.setSize(width, height); dialog.setContentPane(mainPanel); dialog.setLocationRelativeTo(parent); optionPane.addPropertyChangeListener(this); // Add Key Listener to Send Field textArea.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { if (e.getKeyChar() == KeyEvent.VK_TAB) { optionPane.requestFocus(); } else if (e.getKeyChar() == KeyEvent.VK_ESCAPE) { dialog.dispose(); } } }); textArea.requestFocus(); dialog.setVisible(true); return stringValue; }
TitlePanel titlePanel = new TitlePanel(title, description, icon, true); final JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); mainPanel.add(titlePanel, BorderLayout.NORTH); final JPanel centerPanel = new JPanel(new GridBagLayout()); final Object[] options = {"Ok", "Cancel"}; optionPane = new JOptionPane(new JScrollPane(textArea), JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null, options, options[0]); mainPanel.add(optionPane, BorderLayout.CENTER); JOptionPane p = new JOptionPane(); dialog = p.createDialog(parent, title); dialog.setModal(true); dialog.pack(); dialog.setSize(width, height); dialog.setContentPane(mainPanel); dialog.setLocationRelativeTo(parent); optionPane.addPropertyChangeListener(this); textArea.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { if (e.getKeyChar() == KeyEvent.VK_TAB) { optionPane.requestFocus(); } else if (e.getKeyChar() == KeyEvent.VK_ESCAPE) { dialog.dispose(); } } }); textArea.requestFocus(); dialog.setVisible(true); return stringValue;
return getInput(title, description, icon, SparkManager.getMainWindow());
public String getInput(String title, String description, Icon icon, Component parent) { textArea = new JTextArea(); subjectField = new JTextField(); textArea.setLineWrap(true); TitlePanel titlePanel = new TitlePanel(title, description, icon, true); // Construct main panel w/ layout. final JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); mainPanel.add(titlePanel, BorderLayout.NORTH); final JPanel centerPanel = new JPanel(new GridBagLayout()); // The user should only be able to close this dialog. final Object[] options = {"Ok", "Cancel"}; optionPane = new JOptionPane(new JScrollPane(textArea), JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null, options, options[0]); mainPanel.add(optionPane, BorderLayout.CENTER); // Let's make sure that the dialog is modal. Cannot risk people // losing this dialog. JOptionPane p = new JOptionPane(); dialog = p.createDialog(parent, title); dialog.setModal(true); dialog.pack(); dialog.setSize(width, height); dialog.setContentPane(mainPanel); dialog.setLocationRelativeTo(parent); optionPane.addPropertyChangeListener(this); // Add Key Listener to Send Field textArea.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent e) { if (e.getKeyChar() == KeyEvent.VK_TAB) { optionPane.requestFocus(); } else if (e.getKeyChar() == KeyEvent.VK_ESCAPE) { dialog.dispose(); } } }); textArea.requestFocus(); dialog.setVisible(true); return stringValue; }
Reader in = getReader();
source = getReader();
public final void parse() throws IOException, TemplateException { // thread policy: // // unsynchronized code elsewhere will access _content. We must // ensure that any data copied into _content is ready for public // use--which means dealing with two subtle issues. First, the Block // created by this method must be written back to main memory BEFORE // being referenced by _content. Second, once we add it to _content, // our copy of _content has to be copied back to main memory as well. // // Therefore we synchronize around the access to _content so as to // accomplish both these things. newContent will be written to main // memory at the start of the synchronized block, and _content will // be written to main memory at the close. Block newContent = null; Map newParameters = null; Reader source = null; Map newFilters = null; try { Parser parser = getParser(); Reader in = getReader(); BlockBuilder bb = parser.parseBlock(toString(),in); in.close(); BuildContext bc = new BuildContext(_broker); newParameters = bc.getLocalVariables(); newFilters = bc.getFilters(); newContent = (Block) bb.build(bc); } catch (BuildException be) { newContent = null; _log.error("Template contained invalid data: " + be); throw be; } catch (IOException e) { newContent = null; // don't let the old one survive _log.error("Template: Could not read template: " + this); throw e; } finally { try { source.close(); } catch (Exception e) { } synchronized(this) { _parameters = newParameters; _filters = newFilters; _content = newContent; } } }
editArticleBlock.setEditView(editMode);
editArticleBlock.setEditMode(editMode);
public void initializeContent(){ //TODO Remove this and use newer localization system: FacesContext context = FacesContext.getCurrentInstance(); WFPage.loadResourceBundles(context); super.initializeContent(); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_STYLE_CLASS); tb.setId(TASKBAR_ID); add(tb); EditArticleView editArticleBlock = new EditArticleView(); tb.addTabVB(TASK_ID_EDIT, bref + "edit", editArticleBlock); tb.addTabVB(TASK_ID_DETAILS, bref + "details", new ArticleDetailView());// tb.addTabVB(TASK_ID_LIST, bref + "list", new ListArticlesBlock()); tb.addTabVB(TASK_ID_PREVIEW, bref + "preview", new ArticlePreview()); tb.setSelectedMenuItemId(TASK_ID_EDIT); //if (taskbarListener != null) { // tb.addTabListener(taskbarListener); //} String editMode = getEditMode(); if(editMode!=null){ editArticleBlock.setEditView(editMode); } }
errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceRegistered(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor) iterator.next(); try { serviceMonitor.serviceRegistered(serviceEvent); } catch (Throwable e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e)); } } if (!errors.isEmpty()) { throw new KernelErrorsError(errors); } }
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceStarting(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor) iterator.next(); try { serviceMonitor.serviceStarting(serviceEvent); } catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e)); } } if (!errors.isEmpty()) { throw new KernelErrorsError(errors); } }
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceWaitingToStart(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor) iterator.next(); try { serviceMonitor.serviceWaitingToStart(serviceEvent); } catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e)); } } if (!errors.isEmpty()) { throw new KernelErrorsError(errors); } }
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceStartError(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor) iterator.next(); try { serviceMonitor.serviceStartError(serviceEvent); } catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e)); } } if (!errors.isEmpty()) { throw new KernelErrorsError(errors); } }
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceRunning(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor) iterator.next(); try { serviceMonitor.serviceRunning(serviceEvent); } catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e)); } } if (!errors.isEmpty()) { throw new KernelErrorsError(errors); } }
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceStopping(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor) iterator.next(); try { serviceMonitor.serviceStopping(serviceEvent); } catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e)); } } if (!errors.isEmpty()) { throw new KernelErrorsError(errors); } }
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceWaitingToStop(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor) iterator.next(); try { serviceMonitor.serviceWaitingToStop(serviceEvent); } catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e)); } } if (!errors.isEmpty()) { throw new KernelErrorsError(errors); } }
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceStopError(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor) iterator.next(); try { serviceMonitor.serviceStopError(serviceEvent); } catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e)); } } if (!errors.isEmpty()) { throw new KernelErrorsError(errors); } }
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceStopped(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor) iterator.next(); try { serviceMonitor.serviceStopped(serviceEvent); } catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e)); } } if (!errors.isEmpty()) { throw new KernelErrorsError(errors); } }
} catch (Exception e) {
} catch (Throwable e) {
public void serviceUnregistered(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor) iterator.next(); try { serviceMonitor.serviceUnregistered(serviceEvent); } catch (Exception e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e)); } } if (!errors.isEmpty()) { throw new KernelErrorsError(errors); } }
serviceMonitors.put(serviceName, serviceMonitor);
serviceMonitors.put(serviceName, monitors);
public void addServiceMonitor(ServiceMonitor serviceMonitor, ServiceName serviceName) { synchronized (serviceMonitors) { Set monitors = (Set) serviceMonitors.get(serviceName); if (monitors == null) { monitors = new LinkedHashSet(); serviceMonitors.put(serviceName, serviceMonitor); } monitors.add(serviceMonitor); } }
public void load(File file) throws XmlException, IOException{
public void load(String path) throws XmlException, IOException{ IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); HttpURL root = new HttpURL(service.getWebdavServerURL()+path); root.setUserinfo("root","root"); WebdavResource webdavResource = new WebdavResource(root);
public void load(File file) throws XmlException, IOException{ ArticleDocument articleDoc; articleDoc = ArticleDocument.Factory.parse(file); ArticleDocument.Article article = articleDoc.getArticle();// ArticleItemBean articleBean = new ArticleItemBean(); setHeadline(article.getHeadline()); setBody(article.getBody()); setTeaser(article.getTeaser()); setAuthor(article.getAuthor()); setSource(article.getSource()); setComment(article.getComment()); // System.out.println("loaded "+getBody()); }
articleDoc = ArticleDocument.Factory.parse(file);
articleDoc = ArticleDocument.Factory.parse(webdavResource.getMethodDataAsString());
public void load(File file) throws XmlException, IOException{ ArticleDocument articleDoc; articleDoc = ArticleDocument.Factory.parse(file); ArticleDocument.Article article = articleDoc.getArticle();// ArticleItemBean articleBean = new ArticleItemBean(); setHeadline(article.getHeadline()); setBody(article.getBody()); setTeaser(article.getTeaser()); setAuthor(article.getAuthor()); setSource(article.getSource()); setComment(article.getComment()); // System.out.println("loaded "+getBody()); }
String category = ""; int lastSlash = path.lastIndexOf('/'); if(lastSlash>0) { category = path.substring(0,lastSlash); } setMainCategory(category);
public void load(File file) throws XmlException, IOException{ ArticleDocument articleDoc; articleDoc = ArticleDocument.Factory.parse(file); ArticleDocument.Article article = articleDoc.getArticle();// ArticleItemBean articleBean = new ArticleItemBean(); setHeadline(article.getHeadline()); setBody(article.getBody()); setTeaser(article.getTeaser()); setAuthor(article.getAuthor()); setSource(article.getSource()); setComment(article.getComment()); // System.out.println("loaded "+getBody()); }
String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty";
String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; } /* File path = new File(getMainCategory()); if(!path.exists()) { path.mkdirs();
public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) { if (getCase().getPublishedFromDate() == null) { addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY); storeOk = false; } } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment());// article.setImage(getImages());// article.setAttachment(getAttachments());// article.setRelatedItems(getRelatedContentItems()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; } try { articleDoc.save(new File("/Test/article/"+filename+".xml")); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } } return new Boolean(storeOk); }
try { articleDoc.save(new File("/Test/article/"+filename+".xml"));
*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); System.out.println("webdavServerURL = "+service.getWebdavServerURL()); System.out.println("webdavServletURL = "+getWebdavServletURL(iwuc)); System.out.println("Main category = "+getMainCategory()); HttpURL root = service.getWebdavServerURL(); root.setUserinfo("root","root"); WebdavResource webdavResource = new WebdavResource(root); boolean success = webdavResource.mkcolMethod(getWebdavServletURL(iwuc)+getMainCategory()); System.out.println("success "+success); success = webdavResource.putMethod(getWebdavServletURL(iwuc)+getMainCategory()+"/"+filename+".xml",articleDoc.toString()); System.out.println("success "+success);
public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) { if (getCase().getPublishedFromDate() == null) { addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY); storeOk = false; } } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment());// article.setImage(getImages());// article.setAttachment(getAttachments());// article.setRelatedItems(getRelatedContentItems()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; } try { articleDoc.save(new File("/Test/article/"+filename+".xml")); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } } return new Boolean(storeOk); }
public static final String createToolTip(String text) {
public static final String createToolTip(String text, int width) {
public static final String createToolTip(String text) { final String htmlColor = toHTMLColor(TOOLTIP_COLOR); final String toolTip = "<html><table bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>"; return toolTip; }
final String toolTip = "<html><table bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>";
final String toolTip = "<html><table width=" + width + " bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>";
public static final String createToolTip(String text) { final String htmlColor = toHTMLColor(TOOLTIP_COLOR); final String toolTip = "<html><table bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>"; return toolTip; }
_providers.clear();
synchronized public void shutdown() { _log.notice("shutting down"); Enumeration e = _providers.elements(); _providers.clear(); while (e.hasMoreElements()) { Provider pr = (Provider) e.nextElement(); _log.info("stopping: " + pr); pr.destroy(); } _ls.flush(); }
_providers.clear();
synchronized public void shutdown() { _log.notice("shutting down"); Enumeration e = _providers.elements(); _providers.clear(); while (e.hasMoreElements()) { Provider pr = (Provider) e.nextElement(); _log.info("stopping: " + pr); pr.destroy(); } _ls.flush(); }
public static LogSystem getInstance(String category) { synchronized (_instances) { if (category == null) return _singleton; LogSystem ls = (LogSystem) _instances.get(category); if (ls == null) { ls = new LogSystem(category); _instances.put(category, ls); } return ls; }
public static LogSystem getInstance() { return getInstance(null);
public static LogSystem getInstance(String category) { synchronized (_instances) { if (category == null) return _singleton; LogSystem ls = (LogSystem) _instances.get(category); if (ls == null) { ls = new LogSystem(category); _instances.put(category, ls); } return ls; } }
synchronized public Log getLog(String type, String description) { LogSource l = (LogSource) _logs.get(type); if (l != null) return l; l = new LogSource(_category, type, description); _logs.put(type, l); Iterator i = _targets.iterator(); while (i.hasNext()) { LogTarget lt = (LogTarget) i.next(); for (int level = LogSystem.ALL; level < LogSystem.NONE; level++) { if (lt.subscribe(_category, type, level)) { l.addTarget(lt, level); } } } if (_log != null) { _log.info("Started log " + l.getType() + ": " + l.getDescription()); } return l;
public Log getLog(String type) { return getLog(type, type);
synchronized public Log getLog(String type, String description) { LogSource l = (LogSource) _logs.get(type); if (l != null) return l; l = new LogSource(_category, type, description); _logs.put(type, l); Iterator i = _targets.iterator(); while (i.hasNext()) { LogTarget lt = (LogTarget) i.next(); for (int level = LogSystem.ALL; level < LogSystem.NONE; level++) { if (lt.subscribe(_category, type, level)) { l.addTarget(lt, level); } } } if (_log != null) { _log.info("Started log " + l.getType() + ": " + l.getDescription()); } return l; }
public void load(URL u) throws IOException { InputStream in = u.openStream(); _props.load(in); in.close();
public void load(String fileName) throws InitException, IOException { ClassLoader cl = this.getClass().getClassLoader(); URL u = cl.getResource(fileName); if (u == null) u = ClassLoader.getSystemResource(fileName); if (u == null) try { u = new URL("file:" + fileName); } catch (MalformedURLException e) { }; if (u == null) { StringBuffer error = new StringBuffer(); error.append("Unable to locate the configuration file: "); error.append(fileName); error.append("\n"); error.append("This may mean the system could not be started. The \n"); error.append("following list should be where I looked for it:\n"); error.append("\n"); error.append(" my classpath:\n"); try { buildPath(error, fileName, cl.getResources(".")); } catch (Exception e) { } error.append("\n"); error.append(" system classpath:\n"); try { buildPath(error, fileName, ClassLoader.getSystemResources(".")); } catch (Exception e) { } error.append("\n\n"); error.append("Please create an appropriate " + fileName + " at one of the above\n"); error.append("locations. Alternately this Settings class can be configured from\n"); error.append("a Properties object, if you want to modify the init code.\n"); throw new InitException(error.toString()); } load(u);
public void load(URL u) throws IOException { InputStream in = u.openStream(); _props.load(in); in.close(); }
controllers.invokeControllerMethod(methodDescriptor, e);
dispatcher.invokeControllerMethod(methodDescriptor, e);
public void handleEvent(Event e) { String methodDescriptor = srcToEvtToMethod.get(e.widget).get(e.type); controllers.invokeControllerMethod(methodDescriptor, e); }
try { if (customList.contains(StringUtils.parseBareAddress(message.getFrom()))) { cancelledNotification(message.getFrom(), ""); } } catch (Exception e) { Log.error(e); }
public void filterIncomingMessage(ChatRoom room, Message message) { // Fire Message Filters final ChatManager chatManager = SparkManager.getChatManager(); Iterator filters = chatManager.getMessageFilters().iterator(); while (filters.hasNext()) { ((MessageFilter)filters.next()).filterIncoming(room, message); } }
c = (Context) _context.clone();
c = (Context) _context.clone(); c.setPool(cpool);
final public Context getContext() { Pool cpool = (Pool) _contextCache.get(); Context c = (Context) cpool.get(); if (c == null) { c = (Context) _context.clone(); } c.setPool(cpool); return c; }
c.setPool(cpool);
else c.clear();
final public Context getContext() { Pool cpool = (Pool) _contextCache.get(); Context c = (Context) cpool.get(); if (c == null) { c = (Context) _context.clone(); } c.setPool(cpool); return c; }
c = _webContext.newInstance(req,resp);
c = _webContext.newInstance(req,resp); c.setPool(cpool);
final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { Pool cpool = (Pool) _webContextCache.get(); WebContext c = (WebContext) cpool.get(); if (c == null) { c = _webContext.newInstance(req,resp); } Context ctx = c; ctx.setPool(cpool); return c; }
Context ctx = c; ctx.setPool(cpool);
else c.reinitialize(req, resp);
final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { Pool cpool = (Pool) _webContextCache.get(); WebContext c = (WebContext) cpool.get(); if (c == null) { c = _webContext.newInstance(req,resp); } Context ctx = c; ctx.setPool(cpool); return c; }
l.mapEvent(menu, SWT.Show, TreeContextMenuController.INITIALISE_MENU);
l.mapEvent(menu, SWT.Show, TreeController.INITIALISE_CONTEXT_MENU); l.mapEvent(menu, SWT.Dispose, TreeController.DISPOSE_CONTEXT_MENU);
public TreeContextMenu(Control parent, Listener l) { // menu menu = new Menu(parent); l.mapEvent(menu, SWT.Show, TreeContextMenuController.INITIALISE_MENU); parent.setMenu(menu); // menu items addNote = createMenuItem(menu, "Add Note", l, TreeContextMenuController.ADD_NOTE); removeNotes = createMenuItem(menu, "Remove Notes", l, TreeContextMenuController.REMOVE_NOTES); renameNote = createMenuItem(menu, "Rename Note", l, TreeContextMenuController.RENAME_NOTE); }
add(scrollPane, new GridBagConstraints(0, 0, 1, 1, 0.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.VERTICAL, new Insets(5, 5, 5, 5), 0, 0));
add(scrollPane, new GridBagConstraints(0, 0, 1, 1, 0.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.VERTICAL, new Insets(5, 5, 5, 5), 30, 0));
public PreferencesPanel(Iterator preferences) { this.setLayout(new GridBagLayout()); titleLabel.setText(Res.getString("title.preferences")); titleLabel.setFont(new Font("Dialog", Font.BOLD, 15)); JScrollPane scrollPane = new JScrollPane(list); scrollPane.setPreferredSize(new Dimension(125, 0)); list.setFixedCellHeight(70); add(scrollPane, new GridBagConstraints(0, 0, 1, 1, 0.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.VERTICAL, new Insets(5, 5, 5, 5), 0, 0)); add(flowPanel, new GridBagConstraints(1, 0, 1, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0)); list.setCellRenderer(new JLabelIconRenderer()); list.addListSelectionListener(this); // Populate with current preferences while (preferences.hasNext()) { Preference preference = (Preference)preferences.next(); listModel.addElement(new PreferenceUI(preference)); } list.setSelectedIndex(0); }
case END:
final public BlockBuilder Block(Subdirective[] subdirectives) throws ParseException { ParserBlockBuilder block = new ParserBlockBuilder(); Token t; blockStack.push(subdirectives); if (jj_2_23(2147483647)) { jj_consume_token(LBRACE); EatWsNlIfNl(block); label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case BEGIN: case END: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: ; break; default: jj_la1[71] = jj_gen; break label_11; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: WMContent(block); break; case BEGIN: case END: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: t = jj_consume_token(BEGIN); break; case END: t = jj_consume_token(END); break; default: jj_la1[72] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[73] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } jj_consume_token(RBRACE); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: jj_consume_token(BEGIN); EatWsNlOrSpace(block); break; default: jj_la1[74] = jj_gen; ; } label_12: while (true) { if (jj_2_21(1)) { ; } else { break label_12; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: WMContentNoDirective(block); break; case LBRACE: case RBRACE: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: t = jj_consume_token(LBRACE); break; case RBRACE: t = jj_consume_token(RBRACE); break; default: jj_la1[75] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[76] = jj_gen; if (jj_2_22(2147483647) && (lookahead_not_breaking_subd())) { Directive(block); } else { jj_consume_token(-1); throw new ParseException(); } } } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case END: jj_consume_token(END); block.eatOneWs(); break; default: jj_la1[77] = jj_gen; ; } } blockStack.pop(); {if (true) return block;} throw new Error("Missing return statement in function"); }
case RBRACE:
final public BlockBuilder Block(Subdirective[] subdirectives) throws ParseException { ParserBlockBuilder block = new ParserBlockBuilder(); Token t; blockStack.push(subdirectives); if (jj_2_23(2147483647)) { jj_consume_token(LBRACE); EatWsNlIfNl(block); label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case BEGIN: case END: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: ; break; default: jj_la1[71] = jj_gen; break label_11; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: WMContent(block); break; case BEGIN: case END: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: t = jj_consume_token(BEGIN); break; case END: t = jj_consume_token(END); break; default: jj_la1[72] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[73] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } jj_consume_token(RBRACE); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: jj_consume_token(BEGIN); EatWsNlOrSpace(block); break; default: jj_la1[74] = jj_gen; ; } label_12: while (true) { if (jj_2_21(1)) { ; } else { break label_12; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: WMContentNoDirective(block); break; case LBRACE: case RBRACE: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: t = jj_consume_token(LBRACE); break; case RBRACE: t = jj_consume_token(RBRACE); break; default: jj_la1[75] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[76] = jj_gen; if (jj_2_22(2147483647) && (lookahead_not_breaking_subd())) { Directive(block); } else { jj_consume_token(-1); throw new ParseException(); } } } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case END: jj_consume_token(END); block.eatOneWs(); break; default: jj_la1[77] = jj_gen; ; } } blockStack.pop(); {if (true) return block;} throw new Error("Missing return statement in function"); }
case END:
final public BlockBuilder LiteralBlock() throws ParseException { ParserBlockBuilder block = new ParserBlockBuilder(); Token t; if (jj_2_20(2147483647)) { jj_consume_token(LBRACE); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case BEGIN: case END: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: ; break; default: jj_la1[63] = jj_gen; break label_9; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: LiteralWMContent(block); break; case BEGIN: case END: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: t = jj_consume_token(BEGIN); break; case END: t = jj_consume_token(END); break; default: jj_la1[64] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[65] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } jj_consume_token(RBRACE); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case BEGIN: case END: case LBRACE: case RBRACE: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: jj_consume_token(BEGIN); break; default: jj_la1[66] = jj_gen; ; } label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case LBRACE: case RBRACE: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: ; break; default: jj_la1[67] = jj_gen; break label_10; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: LiteralWMContent(block); break; case LBRACE: case RBRACE: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: t = jj_consume_token(LBRACE); break; case RBRACE: t = jj_consume_token(RBRACE); break; default: jj_la1[68] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[69] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } jj_consume_token(END); break; default: jj_la1[70] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } {if (true) return block;} throw new Error("Missing return statement in function"); }
case RBRACE:
final public BlockBuilder LiteralBlock() throws ParseException { ParserBlockBuilder block = new ParserBlockBuilder(); Token t; if (jj_2_20(2147483647)) { jj_consume_token(LBRACE); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case BEGIN: case END: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: ; break; default: jj_la1[63] = jj_gen; break label_9; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: LiteralWMContent(block); break; case BEGIN: case END: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: t = jj_consume_token(BEGIN); break; case END: t = jj_consume_token(END); break; default: jj_la1[64] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[65] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } jj_consume_token(RBRACE); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case BEGIN: case END: case LBRACE: case RBRACE: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: jj_consume_token(BEGIN); break; default: jj_la1[66] = jj_gen; ; } label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case LBRACE: case RBRACE: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: ; break; default: jj_la1[67] = jj_gen; break label_10; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: LiteralWMContent(block); break; case LBRACE: case RBRACE: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: t = jj_consume_token(LBRACE); break; case RBRACE: t = jj_consume_token(RBRACE); break; default: jj_la1[68] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[69] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } jj_consume_token(END); break; default: jj_la1[70] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } {if (true) return block;} throw new Error("Missing return statement in function"); }
case END:
final public BlockBuilder WMDocument() throws ParseException { ParserBlockBuilder block = new ParserBlockBuilder(); Token t; label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case BEGIN: case END: case LBRACE: case RBRACE: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: ; break; default: jj_la1[78] = jj_gen; break label_13; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: WMContent(block); break; case BEGIN: case END: case LBRACE: case RBRACE: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: t = jj_consume_token(BEGIN); break; case END: t = jj_consume_token(END); break; case LBRACE: t = jj_consume_token(LBRACE); break; case RBRACE: t = jj_consume_token(RBRACE); break; default: jj_la1[79] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[80] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } jj_consume_token(0); {if (true) return block;} throw new Error("Missing return statement in function"); }
case RBRACE:
final public BlockBuilder WMDocument() throws ParseException { ParserBlockBuilder block = new ParserBlockBuilder(); Token t; label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case BEGIN: case END: case LBRACE: case RBRACE: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: ; break; default: jj_la1[78] = jj_gen; break label_13; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: WMContent(block); break; case BEGIN: case END: case LBRACE: case RBRACE: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: t = jj_consume_token(BEGIN); break; case END: t = jj_consume_token(END); break; case LBRACE: t = jj_consume_token(LBRACE); break; case RBRACE: t = jj_consume_token(RBRACE); break; default: jj_la1[79] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[80] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } jj_consume_token(0); {if (true) return block;} throw new Error("Missing return statement in function"); }
if (jj_scan_token(WS)) return true;
if (jj_scan_token(BEGIN)) return true;
final private boolean jj_3R_15() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(WS)) return true;
if (jj_scan_token(LBRACE)) return true;
final private boolean jj_3R_16() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_MULT)) return true;
if (jj_scan_token(WS)) return true;
final private boolean jj_3R_18() { if (jj_scan_token(OP_MULT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_DIV)) return true;
if (jj_scan_token(WS)) return true;
final private boolean jj_3R_19() { if (jj_scan_token(OP_DIV)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(WS)) return true;
if (jj_scan_token(OP_MULT)) return true;
final private boolean jj_3R_20() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_42()) { jj_scanpos = xsp; if (jj_3R_43()) { jj_scanpos = xsp; if (jj_3R_44()) { jj_scanpos = xsp; if (jj_3R_45()) { jj_scanpos = xsp; if (jj_3R_46()) { jj_scanpos = xsp; if (jj_3R_47()) { jj_scanpos = xsp; if (jj_3R_48()) { jj_scanpos = xsp; if (jj_3R_49()) { jj_scanpos = xsp; if (jj_3R_50()) { jj_scanpos = xsp; if (jj_3R_51()) return true;
if (jj_scan_token(OP_DIV)) return true;
final private boolean jj_3R_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_42()) { jj_scanpos = xsp; if (jj_3R_43()) { jj_scanpos = xsp; if (jj_3R_44()) { jj_scanpos = xsp; if (jj_3R_45()) { jj_scanpos = xsp; if (jj_3R_46()) { jj_scanpos = xsp; if (jj_3R_47()) { jj_scanpos = xsp; if (jj_3R_48()) { jj_scanpos = xsp; if (jj_3R_49()) { jj_scanpos = xsp; if (jj_3R_50()) { jj_scanpos = xsp; if (jj_3R_51()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_42()) { jj_scanpos = xsp; if (jj_3R_43()) { jj_scanpos = xsp; if (jj_3R_44()) { jj_scanpos = xsp; if (jj_3R_45()) { jj_scanpos = xsp; if (jj_3R_46()) { jj_scanpos = xsp; if (jj_3R_47()) { jj_scanpos = xsp; if (jj_3R_48()) { jj_scanpos = xsp; if (jj_3R_49()) { jj_scanpos = xsp; if (jj_3R_50()) { jj_scanpos = xsp; if (jj_3R_51()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_PLUS)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_44()) { jj_scanpos = xsp; if (jj_3R_45()) { jj_scanpos = xsp; if (jj_3R_46()) { jj_scanpos = xsp; if (jj_3R_47()) { jj_scanpos = xsp; if (jj_3R_48()) { jj_scanpos = xsp; if (jj_3R_49()) { jj_scanpos = xsp; if (jj_3R_50()) { jj_scanpos = xsp; if (jj_3R_51()) { jj_scanpos = xsp; if (jj_3R_52()) { jj_scanpos = xsp; if (jj_3R_53()) return true;
final private boolean jj_3R_23() { if (jj_scan_token(OP_PLUS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_23() { if (jj_scan_token(OP_PLUS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_MINUS)) return true;
if (jj_scan_token(WS)) return true;
final private boolean jj_3R_24() { if (jj_scan_token(OP_MINUS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(WS)) return true;
if (jj_scan_token(OP_PLUS)) return true;
final private boolean jj_3R_25() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_21()) return true;
if (jj_scan_token(OP_MINUS)) return true;
final private boolean jj_3R_26() { if (jj_3R_21()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_52()) { jj_scanpos = xsp; if (jj_3R_53()) { jj_scanpos = xsp; if (jj_3R_54()) { jj_scanpos = xsp; if (jj_3R_55()) { jj_scanpos = xsp; if (jj_3R_56()) { jj_scanpos = xsp; if (jj_3R_57()) { jj_scanpos = xsp; if (jj_3R_58()) return true;
if (jj_3R_23()) return true;
final private boolean jj_3R_28() { Token xsp; xsp = jj_scanpos; if (jj_3R_52()) { jj_scanpos = xsp; if (jj_3R_53()) { jj_scanpos = xsp; if (jj_3R_54()) { jj_scanpos = xsp; if (jj_3R_55()) { jj_scanpos = xsp; if (jj_3R_56()) { jj_scanpos = xsp; if (jj_3R_57()) { jj_scanpos = xsp; if (jj_3R_58()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_28() { Token xsp; xsp = jj_scanpos; if (jj_3R_52()) { jj_scanpos = xsp; if (jj_3R_53()) { jj_scanpos = xsp; if (jj_3R_54()) { jj_scanpos = xsp; if (jj_3R_55()) { jj_scanpos = xsp; if (jj_3R_56()) { jj_scanpos = xsp; if (jj_3R_57()) { jj_scanpos = xsp; if (jj_3R_58()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_26()) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_54()) { jj_scanpos = xsp; if (jj_3R_55()) { jj_scanpos = xsp; if (jj_3R_56()) { jj_scanpos = xsp; if (jj_3R_57()) { jj_scanpos = xsp; if (jj_3R_58()) { jj_scanpos = xsp; if (jj_3R_59()) { jj_scanpos = xsp; if (jj_3R_60()) return true;
final private boolean jj_3R_30() { if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_30() { if (jj_3R_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(WS)) return true;
if (jj_3R_28()) return true;
final private boolean jj_3R_32() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_30()) return true;
if (jj_scan_token(WS)) return true;
final private boolean jj_3R_33() { if (jj_3R_30()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(WS)) return true;
if (jj_3R_32()) return true;
final private boolean jj_3R_35() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_33()) return true;
if (jj_scan_token(WS)) return true;
final private boolean jj_3R_36() { if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(DOLLAR)) return true;
if (jj_scan_token(WS)) return true;
final private boolean jj_3R_37() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(LPAREN)) return true;
if (jj_3R_35()) return true;
final private boolean jj_3R_38() { if (jj_scan_token(LPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_59()) return true;
if (jj_scan_token(DOLLAR)) return true;
final private boolean jj_3R_39() { if (jj_3R_59()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_60()) { jj_scanpos = xsp; if (jj_3R_61()) return true;
if (jj_scan_token(LPAREN)) return true;
final private boolean jj_3R_40() { Token xsp; xsp = jj_scanpos; if (jj_3R_60()) { jj_scanpos = xsp; if (jj_3R_61()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_40() { Token xsp; xsp = jj_scanpos; if (jj_3R_60()) { jj_scanpos = xsp; if (jj_3R_61()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_62()) return true;
if (jj_3R_61()) return true;
final private boolean jj_3R_41() { if (jj_3R_62()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_42() { if (jj_3R_63()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(LPAREN)) return true;
if (jj_3R_64()) return true;
final private boolean jj_3R_43() { if (jj_scan_token(LPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_64()) return true;
if (jj_3R_65()) return true;
final private boolean jj_3R_44() { if (jj_3R_64()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_65()) return true;
if (jj_scan_token(LPAREN)) return true;
final private boolean jj_3R_45() { if (jj_3R_65()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(NULL)) return true;
if (jj_3R_66()) return true;
final private boolean jj_3R_46() { if (jj_scan_token(NULL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(TRUE)) return true;
if (jj_3R_67()) return true;
final private boolean jj_3R_47() { if (jj_scan_token(TRUE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(FALSE)) return true;
if (jj_scan_token(NULL)) return true;
final private boolean jj_3R_48() { if (jj_scan_token(FALSE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_NOT)) return true;
if (jj_scan_token(TRUE)) return true;
final private boolean jj_3R_49() { if (jj_scan_token(OP_NOT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(NUMBER)) return true;
if (jj_scan_token(FALSE)) return true;
final private boolean jj_3R_50() { if (jj_scan_token(NUMBER)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_MINUS)) return true;
if (jj_scan_token(OP_NOT)) return true;
final private boolean jj_3R_51() { if (jj_scan_token(OP_MINUS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_EQ)) return true;
if (jj_scan_token(NUMBER)) return true;
final private boolean jj_3R_52() { if (jj_scan_token(OP_EQ)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_SET)) return true;
if (jj_scan_token(OP_MINUS)) return true;
final private boolean jj_3R_53() { if (jj_scan_token(OP_SET)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_NE)) return true;
if (jj_scan_token(OP_EQ)) return true;
final private boolean jj_3R_54() { if (jj_scan_token(OP_NE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_GT)) return true;
if (jj_scan_token(OP_SET)) return true;
final private boolean jj_3R_55() { if (jj_scan_token(OP_GT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_GE)) return true;
if (jj_scan_token(OP_NE)) return true;
final private boolean jj_3R_56() { if (jj_scan_token(OP_GE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_LE)) return true;
if (jj_scan_token(OP_GT)) return true;
final private boolean jj_3R_57() { if (jj_scan_token(OP_LE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_LT)) return true;
if (jj_scan_token(OP_GE)) return true;
final private boolean jj_3R_58() { if (jj_scan_token(OP_LT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_66()) { jj_scanpos = xsp; if (jj_3R_67()) { jj_scanpos = xsp; if (jj_3R_68()) { jj_scanpos = xsp; if (jj_3R_69()) { jj_scanpos = xsp; if (jj_3R_70()) return true;
if (jj_scan_token(OP_LE)) return true;
final private boolean jj_3R_59() { Token xsp; xsp = jj_scanpos; if (jj_3R_66()) { jj_scanpos = xsp; if (jj_3R_67()) { jj_scanpos = xsp; if (jj_3R_68()) { jj_scanpos = xsp; if (jj_3R_69()) { jj_scanpos = xsp; if (jj_3R_70()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_59() { Token xsp; xsp = jj_scanpos; if (jj_3R_66()) { jj_scanpos = xsp; if (jj_3R_67()) { jj_scanpos = xsp; if (jj_3R_68()) { jj_scanpos = xsp; if (jj_3R_69()) { jj_scanpos = xsp; if (jj_3R_70()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(LBRACE)) return true;
if (jj_scan_token(OP_LT)) return true;
final private boolean jj_3R_60() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(RBRACE)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_68()) { jj_scanpos = xsp; if (jj_3R_69()) { jj_scanpos = xsp; if (jj_3R_70()) { jj_scanpos = xsp; if (jj_3R_71()) { jj_scanpos = xsp; if (jj_3R_72()) return true;
final private boolean jj_3R_61() { if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_61() { if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }