rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
} | }; | protected InternalDocumentModel getInternalDocumentModel() { return DocumentModel.getInternalModel(getContext(), workspace); } |
}; | } | protected InternalDownloadModel getInternalDownloadModel() { return DownloadModel.getInternalModel(getContext(), workspace); }; |
null == workspace ? "null" : workspace.getWorkspaceDirectory().getName(), | null == workspace ? NO_WORKSPACE : workspace.getWorkspaceDirectory().getName(), | protected final void logVariable(final String name, final Object value) { if(logger.isDebugEnabled()) { logger.debug(MessageFormat.format("{0} {1}:{2}", null == workspace ? "null" : workspace.getWorkspaceDirectory().getName(), name, Log4JHelper.render(logger, ... |
final Avatar a = new DocumentHistoryAvatar3(); | final Avatar a = new HistoryItems(); | private Avatar createDocumentHistory3List() { final Avatar a = new DocumentHistoryAvatar3(); a.setContentProvider(ProviderFactory.getHistoryProvider()); return a; } |
case SESSION_SEND_KEY_FORM: avatar = createSessionSendKeyForm(); | case SESSION_SEND_VERSION: avatar = createSendVersion(); | private Avatar doCreate(final AvatarId id) { final Avatar avatar; switch(id) { case BROWSER_INFO: avatar = createBrowserInfo(); break; case BROWSER_MAIN: avatar = createBrowserMain(); break; case BROWSER_TITLE: avatar = createBrowserTitle(); break; case DOCUMENT_HISTORY3: avatar = createDocumentHis... |
dateJLabel = LabelFactory.create(BrowserConstants.SmallFont); eventJLabel = LabelFactory.create(BrowserConstants.SmallFont); versionJLabel = LabelFactory.create(BrowserConstants.SmallFont); | itemJLabel = LabelFactory.create(BrowserConstants.SmallFont); | private void initComponents() { dateJLabel = LabelFactory.create(BrowserConstants.SmallFont); eventJLabel = LabelFactory.create(BrowserConstants.SmallFont); versionJLabel = LabelFactory.create(BrowserConstants.SmallFont); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; c.anchor = GridBa... |
final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; c.anchor = GridBagConstraints.WEST; add(dateJLabel, c.clone()); c.insets.left = 0; add(versionJLabel, c.clone()); c.weightx = 1; add(eventJLabel, c.clone()); } | final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; c.anchor = GridBagConstraints.WEST; c.fill = GridBagConstraints.BOTH; c.weightx = 1; add(itemJLabel, c.clone()); } | private void initComponents() { dateJLabel = LabelFactory.create(BrowserConstants.SmallFont); eventJLabel = LabelFactory.create(BrowserConstants.SmallFont); versionJLabel = LabelFactory.create(BrowserConstants.SmallFont); final GridBagConstraints c = new GridBagConstraints(); c.insets.left = 7; c.anchor = GridBa... |
rootScriptsFolderBundleURI = iwb.getResourcesPath()+"javascript/"; | rootScriptsFolderBundleURI = iwb.getResourcesVirtualPath()+"/javascript/"; | public String getBundleURIToScriptsFolder(){ if(rootScriptsFolderBundleURI == null){ IWBundle iwb = this.getBundle(); rootScriptsFolderBundleURI = iwb.getResourcesPath()+"javascript/"; } return rootScriptsFolderBundleURI; } |
modifyDocument(OpheliaTestUser.JUNIT, document); | modifyDocument(OpheliaTestUser.JUNIT, document.getId()); | protected void setUp() throws Exception { super.setUp(); final DocumentModel documentModel = getDocumentModel(OpheliaTestUser.JUNIT); final File inputFile = getInputFiles()[0]; final Document document = createDocument(OpheliaTestUser.JUNIT, inputFile); modifyDocument(OpheliaTestUser.JUNIT, docum... |
removeXmlFileLookup(document); | public void delete(final Document document) throws FileNotFoundException, IOException { logger.info("delete(Document)"); logger.debug(document); final DocumentContent content = getContent(document); final Collection<DocumentVersion> versions = listVersions(document); Assert.assertTrue("delete(Document)", getXml... | |
public Boolean confirm(final String confirmMessageKey) { return ConfirmDialog.confirm(mainWindow, confirmMessageKey); | public Boolean confirm(final String messageKey) { final Data input = new Data(1); input.set(ConfirmDialog.DataKey.MESSAGE_KEY, messageKey); return confirm(input); | public Boolean confirm(final String confirmMessageKey) { return ConfirmDialog.confirm(mainWindow, confirmMessageKey); } |
private Boolean didConfirm() { return confirm; } | public Boolean didConfirm() { return confirm; } | private Boolean didConfirm() { return confirm; } |
LOGGER.logVariable("streamId", streamOffset); LOGGER.logVariable("streamId", streamSize); | LOGGER.logVariable("streamOffset", streamOffset); LOGGER.logVariable("streamSize", streamSize); | public void run() { LOGGER.logApiId(); LOGGER.logVariable("streamId", streamId); LOGGER.logVariable("streamId", streamOffset); LOGGER.logVariable("streamId", streamSize); try { final InputStream input = streamServer.openInputStream(streamSession, streamId... |
public ServletLogger( ServletContext sc ) | public ServletLogger() | public ServletLogger( ServletContext sc ) { servletContext = sc; } |
servletContext = sc; | public ServletLogger( ServletContext sc ) { servletContext = sc; } | |
Object obj = rs.getApplicationAttribute(VelocityViewServlet.SERVLET_CONTEXT_KEY); if (obj == null) { throw new IllegalStateException("Could not retrieve ServletContext from application attributes!"); } servletContext = (ServletContext)obj; | public void init( RuntimeServices rs ) throws Exception { } | |
public void objectVersionReceived(VersionCreationEvent e) {} | public void objectVersionReceived(final VersionCreationEvent e) { controller.reloadMainBrowserAvatar(); } | private CreationListener createDocumentModelCreationListener() { return new CreationListener() { public void objectCreated(final CreationEvent e) {} public void objectReceived(final CreationEvent e) { controller.reloadMainBrowserAvatar(); } public void objectVersionCreated(final VersionCreationEvent e) { ... |
public void objectVersionReceived(VersionCreationEvent e) {} | public void objectVersionReceived(final VersionCreationEvent e) { controller.reloadMainBrowserAvatar(); } | public void objectVersionReceived(VersionCreationEvent e) {} |
public void objectReceived(final UpdateEvent e) {} | public void objectReceived(final UpdateEvent e) { controller.reloadMainBrowserAvatar(); } | private UpdateListener createDocumentModelUpdateListener() { return new UpdateListener() { public void objectDeleted(final DeleteEvent e) { controller.reloadMainBrowserAvatar(); } public void objectReceived(final UpdateEvent e) {} public void objectUpdated(final UpdateEvent e) { controller.reloadMainBro... |
public void objectReceived(final UpdateEvent e) {} | public void objectReceived(final UpdateEvent e) { controller.reloadMainBrowserAvatar(); } | public void objectReceived(final UpdateEvent e) {} |
public void keyRequestAccepted(final KeyEvent e) {} public void keyRequestDenied(final KeyEvent e) {} public void keyRequested(final KeyEvent e) {} | public void keyRequestAccepted(final KeyEvent e) { controller.reloadMainBrowserAvatar(); } public void keyRequestDenied(final KeyEvent e) { controller.reloadMainBrowserAvatar(); } public void keyRequested(final KeyEvent e) { controller.reloadMainBrowserAvatar(); } | private KeyListener createSessionModelKeyListener() { return new KeyListener() { public void keyRequestAccepted(final KeyEvent e) {} public void keyRequestDenied(final KeyEvent e) {} public void keyRequested(final KeyEvent e) {} }; } |
public void keyRequestAccepted(final KeyEvent e) {} | public void keyRequestAccepted(final KeyEvent e) { controller.reloadMainBrowserAvatar(); } | public void keyRequestAccepted(final KeyEvent e) {} |
public void keyRequestDenied(final KeyEvent e) {} | public void keyRequestDenied(final KeyEvent e) { controller.reloadMainBrowserAvatar(); } | public void keyRequestDenied(final KeyEvent e) {} |
public void keyRequested(final KeyEvent e) {} | public void keyRequested(final KeyEvent e) { controller.reloadMainBrowserAvatar(); } | public void keyRequested(final KeyEvent e) {} |
public void presenceRequested(final PresenceEvent e) {} | public void presenceRequested(final PresenceEvent e) { controller.reloadMainBrowserAvatar(); } | private PresenceListener createSessionModelPresenceListener() { return new PresenceListener() { public void presenceRequested(final PresenceEvent e) {} }; } |
public void presenceRequested(final PresenceEvent e) {} | public void presenceRequested(final PresenceEvent e) { controller.reloadMainBrowserAvatar(); } | public void presenceRequested(final PresenceEvent e) {} |
public void addListener(final PresenceListener presenceListener) { synchronized(implLock) { impl.addListener(presenceListener); } | public void addListener(final KeyListener keyListener) { synchronized(implLock) { impl.addListener(keyListener); } | public void addListener(final PresenceListener presenceListener) { synchronized(implLock) { impl.addListener(presenceListener); } } |
initFocusListeners(); | public ContainerVersionsPanel(final ContainerModel model) { super(); this.documentVersions = new HashMap<ContainerVersion, List<DocumentVersion>>(); this.model = model; this.publishedBy = new HashMap<ContainerVersion, User>(); this.users = new HashMap<ContainerVersion, Map<User, A... | |
javax.swing.JScrollPane versionsJScrollPane; | private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane versionsContentJScrollPane; versionsJSplitPane = new javax.swing.JSplitPane(); leftJPanel = new javax.swing.JPanel(); versionsJScrollPane = new javax.swing.JScrollPane(); ... | |
rightJPanelMouseClicked(evt); | leftJPanelMouseClicked(evt); | public void mouseClicked(java.awt.event.MouseEvent evt) { rightJPanelMouseClicked(evt); } |
rightJPanelMousePressed(evt); | leftJPanelMousePressed(evt); | public void mousePressed(java.awt.event.MouseEvent evt) { rightJPanelMousePressed(evt); } |
rightJPanel.setBackground(color); if (versionsJSplitPane.getSize().getWidth() > 0 ){ versionsJSplitPane.setDividerLocation(0.5); } | rightJPanel.setBackground(color); | public void prepareForRepaint() { // Set background colour final Color color = getBackgroundColor(); leftJPanel.setBackground(color); rightJPanel.setBackground(color); // Make sure the split pane remains in a 50/50 split if (versionsJSplitPane.getSize().ge... |
this.browser.putValue(Action.MNEMONIC_KEY, new Integer(getString("Menu.BrowserMnemonic").charAt(0))); | this.browser.putValue(Action.MNEMONIC_KEY, Integer.valueOf(getString("Menu.BrowserMnemonic").charAt(0))); | TrayMenuBuilder(final SystemApplication application) { super(); this.application = application; this.browser = new AbstractAction(getString("Menu.Browser")) { private static final long serialVersionUID = 1; public void actionPerformed(final ActionEvent e) { ... |
this.restart.putValue(Action.MNEMONIC_KEY, new Integer(getString("Menu.RestartMnemonic").charAt(0))); | this.restart.putValue(Action.MNEMONIC_KEY, Integer.valueOf(getString("Menu.RestartMnemonic").charAt(0))); | TrayMenuBuilder(final SystemApplication application) { super(); this.application = application; this.browser = new AbstractAction(getString("Menu.Browser")) { private static final long serialVersionUID = 1; public void actionPerformed(final ActionEvent e) { ... |
this.exit.putValue(Action.MNEMONIC_KEY, new Integer(getString("Menu.ExitMnemonic").charAt(0))); | this.exit.putValue(Action.MNEMONIC_KEY, Integer.valueOf(getString("Menu.ExitMnemonic").charAt(0))); | TrayMenuBuilder(final SystemApplication application) { super(); this.application = application; this.browser = new AbstractAction(getString("Menu.Browser")) { private static final long serialVersionUID = 1; public void actionPerformed(final ActionEvent e) { ... |
return (ActionMessages)request.getAttribute(Globals.MESSAGE_KEY); | ActionMessages messages = new ActionMessages(); HttpSession session = request.getSession(false); if (session != null) { ActionMessages sessionMessages = (ActionMessages)session.getAttribute(Globals.MESSAGE_KEY); if (sessionMessages != null) { messages.add(sessionMessages); } } ActionMessages requestMessages = (ActionMe... | public static ActionMessages getMessages(HttpServletRequest request) { return (ActionMessages)request.getAttribute(Globals.MESSAGE_KEY); } |
version.setMetaData(artifactIO.getVersionMetaData(session, version.getArtifactId(), version.getVersionId())); | version.setMetaData(getVersionMetaData(version.getArtifactId(), version.getVersionId())); | ContainerVersion extractVersion(final Session session) { final ContainerVersion version = new ContainerVersion(); version.setArtifactId(session.getLong("CONTAINER_ID")); version.setArtifactType(session.getTypeFromInteger("ARTIFACT_TYPE_ID")); version.setArtifactUniqueId(session.getUniqueId("... |
public ValueParser(Map source) { setSource(source); } | public ValueParser() {} | public ValueParser(Map source) { setSource(source); } |
public boolean getBoolean(String key, boolean alternate) | public Boolean getBoolean(String key) | public boolean getBoolean(String key, boolean alternate) { Boolean bool = getBoolean(key); return (bool != null) ? bool.booleanValue() : alternate; } |
Boolean bool = getBoolean(key); return (bool != null) ? bool.booleanValue() : alternate; | String s = getString(key); return (s != null) ? parseBoolean(s) : null; | public boolean getBoolean(String key, boolean alternate) { Boolean bool = getBoolean(key); return (bool != null) ? bool.booleanValue() : alternate; } |
public Alternator(boolean auto, List list) | public Alternator(List list) | public Alternator(boolean auto, List list) { this(auto, list.toArray(new Object[list.size()])); } |
this(auto, list.toArray(new Object[list.size()])); | this(true, list); | public Alternator(boolean auto, List list) { this(auto, list.toArray(new Object[list.size()])); } |
velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS, ServletLogger.class.getName()); | try { ExtendedProperties defaultProperties = loadDefaultProperties(); velocity.setExtendedProperties(defaultProperties); } catch(Exception e) { log("VelocityViewServlet: Unable to read Velocity Servlet configuration file: ", e); | protected void initVelocity(ServletConfig config) throws ServletException { velocity = new VelocityEngine(); setVelocityEngine(velocity); // register this engine to be the default handler of log messages // if the user points commons-logging to the LogSystemCommonsLog LogSystem... |
velocity.setProperty(RuntimeConstants.RESOURCE_LOADER, "webapp"); velocity.setProperty("webapp.resource.loader.class", WebappLoader.class.getName()); | throw new ServletException(e); } | protected void initVelocity(ServletConfig config) throws ServletException { velocity = new VelocityEngine(); setVelocityEngine(velocity); // register this engine to be the default handler of log messages // if the user points commons-logging to the LogSystemCommonsLog LogSystem... |
getServletContext().log("VelocityViewServlet: Unable to read Velocity configuration file: "+e); getServletContext().log("VelocityViewServlet: Using default Velocity configuration."); | log("VelocityViewServlet: Unable to read Velocity configuration file: ", e); log("VelocityViewServlet: Using default Velocity configuration."); | protected void initVelocity(ServletConfig config) throws ServletException { velocity = new VelocityEngine(); setVelocityEngine(velocity); // register this engine to be the default handler of log messages // if the user points commons-logging to the LogSystemCommonsLog LogSystem... |
getServletContext().log("VelocityViewServlet: PANIC! unable to init() - "+e); | log("VelocityViewServlet: PANIC! unable to init()", e); | protected void initVelocity(ServletConfig config) throws ServletException { velocity = new VelocityEngine(); setVelocityEngine(velocity); // register this engine to be the default handler of log messages // if the user points commons-logging to the LogSystemCommonsLog LogSystem... |
protected String createFailMessage(final Throwable t) { return createFailMessage(getName(), t); } | protected String createFailMessage(final Object message, final Throwable t) { return new StringBuffer() .append(message).append(Separator.SystemNewLine) .append(TestCaseHelper.createFailMessage(t)).toString(); } | protected String createFailMessage(final Throwable t) { return createFailMessage(getName(), t); } |
return pathname.isFile(); | return !illegalResources.contains(pathname.getName()); | public boolean accept(final File pathname) { return pathname.isFile(); } |
final File[] resourceFiles = fileSystem.list("/", RESOURCE_FILE_FILTER); | final File[] resourceFiles = fileSystem.list("/", RESOURCE_FILTER); | private List<URL> getResources() throws IOException { final List<URL> resources = new ArrayList<URL>(); final File[] resourceFiles = fileSystem.list("/", RESOURCE_FILE_FILTER); for (final File resourceFile : resourceFiles) { resources.add(resourceFile.toURL()); } return... |
public File[] list(final String path, final Boolean doRecurse) { final File file = resolve(path); if(null == file) { return null; } if(file.isFile()) { return null; } if(doRecurse) { return list(file).toArray(new File[] {}); } else { return file.listFiles(); } } | public File[] list(final String path) { return list(path, Boolean.FALSE); } | public File[] list(final String path, final Boolean doRecurse) { final File file = resolve(path); if(null == file) { return null; } if(file.isFile()) { return null; } if(doRecurse) { return list(file).toArray(new File[] {}); } else { return file.listFiles(); } } |
return PluginException.translate(errorId.toString(), t); | return PluginException.translate(errorId, t); | protected PluginException translateError(final Throwable t) { if (PluginException.class.isAssignableFrom(t.getClass())) { return (PluginException) t; } else { final String errorId = new ErrorHelper().getErrorId(t); logger.logError(t, errorId); return PluginE... |
public AcceptInvitation() { super("AcceptInvitation", ID, NAME, ICON); } | public AcceptInvitation(final Browser browser) { super("AcceptInvitation", ID, NAME, ICON); this.browser = browser; } | public AcceptInvitation() { super("AcceptInvitation", ID, NAME, ICON); } |
try { final SystemMessageModel sMModel = getSystemMessageModel(); final ContactInvitationMessage message = (ContactInvitationMessage) sMModel.read(messageId); getSessionModel().acceptInvitation(message.getInvitedBy()); sMModel.delete(messageId); } catch(final ParityException px) { throw new RuntimeException(px); } | final SystemMessageModel sMModel = getSystemMessageModel(); final ContactInvitationMessage message = (ContactInvitationMessage) sMModel.read(messageId); getSessionModel().acceptInvitation(message.getInvitedBy()); sMModel.delete(messageId); browser.fireSystemMessageDeleted(messageId); | public void invoke(final Data data) throws Exception { final Long messageId = (Long) data.get(DataKey.SYSTEM_MESSAGE_ID); try { final SystemMessageModel sMModel = getSystemMessageModel(); final ContactInvitationMessage message = (ContactInvitationMessage) sMModel.read(messageId); getSessionModel().acceptInv... |
public void open() { | public void open() throws IOException { | public void open() { connect(Type.DOWNSTREAM); } |
write(new StreamHeader(StreamHeader.Type.STREAM_BEGIN, streamId)); | write(new StreamHeader(StreamHeader.Type.STREAM_ID, streamId)); | public void read(final String streamId, final OutputStream stream) { write(new StreamHeader(StreamHeader.Type.STREAM_BEGIN, streamId)); read(stream); } |
logVariable("profile", read(readJabberId("userId"))); | logger.logVariable("profile", read(readJabberId("userId"))); | public void service() { logApiId(); final Profile profile = logVariable("profile", read(readJabberId("userId"))); if(null != profile) { writeJabberId("id", profile.getId()); writeString("name", profile.getName()); if (profile.isSetOrganization()) ... |
protected String createFailMessage(Throwable t) { testLogger.error("Failure", t); | protected String createFailMessage(final Throwable t) { logger.logFatal(t, "Test {0} failed.", getName()); | protected String createFailMessage(Throwable t) { testLogger.error("Failure", t); return super.createFailMessage(t); } |
testLogger.warn("[PARITY] Running test on un-supported platform."); | logger.logWarning("Running test on un-supported platform."); | protected boolean isNYIAOnLinux(final Throwable t) { Throwable cause = t.getCause(); while(null != cause) { if(NotYetImplementedAssertion.class.isAssignableFrom(cause.getClass())) { switch(OSUtil.getOS()) { case LINUX: testLogger.warn("[PARITY] Running test on un-supported platform."); return true; ... |
if (-1 != mouseOverIndex) { updateCellMouseOver(mouseOverIndex, Boolean.FALSE); mouseOverIndex = -1; | if (!isResizeDragging()) { if (-1 != mouseOverIndex) { updateCellMouseOver(mouseOverIndex, Boolean.FALSE); mouseOverIndex = -1; } | public void mouseExited(final MouseEvent e) { if (-1 != mouseOverIndex) { updateCellMouseOver(mouseOverIndex, Boolean.FALSE); mouseOverIndex = -1; } } |
final int mouseOverIndex = getMouseOverIndex(e); if (mouseOverIndex != this.mouseOverIndex) { if (-1 != this.mouseOverIndex) { updateCellMouseOver(this.mouseOverIndex, Boolean.FALSE); | if (!isResizeDragging()) { final int mouseOverIndex = getMouseOverIndex(e); if (mouseOverIndex != this.mouseOverIndex) { if (-1 != this.mouseOverIndex) { updateCellMouseOver(this.mouseOverIndex, Boolean.FALSE); } if (-1 != mouseOverIndex) { updateCellMouseOver(mouseOverIndex, Boolean.TRUE); } this.mouseOverIndex = mous... | public void mouseMoved(MouseEvent e) { final int mouseOverIndex = getMouseOverIndex(e); if (mouseOverIndex != this.mouseOverIndex) { if (-1 != this.mouseOverIndex) { updateCellMouseOver(this.mouseOverIndex, Boolean.FALSE); ... |
if (-1 != mouseOverIndex) { updateCellMouseOver(mouseOverIndex, Boolean.TRUE); } this.mouseOverIndex = mouseOverIndex; | public void mouseMoved(MouseEvent e) { final int mouseOverIndex = getMouseOverIndex(e); if (mouseOverIndex != this.mouseOverIndex) { if (-1 != this.mouseOverIndex) { updateCellMouseOver(this.mouseOverIndex, Boolean.FALSE); ... | |
final DocumentVersion dv_odt_latest = readDocumentLatestVersion(datum.junit, d_odt.getId()); final InputStream dv_odt_latest_stream = getDocumentModel(datum.junit).openVersionStream(d_odt.getId(), dv_odt_latest.getVersionId()); getDocumentModel(datum.junit).open(d_odt.getId(), new Opener() { public void open(final File... | public void testRestore() { // create a container; add two documents and publish final Container c = createContainer(datum.junit, NAME); final Document d_odt = addDocument(datum.junit, c.getId(), "JUnitTestFramework.odt"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.txt"); ... | |
protected static void assertNotNull(final String assertion, final List<Container> containers) { assertNotNull(assertion + " [CONTAINERS IS NULL]", (Object) containers); for(final Container container : containers) { assertNotNull(assertion, container); | protected static void assertNotNull(final String assertion, final ContainerDraft draft) { assertNotNull(assertion + " [DRAFT IS NULL]", (Object) draft); assertNotNull(assertion + " [DRAFT ID IS NULL]", draft.getContainerId()); assertNotNull(assertion + " [DRAFT ARTIFACTS ARE IS NULL]", draft.getArtifacts()); for(final ... | protected static void assertNotNull(final String assertion, final List<Container> containers) { assertNotNull(assertion + " [CONTAINERS IS NULL]", (Object) containers); for(final Container container : containers) { assertNotNull(assertion, container); } } |
assertNotNull(assertion + " [DRAFT OWNER IS NULL]", draft.getOwner()); | protected static void assertNotNull(final String assertion, final List<Container> containers) { assertNotNull(assertion + " [CONTAINERS IS NULL]", (Object) containers); for(final Container container : containers) { assertNotNull(assertion, container); } } | |
NameComparator(final Boolean doCompareAscending) { super(doCompareAscending); this.comparator = new StringComparator(doCompareAscending); | NameComparator(final Boolean ascending) { super(); this.comparator = new StringComparator(ascending); | NameComparator(final Boolean doCompareAscending) { super(doCompareAscending); this.comparator = new StringComparator(doCompareAscending); } |
configureGlobal(log4jProperties); | private static void configure() { synchronized(configureLock) { if(Boolean.FALSE == isConfigured) { final Properties log4jProperties = new Properties(); log4jProperties.setProperty("log4j.threshold", "debug"); log4jProperties.setProperty("log4j.rootLogger", "debug, broswerHTML, console"); configureGloba... | |
avatar.setRoundCorners(Boolean.TRUE); | protected void initComponents(final Avatar avatar) { avatar.reload(); windowPanel = new WindowPanel(); windowPanel.addPanel(avatar); add(windowPanel); // Install the resizer here; if done earlier then the resizer // can't successfully get the window ancestor. avatar.i... | |
this.logger = new Log4JWrapper(); | public JFrameLocalization(final String l18nContext) { super(); this.bundleHelper = new ResourceBundleHelper(RESOURCE_BUNDLE, l18nContext); } | |
add(new WindowTitle(avatar.getAvatarTitle()), c.clone()); | if (avatar.isAvatarTitle()) { add(new WindowTitle(avatar.getAvatarTitle()), c.clone()); } | void addPanel(final Avatar avatar) { final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.weightx = 1; add(new WindowTitle(avatar.getAvatarTitle()), c.clone()); jPanels.add(avatar); ac.gridy++; add((Component) avatar, ac.clone()); } |
if (0 == i) { toString.append(memberData[i]).append(":"); continue; | toString.append(null == memberData[i] ? Separator.Null : memberData[i]); if (0 == i % 2) { toString.append(":"); if (i + 1 >= memberData.length) { toString.append(Separator.Null); } | public static String toString(final Class type, final Object... memberData) { final StringBuffer toString = new StringBuffer(type.getName()) .append("$"); for (int i = 0; i < memberData.length; i++) { if (0 == i) { toString.append(memberData[i]).append(":"); ... |
if (0 == i % 2) { toString.append(","); } toString.append(memberData[i]); if (1 == i % 2) { toString.append(":"); | else { if (i + 1 < memberData.length) { toString.append(","); } | public static String toString(final Class type, final Object... memberData) { final StringBuffer toString = new StringBuffer(type.getName()) .append("$"); for (int i = 0; i < memberData.length; i++) { if (0 == i) { toString.append(memberData[i]).append(":"); ... |
final DocumentVersion latestVersion = readLatestVersion(documentId); if (null == latestVersion) { | final List<DocumentVersion> versions = listVersions(documentId); if (0 == versions.size()) { | Boolean isDraftModified(final Long documentId) { logger.info(getApiId("[IS DRAFT MODIFIED]")); logger.debug(documentId); try { final DocumentVersion latestVersion = readLatestVersion(documentId); if (null == latestVersion) { return Boolean.TRUE; } else { ... |
return !latestVersion.getChecksum().equals(draftChecksum); | return !versions.get(versions.size() - 1).getChecksum().equals(draftChecksum); | Boolean isDraftModified(final Long documentId) { logger.info(getApiId("[IS DRAFT MODIFIED]")); logger.debug(documentId); try { final DocumentVersion latestVersion = readLatestVersion(documentId); if (null == latestVersion) { return Boolean.TRUE; } else { ... |
void create(final Long artifactId, final String artifactName) | void create(final Long documentId, final String documentName) | void create(final Long artifactId, final String artifactName) throws ParityException { getInternalIndexModel().createArtifact(artifactId, artifactName); } |
getInternalIndexModel().createArtifact(artifactId, artifactName); | getInternalIndexModel().createDocument(documentId, documentName); | void create(final Long artifactId, final String artifactName) throws ParityException { getInternalIndexModel().createArtifact(artifactId, artifactName); } |
void delete(final Long id) throws ParityException { getInternalIndexModel().deleteArtifact(id); | void delete(final Long artifactId) throws ParityException { getInternalIndexModel().deleteArtifact(artifactId); | void delete(final Long id) throws ParityException { getInternalIndexModel().deleteArtifact(id); } |
void fireSessionEstablished() { impl.fireUpdateTrayMenu(Boolean.TRUE); } | void fireSessionEstablished() { impl.reloadConnectionStatus(Platform.Connection.ONLINE); } | void fireSessionEstablished() { impl.fireUpdateTrayMenu(Boolean.TRUE); } |
void fireSessionTerminated() { impl.fireUpdateTrayMenu(Boolean.FALSE); } | void fireSessionTerminated() { impl.reloadConnectionStatus(Platform.Connection.OFFLINE); } | void fireSessionTerminated() { impl.fireUpdateTrayMenu(Boolean.FALSE); } |
bootstrapLogging(); | public WorkspaceImpl(final File workspace) { super(); this.logger = Logger.getLogger(getClass()); this.workspace = initRoot(workspace); } | |
xmppSessionImpl = new XMPPSessionImpl(); | xmppSessionImpl = new XMPPSessionImpl(XMPPSessionDebugger.class); | public void open() { listenersImpl = new ListenersImpl(this); listenersImpl.start(); preferencesImpl = new PreferencesImpl(this); preferencesImpl.load(); sessionManagerImpl = new SessionManagerImpl(this); sessionManagerImpl.start(); xmppSessionImpl = new XMPPSessionI... |
private void enqueue(final IQ iq) throws ParityServerModelException { | private void enqueue(final JID jid, final IQ iq) throws ParityServerModelException { | private void enqueue(final IQ iq) throws ParityServerModelException { final QueueModel queueModel = QueueModel.getModel(session); queueModel.enqueue(iq.toXML()); } |
queueModel.enqueue(iq.toXML()); | queueModel.enqueue(jid, iq); | private void enqueue(final IQ iq) throws ParityServerModelException { final QueueModel queueModel = QueueModel.getModel(session); queueModel.enqueue(iq.toXML()); } |
else { enqueue(iq); } | else { enqueue(jid, iq); } | protected void send(final JID jid, final IQ iq) throws ParityServerModelException, UnauthorizedException { logger.info("route(JID,IQ)"); logger.debug(jid); logger.debug(iq); if(isOnline(jid)) { logger.info("isOnline(jid)"); getSessionManager().getSession(jid).process(iq); } else { enqueue(iq); } } |
protected void tearDown() throws Exception {} | protected void tearDown() throws Exception { super.tearDown(); } | protected void tearDown() throws Exception {} |
ContainerEvent generate(final Container container) { return new ContainerEvent(source, container); | ContainerEvent generate(final ContainerDraft draft) { return new ContainerEvent(source, draft); | ContainerEvent generate(final Container container) { return new ContainerEvent(source, container); } |
this(source, container, null, null); | this(source, container, null, null, null); | public ContainerEvent(final Source source, final Container container) { this(source, container, null, null); } |
if (isExpanded(panel)) { browser.runApplyContainerFlagSeen( panel.getContainer().getId()); } | private TabPanel toDisplay( final Container container, final DraftView draftView, final ContainerVersion latestVersion, final List<ContainerVersion> versions, final Map<ContainerVersion, List<DocumentView>> documentViews, final Map<ContainerVersion, ... | |
logger.warn("Update is misleading. Only name, timestamp and flag information is being set."); | logger.warn("Update is misleading. Only name, state, timestamp and flag information is being set."); | public void update(final Document document) { logger.warn("Update is misleading. Only name, timestamp and flag information is being set."); final Session session = openSession(); try { artifactIO.setFlags(session, document.getId(), document.getFlags()); session.prepareStatement(SQL_UPDATE); session.setCalend... |
session.setLong(3, document.getId()); | session.setStateAsInteger(3, document.getState()); session.setLong(4, document.getId()); | public void update(final Document document) { logger.warn("Update is misleading. Only name, timestamp and flag information is being set."); final Session session = openSession(); try { artifactIO.setFlags(session, document.getId(), document.getFlags()); session.prepareStatement(SQL_UPDATE); session.setCalend... |
containerIO.updateComment(containerId, version.getVersionId(), event.getComment()); | if (null != event.getComment() && 0 < event.getComment().trim().length()) containerIO.updateComment(containerId, version.getVersionId(), event.getComment()); | void handlePublished(final ContainerPublishedEvent event) { logger.logApiId(); logger.logVariable("event", event); try { final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long containerId = artifactModel.readId(event.getUniqueId()); /... |
triggerExpand(mainCell); | void triggerDoubleClick(final MainCell mainCell) { debug(); } | |
"./src/test-config/repository/repository/nodetypes/custom_nodetypes.xml"); | "./src/test-config/nodetypes/custom_nodetypes.xml"); | protected void registerNodeTypes(Session session) throws InvalidNodeTypeDefException, javax.jcr.RepositoryException, IOException { InputStream xml = new FileInputStream( "./src/test-config/repository/repository/nodetypes/custom_nodetypes.xml"); // HINT: throws InvalidNodeTypeDefExce... |
public DigesterMapperImpl(String[] files) { this.mappingFiles = files; | public DigesterMapperImpl() { | public DigesterMapperImpl(String[] files) { this.mappingFiles = files; } |
documentIO.updateContent(content); | final LocalFile localFile = getLocalFile(document); localFile.delete(); localFile.write(content.getContent()); | private void receiveUpdate(final XMPPDocument xmppDocument, final Document document) throws FileNotFoundException, IOException, ParityException { final DocumentVersion version = new DocumentVersion(); version.setArtifactId(document.getId()); version.setArtifactType(document.getType()); version.setArtifactUniqu... |
final InternalSessionModel iSModel = getInternalSessionModel(); if(!iSModel.isLoggedInUserKeyHolder(document.getId())) lock(document.getId()); | private void receiveUpdate(final XMPPDocument xmppDocument, final Document document) throws FileNotFoundException, IOException, ParityException { final DocumentVersion version = new DocumentVersion(); version.setArtifactId(document.getId()); version.setArtifactType(document.getType()); version.setArtifactUniqu... | |
applySize(content, 459); | applySize(content, 465); | private Display createContent() { if(null == content) { content = new ContentDisplay(); // HEIGHT ContentDisplay 459 applySize(content, 459); } return content; } |
mainWindowSize = new Dimension(350, 550); | mainWindowSize = new Dimension(350, 556); | public static Dimension getMainWindowSize() { if(null == mainWindowSize) { // DIMENSION BrowserWindow 350x550 mainWindowSize = new Dimension(350, 550); } return mainWindowSize; } |
if (!checkSessionTime(now)) { return; } | return; | public synchronized void next(Message message) throws FieldNotFound, RejectLogon, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType, IOException, InvalidMessage { state.setConnected(true); Date now = new Date(); if (!checkSessionTime(now)) { reset()... |
String msgType = message.getHeader().getString(MsgType.FIELD); | public synchronized void next(Message message) throws FieldNotFound, RejectLogon, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType, IOException, InvalidMessage { state.setConnected(true); Date now = new Date(); if (!checkSessionTime(now)) { reset()... | |
nextSequenceRequest(message); | nextSequenceReset(message); | public synchronized void next(Message message) throws FieldNotFound, RejectLogon, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType, IOException, InvalidMessage { state.setConnected(true); Date now = new Date(); if (!checkSessionTime(now)) { reset()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.