rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
throw new InvalidContextException(warning); | throw new ContextException(warning); | final Object getValue(Context context) throws InvalidContextException { try { return context.getTool(_names); } catch (Exception e) { Engine.log.exception(e); String warning = "Variable: unable to access " + this + ";"; throw new InvalidContextException(warning); ... |
throws InvalidContextException | throws ContextException | final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.g... |
throw new InvalidContextException("No method to set \"" + _vname + | throw new ContextException("No method to set \"" + _vname + | final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.g... |
throw new InvalidContextException(warning); | throw new ContextException(warning); | final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.g... |
note.getParent().removeNote(note); | note.getHolder().removeNote(note); | public void deleteSelfAndChildren() { for (DisplayedNote child : children) { child.deleteSelfAndChildren(); } treeNode.dispose(); if (tab != null) tab.dispose(); note.getParent().removeNote(note); } |
String name = pType; | public void addProvider(Provider p, String pType) throws InitException { String name = pType; if (pType == null || pType.equals("")) pType = p.getType(); p.init(this, _config); _providers.put(pType, p); _log.info("Loaded provider " + p); if (!pType.equals(p.getType())) _... | |
workspacePane.setActiveButtonBold(true); cardLayout = new CardLayout(); cardPanel = new JPanel(cardLayout); cardPanel.setOpaque(false); cardPanel.add(WORKSPACE_PANE, workspacePane); | private Workspace() { MainWindow mainWindow = SparkManager.getMainWindow(); // Add MainWindow listener mainWindow.addMainWindowListener(new MainWindowListener() { public void shutdown() { // Close all Chats. final Iterator chatRooms = SparkManager.getCha... | |
add(workspacePane, new GridBagConstraints(0, 9, 1, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(4, 4, 4, 4), 0, 0)); | add(cardPanel, new GridBagConstraints(0, 9, 1, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(4, 4, 4, 4), 0, 0)); | private Workspace() { MainWindow mainWindow = SparkManager.getMainWindow(); // Add MainWindow listener mainWindow.addMainWindowListener(new MainWindowListener() { public void shutdown() { // Close all Chats. final Iterator chatRooms = SparkManager.getCha... |
workspacePane.setActiveButtonBold(true); | private Workspace() { MainWindow mainWindow = SparkManager.getMainWindow(); // Add MainWindow listener mainWindow.addMainWindowListener(new MainWindowListener() { public void shutdown() { // Close all Chats. final Iterator chatRooms = SparkManager.getCha... | |
if ((0xa7ffe06000000000L & l) == 0L) | if ((0xa7ffec6000000000L & l) == 0L) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 53; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... |
if ((0xa7ffe06000000000L & l) != 0L) | if ((0xa7ffec6000000000L & l) != 0L) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 53; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... |
ForUpdate(); | forUpdate(); | final private void ForStatement() throws ParseException { jj_consume_token(FOR); jj_consume_token(LPAREN); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case ASSERT: case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FALSE: case FINAL: case FLOAT: case INT: case LONG: case NEW: case NULL... |
_sFunction = "." + new String(getToken(1).image); | _sFunction = "." + getToken(1).image; | final private void MethodDeclarator() throws ParseException { _sFunction = "." + new String(getToken(1).image); Identifier(); FormalParameters(); _sFunction += _sParameter; label_20: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACKET: break; default: jj_la1[45] = jj_gen;... |
_sName = new String(getToken(0).image); | _sName = getToken(0).image; | final private void Name() throws ParseException { Identifier(); _sName = new String(getToken(0).image); label_25: while (true) { if (jj_2_15(2)) { } else { break label_25; } jj_consume_token(DOT); Identifier(); _sName += "." + (new String(getToken(0).image)); } } |
_sName += "." + (new String(getToken(0).image)); | _sName += "." + getToken(0).image; | final private void Name() throws ParseException { Identifier(); _sName = new String(getToken(0).image); label_25: while (true) { if (jj_2_15(2)) { } else { break label_25; } jj_consume_token(DOT); Identifier(); _sName += "." + (new String(getToken(0).image)); } } |
_sPackage = (new String(_sName)) + "."; | _sPackage = _sName + "."; | final private void PackageDeclaration() throws ParseException { jj_consume_token(PACKAGE); Name(); jj_consume_token(SEMICOLON); getToken(0); getToken(0); _sPackage = (new String(_sName)) + "."; } |
BreakStatement(); | breakStatement(); | final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_... |
ContinueStatement(); | continueStatement(); | final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_... |
ReturnStatement(); | returnStatement(); | final private void Statement() throws ParseException { _bReturn = false; if (jj_2_34(2)) { LabeledStatement(); } else { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case LBRACE: Block(); break; case SEMICOLON: EmptyStatement(); break; default: jj_la1[104] = jj_gen; if (jj_... |
_sName = (new String(getToken(0).image)); | _sName = getToken(0).image; | final private void Type() throws ParseException { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FLOAT: case INT: case LONG: case SHORT: PrimitiveType(); _sName = (new String(getToken(0).image)); break; case ASSERT: case IDENTIFIER: ... |
_sClass += new String(getToken(2).image); | _sClass += getToken(2).image; | final private void UnmodifiedClassDeclaration() throws ParseException { String sOldClass = _sClass; int oldFunctions = _functions; if (!_sClass.equals("")) { _sClass += "."; } _sClass += new String(getToken(2).image); jj_consume_token(CLASS); Identifier(); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { ca... |
_sClass += new String(getToken(2).image); | _sClass += getToken(2).image; | final private void UnmodifiedInterfaceDeclaration() throws ParseException { String sOldClass = _sClass; int oldFunctions = _functions; if (!_sClass.equals("")) { _sClass += "."; } _sClass += new String(getToken(2).image); jj_consume_token(INTERFACE); Identifier(); switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)... |
curChar = input_stream.BeginToken(); | curChar = input_stream.beginToken(); | public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re... |
error_after = curPos <= 1 ? "" : input_stream.GetImage(); | error_after = curPos <= 1 ? "" : input_stream.getImage(); | public final Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop: for (;;) { try { curChar = input_stream.BeginToken(); } catch (java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; re... |
loadTools("Tools"); | loadTools("ContextTools"); | protected void init () throws InitException { String eehClass; // Initialize the property operator cache _propertyOperators.init(this, _config); // Write out our properties as debug records if (_log.loggingDebug()) { String[] properties = _config.getKeys(); ... |
} | public static ProjectData getGlobalProjectData() { if (globalProjectData != null) return globalProjectData; File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Read projectData from the serialized file. if (dataFile.isFile()) { //System.out.println("Cobertura: Loading global project data from " +... | |
while (o instanceof Macro) | while (o instanceof Macro && o != UndefinedMacro.getInstance()) | public Object evaluate (Context context) throws PropertyException { Object o = _object; // evaluate the _object reference down to its base object while (o instanceof Macro) o = ((Macro) o).evaluate(context); if (o == null) { // the Variable to check isn't ... |
if (o == null) | if (o == null || o == UndefinedMacro.getInstance()) | public Object evaluate (Context context) throws PropertyException { Object o = _object; // evaluate the _object reference down to its base object while (o instanceof Macro) o = ((Macro) o).evaluate(context); if (o == null) { // the Variable to check isn't ... |
Connection conn, String sql, int maxRows) throws SQLException | Connection conn, String sql) throws SQLException | public static ResultSetDataTable create( Connection conn, String sql, int maxRows) throws SQLException { return create(conn, sql, maxRows, 0); } |
return create(conn, sql, maxRows, 0); | return create(conn, sql, DEFAULT_MAX_ROWS, 0); | public static ResultSetDataTable create( Connection conn, String sql, int maxRows) throws SQLException { return create(conn, sql, maxRows, 0); } |
delegate.parseCustomElement(root, false); | try { try { Method m = BeanDefinitionParserDelegate.class.getMethod("parseCustomElement", new Class[] { Element.class }); m.invoke(delegate, new Object[] { root }); } catch (NoSuchMethodException e) { try { Method m = BeanDefinitionParserDelegate.class.getMethod("parseCustomElement", new Class[] { Element.class, boolea... | protected void parseBeanDefinitions(Element root, BeanDefinitionParserDelegate delegate) { String namespaceUri = root.getNamespaceURI(); if (!DomUtils.nodeNameEquals(root, "beans") && !delegate.isDefaultNamespace(namespaceUri)) { delegate.parseCustomElement(root, false); ... |
registerEditor("java.util.Date", "org.apache.xbean.spring.context.impl.DateEditor"); | public static void registerCustomEditors() { registerEditor("java.io.File", "org.apache.xbean.spring.context.impl.FileEditor"); registerEditor("java.net.URI", "org.apache.xbean.spring.context.impl.URIEditor"); registerEditor("javax.management.ObjectName", "org.apache.xbean.spring.context.impl.O... | |
if ((0x87ffe06000000000L & l) == 0L) | if ((0xa7ffe06000000000L & l) == 0L) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... |
if ((0x87ffe06000000000L & l) != 0L) | if ((0xa7ffe06000000000L & l) != 0L) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... |
connection = new XMPPConnection(serverName); | connection = new SSLXMPPConnection(serverName); | private boolean login() { final SessionManager sessionManager = SparkManager.getSessionManager(); boolean hasErrors = false; String errorMessage = null; // Handle specifyed Workgroup String serverName = getServerName(); if (!hasErrors) { ... |
connection = new XMPPConnection(localPref.getXmppHost(), port, serverName); | connection = new SSLXMPPConnection(localPref.getXmppHost(), port, serverName); | private boolean login() { final SessionManager sessionManager = SparkManager.getSessionManager(); boolean hasErrors = false; String errorMessage = null; // Handle specifyed Workgroup String serverName = getServerName(); if (!hasErrors) { ... |
Log.error(e); | public void initialize() { ProviderManager.addExtensionProvider("phone-event", "http://jivesoftware.com/xmlns/phone", new PhoneEventPacketExtensionProvider()); ProviderManager.addIQProvider("phone-action", "http://jivesoftware.com/xmlns/phone", new PhoneActionIQProvider()); final XMPPConnection... | |
Log.error(e); | public Object construct() { try { phoneClient = new PhoneClient(con); // Add BaseListener phoneClient.addEventListener(new PhoneListener()); } catch (Exception e) { // Ignore because the ... | |
for (Transport transport : TransportManager.getTransports()) { if (TransportManager.isRegistered(SparkManager.getConnection(), transport)) { | for (Transport transport : TransportUtils.getTransports()) { if (TransportUtils.isRegistered(SparkManager.getConnection(), transport)) { | public List<AccountItem> getAccounts() { List<AccountItem> list = new ArrayList<AccountItem>(); for (Transport transport : TransportManager.getTransports()) { if (TransportManager.isRegistered(SparkManager.getConnection(), transport)) { AccountItem item = new AccountItem(tran... |
configureMenu(); | buildMenu(); | private MainWindow(String title, ImageIcon icon) { // Initialize and dock the menus configureMenu(); // Add Workspace Container getContentPane().setLayout(new BorderLayout()); // Add menubar this.setJMenuBar(mainWindowBar); this.getContentPane().add(topBar, BorderLay... |
checkUpdate(false); | checkForUpdates(false); | public void run() { checkUpdate(false); } |
checkUpdate(true); | checkForUpdates(true); | public void actionPerformed(ActionEvent actionEvent) { checkUpdate(true); } |
String status = inputTextDialog.getInput("Status Message", "Let others know your current status or activity.", | String status = inputTextDialog.getInput(Res.getString("title.status.message"), Res.getString("message.current.status"), | public void logout(boolean sendStatus) { final XMPPConnection con = SparkManager.getConnection(); if (con.isConnected() && sendStatus) { final InputTextAreaDialog inputTextDialog = new InputTextAreaDialog(); String status = inputTextDialog.getInput("Status Message", "Let others k... |
try { serviceFactory.destroyService(standardServiceContext); } catch (Throwable e) { serviceMonitor.serviceStopError(createErrorServiceEvent(e)); | if (service != null) { try { serviceFactory.destroyService(standardServiceContext); } catch (Throwable e) { serviceMonitor.serviceStopError(createErrorServiceEvent(e)); } | public void destroy(StopStrategy stopStrategy) throws IllegalServiceStateException, UnsatisfiedConditionsException { // if we are not restartable, we need to stop try { if (!stop(stopStrategy)) { throw new IllegalServiceStateException("Service did not stop", serviceName); ... |
if (startConditions != null) { List errors = startConditions.destroy(); | if (startCondition != null) { List errors = startCondition.destroy(); | private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ... |
startConditions = null; | startCondition = null; | private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ... |
if (stopConditions != null) { List errors = stopConditions.destroy(); | if (stopCondition != null) { List errors = stopCondition.destroy(); | private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ... |
stopConditions = null; | stopCondition = null; | private void destroyAllConditions(ServiceMonitor monitor) { if (!lock.isHeldByCurrentThread()) { throw new IllegalStateException("Current thread must hold lock before calling destroyAllConditions"); } if (startConditions != null) { List errors = startConditions.destroy(); ... |
stopConditions = new NonRestartableStopConditions(kernel, serviceName, classLoader, serviceFactory.getStartConditions(), lock, serviceFactory); | stopCondition = new NonRestartableStopCondition(kernel, serviceName, classLoader, lock, serviceFactory); | public void initialize() throws IllegalServiceStateException, UnsatisfiedConditionsException, Exception { if (!serviceFactory.isRestartable() && !serviceFactory.isEnabled()) { throw new IllegalServiceStateException("A disabled non-restartable service factory can not be initalized", serviceName); ... |
synchronized (serviceFactory) { state = ServiceState.STARTING; startConditions = new AggregateConditions(kernel, serviceName, classLoader, serviceFactory.getStartConditions(), lock); } | public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))... | |
startConditions.initialize(); | startCondition = new AggregateCondition(kernel, serviceName, classLoader, lock, serviceFactory.getStartConditions()); startCondition.initialize(); | public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))... |
Set unsatisfiedConditions = startConditions.getUnsatisfied(); | Set unsatisfiedConditions = startCondition.getUnsatisfied(); | public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))... |
startConditions.awaitSatisfaction(); | startCondition.awaitSatisfaction(); | public void start(boolean recursive, StartStrategy startStrategy) throws IllegalServiceStateException, UnregisterServiceException, UnsatisfiedConditionsException, Exception { // verify that it is possible to start this service in the current state before obtaining the lock if (!verifyStartable(state))... |
if (stopConditions == null) { synchronized (serviceFactory) { state = ServiceState.STOPPING; stopConditions = new AggregateConditions(kernel, serviceName, classLoader, serviceFactory.getStopConditions(), lock); } | if (stopCondition == null) { | public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"... |
stopConditions.initialize(); | stopCondition = new AggregateCondition(kernel, serviceName, classLoader, lock, serviceFactory.getStopConditions()); stopCondition.initialize(); | public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"... |
Set unsatisfiedConditions = stopConditions.getUnsatisfied(); | Set unsatisfiedConditions = stopCondition.getUnsatisfied(); | public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"... |
stopConditions.awaitSatisfaction(); | stopCondition.awaitSatisfaction(); | public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"... |
try { serviceFactory.destroyService(standardServiceContext); } catch (Throwable e) { serviceMonitor.serviceStopError(createErrorServiceEvent(e)); | if (service != null) { try { serviceFactory.destroyService(standardServiceContext); } catch (Throwable e) { serviceMonitor.serviceStopError(createErrorServiceEvent(e)); } | public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"... |
workspace.getWorkspacePane().addTab("Contacts", SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); | workspace.getWorkspacePane().addTab(Res.getString("tab.contacts"), SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); | private void addContactListToWorkspace() { Workspace workspace = SparkManager.getWorkspace(); workspace.getWorkspacePane().addTab("Contacts", SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); //NOTRANS // Add To Contacts Menu final JMenu contactsMenu = SparkManager.getMainWin... |
final JMenu contactsMenu = SparkManager.getMainWindow().getMenuByName("Contacts"); | final JMenu contactsMenu = SparkManager.getMainWindow().getMenuByName(Res.getString("menuitem.contacts")); | private void addContactListToWorkspace() { Workspace workspace = SparkManager.getWorkspace(); workspace.getWorkspacePane().addTab("Contacts", SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); //NOTRANS // Add To Contacts Menu final JMenu contactsMenu = SparkManager.getMainWin... |
ResourceUtils.resButton(addContactsMenu, "&Add Contact"); ResourceUtils.resButton(addContactGroupMenu, "Add Contact &Group"); | ResourceUtils.resButton(addContactsMenu, Res.getString("menuitem.add.contact")); ResourceUtils.resButton(addContactGroupMenu, Res.getString("menuitem.add.contact.group")); | private void addContactListToWorkspace() { Workspace workspace = SparkManager.getWorkspace(); workspace.getWorkspacePane().addTab("Contacts", SparkRes.getImageIcon(SparkRes.SMALL_ALL_CHATS_IMAGE), this); //NOTRANS // Add To Contacts Menu final JMenu contactsMenu = SparkManager.getMainWin... |
ResourceUtils.resButton(incomingMessageBox, "&Play sound when new message arrives"); ResourceUtils.resButton(outgoingMessageBox, "&Play sound when a message is sent"); ResourceUtils.resButton(userOfflineCheckbox, "&Play sound when user goes offline"); | ResourceUtils.resButton(incomingMessageBox, "Play sound when new message &arrives"); ResourceUtils.resButton(outgoingMessageBox, "Play sound when a message is &sent"); ResourceUtils.resButton(userOfflineCheckbox, "Play sound when user goes &offline"); | public SoundPanel() { setLayout(new GridBagLayout()); // Add ResourceUtils ResourceUtils.resButton(incomingMessageBox, "&Play sound when new message arrives"); ResourceUtils.resButton(outgoingMessageBox, "&Play sound when a message is sent"); ResourceUtils.... |
final Image backgroundImage = SparkRes.getImageIcon(SparkRes.STICKY_NOTE_IMAGE).getImage(); | private void retrieveNotes() { final PrivateNotes privateNotes = PrivateNotes.getPrivateNotes(); String text = privateNotes.getNotes(); final JLabel titleLabel = new JLabel("Notepad"); titleLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.LIGHT_GRAY)); titleLabel.... | |
frame.setUndecorated(true); titleLabel.addMouseMotionListener(new DragWindowAdapter(frame)); final JPanel mainPanel = new JPanel() { public void paintComponent(Graphics g) { double scaleX = getWidth() / (double)backgroundImage.getWidth(null); double scaleY = getHeight() / (double)backgroundImage.getHeight(null); Affine... | final JPanel mainPanel = new JPanel(); | private void retrieveNotes() { final PrivateNotes privateNotes = PrivateNotes.getPrivateNotes(); String text = privateNotes.getNotes(); final JLabel titleLabel = new JLabel("Notepad"); titleLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.LIGHT_GRAY)); titleLabel.... |
mainPanel.add(titleLabel, new GridBagConstraints(0, 0, 3, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); | private void retrieveNotes() { final PrivateNotes privateNotes = PrivateNotes.getPrivateNotes(); String text = privateNotes.getNotes(); final JLabel titleLabel = new JLabel("Notepad"); titleLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.LIGHT_GRAY)); titleLabel.... | |
String text = pane.getText(); privateNotes.setNotes(text); PrivateNotes.savePrivateNotes(privateNotes); | public void actionPerformed(ActionEvent actionEvent) { frame.dispose(); // Save it. String text = pane.getText(); privateNotes.setNotes(text); PrivateNotes.savePrivateNotes(privateNotes); } | |
assert (!WebMacro.VERSION.equals("@BUILD_DATE")); | assert (!WebMacro.BUILD_DATE.equals("@BUILD_DATE@")); | public void testBuildDate() throws Exception { assert (!WebMacro.VERSION.equals("@BUILD_DATE")); } |
{ return requst_.getRealPath("/"); } | { return sc_.getRealPath("/"); } | final public String getDOCUMENT_ROOT() { return requst_.getRealPath("/"); } |
String articlePath = getArticlePath(); return ContentUtil.getParentPath(articlePath); | String articlePath = getResourcePath(); if(articlePath!=null){ return ContentUtil.getParentPath(ContentUtil.getParentPath(articlePath)); } else { return null; } | public String getFolderLocation() { String articlePath = getArticlePath(); return ContentUtil.getParentPath(articlePath); } |
moveToOfflineGroup(bareJID); | presence = roster.getPresence(bareJID); if (presence == null) { moveToOfflineGroup(bareJID); } | private void updateUserPresence(Presence presence) { if (presence == null) { return; } Roster roster = SparkManager.getConnection().getRoster(); final String bareJID = StringUtils.parseBareAddress(presence.getFrom()); RosterEntry entry = roster.getEntry(bareJID); ... |
XmlBeanDefinitionReader beanDefinitionReader = createBeanDefinitionReader(beanFactory); | XmlBeanDefinitionReader beanDefinitionReader = XBeanHelper.createBeanDefinitionReader(this, beanFactory, xmlPreprocessors); | protected void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) throws IOException { // Create a new XmlBeanDefinitionReader for the given BeanFactory. XmlBeanDefinitionReader beanDefinitionReader = createBeanDefinitionReader(beanFactory); // Configure the bean definition reader with... |
ArticleListBean a = new ArticleListBean(articleItemBean[i].getFolderLocation()+"/"+articleItemBean[i].getHeadline()+".xml", articleItemBean[i].getHeadline(), articleItemBean[i].getItemType(), articleItemBean[i].getAuthor(), articleItemBean[i].getStatus()); | ArticleListBean a = new ArticleListBean(articleItemBean[i].getFolderLocation()+"/"+articleItemBean[i].getHeadline()+ArticleItemBean.ARTICLE_SUFFIX, articleItemBean[i].getHeadline(), articleItemBean[i].getItemType(), articleItemBean[i].getAuthor(), articleItemBean[i].getStatus()); | public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = 0; ArticleItemBean[] articleItemBean; try { articleItemBean = (ArticleItemBean[])loadAllArticlesInFolder(ContentUtil.ARTICLE_PATH).toArray(new ArticleItemBean[0]); avail... |
Logger.logError(e.getMessage(), e); | Log.error(e.getMessage(), e); | private NSImage getImage(String image) { InputStream in = this.getClass().getResourceAsStream(image); ByteArrayOutputStream out = new ByteArrayOutputStream(); byte[] buff = new byte[10 * 1024]; int len; try { while ((len = in.read(buff)) != -1) { out.writ... |
WFErrorMessages em = new WFErrorMessages(); em.addErrorMessage(SEARCH_PUBLISHED_FROM_ID); em.addErrorMessage(SEARCH_PUBLISHED_TO_ID); | WFMessages em = new WFMessages(); em.addMessageToDisplay(SEARCH_PUBLISHED_FROM_ID); em.addMessageToDisplay(SEARCH_PUBLISHED_TO_ID); | private UIComponent getSearchPanel() { String ref = SEARCH_ARTICLE_BEAN_ID + "."; WFContainer mainContainer = new WFContainer(); WFErrorMessages em = new WFErrorMessages(); em.addErrorMessage(SEARCH_PUBLISHED_FROM_ID); em.addErrorMessage(SEARCH_PUBLISHED_TO_ID); mainContainer.add(em); HtmlPanelGrid p = WFPane... |
clazz = new Clazz("HelloWorld"); | clazz = new Clazz("HelloWorld", new CoverageData()); | public static void testClazz() { Clazz clazz; clazz = new Clazz("HelloWorld"); assertEquals("HelloWorld", clazz.getName()); assertEquals("", clazz.getPackageName()); assertEquals("HelloWorld.java", clazz.getLongFileName()); assertEquals("HelloWorld", clazz.getLongName()); assertEquals(0, clazz.getBranchCoverage... |
clazz = new Clazz("com.example.HelloWorld"); | clazz = new Clazz("com.example.HelloWorld", new CoverageData()); | public static void testClazz() { Clazz clazz; clazz = new Clazz("HelloWorld"); assertEquals("HelloWorld", clazz.getName()); assertEquals("", clazz.getPackageName()); assertEquals("HelloWorld.java", clazz.getLongFileName()); assertEquals("HelloWorld", clazz.getLongName()); assertEquals(0, clazz.getBranchCoverage... |
new Clazz(null); | new Clazz(null, new CoverageData()); | public static void testClazz() { Clazz clazz; clazz = new Clazz("HelloWorld"); assertEquals("HelloWorld", clazz.getName()); assertEquals("", clazz.getPackageName()); assertEquals("HelloWorld.java", clazz.getLongFileName()); assertEquals("HelloWorld", clazz.getLongName()); assertEquals(0, clazz.getBranchCoverage... |
Object value = getValue(getElementText(childElement), null); | Element valueElement = getFirstChildElement(childElement); Object value; if (valueElement != null) { value = parsePropertySubElement(valueElement, ""); } else { value = getElementText(childElement); } | protected Object parseCustomMapElement(MappingMetaData metadata, Element element, String name) { Map map = new HashMap(); Element parent = (Element) element.getParentNode(); String entryName = metadata.getMapEntryName(getLocalName(parent), name); String keyName = metadata.getMapKeyName(g... |
final VCardPanel vcardPanel = new VCardPanel(getParticipantJID()); getToolBar().add(vcardPanel, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); | SwingWorker worker = new SwingWorker() { public Object construct() { return SparkManager.getVCardManager().getVCard(participantJID); } public void finished() { final VCard vcard = (VCard)get(); if (vcard == null) { return; } final VCardPanel vcardPanel = new VCardPanel(vcard, participantJID); getToolBar().add(vcard... | public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participa... |
flatCollections); | flatCollections, superClasses, interfaces); | private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... |
assertStringTemplateEquals (tmpl, "pass"); | assertStringTemplateEquals (tmpl, "pass\n"); | public void testBeginEnd () throws Exception { String tmpl = "#if (true) #begin pass #end #else #begin fail #end"; assertStringTemplateEquals (tmpl, "pass"); tmpl = "#if (true)\n #begin pass\n #end\n #else\n #begin fail\n #end"; assertStringTemplateEquals (tmpl, "pass"); } |
text = removeAbsoluteReferences(text); | protected String prettify(String toPrettify) { String text = toPrettify; if(text!=null){ //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); tidy.setShowWarnings(false); tidy.setCharEncoding(Configuration.UTF8); ByteArrayInputStream bais; try { bais ... | |
if (!wiki.containsPage(pageName)) throw new PageActionException ("That page does not exist"); | public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageActionException { String pageName = wc.getForm ("jump"); pageName = WikiUtil.guessWikiTitle(pageName, wiki); if (!wiki.containsPage(pageName)) throw new PageActionException ("That page does n... | |
URL url = SparkManager.getVCardManager().getAvatar(SparkManager.getSessionManager().getJID()); | URL url = SparkManager.getVCardManager().getAvatar(participantJID); | public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(participantJID... |
final ChatPreferences pref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); | LocalPreferences pref = SettingsManager.getLocalPreferences(); | private void createRoom() { ConferenceCreator mucRoomDialog = new ConferenceCreator(); final MultiUserChat groupChat = mucRoomDialog.createGroupChat(SparkManager.getMainWindow(), serviceName); final ChatPreferences pref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(Ch... |
EqualCondition(Condition l, Condition r) { _l = l; _r = r; } | EqualCondition(Macro l, Macro r) { _l = l; _r = r; } | EqualCondition(Condition l, Condition r) { _l = l; _r = r; } |
boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); | boolean lmacro = (l instanceof Macro); boolean rmacro = (r instanceof Macro); | public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (... |
if (!lcond && !rcond) { | if (!lmacro && !rmacro) { | public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (... |
if (lcond && rcond) { return new EqualCondition((Condition) l, (Condition) r); | if (lmacro && rmacro) { return new EqualCondition((Macro) l, (Macro) r); | public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (... |
if (lcond) { return new EqualConstantCondition((Condition) l, r); | if (lmacro) { return new EqualConstantCondition((Macro) l, r); | public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (... |
return new EqualConstantCondition((Condition) r, l); | return new EqualConstantCondition((Macro) r, l); | public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (... |
EqualConstantCondition(Condition l, Object r) { _l = l; _r = r; } | EqualConstantCondition(Macro l, Object r) { _l = l; _r = r; } | EqualConstantCondition(Condition l, Object r) { _l = l; _r = r; } |
public SetDirective(Variable target, Object result) { this.target = target; this.result = result; } | public SetDirective() {} | public SetDirective(Variable target, Object result) { this.target = target; this.result = result; } |
_tools = null; | public Context(final Broker broker) { _broker = broker; _bean = null; _tools = null; _toolbox = null; _locals = null; } | |
_locals = null; | public Context(final Broker broker) { _broker = broker; _bean = null; _tools = null; _toolbox = null; _locals = null; } | |
protected Object clone() { | public Object clone() { Context c = null; | protected Object clone() { try { return super.clone(); } catch (CloneNotSupportedException cnse) { return null; } } |
return super.clone(); } catch (CloneNotSupportedException cnse) { return null; | c = (Context) super.clone(); } catch (CloneNotSupportedException e) { | protected Object clone() { try { return super.clone(); } catch (CloneNotSupportedException cnse) { return null; } } |
c._localState = null; c._beanState = null; c._state = 0; c._locals = null; c._bean = null; return c; | protected Object clone() { try { return super.clone(); } catch (CloneNotSupportedException cnse) { return null; } } | |
Object res = get(names[0]); if (names.length == 1) { return res; } return PropertyOperator.getProperty(this,get(names[0]),names,1); | return getLocal(names); | public final Object getProperty(final Object[] names) throws PropertyException, InvalidContextException { if (names.length == 0) { return null; } else if (_bean == null) { Object res = get(names[0]); if (names.length == 1) { return res; } return P... |
final public Object getTool(String name) | final public Object getTool(Object name) | final public Object getTool(String name) throws InvalidContextException { try { if (_toolbox == null) { return null; } Object ret = (_tools != null) ? _tools.get(name) : null; if (ret == null) { ContextTool tool = (ContextTool) _toolbox.get(name); ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.