bugged
stringlengths 6
599k
| fixed
stringlengths 10
599k
| __index_level_0__
int64 0
1.13M
|
|---|---|---|
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("queueSize", queueSize); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOfflineQueue.setParameter("userId", userId); final List<XMPPEvent> queue = execute(processOfflineQueue, Boolean.TRUE).readResultEvents("events"); queueSize = queue.size(); logger.logVariable("queueSize", queueSize); for (final XMPPEvent queueEvent : queue) { xmppCore.handleEvent(queueEvent); deleteQueueEvent(userId, queueEvent.getId()); logger.logVariable("queueSize", --queueSize); } } }
|
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOfflineQueue.setParameter("userId", userId); final List<XMPPEvent> queue = execute(processOfflineQueue, Boolean.TRUE).readResultEvents("events"); queueSize = queue.size(); for (final XMPPEvent queueEvent : queue) { xmppCore.handleEvent(queueEvent); deleteQueueEvent(userId, queueEvent.getId()); logger.logVariable("queueSize", --queueSize); } } }
| 1,113,867
|
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("queueSize", queueSize); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOfflineQueue.setParameter("userId", userId); final List<XMPPEvent> queue = execute(processOfflineQueue, Boolean.TRUE).readResultEvents("events"); queueSize = queue.size(); logger.logVariable("queueSize", queueSize); for (final XMPPEvent queueEvent : queue) { xmppCore.handleEvent(queueEvent); deleteQueueEvent(userId, queueEvent.getId()); logger.logVariable("queueSize", --queueSize); } } }
|
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("queueSize", queueSize); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOfflineQueue.setParameter("userId", userId); final List<XMPPEvent> queue = execute(processOfflineQueue, Boolean.TRUE).readResultEvents("events"); queueSize = queue.size(); logger.logVariable("queueSize", queueSize); for (final XMPPEvent queueEvent : queue) { xmppCore.handleEvent(queueEvent); deleteQueueEvent(userId, queueEvent.getId()); logger.logVariable("queueSize", --queueSize); } } }
| 1,113,868
|
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("queueSize", queueSize); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOfflineQueue.setParameter("userId", userId); final List<XMPPEvent> queue = execute(processOfflineQueue, Boolean.TRUE).readResultEvents("events"); queueSize = queue.size(); logger.logVariable("queueSize", queueSize); for (final XMPPEvent queueEvent : queue) { xmppCore.handleEvent(queueEvent); deleteQueueEvent(userId, queueEvent.getId()); logger.logVariable("queueSize", --queueSize); } } }
|
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("queueSize", queueSize); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOfflineQueue.setParameter("userId", userId); final List<XMPPEvent> queue = execute(processOfflineQueue, Boolean.TRUE).readResultEvents("events"); queueSize = queue.size(); logger.logVariable("queueSize", queueSize); for (final XMPPEvent queueEvent : queue) { xmppCore.handleEvent(queueEvent); deleteQueueEvent(userId, queueEvent.getId()); logger.logVariable("queueSize", --queueSize); } } }
| 1,113,869
|
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("queueSize", queueSize); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOfflineQueue.setParameter("userId", userId); final List<XMPPEvent> queue = execute(processOfflineQueue, Boolean.TRUE).readResultEvents("events"); queueSize = queue.size(); logger.logVariable("queueSize", queueSize); for (final XMPPEvent queueEvent : queue) { xmppCore.handleEvent(queueEvent); deleteQueueEvent(userId, queueEvent.getId()); logger.logVariable("queueSize", --queueSize); } } }
|
void processEventQueue(final JabberId userId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("queueSize", queueSize); synchronized (queueLock) { final XMPPMethod processOfflineQueue = new XMPPMethod("system:readqueueevents"); processOfflineQueue.setParameter("userId", userId); final List<XMPPEvent> queue = execute(processOfflineQueue, Boolean.TRUE).readResultEvents("events"); queueSize = queue.size(); logger.logVariable("queueSize", queueSize); for (final XMPPEvent queueEvent : queue) { xmppCore.handleEvent(queueEvent); deleteQueueEvent(userId, queueEvent.getId()); } } }
| 1,113,870
|
public void run() { while(running) { sysApp.logger.info("[BROWSER2] [APP] [SYS] [IMPL] [RUNNING]"); try { synchronized(this) { wait(); } } catch(final InterruptedException ix) { sysApp.logger.info("[BROWSER2] [APP] [SYS] [IMPL] [INTERRUPTED]"); } processQueue(); } }
|
public void run() { while(running) { sysApp.logger.info("[BROWSER2] [APP] [SYS] [IMPL] [RUNNING]"); try { synchronized(this) { wait(); } } catch(final InterruptedException ix) { sysApp.logger.info("[BROWSER2] [APP] [SYS] [IMPL] [INTERRUPTED]"); } try { processQueue(); } catch(final RuntimeException rx) { sysApp.logger.error("[BROWSER2] [APP] [SYS] [IMPL RUNNING]", rx); throw rx; } } }
| 1,113,871
|
public Document get(final UUID id) throws FileNotFoundException, IOException { logger.info("get(UUID)"); logger.debug(id); final Index index = readIndex(getIndexXmlFile()); return readDocument(index.lookupXmlFile(id)); }
|
public Document get(final UUID id) throws FileNotFoundException, IOException { logger.info("get(UUID)"); logger.debug(id); final Index index = readIndex(getIndexXmlFile()); final File xmlFile = index.lookupXmlFile(id); if(null == xmlFile) { return null; } else { return readDocument(xmlFile); } }
| 1,113,872
|
protected void move(final Document document, final DocumentContent content, final Collection<DocumentVersion> versions, final File targetXmlFileDirectory) throws FileNotFoundException, IOException { final File documentXmlFile = getXmlFile(document); final File contentXmlFile = getXmlFile(document, content); final File[] versionXmlFiles = getXmlFiles(document, versions); final File targetDocumentXmlFile = new File(targetXmlFileDirectory, documentXmlFile.getName()); FileUtil.copy(documentXmlFile, targetDocumentXmlFile); Assert.assertTrue( "move(Document,DocumentContent,DocumentVersion,File)", documentXmlFile.delete()); FileUtil.copy(contentXmlFile, new File(targetXmlFileDirectory, contentXmlFile.getName())); Assert.assertTrue( "move(Document,DocumentContent,DocumentVersion,File)", contentXmlFile.delete()); for(File versionXmlFile : versionXmlFiles) { FileUtil.copy(versionXmlFile, new File(targetXmlFileDirectory, versionXmlFile.getName())); Assert.assertTrue( "move(Document,DocumentContent,DocumentVersion,File)", versionXmlFile.delete()); } final Index index = readIndex(getIndexXmlFile()); index.addLookup(document.getId(), targetDocumentXmlFile); write(index, getIndexXmlFile()); }
|
protected void move(final Document document, final DocumentContent content, final Collection<DocumentVersion> versions, final File targetXmlFileDirectory) throws FileNotFoundException, IOException { final File documentXmlFile = getXmlFile(document); final File contentXmlFile = getXmlFile(document, content); final File[] versionXmlFiles = getXmlFiles(document, versions); final File targetDocumentXmlFile = new File(targetXmlFileDirectory, documentXmlFile.getName()); FileUtil.copy(documentXmlFile, targetDocumentXmlFile); Assert.assertTrue( "move(Document,DocumentContent,DocumentVersion,File)", documentXmlFile.delete()); FileUtil.copy(contentXmlFile, new File(targetXmlFileDirectory, contentXmlFile.getName())); Assert.assertTrue( "move(Document,DocumentContent,DocumentVersion,File)", contentXmlFile.delete()); for(File versionXmlFile : versionXmlFiles) { FileUtil.copy(versionXmlFile, new File(targetXmlFileDirectory, versionXmlFile.getName())); Assert.assertTrue( "move(Document,DocumentContent,DocumentVersion,File)", versionXmlFile.delete()); } final Index index = readIndex(getIndexXmlFile()); index.addXmlFileLookup(document.getId(), targetDocumentXmlFile); write(index, getIndexXmlFile()); }
| 1,113,873
|
public static MappingDescriptor loadClassDescriptors(String xmlFile) { try { return loadClassDescriptors(new FileInputStream(xmlFile)); } catch (FileNotFoundException e) { throw new InitMapperException(e); } }
|
public static MappingDescriptor loadClassDescriptors(InputStream stream) { try { return loadClassDescriptors(new FileInputStream(xmlFile)); } catch (FileNotFoundException e) { throw new InitMapperException(e); } }
| 1,113,874
|
public static MappingDescriptor loadClassDescriptors(String xmlFile) { try { return loadClassDescriptors(new FileInputStream(xmlFile)); } catch (FileNotFoundException e) { throw new InitMapperException(e); } }
|
public static MappingDescriptor loadClassDescriptors(String xmlFile) { try { Digester digester = new Digester(); digester.setValidating(true); digester.addObjectCreate("graffito-jcr", MappingDescriptor.class); digester.addObjectCreate("graffito-jcr/class-descriptor", ClassDescriptor.class); digester.addSetProperties("graffito-jcr/class-descriptor", "className", "className"); digester.addSetProperties("graffito-jcr/class-descriptor", "jcrNodeType", "jcrNodeType"); digester.addSetProperties("graffito-jcr/class-descriptor", "jcrSuperTypes", "jcrSuperTypes"); digester.addSetNext("graffito-jcr/class-descriptor", "addClassDescriptor"); digester.addObjectCreate("graffito-jcr/class-descriptor/field-descriptor", FieldDescriptor.class); digester.addSetProperties("graffito-jcr/class-descriptor/field-descriptor", "fieldName", "fieldName"); digester.addSetProperties("graffito-jcr/class-descriptor/field-descriptor", "fieldType", "fieldType"); digester.addSetProperties("graffito-jcr/class-descriptor/field-descriptor", "jcrName", "jcrName"); digester.addSetProperties("graffito-jcr/class-descriptor/field-descriptor", "id", "id"); digester.addSetProperties("graffito-jcr/class-descriptor/field-descriptor", "path", "path"); digester.addSetProperties("graffito-jcr/class-descriptor/field-descriptor", "jcrType", "jcrType"); digester.addSetProperties("graffito-jcr/class-descriptor/field-descriptor", "jcrAutoCreated", "jcrAutoCreated"); digester.addSetProperties("graffito-jcr/class-descriptor/field-descriptor", "jcrMandatory", "jcrMandatory"); digester.addSetProperties("graffito-jcr/class-descriptor/field-descriptor", "jcrOnParentVersion", "jcrOnParentVersion"); digester.addSetProperties("graffito-jcr/class-descriptor/field-descriptor", "jcrProtected", "jcrProtected"); digester.addSetProperties("graffito-jcr/class-descriptor/field-descriptor", "jcrMultiple", "jcrMultiple"); digester.addSetNext("graffito-jcr/class-descriptor/field-descriptor", "addFieldDescriptor"); digester.addObjectCreate("graffito-jcr/class-descriptor/bean-descriptor", BeanDescriptor.class); digester.addSetProperties("graffito-jcr/class-descriptor/bean-descriptor", "fieldName", "fieldName"); digester.addSetProperties("graffito-jcr/class-descriptor/bean-descriptor", "jcrName", "jcrName"); digester.addSetProperties("graffito-jcr/class-descriptor/bean-descriptor", "proxy", "proxy"); digester.addSetProperties("graffito-jcr/class-descriptor/bean-descriptor", "jcrNodeType", "jcrNodeType"); digester.addSetProperties("graffito-jcr/class-descriptor/bean-descriptor", "jcrAutoCreated", "jcrAutoCreated"); digester.addSetProperties("graffito-jcr/class-descriptor/bean-descriptor", "jcrMandatory", "jcrMandatory"); digester.addSetProperties("graffito-jcr/class-descriptor/bean-descriptor", "jcrOnParentVersion", "jcrOnParentVersion"); digester.addSetProperties("graffito-jcr/class-descriptor/bean-descriptor", "jcrProtected", "jcrProtected"); digester.addSetProperties("graffito-jcr/class-descriptor/bean-descriptor", "jcrSameNameSiblings", "jcrSameNameSiblings"); digester.addSetNext("graffito-jcr/class-descriptor/bean-descriptor", "addBeanDescriptor"); digester.addObjectCreate("graffito-jcr/class-descriptor/collection-descriptor", CollectionDescriptor.class); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "fieldName", "fieldName"); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "jcrName", "jcrName"); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "proxy", "proxy"); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "elementClassName", "elementClassName"); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "collectionConverter", "collectionConverterClassName"); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "collectionClassName", "collectionClassName"); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "jcrNodeType", "jcrNodeType"); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "jcrAutoCreated", "jcrAutoCreated"); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "jcrMandatory", "jcrMandatory"); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "jcrOnParentVersion", "jcrOnParentVersion"); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "jcrProtected", "jcrProtected"); digester.addSetProperties("graffito-jcr/class-descriptor/collection-descriptor", "jcrSameNameSiblings", "jcrSameNameSiblings"); digester.addSetNext("graffito-jcr/class-descriptor/collection-descriptor", "addCollectionDescriptor"); MappingDescriptor mappingDescriptor = (MappingDescriptor) digester.parse(stream); return mappingDescriptor; } catch (FileNotFoundException e) { throw new InitMapperException(e); } }
| 1,113,875
|
public static MappingDescriptor loadClassDescriptors(String xmlFile) { try { return loadClassDescriptors(new FileInputStream(xmlFile)); } catch (FileNotFoundException e) { throw new InitMapperException(e); } }
|
public static MappingDescriptor loadClassDescriptors(String xmlFile) { try { return loadClassDescriptors(new FileInputStream(xmlFile)); } catch (Exception e) { throw new InitMapperException(e); } }
| 1,113,876
|
public static MappingDescriptor loadClassDescriptors(String xmlFile) { try { return loadClassDescriptors(new FileInputStream(xmlFile)); } catch (FileNotFoundException e) { throw new InitMapperException(e); } }
|
public static MappingDescriptor loadClassDescriptors(String xmlFile) { try { return loadClassDescriptors(new FileInputStream(xmlFile)); } catch (FileNotFoundException e) { throw new InitMapperException("Impossible to read the xml mapping file", e); } }
| 1,113,877
|
private void configureScenario(final List<Scenario> scenarios, final Environment environment, final Properties properties, final String scenarioName) { final String displayName = properties.getProperty( MessageFormat.format("demo.scenario.{0}.DisplayName", scenarioName), null); final String resourcePath = properties.getProperty( MessageFormat.format("demo.scenario.{0}.ResourcePath", scenarioName), null); final String scripts = properties.getProperty( MessageFormat.format("demo.scenario.{0}.Scripts", scenarioName), null); if (null == displayName || null == resourcePath || null == scripts) { logger.logWarning("Scenario {0} is not configured correctly.", scenarioName); } else { final Scenario scenario = new Scenario(); scenario.setDisplayName(displayName); scenario.setEnvironment(environment); scenario.setName(scenarioName); scenario.setResourcePath(resourcePath); final StringTokenizer tokenizer = new StringTokenizer(scripts, ","); while (tokenizer.hasMoreTokens()) { configureScenarioScript(scenario, properties, tokenizer.nextToken()); } scenarios.add(scenario); } }
|
private void configureScenario(final List<Scenario> scenarios, final Environment environment, final Properties properties, final String scenarioName) { final String displayName = properties.getProperty( MessageFormat.format("demo.scenario.{0}.DisplayName", scenarioName), null); final String resourcePath = properties.getProperty( MessageFormat.format("demo.scenario.{0}.ResourcePath", scenarioName), null); final String scripts = properties.getProperty( MessageFormat.format("demo.scenario.{0}.Scripts", scenarioName), null); if (null == displayName || null == resourcePath || null == scripts) { logger.logWarning("Scenario {0} is not configured correctly.", scenarioName); } else { final Scenario scenario = new Scenario(); scenario.setDisplayName(displayName); scenario.setEnvironment(environment); scenario.setName(scenarioName); scenario.setResourcePath(resourcePath); final StringTokenizer tokenizer = new StringTokenizer(scripts, ","); while (tokenizer.hasMoreTokens()) { configureScenarioScript(scenario, properties, tokenizer.nextToken()); } scenarios.add(scenario); } }
| 1,113,879
|
private void configureScenarioScript(final Scenario scenario, final Properties properties, final String scriptName) { final String scriptPath = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.ScriptPath", scenario.getName(), scriptName), null); final String username = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.Credentials.Username", scenario.getName(), scriptName), null); final String password = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.Credentials.Password", scenario.getName(), scriptName), null); if (null == scriptPath || null == username || null == password) { logger.logWarning("Demo script {0} for scenario {1} is not configured correctly.", scriptName, scenario.getName()); } else { final Credentials credentials = new Credentials(); credentials.setPassword(password); credentials.setUsername(username); scenario.addScript(new Script() { public String getName() { return scriptName; } public InputStream openStream() { return ResourceUtil.getInputStream(scriptPath); } }, credentials); } }
|
private void configureScenarioScript(final Scenario scenario, final Properties properties, final String scriptName) { final String scriptPath = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.ScriptPath", scenario.getName(), scriptName), null); final String username = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.Credentials.Username", scenario.getName(), scriptName), null); final String password = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.Credentials.Password", scenario.getName(), scriptName), null); if (null == scriptPath || null == username || null == password) { logger.logWarning("Demo script {0} for scenario {1} is not configured correctly.", scriptName, scenario.getName()); } else { final Credentials credentials = new Credentials(); credentials.setPassword(password); credentials.setUsername(username); scenario.addScript(new Script() { public String getName() { return scriptName; } public InputStream openStream() { return ResourceUtil.getInputStream(scriptPath); } }, credentials); } }
| 1,113,880
|
private void configureScenarioScript(final Scenario scenario, final Properties properties, final String scriptName) { final String scriptPath = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.ScriptPath", scenario.getName(), scriptName), null); final String username = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.Credentials.Username", scenario.getName(), scriptName), null); final String password = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.Credentials.Password", scenario.getName(), scriptName), null); if (null == scriptPath || null == username || null == password) { logger.logWarning("Demo script {0} for scenario {1} is not configured correctly.", scriptName, scenario.getName()); } else { final Credentials credentials = new Credentials(); credentials.setPassword(password); credentials.setUsername(username); scenario.addScript(new Script() { public String getName() { return scriptName; } public InputStream openStream() { return ResourceUtil.getInputStream(scriptPath); } }, credentials); } }
|
private void configureScenarioScript(final Scenario scenario, final Properties properties, final String scriptName) { final String scriptPath = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.ScriptPath", scenario.getName(), scriptName), null); final String username = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.Credentials.Username", scenario.getName(), scriptName), null); final String password = properties.getProperty( MessageFormat.format("demo.scenario.{0}.{1}.Credentials.Password", scenario.getName(), scriptName), null); if (null == scriptPath || null == username || null == password) { logger.logWarning("Demo script {0} for scenario {1} is not configured correctly.", scriptName, scenario.getName()); } else { final Credentials credentials = new Credentials(); credentials.setPassword(password); credentials.setUsername(username); scenario.addScript(new Script() { public String getName() { return scriptName; } public InputStream open() { return ResourceUtil.getInputStream(scriptPath); } }, credentials); } }
| 1,113,881
|
public String exportFileName(final DocumentVersion version) { return localFileName(version); }
|
public String exportFileName(final DocumentVersion version) { return MessageFormat.format("{0}.{1}", FileUtil.getName(version.getName()), FileUtil.getExtension(version.getName())); }
| 1,113,883
|
public MainCellDocument(final Document d) { super(d.getCreatedBy(), d.getCreatedOn(), d.getDescription(), d.getFlags(), d.getUniqueId(), d.getName(), d.getUpdatedBy(), d.getUpdatedOn()); this.imageCache = new MainCellImageCache(); setId(d.getId()); setRemoteInfo(d.getRemoteInfo()); setState(d.getState()); this.keyRequests = new LinkedList<KeyRequest>(); }
|
public MainCellDocument(final Document d) { super(d.getCreatedBy(), d.getCreatedOn(), d.getDescription(), d.getFlags(), d.getUniqueId(), d.getName(), d.getUpdatedBy(), d.getUpdatedOn()); setId(d.getId()); setRemoteInfo(d.getRemoteInfo()); setState(d.getState()); this.keyRequests = new LinkedList<KeyRequest>(); }
| 1,113,884
|
public Font getTextFont() { if(hasBeenSeen()) { return BrowserConstants.DefaultFont; } else { return BrowserConstants.DefaultFontBold; } }
|
public Font getTextFont() { if(isSeen()) { return BrowserConstants.DefaultFont; } else { return BrowserConstants.DefaultFontBold; } }
| 1,113,886
|
public void synchronize() { debug(); visiblePanels.clear(); for (final TabPanel containerPanel : containerPanels) { visiblePanels.add(containerPanel); if (isExpanded(containerPanel)) { visiblePanels.add(versionsPanels.get(containerPanel)); } } // add visible cells not in the model for (int i = 0; i < visiblePanels.size(); i++) { if (listModel.contains(visiblePanels.get(i))) { listModel.remove(i); listModel.add(i, visiblePanels.get(i)); } else { listModel.add(i, visiblePanels.get(i)); } } // prune cells in the model no longer visible final TabPanel[] obsoletePanels = new TabPanel[listModel.size()]; listModel.copyInto(obsoletePanels); for (int i = 0; i < obsoletePanels.length; i++) { if (!visiblePanels.contains(obsoletePanels[i])) { listModel.removeElement(obsoletePanels[i]); } } debug(); }
|
public void synchronize() { debug(); visiblePanels.clear(); for (final TabPanel containerPanel : containerPanels) { visiblePanels.add(containerPanel); if (isExpanded(containerPanel)) { visiblePanels.add(versionsPanels.get(containerPanel)); } } // add visible cells not in the model for (int i = 0; i < visiblePanels.size(); i++) { if (listModel.contains(visiblePanels.get(i))) { listModel.remove(i); listModel.add(i, visiblePanels.get(i)); } else { listModel.add(i, visiblePanels.get(i)); } } // prune cells in the model no longer visible final TabPanel[] obsoletePanels = new TabPanel[listModel.size()]; listModel.copyInto(obsoletePanels); for (int i = 0; i < obsoletePanels.length; i++) { if (!visiblePanels.contains(obsoletePanels[i])) { listModel.removeElement(obsoletePanels[i]); } } debug(); }
| 1,113,887
|
public Long create(final String artifactId, final String groupId, final String version, final List<Long> libraryIds) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("release:create"); session.setParameter("artifactId", artifactId); session.setParameter("groupId", groupId); session.setLongParameters("libraryIds", "libraryId", libraryIds); session.setParameter("version", version); session.execute(); if(session.containsResult()) { final Long releaseId = session.getLong("id"); session.commit(); return releaseId; } else { return null; } } catch(final Exception x) { session.rollback(); throw new XMPPException(x); } finally { session.close(); } }
|
public Long create(final String artifactId, final String groupId, final String version, final List<Long> libraryIds) throws XMPPException { final XMPPSession session = openAnonymousSession(); try { session.setRemoteMethod("release:create"); session.setParameter("artifactId", artifactId); session.setParameter("groupId", groupId); session.setLongParameters("libraryIds", "libraryId", libraryIds); session.setParameter("version", version); session.execute(); if(session.containsResult()) { final Long releaseId = session.getLong("id"); session.commit(); return releaseId; } else { return null; } } catch(final Exception x) { session.rollback(); throw new XMPPException(x); } finally { session.close(); } }
| 1,113,888
|
public void delete(final Long releaseId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("release:delete"); session.setParameter("id", releaseId); session.execute(); } catch(final Exception x) { throw new XMPPException(x); } finally { session.close(); } }
|
public void delete(final Long releaseId) throws XMPPException { final XMPPSession session = openAnonymousSession(); try { session.setRemoteMethod("release:delete"); session.setParameter("id", releaseId); session.execute(); } catch(final Exception x) { throw new XMPPException(x); } finally { session.close(); } }
| 1,113,889
|
public Release read(final Long releaseId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("release:read"); session.setParameter("id", releaseId); session.execute(); if(session.containsResult()) { return extractRelease(session); } else { return null; } } catch(final Exception x) { throw new XMPPException(x); } finally { session.close(); } }
|
public Release read(final Long releaseId) throws XMPPException { final XMPPSession session = openAnonymousSession(); try { session.setRemoteMethod("release:read"); session.setParameter("id", releaseId); session.execute(); if(session.containsResult()) { return extractRelease(session); } else { return null; } } catch(final Exception x) { throw new XMPPException(x); } finally { session.close(); } }
| 1,113,890
|
public Release readLatest(final String artifactId, final String groupId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("release:readlatest"); session.setParameter("artifactId", artifactId); session.setParameter("groupId", groupId); session.execute(); if(session.containsResult()) { return extractRelease(session); } else { return null; } } catch(final Exception x) { throw new XMPPException(x); } finally { session.close(); } }
|
public Release readLatest(final String artifactId, final String groupId) throws XMPPException { final XMPPSession session = openAnonymousSession(); try { session.setRemoteMethod("release:readlatest"); session.setParameter("artifactId", artifactId); session.setParameter("groupId", groupId); session.execute(); if(session.containsResult()) { return extractRelease(session); } else { return null; } } catch(final Exception x) { throw new XMPPException(x); } finally { session.close(); } }
| 1,113,891
|
public List<Library> readLibraries(final Long releaseId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("release:readlibraries"); session.setParameter("id", releaseId); session.execute(); if(session.containsResult()) { return session.getLibraries("libraries"); } else { return new LinkedList<Library>(); } } catch(final Exception x) { throw new XMPPException(x); } finally { session.close(); } }
|
public List<Library> readLibraries(final Long releaseId) throws XMPPException { final XMPPSession session = openAnonymousSession(); try { session.setRemoteMethod("release:readlibraries"); session.setParameter("id", releaseId); session.execute(); if(session.containsResult()) { return session.getLibraries("libraries"); } else { return new LinkedList<Library>(); } } catch(final Exception x) { throw new XMPPException(x); } finally { session.close(); } }
| 1,113,892
|
public void setParameter(final String name, final String value) { assertMethod("[SET PARAMETER]"); debugParameter(name, value); xmppMethod.setParameter(name, value); }
|
public void setParameter(final String name, final byte[] value) { assertMethod("[SET PARAMETER]"); debugParameter(name, value); xmppMethod.setParameter(name, value); }
| 1,113,893
|
public void setLongParameters(final String listName, final String name, final List<Long> longs) { assertMethod("[SET LONG PARAMTERS]"); debugLongParameters(listName, name, longs); xmppMethod.setLongParameters(listName, name, longs); }
|
public final void setLongParameters(final String listName, final String name, final List<Long> longs) { assertMethod("[SET LONG PARAMTERS]"); debugLongParameters(listName, name, longs); xmppMethod.setLongParameters(listName, name, longs); }
| 1,113,894
|
public void setLongParameters(final String listName, final String name, final List<Long> longs) { assertMethod("[SET LONG PARAMTERS]"); debugLongParameters(listName, name, longs); xmppMethod.setLongParameters(listName, name, longs); }
|
public void setLongParameters(final String listName, final String name, final List<Long> longs) { assertMethod("[SET LONG PARAMETERS]"); debugLongParameters(listName, name, longs); xmppMethod.setLongParameters(listName, name, longs); }
| 1,113,895
|
public void xmlDecl(String version, String encoding, Boolean standalone) { print("xmlDecl: <?xml version=\"" + version + "\""); if(encoding != null) print(" encoding=\"" + encoding); if(standalone != null) { print(" standalone=\""); if(standalone) print("yes"); else print("no"); print("\""); } println("?>"); }
|
public void xmlDecl(String version, String encoding, Boolean standalone) { print("xmlDecl: <?xml version=\"" + version + "\""); if(encoding != null) print(" encoding=\"" + encoding + "\""); if(standalone != null) { print(" standalone=\""); if(standalone) print("yes"); else print("no"); print("\""); } println("?>"); }
| 1,113,896
|
public BrowserMenuBar(final Browser browser, final Boolean maximized) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeEdges.TOP); // Double click to maximize the browser window this.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(final java.awt.event.MouseEvent e) { if (e.getButton()==MouseEvent.BUTTON1) { if (e.getClickCount() % 2 == 0) { browser.maximize(); } } } }); // Create JMenus final JMenu newMenu = MenuFactory.create(localization.getString("New"), new Integer(localization.getString("NewMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(6,0))); newMenu.setBorder(new LineBorder(Color.WHITE)); this.add(newMenu); final JMenu profileMenu = MenuFactory.create(localization.getString("Profile"), new Integer(localization.getString("ProfileMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(profileMenu); final JMenu helpMenu = MenuFactory.create(localization.getString("Help"), new Integer(localization.getString("HelpMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(helpMenu); // Create the New popup menu newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTAINER_CREATE, Data.emptyData())); newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTACT_CREATE_INCOMING_INVITATION, Data.emptyData())); // Create the Profile menu final Data updateProfileData = new Data(1); updateProfileData.set(Update.DataKey.DISPLAY_AVATAR, Boolean.TRUE); profileMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PROFILE_UPDATE, updateProfileData)); // Create the OpenHelp menu helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_OPEN_HELP, Data.emptyData())); helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_DISPLAY_INFO, Data.emptyData())); // Create the Sign-Up button this.add(Box.createRigidArea(new Dimension(9,0))); this.add(getSignUpButton()); // Add minimize, maximize and close buttons this.add(Box.createHorizontalGlue()); this.add(getMinimizeButton()); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getMaximizeButton(maximized)); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getCloseButton()); this.add(Box.createRigidArea(new Dimension(4,0))); }
|
public BrowserMenuBar(final Browser browser, final Boolean maximized) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeEdges.TOP); // Double click to maximize the browser window this.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(final java.awt.event.MouseEvent e) { if (e.getButton()==MouseEvent.BUTTON1) { if (e.getClickCount() % 2 == 0) { browser.maximize(); } } } }); // Create JMenus final JMenu newMenu = MenuFactory.create(localization.getString("New"), new Integer(localization.getString("NewMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(6,0))); newMenu.setBorder(new LineBorder(Color.WHITE)); this.add(newMenu); final JMenu profileMenu = MenuFactory.create(localization.getString("Profile"), new Integer(localization.getString("ProfileMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(profileMenu); final JMenu helpMenu = MenuFactory.create(localization.getString("Help"), new Integer(localization.getString("HelpMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(helpMenu); // Create the New popup menu newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTAINER_CREATE, Data.emptyData())); newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTACT_CREATE_INCOMING_INVITATION, Data.emptyData())); // Create the Profile menu final Data updateProfileData = new Data(1); updateProfileData.set(Update.DataKey.DISPLAY_AVATAR, Boolean.TRUE); profileMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PROFILE_UPDATE, updateProfileData)); // Create the OpenHelp menu helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_OPEN_HELP, Data.emptyData())); helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_DISPLAY_INFO, Data.emptyData())); // Create the Sign-Up button this.add(Box.createRigidArea(new Dimension(9,0))); this.add(getSignUpButton()); // Add minimize, maximize and close buttons this.add(Box.createHorizontalGlue()); this.add(getMinimizeButton()); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getMaximizeButton(maximized)); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getCloseButton()); this.add(Box.createRigidArea(new Dimension(4,0))); }
| 1,113,897
|
public BrowserMenuBar(final Browser browser, final Boolean maximized) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeEdges.TOP); // Double click to maximize the browser window this.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(final java.awt.event.MouseEvent e) { if (e.getButton()==MouseEvent.BUTTON1) { if (e.getClickCount() % 2 == 0) { browser.maximize(); } } } }); // Create JMenus final JMenu newMenu = MenuFactory.create(localization.getString("New"), new Integer(localization.getString("NewMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(6,0))); newMenu.setBorder(new LineBorder(Color.WHITE)); this.add(newMenu); final JMenu profileMenu = MenuFactory.create(localization.getString("Profile"), new Integer(localization.getString("ProfileMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(profileMenu); final JMenu helpMenu = MenuFactory.create(localization.getString("Help"), new Integer(localization.getString("HelpMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(helpMenu); // Create the New popup menu newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTAINER_CREATE, Data.emptyData())); newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTACT_CREATE_INCOMING_INVITATION, Data.emptyData())); // Create the Profile menu final Data updateProfileData = new Data(1); updateProfileData.set(Update.DataKey.DISPLAY_AVATAR, Boolean.TRUE); profileMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PROFILE_UPDATE, updateProfileData)); // Create the OpenHelp menu helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_OPEN_HELP, Data.emptyData())); helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_DISPLAY_INFO, Data.emptyData())); // Create the Sign-Up button this.add(Box.createRigidArea(new Dimension(9,0))); this.add(getSignUpButton()); // Add minimize, maximize and close buttons this.add(Box.createHorizontalGlue()); this.add(getMinimizeButton()); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getMaximizeButton(maximized)); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getCloseButton()); this.add(Box.createRigidArea(new Dimension(4,0))); }
|
public BrowserMenuBar(final Browser browser, final Boolean maximized) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeEdges.TOP); // Double click to maximize the browser window this.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(final java.awt.event.MouseEvent e) { if (e.getButton()==MouseEvent.BUTTON1) { if (e.getClickCount() % 2 == 0) { browser.maximize(); } } } }); // Create JMenus final JMenu newMenu = MenuFactory.create(localization.getString("New"), new Integer(localization.getString("NewMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(6,0))); newMenu.setBorder(new LineBorder(Color.WHITE)); this.add(newMenu); final JMenu profileMenu = MenuFactory.create(localization.getString("Profile"), new Integer(localization.getString("ProfileMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(profileMenu); final JMenu helpMenu = MenuFactory.create(localization.getString("Help"), new Integer(localization.getString("HelpMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(helpMenu); // Create the New popup menu newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTAINER_CREATE, Data.emptyData())); newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTACT_CREATE_INCOMING_INVITATION, Data.emptyData())); // Create the Profile menu final Data updateProfileData = new Data(1); updateProfileData.set(Update.DataKey.DISPLAY_AVATAR, Boolean.TRUE); profileMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PROFILE_UPDATE, updateProfileData)); // Create the OpenHelp menu helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_OPEN_HELP, Data.emptyData())); helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_DISPLAY_INFO, Data.emptyData())); // Create the Sign-Up button this.add(Box.createRigidArea(new Dimension(9,0))); this.add(getSignUpButton()); // Add minimize, maximize and close buttons this.add(Box.createHorizontalGlue()); this.add(getMinimizeButton()); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getMaximizeButton(maximized)); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getCloseButton()); this.add(Box.createRigidArea(new Dimension(4,0))); }
| 1,113,898
|
public BrowserMenuBar(final Browser browser, final Boolean maximized) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeEdges.TOP); // Double click to maximize the browser window this.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(final java.awt.event.MouseEvent e) { if (e.getButton()==MouseEvent.BUTTON1) { if (e.getClickCount() % 2 == 0) { browser.maximize(); } } } }); // Create JMenus final JMenu newMenu = MenuFactory.create(localization.getString("New"), new Integer(localization.getString("NewMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(6,0))); newMenu.setBorder(new LineBorder(Color.WHITE)); this.add(newMenu); final JMenu profileMenu = MenuFactory.create(localization.getString("Profile"), new Integer(localization.getString("ProfileMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(profileMenu); final JMenu helpMenu = MenuFactory.create(localization.getString("Help"), new Integer(localization.getString("HelpMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(helpMenu); // Create the New popup menu newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTAINER_CREATE, Data.emptyData())); newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTACT_CREATE_INCOMING_INVITATION, Data.emptyData())); // Create the Profile menu final Data updateProfileData = new Data(1); updateProfileData.set(Update.DataKey.DISPLAY_AVATAR, Boolean.TRUE); profileMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PROFILE_UPDATE, updateProfileData)); // Create the OpenHelp menu helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_OPEN_HELP, Data.emptyData())); helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_DISPLAY_INFO, Data.emptyData())); // Create the Sign-Up button this.add(Box.createRigidArea(new Dimension(9,0))); this.add(getSignUpButton()); // Add minimize, maximize and close buttons this.add(Box.createHorizontalGlue()); this.add(getMinimizeButton()); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getMaximizeButton(maximized)); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getCloseButton()); this.add(Box.createRigidArea(new Dimension(4,0))); }
|
public BrowserMenuBar(final Browser browser, final Boolean maximized) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeEdges.TOP); // Double click to maximize the browser window this.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(final java.awt.event.MouseEvent e) { if (e.getButton()==MouseEvent.BUTTON1) { if (e.getClickCount() % 2 == 0) { browser.maximize(); } } } }); // Create JMenus final JMenu newMenu = MenuFactory.create(localization.getString("New"), new Integer(localization.getString("NewMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(6,0))); newMenu.setBorder(new LineBorder(Color.WHITE)); this.add(newMenu); final JMenu profileMenu = MenuFactory.create(localization.getString("Profile"), new Integer(localization.getString("ProfileMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(profileMenu); final JMenu helpMenu = MenuFactory.create(localization.getString("Help"), new Integer(localization.getString("HelpMnemonic").charAt(0))); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(helpMenu); // Create the New popup menu newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTAINER_CREATE, Data.emptyData())); newMenu.add(popupItemFactory.createMenuPopupItem(ActionId.CONTACT_CREATE_INCOMING_INVITATION, Data.emptyData())); // Create the Profile menu final Data updateProfileData = new Data(1); updateProfileData.set(Update.DataKey.DISPLAY_AVATAR, Boolean.TRUE); profileMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PROFILE_UPDATE, updateProfileData)); // Create the OpenHelp menu helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_OPEN_HELP, Data.emptyData())); helpMenu.add(popupItemFactory.createMenuPopupItem(ActionId.PLATFORM_BROWSER_DISPLAY_INFO, Data.emptyData())); // Create the Sign-Up button this.add(Box.createRigidArea(new Dimension(9,0))); this.add(getSignUpButton()); // Add minimize, maximize and close buttons this.add(Box.createHorizontalGlue()); this.add(getMinimizeButton()); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getMaximizeButton(maximized)); this.add(Box.createRigidArea(new Dimension(2,0))); this.add(getCloseButton()); this.add(Box.createRigidArea(new Dimension(4,0))); }
| 1,113,899
|
public static JMenu create(final String text, final Integer mnemonic) { return SINGLETON.doCreate(text, mnemonic); }
|
public static JMenu create(final String text, final Integer mnemonic) { return SINGLETON.doCreate(text, mnemonic); }
| 1,113,900
|
private void syncContainerInternal(final Long containerId, final Boolean remote) { final ContainerCell container = readContainer(containerId); // if the container is null; we can assume the container has been // deleted (it's not longer being created by the provider); so we find // the container and remove it if(null == container) { for(int i = 0; i < containerCells.size(); i++) { if(containerCells.get(i).getId().equals(containerId)) { containerCells.remove(i); break; } } } // the container is not null; therefore it is either new; or updated else { // the container is new if(!containerCells.contains(container)) { containerCells.add(0, container); // Get the draft if(container.isDraft() && container.isLocalDraft()) { final DraftCell draft = readDraft(container); draftCells.put(container, draft); final List<DraftDocumentCell> draftDocuments = toDisplay(draft, draft.getDocuments()); for(final DraftDocumentCell draftDocument : draftDocuments) { containerIdLookup.put(draftDocument.getId(), container.getId()); } draftDocumentCells.put(draft, draftDocuments); } // Get the versions final List<ContainerVersionCell> versions = readVersions(container); versionCells.put(container, versions); for(final ContainerVersionCell version : versions) { final List<ContainerVersionDocumentCell> versionDocuments = readVersionDocuments(version); for(final ContainerVersionDocumentCell versionDocument : versionDocuments) { containerIdLookup.put(versionDocument.getId(), container.getId()); } versionDocumentCells.put(version, readVersionDocuments(version)); } } // The container has been updated else { final int index = containerCells.indexOf(container); // if the reload is the result of a remote event add the container // at the top of the list; otherwise add it in the same location // it previously existed containerCells.remove(index); if(remote) { containerCells.add(0, container); } else { containerCells.add(index, container); } } } }
|
private void syncContainerInternal(final Long containerId, final Boolean remote) { final ContainerCell container = readContainer(containerId); // if the container is null; we can assume the container has been // deleted (it's not longer being created by the provider); so we find // the container and remove it if(null == container) { for(int i = 0; i < containerCells.size(); i++) { if(containerCells.get(i).getId().equals(containerId)) { containerCells.remove(i); break; } } } // the container is not null; therefore it is either new; or updated else { // the container is new if(!containerCells.contains(container)) { containerCells.add(0, container); // Get the draft if(container.isDraft() && container.isLocalDraft()) { final DraftCell draft = readDraft(container); draftCells.put(container, draft); final List<DraftDocumentCell> draftDocuments = toDisplay(draft, draft.getDocuments()); for(final DraftDocumentCell draftDocument : draftDocuments) { containerIdLookup.put(draftDocument.getId(), container.getId()); } draftDocumentCells.put(draft, draftDocuments); } // Get the versions final List<ContainerVersionCell> versions = readVersions(container); versionCells.put(container, versions); for(final ContainerVersionCell version : versions) { final List<ContainerVersionDocumentCell> versionDocuments = readVersionDocuments(version); for(final ContainerVersionDocumentCell versionDocument : versionDocuments) { containerIdLookup.put(versionDocument.getId(), container.getId()); } versionDocumentCells.put(version, readVersionDocuments(version)); } } // The container has been updated else { final int index = containerCells.indexOf(container); // if the reload is the result of a remote event add the container // at the top of the list; otherwise add it in the same location // it previously existed containerCells.remove(index); if(remote) { containerCells.add(0, container); } else { containerCells.add(index, container); } } } }
| 1,113,901
|
protected void triggerExpand(final TabCell mainCell) { if (mainCell instanceof ContainerCell) { final ContainerCell cc = (ContainerCell) mainCell; if(isExpanded(cc)) { cc.setExpanded(Boolean.FALSE); } else { cc.setExpanded(Boolean.TRUE); } synchronize(); } else if (mainCell instanceof DraftCell) { final DraftCell draft = (DraftCell) mainCell; if(isExpanded(draft)) { draft.setExpanded(Boolean.FALSE); } else { draft.setExpanded(Boolean.TRUE); } synchronize(); } else if (mainCell instanceof ContainerVersionCell) { final ContainerVersionCell cv = (ContainerVersionCell) mainCell; if(isExpanded(cv)) { cv.setExpanded(Boolean.FALSE); } else { cv.setExpanded(Boolean.TRUE); } synchronize(); } }
|
protected void triggerExpand(final TabCell mainCell) { if (mainCell instanceof ContainerCell) { final ContainerCell cc = (ContainerCell) mainCell; if(isExpanded(cc)) { cc.setExpanded(Boolean.FALSE); browser.runApplyFlagSeenArtifact(cc.getId(), ArtifactType.CONTAINER); } else { cc.setExpanded(Boolean.TRUE); browser.runApplyFlagSeenArtifact(cc.getId(), ArtifactType.CONTAINER); } synchronize(); browser.runApplyFlagSeenArtifact(cc.getId(), ArtifactType.CONTAINER); } else if (mainCell instanceof DraftCell) { final DraftCell draft = (DraftCell) mainCell; if(isExpanded(draft)) { draft.setExpanded(Boolean.FALSE); browser.runApplyFlagSeenArtifact(cc.getId(), ArtifactType.CONTAINER); } else { draft.setExpanded(Boolean.TRUE); browser.runApplyFlagSeenArtifact(cc.getId(), ArtifactType.CONTAINER); } synchronize(); browser.runApplyFlagSeenArtifact(cc.getId(), ArtifactType.CONTAINER); } else if (mainCell instanceof ContainerVersionCell) { final ContainerVersionCell cv = (ContainerVersionCell) mainCell; if(isExpanded(cv)) { cv.setExpanded(Boolean.FALSE); browser.runApplyFlagSeenArtifact(cc.getId(), ArtifactType.CONTAINER); } else { cv.setExpanded(Boolean.TRUE); browser.runApplyFlagSeenArtifact(cc.getId(), ArtifactType.CONTAINER); } synchronize(); browser.runApplyFlagSeenArtifact(cc.getId(), ArtifactType.CONTAINER); } browser.runApplyFlagSeenArtifact(cc.getId(), ArtifactType.CONTAINER); }
| 1,113,903
|
public static String read(final File file) throws FileNotFoundException, IOException { final BufferedReader br = new BufferedReader(new FileReader(file), READ_BUFFER_SIZE); final StringBuffer sbuf = new StringBuffer(); char[] cbuf = new char[READ_BUFFER_SIZE]; int chars; while((chars = br.read(cbuf)) > 0) { sbuf.append(cbuf, 0, chars); } return sbuf.toString(); }
|
public static String read(final File file) throws FileNotFoundException, IOException { final BufferedReader br = new BufferedReader(new FileReader(file), READ_BUFFER_SIZE); final StringBuffer sbuf = new StringBuffer(); char[] cbuf = new char[READ_BUFFER_SIZE]; int chars; while((chars = br.read(cbuf)) > 0) { sbuf.append(cbuf, 0, chars); } return sbuf.toString(); }
| 1,113,905
|
public static String read(final File file) throws FileNotFoundException, IOException { final BufferedReader br = new BufferedReader(new FileReader(file), READ_BUFFER_SIZE); final StringBuffer sbuf = new StringBuffer(); char[] cbuf = new char[READ_BUFFER_SIZE]; int chars; while((chars = br.read(cbuf)) > 0) { sbuf.append(cbuf, 0, chars); } return sbuf.toString(); }
|
public static String read(final File file) throws FileNotFoundException, IOException { final BufferedReader br = new BufferedReader(new FileReader(file), READ_BUFFER_SIZE); final StringBuffer sbuf = new StringBuffer(); char[] cbuf = new char[READ_BUFFER_SIZE]; int chars; while((chars = br.read(cbuf)) > 0) { sbuf.append(cbuf, 0, chars); } finally { br.close(); } }
| 1,113,906
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
| 1,113,907
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
| 1,113,908
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
| 1,113,909
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
| 1,113,910
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
| 1,113,911
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
| 1,113,912
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
| 1,113,913
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
| 1,113,914
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
| 1,113,915
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
|
SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); xmppSession.addListener(new ArtifactListener() { public void handleDraftCreated(final ArtifactDraftCreatedEvent event) { getArtifactModel().handleDraftCreated(event); } public void handleDraftDeleted(final ArtifactDraftDeletedEvent event) { getArtifactModel().handleDraftDeleted(event); } public void handlePublished(final ArtifactPublishedEvent event) { getArtifactModel().handlePublished(event); } public void handleReceived(final ArtifactReceivedEvent event) { getArtifactModel().handleReceived(event); } public void handleTeamMemberAdded(final ArtifactTeamMemberAddedEvent event) { getArtifactModel().handleTeamMemberAdded(event); } public void handleTeamMemberRemoved(final ArtifactTeamMemberRemovedEvent event) { getArtifactModel().handleTeamMemberRemoved(event); } }); xmppSession.addListener(new ContainerListener() { public void handleArtifactPublished( final ContainerArtifactPublishedEvent event) { getContainerModel().handleArtifactPublished(event); } public void handlePublished(final ContainerPublishedEvent event) { getContainerModel().handlePublished(event); } }); xmppSession.addListener(new ContactListener() { public void handleDeleted(final ContactDeletedEvent event) { getContactModel().handleContactDeleted(event); } public void handleUpdated(final ContactUpdatedEvent event) { getContactModel().handleContactUpdated(event); } public void handleInvitationAccepted( final ContactInvitationAcceptedEvent event) { getContactModel().handleInvitationAccepted(event); } public void handleInvitationDeclined( final ContactInvitationDeclinedEvent event) { getContactModel().handleInvitationDeclined(event); } public void handleInvitationDeleted( final ContactInvitationDeletedEvent event) { getContactModel().handleInvitationDeleted(event); } public void handleInvitationExtended( final ContactInvitationExtendedEvent event) { getContactModel().handleInvitationExtended(event); } }); xmppSession.addListener(new SessionListener() { public void sessionEstablished() { getSessionModel().handleSessionEstablished(); } public void sessionTerminated() { getSessionModel().handleSessionTerminated(); } public void sessionTerminated(final Exception x) { getSessionModel().handleSessionTerminated(x); } }); }
| 1,113,916
|
public Document(final Project parent, final String name, final Calendar createdOn, final String createdBy, final String keyHolder, final String description, final File directory, final UUID id, final byte[] content) { super(parent, name, description, createdOn, createdBy, keyHolder, id); this.directory = directory; this.content = content; this.contentChecksum = MD5Util.md5Hex(content); this.versions = new Vector<DocumentVersion>(1); }
|
public Document(final String name, final Calendar createdOn, final String createdBy, final String keyHolder, final String description, final File directory, final UUID id, final byte[] content) { super(parent, name, description, createdOn, createdBy, keyHolder, id); this.directory = directory; this.content = content; this.contentChecksum = MD5Util.md5Hex(content); this.versions = new Vector<DocumentVersion>(1); }
| 1,113,918
|
public Document(final Project parent, final String name, final Calendar createdOn, final String createdBy, final String keyHolder, final String description, final File directory, final UUID id, final byte[] content) { super(parent, name, description, createdOn, createdBy, keyHolder, id); this.directory = directory; this.content = content; this.contentChecksum = MD5Util.md5Hex(content); this.versions = new Vector<DocumentVersion>(1); }
|
public Document(final Project parent, final String name, final Calendar createdOn, final String createdBy, final String keyHolder, final String description, final File directory, final UUID id, final byte[] content) { super(parent, name, description, createdOn, createdBy, keyHolder, id); this.directory = directory; this.content = content; this.contentChecksum = MD5Util.md5Hex(content); this.versions = new Vector<DocumentVersion>(1); }
| 1,113,919
|
public Document(final Project parent, final String name, final Calendar createdOn, final String createdBy, final String keyHolder, final String description, final File directory, final UUID id, final byte[] content) { super(parent, name, description, createdOn, createdBy, keyHolder, id); this.directory = directory; this.content = content; this.contentChecksum = MD5Util.md5Hex(content); this.versions = new Vector<DocumentVersion>(1); }
|
public Document(final Project parent, final String name, final Calendar createdOn, final String createdBy, final String keyHolder, final String description, final File directory, final UUID id, final byte[] content) { super(parent, name, description, createdOn, createdBy, keyHolder, id); this.directory = directory; this.content = content; this.contentChecksum = MD5Util.md5Hex(content); this.versions = new Vector<DocumentVersion>(1); }
| 1,113,920
|
protected String render(final Object o) { return Log4JHelper.render(logger, o); }
|
protected Object render(final Object o) { return Log4JHelper.render(logger, o); }
| 1,113,921
|
private void saveProperties() throws IOException { properties.setProperty(PropertyNames.ParityImageName, image.getName()); PropertiesUtil.store(properties, new File(Directories.ParityInstall, FileNames.ThinkParityProperties), Sundry.ThinKParityHeader); }
|
private void saveProperties() throws IOException { properties.setProperty(PropertyNames.ParityImageName, image.getName()); PropertiesUtil.store(properties, new File(Directories.ParityInstall, FileNames.ThinkParityProperties), Sundry.ThinkParityHeader); }
| 1,113,922
|
public Document get(final UUID id) throws FileNotFoundException, IOException { logger.info("get(UUID)"); logger.debug(id); final Index index = readIndex(getIndexXmlFile()); final File xmlFile = index.lookupXmlFile(id); if(null == xmlFile) { return null; } else { return readDocument(xmlFile); } }
|
public Document get(final UUID id) throws FileNotFoundException, IOException { logger.info("get(UUID)"); logger.debug(id); final Index index = readIndex(getIndexXmlFile()); final File xmlFile = index.lookupXmlFile(id); if(null == xmlFile) { return null; } else { return readDocument(xmlFile); } }
| 1,113,923
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); directoryJLabel = new javax.swing.JLabel(); directoryJTextField = new javax.swing.JTextField(); directoryJButton = new javax.swing.JButton(); openWhenDoneCheckBox = new javax.swing.JCheckBox(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("ExportDialog.ExplanationContainer")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); explanationJLabel.setFocusable(false); directoryJLabel.setText(bundle.getString("ExportDialog.Directory")); // NOI18N directoryJLabel.setFocusable(false); directoryJTextField.setEditable(false); directoryJTextField.setFocusable(false); directoryJButton.setText(bundle.getString("ExportDialog.DirectoryButton")); // NOI18N directoryJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { directoryJButtonActionPerformed(evt); } }); openWhenDoneCheckBox.setText(bundle.getString("ExportDialog.RunWhenDoneCheckbox")); // NOI18N openWhenDoneCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); openWhenDoneCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); okJButton.setText(bundle.getString("ExportDialog.OK")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("ExportDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, openWhenDoneCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .add(directoryJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 42, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(directoryJLabel) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(directoryJButton)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(openWhenDoneCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); directoryJLabel = new javax.swing.JLabel(); directoryJButton = new javax.swing.JButton(); openWhenDoneCheckBox = new javax.swing.JCheckBox(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("ExportDialog.ExplanationContainer")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); explanationJLabel.setFocusable(false); directoryJLabel.setText(bundle.getString("ExportDialog.Directory")); // NOI18N directoryJLabel.setFocusable(false); directoryJTextField.setEditable(false); directoryJTextField.setFocusable(false); directoryJButton.setText(bundle.getString("ExportDialog.DirectoryButton")); // NOI18N directoryJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { directoryJButtonActionPerformed(evt); } }); openWhenDoneCheckBox.setText(bundle.getString("ExportDialog.RunWhenDoneCheckbox")); // NOI18N openWhenDoneCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); openWhenDoneCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); okJButton.setText(bundle.getString("ExportDialog.OK")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("ExportDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, openWhenDoneCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .add(directoryJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 42, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(directoryJLabel) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(directoryJButton)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(openWhenDoneCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,924
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); directoryJLabel = new javax.swing.JLabel(); directoryJTextField = new javax.swing.JTextField(); directoryJButton = new javax.swing.JButton(); openWhenDoneCheckBox = new javax.swing.JCheckBox(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("ExportDialog.ExplanationContainer")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); explanationJLabel.setFocusable(false); directoryJLabel.setText(bundle.getString("ExportDialog.Directory")); // NOI18N directoryJLabel.setFocusable(false); directoryJTextField.setEditable(false); directoryJTextField.setFocusable(false); directoryJButton.setText(bundle.getString("ExportDialog.DirectoryButton")); // NOI18N directoryJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { directoryJButtonActionPerformed(evt); } }); openWhenDoneCheckBox.setText(bundle.getString("ExportDialog.RunWhenDoneCheckbox")); // NOI18N openWhenDoneCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); openWhenDoneCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); okJButton.setText(bundle.getString("ExportDialog.OK")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("ExportDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, openWhenDoneCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .add(directoryJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 42, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(directoryJLabel) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(directoryJButton)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(openWhenDoneCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); directoryJLabel = new javax.swing.JLabel(); directoryJTextField = new javax.swing.JTextField(); directoryJButton = new javax.swing.JButton(); openWhenDoneCheckBox = new javax.swing.JCheckBox(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("ExportDialog.ExplanationContainer")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); explanationJLabel.setFocusable(false); directoryJLabel.setText(bundle.getString("ExportDialog.Directory")); // NOI18N directoryJLabel.setFocusable(false); directoryJTextField.setEditable(false); directoryJTextField.setFocusable(false); directoryJButton.setText(bundle.getString("ExportDialog.DirectoryButton")); // NOI18N directoryJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { directoryJButtonActionPerformed(evt); } }); openWhenDoneCheckBox.setText(bundle.getString("ExportDialog.RunWhenDoneCheckbox")); // NOI18N openWhenDoneCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); openWhenDoneCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); okJButton.setText(bundle.getString("ExportDialog.OK")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("ExportDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, openWhenDoneCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .add(directoryJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 42, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(directoryJLabel) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(directoryJButton)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(openWhenDoneCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,925
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); directoryJLabel = new javax.swing.JLabel(); directoryJTextField = new javax.swing.JTextField(); directoryJButton = new javax.swing.JButton(); openWhenDoneCheckBox = new javax.swing.JCheckBox(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("ExportDialog.ExplanationContainer")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); explanationJLabel.setFocusable(false); directoryJLabel.setText(bundle.getString("ExportDialog.Directory")); // NOI18N directoryJLabel.setFocusable(false); directoryJTextField.setEditable(false); directoryJTextField.setFocusable(false); directoryJButton.setText(bundle.getString("ExportDialog.DirectoryButton")); // NOI18N directoryJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { directoryJButtonActionPerformed(evt); } }); openWhenDoneCheckBox.setText(bundle.getString("ExportDialog.RunWhenDoneCheckbox")); // NOI18N openWhenDoneCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); openWhenDoneCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); okJButton.setText(bundle.getString("ExportDialog.OK")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("ExportDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, openWhenDoneCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .add(directoryJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 42, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(directoryJLabel) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(directoryJButton)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(openWhenDoneCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); directoryJLabel = new javax.swing.JLabel(); directoryJTextField = new javax.swing.JTextField(); directoryJButton = new javax.swing.JButton(); openWhenDoneCheckBox = new javax.swing.JCheckBox(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("ExportDialog.ExplanationContainer")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); explanationJLabel.setFocusable(false); directoryJLabel.setText(bundle.getString("ExportDialog.Directory")); // NOI18N directoryJLabel.setFocusable(false); directoryJTextField.setEditable(false); directoryJTextField.setFocusable(false); directoryJButton.setText(bundle.getString("ExportDialog.DirectoryButton")); // NOI18N directoryJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { directoryJButtonActionPerformed(evt); } }); openWhenDoneCheckBox.setText(bundle.getString("ExportDialog.RunWhenDoneCheckbox")); // NOI18N openWhenDoneCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); openWhenDoneCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); okJButton.setText(bundle.getString("ExportDialog.OK")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("ExportDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, openWhenDoneCheckBox, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .add(directoryJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(directoryJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 42, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(directoryJLabel) .add(directoryJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(directoryJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(openWhenDoneCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,113,926
|
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory.create(); setLayout(new java.awt.GridBagLayout()); historyListScrollPane.setBorder(null); historyListScrollPane.setViewportView(historyList); historyListScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); historyModel = new DefaultListModel(); historyList.setCellRenderer(new ActiveCellRenderer()); // HEIGHT History List Cell 21 historyList.setFixedCellHeight(21); historyList.setLayoutOrientation(JList.VERTICAL); historyList.setModel(historyModel); historyList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); historyList.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseReleased(java.awt.event.MouseEvent e) { historyListMouseReleased(e); } }); historyListScrollPane.setViewportView(historyList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 0, 2); add(historyListScrollPane, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory.create(); setLayout(new java.awt.GridBagLayout()); historyListScrollPane.setBorder(null); historyListScrollPane.setViewportView(historyList); historyListScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); historyModel = new DefaultListModel(); historyList.setCellRenderer(new ActiveCellRenderer()); // HEIGHT History List Cell 21 historyList.setFixedCellHeight(21); historyList.setLayoutOrientation(JList.VERTICAL); historyList.setModel(historyModel); historyList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); historyList.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseReleased(java.awt.event.MouseEvent e) { historyListMouseReleased(e); } }); historyListScrollPane.setViewportView(historyList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(2, 2, 0, 2); add(historyListScrollPane, gridBagConstraints); }// </editor-fold>//GEN-END:initComponents
| 1,113,931
|
public List<User> readPublishedTo(final Long containerId, final Long versionId);
|
public Map<User, Calendar> readPublishedTo(final Long containerId, final Long versionId);
| 1,113,934
|
protected void setUp() throws Exception { super.setUp(); login(); final ContainerModel cModel = getContainerModel(); datum = new Fixture(cModel, NAME); cModel.addListener(datum); }
|
protected void setUp() throws Exception { super.setUp(); final ContainerModel cModel = getContainerModel(); datum = new Fixture(cModel, NAME); cModel.addListener(datum); }
| 1,113,936
|
protected void tearDown() throws Exception { getContainerModel().removeListener(datum); logout(); datum = null; super.tearDown(); }
|
protected void tearDown() throws Exception { getContainerModel().removeListener(datum); datum = null; super.tearDown(); }
| 1,113,937
|
public void removeArtifactTeamMember(final UUID artifactUniqueId) throws SmackException { logger.info("sendDelete(UUID)"); logger.debug(artifactUniqueId); final IQArtifact delete = new IQDeleteArtifact(artifactUniqueId); delete.setType(IQ.Type.SET); sendAndConfirmPacket(delete); }
|
public void removeArtifactTeamMember(final UUID artifactUniqueId) throws SmackException { logger.info("sendDelete(UUID)"); logger.debug(artifactUniqueId); final IQArtifact delete = new IQDeleteArtifact(artifactUniqueId); delete.setType(IQ.Type.SET); sendAndConfirmPacket(delete); }
| 1,113,939
|
BrowserTitleAvatar() { super("BrowserTitleAvatar"); this.mouseInputAdapter = new MouseInputAdapter() { int offsetX; int offsetY; public void mouseDragged(final MouseEvent e) { getController().moveMainWindow( new Point(e.getPoint().x - offsetX, e.getPoint().y - offsetY)); } public void mousePressed(MouseEvent e) { offsetX = e.getPoint().x; offsetY = e.getPoint().y; } }; addMouseListener(mouseInputAdapter); addMouseMotionListener(mouseInputAdapter); setLayout(new GridBagLayout()); initBrowserTitleComponents(); }
|
BrowserTitleAvatar() { super("BrowserTitleAvatar"); this.mouseInputAdapter = new MouseInputAdapter() { int offsetX; int offsetY; public void mouseDragged(final MouseEvent e) { getController().moveMainWindow( new Point(e.getPoint().x - offsetX, e.getPoint().y - offsetY)); } public void mousePressed(MouseEvent e) { offsetX = e.getPoint().x; offsetY = e.getPoint().y; } }; addMouseListener(mouseInputAdapter); addMouseMotionListener(mouseInputAdapter); setLayout(new GridBagLayout()); initComponents(); }
| 1,113,942
|
public void actionPerformed(final ActionEvent e) { getController().end(); }
|
public void actionPerformed(final ActionEvent e) { getController().end(); }
| 1,113,943
|
BrowserWindow(final Browser browser) throws HeadlessException { super("BrowserWindow"); this.browser = browser; this.logger = Logger.getLogger(getClass()); this.persistence = PersistenceFactory.getPersistence(getClass()); final Boolean maximized = persistence.get("maximized", Boolean.FALSE); getRootPane().setBorder(new WindowBorder2()); addWindowListener(new WindowAdapter() { public void windowClosing(final WindowEvent e) { persist(); browser.hibernate(); }}); initMenu(maximized); setIconImage(com.thinkparity.ophelia.browser.Constants.Images.WINDOW_ICON_IMAGE); setTitle(java.util.ResourceBundle.getBundle("localization/JFrame_Messages").getString("BrowserWindow.Title")); setUndecorated(true); setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); final Point location = persistence.get("location", getMainWindowLocation()); location.x = (location.x < 0 ? 0 : location.x ); location.y = (location.y < 0 ? 0 : location.y ); setLocation(location.x, location.y); mainWindowLocation.setLocation(location); final Dimension size = persistence.get("size", getMainWindowSize()); mainWindowSize.setSize(size); if (maximized) { setMaximizedBounds(SwingUtil.getPrimaryDesktopBounds()); setExtendedState(getExtendedState() | JFrame.MAXIMIZED_BOTH); } setResizable(true); setMinimumSize(getMainWindowSize()); setSize(getMainWindowSize()); initComponents(); if (!maximized) { roundCorners(); } // Set up the semi-transparent JPanel semiTransparentJPanel = new SemiTransparentJPanel(Boolean.FALSE); getLayeredPane().add(semiTransparentJPanel, JLayeredPane.PALETTE_LAYER); new Resizer(browser, this, Boolean.FALSE, Resizer.ResizeEdges.ALL_EDGES); }
|
BrowserWindow(final Browser browser) throws HeadlessException { super("BrowserWindow"); this.browser = browser; this.logger = Logger.getLogger(getClass()); this.persistence = PersistenceFactory.getPersistence(getClass()); final Boolean maximized = persistence.get("maximized", Boolean.FALSE); getRootPane().setBorder(new WindowBorder2()); addWindowListener(new WindowAdapter() { public void windowClosing(final WindowEvent e) { persist(); browser.hibernate(); }}); initMenu(maximized); setIconImage(com.thinkparity.ophelia.browser.Constants.Images.WINDOW_ICON_IMAGE); setTitle(java.util.ResourceBundle.getBundle("localization/JFrame_Messages").getString("BrowserWindow.Title")); setUndecorated(true); setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); final Point location = persistence.get("location", getMainWindowLocation()); location.x = (location.x < 0 ? 0 : location.x ); location.y = (location.y < 0 ? 0 : location.y ); setLocation(location.x, location.y); mainWindowLocation.setLocation(location); final Dimension size = persistence.get("size", getMainWindowSize()); mainWindowSize.setSize(size); if (maximized) { setMaximizedBounds(SwingUtil.getPrimaryDesktopBounds()); setExtendedState(getExtendedState() | JFrame.MAXIMIZED_BOTH); } setResizable(true); setMinimumSize(Dimensions.BrowserWindow.MIN_SIZE); setSize(getMainWindowSize()); initComponents(); if (!maximized) { roundCorners(); } // Set up the semi-transparent JPanel semiTransparentJPanel = new SemiTransparentJPanel(Boolean.FALSE); getLayeredPane().add(semiTransparentJPanel, JLayeredPane.PALETTE_LAYER); new Resizer(browser, this, Boolean.FALSE, Resizer.ResizeEdges.ALL_EDGES); }
| 1,113,944
|
public void setMainWindowSize(final Dimension d) { final Dimension dFinal = new Dimension(d); // Honour the minimum window size. if (dFinal.getWidth() < Dimensions.BrowserWindow.MIN_SIZE.getWidth()) { dFinal.width = (int)Dimensions.BrowserWindow.MIN_SIZE.getWidth(); } if (dFinal.getHeight() < Dimensions.BrowserWindow.MIN_SIZE.getHeight()) { dFinal.height = (int)Dimensions.BrowserWindow.MIN_SIZE.getHeight(); } if (!getSize().equals(dFinal)) { setMinimumSize(dFinal); setSize(dFinal); mainWindowSize.setSize(dFinal); roundCorners(); validate(); } }
|
public void setMainWindowSize(final Dimension d) { final Dimension dFinal = new Dimension(d); // Honour the minimum window size. if (dFinal.getWidth() < Dimensions.BrowserWindow.MIN_SIZE.getWidth()) { dFinal.width = (int)Dimensions.BrowserWindow.MIN_SIZE.getWidth(); } if (dFinal.getHeight() < Dimensions.BrowserWindow.MIN_SIZE.getHeight()) { dFinal.height = (int)Dimensions.BrowserWindow.MIN_SIZE.getHeight(); } if (!getSize().equals(dFinal)) { setSize(dFinal); mainWindowSize.setSize(dFinal); roundCorners(); validate(); } }
| 1,113,945
|
public void setMainWindowSizeAndLocation(final Point p, final Dimension d) { final Point pFinal = new Point(p); final Dimension dFinal = new Dimension(d); // Honour the minimum window size. When going below the size limit in // either x or y, limit both the resize and the move in that direction. if (dFinal.getWidth() < Dimensions.BrowserWindow.MIN_SIZE.getWidth()) { if (pFinal.x != getLocation().x) { pFinal.x += (dFinal.getWidth() - Dimensions.BrowserWindow.MIN_SIZE.getWidth()); } dFinal.width = (int)Dimensions.BrowserWindow.MIN_SIZE.getWidth(); } if (dFinal.getHeight() < Dimensions.BrowserWindow.MIN_SIZE.getHeight()) { if (pFinal.y != getLocation().y) { pFinal.y += (dFinal.getHeight() - Dimensions.BrowserWindow.MIN_SIZE.getHeight()); } dFinal.height = (int)Dimensions.BrowserWindow.MIN_SIZE.getHeight(); } final Boolean move = !getLocation().equals(pFinal); final Boolean resize = !getSize().equals(dFinal); if (resize) { if (move) { // Move and resize setBounds(pFinal.x, pFinal.y, (int)dFinal.getWidth(), (int)dFinal.getHeight()); } else { // Resize only setSize(dFinal); } setMinimumSize(dFinal); mainWindowSize.setSize(dFinal); mainWindowLocation.setLocation(pFinal); roundCorners(); validate(); } else if (move) { // Move only setLocation(pFinal); mainWindowLocation.setLocation(pFinal); } }
|
public void setMainWindowSizeAndLocation(final Point p, final Dimension d) { final Point pFinal = new Point(p); final Dimension dFinal = new Dimension(d); // Honour the minimum window size. When going below the size limit in // either x or y, limit both the resize and the move in that direction. if (dFinal.getWidth() < Dimensions.BrowserWindow.MIN_SIZE.getWidth()) { if (pFinal.x != getLocation().x) { pFinal.x += (dFinal.getWidth() - Dimensions.BrowserWindow.MIN_SIZE.getWidth()); } dFinal.width = (int)Dimensions.BrowserWindow.MIN_SIZE.getWidth(); } if (dFinal.getHeight() < Dimensions.BrowserWindow.MIN_SIZE.getHeight()) { if (pFinal.y != getLocation().y) { pFinal.y += (dFinal.getHeight() - Dimensions.BrowserWindow.MIN_SIZE.getHeight()); } dFinal.height = (int)Dimensions.BrowserWindow.MIN_SIZE.getHeight(); } final Boolean move = !getLocation().equals(pFinal); final Boolean resize = !getSize().equals(dFinal); if (resize) { if (move) { // Move and resize setBounds(pFinal.x, pFinal.y, (int)dFinal.getWidth(), (int)dFinal.getHeight()); } else { // Resize only setSize(dFinal); } mainWindowSize.setSize(dFinal); mainWindowLocation.setLocation(pFinal); roundCorners(); validate(); } else if (move) { // Move only setLocation(pFinal); mainWindowLocation.setLocation(pFinal); } }
| 1,113,946
|
protected void setUp() throws Exception { super.setUp(); final Integer VERSION_COUNT = 3; final DocumentModel documentModel = getDocumentModel(OpheliaTestUser.JUNIT); data = new Vector<Fixture>(getInputFilesLength()); for(final File testFile : getInputFiles()) { final Document document = createDocument(OpheliaTestUser.JUNIT, testFile); for(int i = 0; i < VERSION_COUNT; i++) { modifyDocument(OpheliaTestUser.JUNIT, document); documentModel.createVersion(document.getId()); } data.add(new Fixture(document, documentModel, VERSION_COUNT)); } }
|
protected void setUp() throws Exception { super.setUp(); final Integer VERSION_COUNT = 3; final DocumentModel documentModel = getDocumentModel(OpheliaTestUser.JUNIT); data = new Vector<Fixture>(getInputFilesLength()); for(final File testFile : getInputFiles()) { final Document document = createDocument(OpheliaTestUser.JUNIT, testFile); for(int i = 0; i < VERSION_COUNT; i++) { modifyDocument(OpheliaTestUser.JUNIT, document.getId()); documentModel.createVersion(document.getId()); } data.add(new Fixture(document, documentModel, VERSION_COUNT)); } }
| 1,113,947
|
private void handleArtifactClosed(final UUID artifactUniqueId, final JabberId artifactClosedBy) { SessionModelImpl.notifyArtifactClosed(artifactUniqueId, artifactClosedBy); }
|
private void handleArtifactClosed(final UUID artifactUniqueId, final JabberId artifactClosedBy) { try { SessionModelImpl.notifyArtifactClosed( artifactUniqueId, artifactClosedBy); } catch(final ParityException px) { unexpectedOccured(px); } catch(final RuntimeException rx) { unexpectedOccured(rx); } }
| 1,113,948
|
private void handleDocumentReceived(final XMPPDocument xmppDocument) { SessionModelImpl.notifyDocumentReceived(xmppDocument); }
|
private void handleDocumentReceived(final XMPPDocument xmppDocument) { try { SessionModelImpl.notifyDocumentReceived(xmppDocument); } catch(final ParityException px) { unexpectedOccured(px); } catch(final RuntimeException rx) { unexpectedOccured(rx); } }
| 1,113,949
|
private void handleInvitationAccepted(final JabberId acceptedBy) { SessionModelImpl.notifyInvitationAccepted(acceptedBy); }
|
private void handleInvitationAccepted(final JabberId acceptedBy) { try { SessionModelImpl.notifyInvitationAccepted(acceptedBy); } catch(final RuntimeException rx) { unexpectedOccured(rx); } }
| 1,113,950
|
private void handleInvitationDeclined(final JabberId declinedBy) { SessionModelImpl.notifyInvitationDeclined(declinedBy); }
|
private void handleInvitationDeclined(final JabberId declinedBy) { try { SessionModelImpl.notifyInvitationDeclined(declinedBy); } catch(final RuntimeException rx) { unexpectedOccured(rx); } }
| 1,113,951
|
private void handleInvitationExtended(final JabberId invitedBy) { SessionModelImpl.notifyInvitationExtended(invitedBy); }
|
private void handleInvitationExtended(final JabberId invitedBy) { try { SessionModelImpl.notifyInvitationExtended(invitedBy); } catch(final RuntimeException rx) { unexpectedOccured(rx); } }
| 1,113,952
|
private void handleKeyRequestAccepted(final UUID artifactUniqueId, final JabberId acceptedBy) { SessionModelImpl.notifyKeyRequestAccepted(artifactUniqueId, acceptedBy); }
|
private void handleKeyRequestAccepted(final UUID artifactUniqueId, final JabberId acceptedBy) { try { SessionModelImpl.notifyKeyRequestAccepted( artifactUniqueId, acceptedBy); } catch(final ParityException px) { unexpectedOccured(px); } catch(final RuntimeException rx) { unexpectedOccured(rx); } catch(final SmackException sx) { unexpectedOccured(sx); } }
| 1,113,953
|
private void handleKeyRequestDenied(final UUID artifactUniqueId, final JabberId deniedBy) { SessionModelImpl.notifyKeyRequestDenied(artifactUniqueId, deniedBy); }
|
private void handleKeyRequestDenied(final UUID artifactUniqueId, final JabberId deniedBy) { try { SessionModelImpl.notifyKeyRequestDenied(artifactUniqueId, deniedBy); } catch(final ParityException px) { unexpectedOccured(px); } catch(final RuntimeException rx) { unexpectedOccured(rx); } }
| 1,113,954
|
private void handleKeyRequested(final UUID artifactUniqueId, final JabberId requestedBy) { SessionModelImpl.notifyKeyRequested(artifactUniqueId, requestedBy); }
|
private void handleKeyRequested(final UUID artifactUniqueId, final JabberId requestedBy) { try { SessionModelImpl.notifyKeyRequested(artifactUniqueId, requestedBy); } catch(final ParityException px) { unexpectedOccured(px); } catch(final RuntimeException rx) { unexpectedOccured(rx); } catch(final SmackException sx) { unexpectedOccured(sx); } }
| 1,113,955
|
private void handleSessionEstablished() { SessionModelImpl.notifySessionEstablished(); }
|
private void handleSessionEstablished() { try { SessionModelImpl.notifySessionEstablished(); } catch(final RuntimeException rx) { unexpectedOccured(rx); } }
| 1,113,956
|
private void handleSessionTerminated() { SessionModelImpl.notifySessionTerminated(); }
|
private void handleSessionTerminated() { try { SessionModelImpl.notifySessionTerminated(); } catch(final RuntimeException rx) { unexpectedOccured(rx); } }
| 1,113,957
|
public void delete(final Long artifactId) throws HypersonicException { final Session session = openSession(); try { final Long[] auditIds = listAuditIds(session, artifactId); final Long[] metaDataIds = listMetaDataIds(session, auditIds); for(final Long metaDataId : metaDataIds) metaDataIO.delete(session, metaDataId); session.prepareStatement(SQL_DELETE_AUDIT_META_DATA); for(final Long metaDataId : metaDataIds) { session.setLong(1, metaDataId); if(1 != session.executeUpdate()) throw new HypersonicException("Could not delete audit meta data."); } session.prepareStatement(SQL_DELETE_AUDIT_VERSION); session.setLong(1, artifactId); int rowsDeleted = session.executeUpdate(); if(0 != rowsDeleted && 1 != rowsDeleted) throw new HypersonicException("Could not delete audit version."); session.prepareStatement(SQL_DELETE_AUDIT); session.setLong(1, artifactId); if(1 != session.executeUpdate()) throw new HypersonicException("Could not delete audit."); session.commit(); } catch(final HypersonicException hx) { session.rollback(); throw hx; } finally { session.close(); } }
|
public void delete(final Long artifactId) throws HypersonicException { final Session session = openSession(); try { final Long[] auditIds = listAuditIds(session, artifactId); final Long[] metaDataIds = listMetaDataIds(session, auditIds); for(final Long metaDataId : metaDataIds) metaDataIO.delete(session, metaDataId); session.prepareStatement(SQL_DELETE_AUDIT_META_DATA); for(final Long metaDataId : metaDataIds) { session.setLong(1, metaDataId); if(1 != session.executeUpdate()) throw new HypersonicException("Could not delete audit meta data."); } session.prepareStatement(SQL_DELETE_AUDIT_VERSION); session.setLong(1, artifactId); int rowsDeleted = session.executeUpdate(); if(0 != rowsDeleted && 1 != rowsDeleted) throw new HypersonicException("Could not delete audit version."); session.prepareStatement(SQL_DELETE_AUDIT); session.setLong(1, artifactId); if(1 != session.executeUpdate()) throw new HypersonicException("Could not delete audit."); session.commit(); } catch(final HypersonicException hx) { session.rollback(); throw hx; } finally { session.close(); } }
| 1,113,958
|
private void notifyXMPPExtension_closeArtifact( final IQCloseArtifact artifactClose) { synchronized(xmppExtensionListenersLock) { for(final XMPPExtensionListener l : xmppExtensionListeners) { l.artifactClosed(artifactClose.getArtifactUUID()); } } }
|
private void notifyXMPPExtension_closeArtifact( final IQCloseArtifact artifactClose) { synchronized(xmppExtensionListenersLock) { for(final XMPPExtensionListener l : xmppExtensionListeners) { l.artifactClosed( artifactClose.getArtifactUUID(), artifactClose.getClosedBy()); } } }
| 1,113,961
|
public PopupHistoryItem(final MainCellHistoryItem historyItem) { super(); this.historyItem = historyItem; this.l18n = new PopupL18n("HistoryListItem"); }
|
public PopupHistoryItem(final MainCellHistoryItem historyItem, final Connection connection) { super(); this.historyItem = historyItem; this.l18n = new PopupL18n("HistoryListItem"); }
| 1,113,963
|
public void trigger(final Browser application, final JPopupMenu jPopupMenu, final MouseEvent e) { if(historyItem.isSetVersionId()) { jPopupMenu.add(new OpenVersion(application)); if(!historyItem.getDocument().isClosed()) { final Set<User> team = historyItem.getDocumentTeam(); if(0 < team.size()) { final JMenu jMenu = MenuFactory.create(getString("SendVersion")); for(final User teamMember : team) jMenu.add(new Send(application, teamMember)); jPopupMenu.add(jMenu); } } } }
|
public void trigger(final Browser application, final JPopupMenu jPopupMenu, final MouseEvent e) { if(historyItem.isSetVersionId()) { jPopupMenu.add(new OpenVersion(application)); if(!historyItem.getDocument().isClosed()) { final Set<User> team = historyItem.getDocumentTeam(); if(0 < team.size()) { final JMenu jMenu = MenuFactory.create(getString("SendVersion")); for(final User teamMember : team) jMenu.add(new Send(application, teamMember)); jPopupMenu.add(jMenu); } } } }
| 1,113,965
|
public ListaObjetoBean dameCursosCumplan(ObjetoBean curso,ObjetoBean aula,ObjetoBean horario ){ try{ //primera hacemos una consulta para ver los cursos que cumplen los criterios del bean curso ObjetoBBDD iscurso= ConversorBeanBBDD.convierteBeanABBDD(curso); ObjetoCriterio critCurso = this.crearObjetoCriterioAdecuado(iscurso); ListaObjetoBBDD cursosCumplenCurso= this.inicializaTabla(this.crearTablaAdecuada(iscurso)).consultar(critCurso); ListaObjetoBBDD cursosResultado= this.creador.getCreadorListaObjetoBBDD().crear(); ObjetoBBDD cursoActual; ObjetoBBDD horCursoAula; ObjetoCriterio critHorAulaCurso; ListaObjetoBBDD cursosHorAula; // Para cada curso que cumple los criterios establecidos por el bean curso pasado como parmtero, vemos si tambien cumplen // los criterios de aula y horario y si es asi lo incluimos a la lista de cursos que cumplen todos los requisitos. for(int i=0;i<cursosCumplenCurso.tamanio();i++){ cursoActual = cursosCumplenCurso.dameObjeto(i); horCursoAula= this.creador.getCreadorObjetoBBDD().crear(this.creador.getCreadorObjetoBBDD().IshorarioHasIsaula); horCursoAula.cambiaValor(Constantes.ID_HAS_ISCURSO_IDISCURSO,cursoActual.dameValor(Constantes.ID_ISCURSO_IDISCURSO)); String idAula=aula.dameValor(Constantes.ID_ISAULA); String idHorario= horario.dameValor(Constantes.ID_ISHORARIO); if(idAula!=null) horCursoAula.cambiaValor(Constantes.ID_HAS_ISAULA_IDISAULA,idAula); else horCursoAula.cambiaValor(Constantes.ID_HAS_ISAULA_IDISAULA,""); if (idHorario!=null) horCursoAula.cambiaValor(Constantes.ID_HAS_ISHORARIO_IDISHORARIO,idHorario); else horCursoAula.cambiaValor(Constantes.ID_HAS_ISHORARIO_IDISHORARIO,""); critHorAulaCurso = this.crearObjetoCriterioAdecuado(horCursoAula); cursosHorAula= this.inicializaTabla(this.crearTablaAdecuada(horCursoAula)).consultar(critHorAulaCurso); if(!cursosHorAula.esVacio()) cursosResultado.insertar(cursosResultado.tamanio(),cursoActual); } return ConversorBeanBBDD.convierteListaBBDD(cursosResultado); } catch(Exception e){ e.printStackTrace(); return null; } }
|
public ListaObjetoBean dameCursosCumplan(ObjetoBean curso,ObjetoBean aula,ObjetoBean horario ){ try{ //primera hacemos una consulta para ver los cursos que cumplen los criterios del bean curso ObjetoBBDD iscurso= ConversorBeanBBDD.convierteBeanABBDD(curso); ObjetoCriterio critCurso = this.crearObjetoCriterioAdecuado(iscurso); ListaObjetoBBDD cursosCumplenCurso= this.inicializaTabla(this.crearTablaAdecuada(iscurso)).consultar(critCurso); ListaObjetoBBDD cursosResultado= this.creador.getCreadorListaObjetoBBDD().crear(); ObjetoBBDD cursoActual; ObjetoBBDD horCursoAula; ObjetoCriterio critHorAulaCurso; ListaObjetoBBDD cursosHorAula; // Para cada curso que cumple los criterios establecidos por el bean curso pasado como parmtero, vemos si tambien cumplen // los criterios de aula y horario y si es asi lo incluimos a la lista de cursos que cumplen todos los requisitos. for(int i=0;i<cursosCumplenCurso.tamanio();i++){ cursoActual = cursosCumplenCurso.dameObjeto(i); horCursoAula= this.creador.getCreadorObjetoBBDD().crear(this.creador.getCreadorObjetoBBDD().IshorarioHasIsaula); horCursoAula.cambiaValor(Constantes.ID_HAS_ISCURSO_IDISCURSO,cursoActual.dameValor(Constantes.ID_ISCURSO_IDISCURSO)); String idAula=aula.dameValor(Constantes.ID_ISAULA); String idHorario= horario.dameValor(Constantes.ID_ISHORARIO); if(idAula!=null) horCursoAula.cambiaValor(Constantes.ID_HAS_ISAULA_IDISAULA,idAula); else horCursoAula.cambiaValor(Constantes.ID_HAS_ISAULA_IDISAULA,""); if (idHorario!=null) horCursoAula.cambiaValor(Constantes.ID_HAS_ISHORARIO_IDISHORARIO,idHorario); else horCursoAula.cambiaValor(Constantes.ID_HAS_ISHORARIO_IDISHORARIO,""); critHorAulaCurso = this.crearObjetoCriterioAdecuado(horCursoAula); cursosHorAula= this.inicializaTabla(this.crearTablaAdecuada(horCursoAula)).consultar(critHorAulaCurso); if(!cursosHorAula.esVacio()) cursosResultado.insertar(cursosResultado.tamanio(),cursoActual); } return ConversorBeanBBDD.convierteListaBBDD(cursosResultado); } catch(Exception e){ e.printStackTrace(); return null; } }
| 1,113,966
|
public ListaObjetoBean dameCursosCumplan(ObjetoBean curso,ObjetoBean aula,ObjetoBean horario ){ try{ //primera hacemos una consulta para ver los cursos que cumplen los criterios del bean curso ObjetoBBDD iscurso= ConversorBeanBBDD.convierteBeanABBDD(curso); ObjetoCriterio critCurso = this.crearObjetoCriterioAdecuado(iscurso); ListaObjetoBBDD cursosCumplenCurso= this.inicializaTabla(this.crearTablaAdecuada(iscurso)).consultar(critCurso); ListaObjetoBBDD cursosResultado= this.creador.getCreadorListaObjetoBBDD().crear(); ObjetoBBDD cursoActual; ObjetoBBDD horCursoAula; ObjetoCriterio critHorAulaCurso; ListaObjetoBBDD cursosHorAula; // Para cada curso que cumple los criterios establecidos por el bean curso pasado como parmtero, vemos si tambien cumplen // los criterios de aula y horario y si es asi lo incluimos a la lista de cursos que cumplen todos los requisitos. for(int i=0;i<cursosCumplenCurso.tamanio();i++){ cursoActual = cursosCumplenCurso.dameObjeto(i); horCursoAula= this.creador.getCreadorObjetoBBDD().crear(this.creador.getCreadorObjetoBBDD().IshorarioHasIsaula); horCursoAula.cambiaValor(Constantes.ID_HAS_ISCURSO_IDISCURSO,cursoActual.dameValor(Constantes.ID_ISCURSO_IDISCURSO)); String idAula=aula.dameValor(Constantes.ID_ISAULA); String idHorario= horario.dameValor(Constantes.ID_ISHORARIO); if(idAula!=null) horCursoAula.cambiaValor(Constantes.ID_HAS_ISAULA_IDISAULA,idAula); else horCursoAula.cambiaValor(Constantes.ID_HAS_ISAULA_IDISAULA,""); if (idHorario!=null) horCursoAula.cambiaValor(Constantes.ID_HAS_ISHORARIO_IDISHORARIO,idHorario); else horCursoAula.cambiaValor(Constantes.ID_HAS_ISHORARIO_IDISHORARIO,""); critHorAulaCurso = this.crearObjetoCriterioAdecuado(horCursoAula); cursosHorAula= this.inicializaTabla(this.crearTablaAdecuada(horCursoAula)).consultar(critHorAulaCurso); if(!cursosHorAula.esVacio()) cursosResultado.insertar(cursosResultado.tamanio(),cursoActual); } return ConversorBeanBBDD.convierteListaBBDD(cursosResultado); } catch(Exception e){ e.printStackTrace(); return null; } }
|
public ListaObjetoBean dameCursosCumplan(ObjetoBean curso,ObjetoBean aula,ObjetoBean horario ){ try{ //primera hacemos una consulta para ver los cursos que cumplen los criterios del bean curso ObjetoBBDD iscurso= ConversorBeanBBDD.convierteBeanABBDD(curso); ObjetoCriterio critCurso = this.crearObjetoCriterioAdecuado(iscurso); ListaObjetoBBDD cursosCumplenCurso= this.inicializaTabla(this.crearTablaAdecuada(iscurso)).consultar(critCurso); ListaObjetoBBDD cursosResultado= this.creador.getCreadorListaObjetoBBDD().crear(); ObjetoBBDD cursoActual; ObjetoBBDD horCursoAula; ObjetoCriterio critHorAulaCurso; ListaObjetoBBDD cursosHorAula; // Para cada curso que cumple los criterios establecidos por el bean curso pasado como parmtero, vemos si tambien cumplen // los criterios de aula y horario y si es asi lo incluimos a la lista de cursos que cumplen todos los requisitos. for(int i=0;i<cursosCumplenCurso.tamanio();i++){ cursoActual = cursosCumplenCurso.dameObjeto(i); horCursoAula= this.creador.getCreadorObjetoBBDD().crear(this.creador.getCreadorObjetoBBDD().IshorarioHasIsaula); horCursoAula.cambiaValor(Constantes.ID_HAS_ISCURSO_IDISCURSO,cursoActual.dameValor(Constantes.ID_ISCURSO_IDISCURSO)); String idAula=aula.dameValor(Constantes.ID_ISAULA); String idHorario= horario.dameValor(Constantes.ID_ISHORARIO); if(idAula!=null) horCursoAula.cambiaValor(Constantes.ID_HAS_ISAULA_IDISAULA,idAula); else horCursoAula.cambiaValor(Constantes.ID_HAS_ISAULA_IDISAULA,""); if (idHorario!=null) horCursoAula.cambiaValor(Constantes.ID_HAS_ISHORARIO_IDISHORARIO,idHorario); else horCursoAula.cambiaValor(Constantes.ID_HAS_ISHORARIO_IDISHORARIO,""); critHorAulaCurso = this.crearObjetoCriterioAdecuado(horCursoAula); cursosHorAula= this.inicializaTabla(this.crearTablaAdecuada(horCursoAula)).consultar(critHorAulaCurso); if(!cursosHorAula.esVacio()) cursosResultado.insertar(cursosResultado.tamanio(),cursoActual); } return ConversorBeanBBDD.convierteListaBBDD(cursosResultado); } catch(Exception e){ e.printStackTrace(); return null; } }
| 1,113,967
|
protected TestCase(final String name) { super(name); this.testCaseHelper = new TestCaseHelper(this); this.logger = new Log4JWrapper(getClass()); }
|
protected TestCase(final String name) { super(name); this.testCaseHelper = new TestCaseHelper(this); this.logger = new Log4JWrapper("TEST_DEBUGGER"); }
| 1,113,968
|
public List<User> readPublishedTo(final Long containerId, final Long versionId) { final Session session = openSession(); try { session.prepareStatement(SQL_READ_PUBLISHED_TO); session.setLong(1, containerId); session.setLong(2, versionId); session.executeQuery(); final List<User> publishedTo = new ArrayList<User>(); while (session.nextResult()) { publishedTo.add(userIO.extractUser(session)); } return publishedTo; } finally { session.close(); } }
|
public Map<User, Calendar> readPublishedTo(final Long containerId, final Long versionId) { final Session session = openSession(); try { session.prepareStatement(SQL_READ_PUBLISHED_TO); session.setLong(1, containerId); session.setLong(2, versionId); session.executeQuery(); final List<User> publishedTo = new ArrayList<User>(); while (session.nextResult()) { publishedTo.add(userIO.extractUser(session)); } return publishedTo; } finally { session.close(); } }
| 1,113,969
|
public List<User> readPublishedTo(final Long containerId, final Long versionId) { final Session session = openSession(); try { session.prepareStatement(SQL_READ_PUBLISHED_TO); session.setLong(1, containerId); session.setLong(2, versionId); session.executeQuery(); final List<User> publishedTo = new ArrayList<User>(); while (session.nextResult()) { publishedTo.add(userIO.extractUser(session)); } return publishedTo; } finally { session.close(); } }
|
public List<User> readPublishedTo(final Long containerId, final Long versionId) { final Session session = openSession(); try { session.prepareStatement(SQL_READ_PUBLISHED_TO); session.setLong(1, containerId); session.setLong(2, versionId); session.executeQuery(); final Map<User, Calendar> publishedTo = new HashMap<User, Calendar>(); while (session.nextResult()) { publishedTo.add(userIO.extractUser(session)); } return publishedTo; } finally { session.close(); } }
| 1,113,970
|
public List<User> readPublishedTo(final Long containerId, final Long versionId) { final Session session = openSession(); try { session.prepareStatement(SQL_READ_PUBLISHED_TO); session.setLong(1, containerId); session.setLong(2, versionId); session.executeQuery(); final List<User> publishedTo = new ArrayList<User>(); while (session.nextResult()) { publishedTo.add(userIO.extractUser(session)); } return publishedTo; } finally { session.close(); } }
|
public List<User> readPublishedTo(final Long containerId, final Long versionId) { final Session session = openSession(); try { session.prepareStatement(SQL_READ_PUBLISHED_TO); session.setLong(1, containerId); session.setLong(2, versionId); session.executeQuery(); final List<User> publishedTo = new ArrayList<User>(); while (session.nextResult()) { publishedTo.put(userIO.extractUser(session), session.getCalendar("RECEIVED_ON")); } return publishedTo; } finally { session.close(); } }
| 1,113,971
|
void createStream(final JabberId userId, final String streamId, final UUID uniqueId, final Long versionId) { logApiId(); logVariable("userId", userId); logVariable("streamId", streamId); logVariable("uniqueId", uniqueId); logVariable("versionId", versionId); try { assertIsAuthenticatedUser(userId); final JabberId archiveId = readArchiveId(userId); if (null == archiveId) { logger.logWarning("User {0} has no archive.", userId); } else { final ClientModelFactory modelFactory = getModelFactory(archiveId); final InternalArtifactModel artifactModel = modelFactory.getArtifactModel(getClass()); final InternalDocumentModel documentModel = modelFactory.getDocumentModel(getClass()); final Long documentId = artifactModel.readId(uniqueId); final InputStream stream = documentModel.openVersionStream(documentId, versionId); final Long streamSize = documentModel.readVersionSize(documentId, versionId); final InternalStreamModel streamModel = getStreamModel(); final StreamSession streamSession = streamModel.createSession(userId); final StreamWriter writer = new StreamWriter(streamSession); writer.open(); try { writer.write(streamId, stream, streamSize); } finally { try { stream.close(); } finally { writer.close(); } } } } catch (final Throwable t) { throw translateError(t); } }
|
void createStream(final JabberId userId, final String streamId, final UUID uniqueId, final Long versionId) { logApiId(); logVariable("userId", userId); logVariable("streamId", streamId); logVariable("uniqueId", uniqueId); logVariable("versionId", versionId); try { assertIsAuthenticatedUser(userId); final JabberId archiveId = readArchiveId(userId); if (null == archiveId) { logger.logWarning("User {0} has no archive.", userId); } else { final ClientModelFactory modelFactory = getModelFactory(archiveId); final InternalArtifactModel artifactModel = modelFactory.getArtifactModel(getClass()); final InternalDocumentModel documentModel = modelFactory.getDocumentModel(getClass()); final Long documentId = artifactModel.readId(uniqueId); final InputStream stream = documentModel.openVersionStream(documentId, versionId); final Long streamSize = documentModel.readVersionSize(documentId, versionId); final InternalStreamModel streamModel = getStreamModel(); final StreamSession streamSession = streamModel.createSession(userId); final StreamWriter writer = new StreamWriter(streamSession); writer.open(); try { writer.write(streamId, stream, streamSize); } finally { try { stream.close(); } finally { writer.close(); } } } } catch (final Throwable t) { throw translateError(t); } }
| 1,113,972
|
void createStream(final JabberId userId, final String streamId, final UUID uniqueId, final Long versionId) { logApiId(); logVariable("userId", userId); logVariable("streamId", streamId); logVariable("uniqueId", uniqueId); logVariable("versionId", versionId); try { assertIsAuthenticatedUser(userId); final JabberId archiveId = readArchiveId(userId); if (null == archiveId) { logger.logWarning("User {0} has no archive.", userId); } else { final ClientModelFactory modelFactory = getModelFactory(archiveId); final InternalArtifactModel artifactModel = modelFactory.getArtifactModel(getClass()); final InternalDocumentModel documentModel = modelFactory.getDocumentModel(getClass()); final Long documentId = artifactModel.readId(uniqueId); final InputStream stream = documentModel.openVersionStream(documentId, versionId); final Long streamSize = documentModel.readVersionSize(documentId, versionId); final InternalStreamModel streamModel = getStreamModel(); final StreamSession streamSession = streamModel.createSession(userId); final StreamWriter writer = new StreamWriter(streamSession); writer.open(); try { writer.write(streamId, stream, streamSize); } finally { try { stream.close(); } finally { writer.close(); } } } } catch (final Throwable t) { throw translateError(t); } }
|
void createStream(final JabberId userId, final String streamId, final UUID uniqueId, final Long versionId) { logApiId(); logVariable("userId", userId); logVariable("streamId", streamId); logVariable("uniqueId", uniqueId); logVariable("versionId", versionId); try { assertIsAuthenticatedUser(userId); final JabberId archiveId = readArchiveId(userId); if (null == archiveId) { logger.logWarning("User {0}, streamId, streamSession, stream, streamSize); has no archive.", userId); }, streamId, streamSession, stream, streamSize); else { final ClientModelFactory modelFactory = getModelFactory(archiveId); final InternalArtifactModel artifactModel = modelFactory.getArtifactModel(getClass()); final InternalDocumentModel documentModel = modelFactory.getDocumentModel(getClass()); final Long documentId = artifactModel.readId(uniqueId); final InputStream stream = documentModel.openVersionStream(documentId, versionId); final Long streamSize = documentModel.readVersionSize(documentId, versionId); final InternalStreamModel streamModel = getStreamModel(); final StreamSession streamSession = streamModel.createSession(userId); final StreamWriter writer = new StreamWriter(streamSession); writer.open(); try { writer.write(streamId, stream, streamSize); }, streamId, streamSession, stream, streamSize); finally { try { stream.close(); }, streamId, streamSession, stream, streamSize); finally { writer.close(); }, streamId, streamSession, stream, streamSize); }, streamId, streamSession, stream, streamSize); }, streamId, streamSession, stream, streamSize); }, streamId, streamSession, stream, streamSize); catch (final Throwable t) { throw translateError(t); }, streamId, streamSession, stream, streamSize); }, streamId, streamSession, stream, streamSize);
| 1,113,973
|
static <T extends Artifact, U extends ArtifactVersion> ArchiveReader<T, U> emptyReader() { return new ArchiveReader<T, U>() { @Override public List<T> read() { return Collections.emptyList(); } @Override public T read(final UUID uniqueId) { return null; } @Override public List<U> readVersions(final UUID uniqueId) { return Collections.emptyList(); } @Override protected Map<User, ArtifactReceipt> readPublishedTo(final UUID uniqueId, final Long versionId) { return Collections.emptyMap(); } }; }
|
static <T extends Artifact, U extends ArtifactVersion> ArchiveReader<T, U> emptyReader() { return new ArchiveReader<T, U>() { @Override public List<T> read() { return Collections.emptyList(); } @Override public T read(final UUID uniqueId) { return null; } @Override public List<U> readVersions(final UUID uniqueId) { return Collections.emptyList(); } @Override public Map<User, ArtifactReceipt> readPublishedTo( final UUID uniqueId, final Long versionId) { return Collections.emptyMap(); } }; }
| 1,113,974
|
public void installResizer() { if (null==this.resizer) { this.resizer = new Resizer(getController(), this, isSupportMouseMove(), getResizeEdges()); final List<Component> componentsThatSupportMouseMove = getComponentsThatSupportMouseMove(); if (null!=componentsThatSupportMouseMove) { resizer.addComponentsThatSupportMouseMove(componentsThatSupportMouseMove); } } }
|
public void installResizer() { if (null==this.resizer) { this.resizer = new Resizer(getController(), this, isSupportMouseMove(), getResizeEdges()); final List<Component> componentsThatSupportMouseMove = getComponentsThatSupportMouseMove(); if (null!=componentsThatSupportMouseMove) { resizer.addComponentsThatSupportMouseMove(componentsThatSupportMouseMove); } } }
| 1,113,975
|
private void doRun() throws IOException { final InputStream stream = streamServer.openInputStream(streamSession, streamId); StreamUtil.copy(stream, output, streamSession.getBufferSize()); }
|
private void doRun() throws IOException { final InputStream stream = streamServer.openInputStream(streamSession, streamId); int len; final byte[] b = new byte[streamSession.getBufferSize()]; try { while((len = stream.read(b)) > 0) { logger.logDebug("{0}/{1}", len, total); output.write(b, 0, len); output.flush(); } } finally { stream.close(); output.flush(); output.close(); } }
| 1,113,977
|
public static Listable[] queryListMultiple(Frame parent, String title, String message, String helpString, String okButton, boolean hasDefault, ListableVector vector, boolean[] selected) { if (vector==null) return null; Listable[] names = vector.getListables(); if (names==null) return null; ListDialog id = new ListDialog(parent, title, message, true,helpString, names, null, okButton,null,hasDefault, true);// if (okButton!=null)// id.ok.setLabel(okButton); id.list.setMultipleMode(true); id.setSelected(selected); //id.setVisible(true); IntegerArray result = id.indicesSelected; if (result==null || result.getSize()==0) { id.dispose(); return null; } Listable[] L = new Listable[result.getSize()]; for (int i=0; i<result.getSize(); i++) L[i] = (Listable)vector.elementAt(result.getValue(i)); id.dispose(); return L; }
|
public static Listable[] queryListMultiple(Frame parent, String title, String message, String helpString, String okButton, boolean hasDefault, ListableVector vector, boolean[] selected) { if (vector==null) return null; Listable[] names = vector.getListables(); if (names==null) return null; ListDialog id = new ListDialog(parent, title, message, true,helpString, names, null, okButton,null,hasDefault, true);// if (okButton!=null)// id.ok.setLabel(okButton); id.list.setMultipleMode(true); id.setSelected(selected); //id.setVisible(true); IntegerArray result = id.indicesSelected; if (result==null || result.getSize()==0) { id.dispose(); return null; } Listable[] L = new Listable[result.getSize()]; for (int i=0; i<result.getSize(); i++) L[i] = (Listable)vector.elementAt(result.getValue(i)); id.dispose(); return L; }
| 1,113,978
|
protected void setUp() throws Exception { super.setUp(); final File inputFile = getInputFile("JUnitTestFramework.txt"); final InternalDocumentModel documentModel = getDocumentModel(OpheliaTestUser.JUNIT); final Document document = createDocument(OpheliaTestUser.JUNIT, inputFile); final File modFile = modifyDocument(OpheliaTestUser.JUNIT, document); final DocumentVersion version = createDocumentVersion(OpheliaTestUser.JUNIT, document); datum = new Fixture(documentModel, modFile, version); }
|
protected void setUp() throws Exception { super.setUp(); final File inputFile = getInputFile("JUnitTestFramework.txt"); final InternalDocumentModel documentModel = getDocumentModel(OpheliaTestUser.JUNIT); final Document document = createDocument(OpheliaTestUser.JUNIT, inputFile); final File modFile = modifyDocument(OpheliaTestUser.JUNIT, document.getId()); final DocumentVersion version = createDocumentVersion(OpheliaTestUser.JUNIT, document); datum = new Fixture(documentModel, modFile, version); }
| 1,113,979
|
public void testCreateVersion() { try { DocumentVersion version; DocumentVersionContent versionContent; for(Fixture datum : data) { version = datum.documentModel.createVersion( datum.document, datum.action, datum.actionData); assertNotNull(version); assertEquals(datum.action, version.getAction()); assertEquals(datum.actionData, version.getActionData()); assertEquals(datum.document.getId(), version.getDocumentId()); assertEquals(datum.document, version.getSnapshot()); versionContent = datum.documentModel.getVersionContent(version); assertNotNull(versionContent); assertEquals(datum.document.getId(), versionContent.getDocumentId()); assertEquals(datum.content, versionContent.getSnapshot()); } } catch(Throwable t) { fail(getFailMessage(t)); } }
|
public void testCreateVersion() { try { DocumentVersion version; DocumentVersionContent versionContent; for(Fixture datum : data) { datum.documentModel.createVersion( datum.document, datum.action, datum.actionData); assertNotNull(version); assertEquals(datum.action, version.getAction()); assertEquals(datum.actionData, version.getActionData()); assertEquals(datum.document.getId(), version.getDocumentId()); assertEquals(datum.document, version.getSnapshot()); versionContent = datum.documentModel.getVersionContent(version); assertNotNull(versionContent); assertEquals(datum.document.getId(), versionContent.getDocumentId()); assertEquals(datum.content, versionContent.getSnapshot()); } } catch(Throwable t) { fail(getFailMessage(t)); } }
| 1,113,980
|
static void initialize() { System.setProperty("sun.awt.noerasebackground", "true"); System.setProperty("parity.insecure", "true"); LoggerFactory.getLogger(Browser2PlatformInitializer.class); ModelFactory.getInstance().initialize(); EventDispatcher.getInstance().initialize(); // Set the application lnf try { UIManager.setLookAndFeel(new WindowsLookAndFeel()); } catch(final UnsupportedLookAndFeelException ulafx) { throw new RuntimeException(ulafx); } // ensure a session is established// if(Status.ONLINE != ModelSession.getStatus()) {// ModelSession.establishSession();// }// if(Status.ONLINE != ModelSession.getStatus()) {// System.out.println("Must be logged in to use the parity browser.");// System.exit(1);// } }
|
static void initialize() { System.setProperty("sun.awt.noerasebackground", "true"); System.setProperty("parity.insecure", "true"); LoggerFactory.getLogger(Browser2PlatformInitializer.class); ModelFactory.getInstance().initialize(); // Set the application lnf try { UIManager.setLookAndFeel(new WindowsLookAndFeel()); } catch(final UnsupportedLookAndFeelException ulafx) { throw new RuntimeException(ulafx); } // ensure a session is established// if(Status.ONLINE != ModelSession.getStatus()) {// ModelSession.establishSession();// }// if(Status.ONLINE != ModelSession.getStatus()) {// System.out.println("Must be logged in to use the parity browser.");// System.exit(1);// } }
| 1,113,982
|
public void testDelete() { final Container c = createContainer(datum.junit, NAME); getContainerModel(datum.junit).addListener(datum); logger.logInfo("Deleting container \"{0}\" as \"{1}.\"", c.getName(), datum.junit_x.getSimpleUsername()); getContainerModel(datum.junit).delete(c.getId()); getContainerModel(datum.junit).removeListener(datum); final Container cRead = getContainerModel(datum.junit).read(c.getId()); assertNull("Container \"" + c.getName() + "\" was not deleted.", cRead); assertTrue("Container deleted event was not fired for container \"" + c.getName() + ".\"", datum.didNotify); }
|
public void testDelete() { final Container c = createContainer(datum.junit, NAME); getContainerModel(datum.junit).addListener(datum); logger.logInfo("Deleting container \"{0}\" as \"{1}.\"", c.getName(), datum.junit_x.getSimpleUsername()); getContainerModel(datum.junit).delete(c.getId()); getContainerModel(datum.junit).removeListener(datum); final Container cRead = getContainerModel(datum.junit).read(c.getId()); assertNull("Container \"" + c.getName() + "\" was not deleted.", cRead); assertTrue("Container deleted event was not fired for container \"" + c.getName() + ".\"", datum.didNotify); }
| 1,113,983
|
public void testDeletePostAdd() { final Container c = createContainer(datum.junit, NAME); addDocument(datum.junit, c.getId(), "JUnitTestFramework.doc"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.odt"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.pdf"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.txt"); getContainerModel(datum.junit).addListener(datum); logger.logInfo("Deleting container \"{0}\" as \"{1}.\"", c.getName(), datum.junit_x.getSimpleUsername()); getContainerModel(datum.junit).delete(c.getId()); getContainerModel(datum.junit).removeListener(datum); final Container cRead = getContainerModel(datum.junit).read(c.getId()); assertNull("Container \"" + c.getName() + "\" was not deleted.", cRead); assertTrue("Container deleted event was not fired for container \"" + c.getName() + ".\"", datum.didNotify); }
|
public void testDeletePostAdd() { final Container c = createContainer(datum.junit, NAME); addDocument(datum.junit, c.getId(), "JUnitTestFramework.doc"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.odt"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.pdf"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.txt"); getContainerModel(datum.junit).addListener(datum); logger.logInfo("Deleting container \"{0}\" as \"{1}.\"", c.getName(), datum.junit_x.getSimpleUsername()); getContainerModel(datum.junit).delete(c.getId()); getContainerModel(datum.junit).removeListener(datum); final Container cRead = getContainerModel(datum.junit).read(c.getId()); assertNull("Container \"" + c.getName() + "\" was not deleted.", cRead); assertTrue("Container deleted event was not fired for container \"" + c.getName() + ".\"", datum.didNotify); }
| 1,113,984
|
public void testDeletePostMultiPublish() { final Container c = createContainer(datum.junit, NAME); final Document d_doc = addDocument(datum.junit, c.getId(), "JUnitTestFramework.doc"); final Document d_odt = addDocument(datum.junit, c.getId(), "JUnitTestFramework.odt"); final Document d_pdf = addDocument(datum.junit, c.getId(), "JUnitTestFramework.pdf"); final Document d_txt = addDocument(datum.junit, c.getId(), "JUnitTestFramework.txt"); publishToContacts(datum.junit, c.getId(), "JUnit.X thinkParity", "JUnit.Y thinkParity"); datum.waitForEvents(); createDraft(datum.junit, c.getId()); datum.waitForEvents(); modifyDocument(datum.junit, d_doc.getId()); modifyDocument(datum.junit, d_odt.getId()); modifyDocument(datum.junit, d_pdf.getId()); modifyDocument(datum.junit, d_txt.getId()); publishToTeam(datum.junit, c.getId()); datum.waitForEvents(); getContainerModel(datum.junit).addListener(datum); logger.logInfo("Deleting container \"{0}\" as \"{1}.\"", c.getName(), datum.junit.getSimpleUsername()); getContainerModel(datum.junit).delete(c.getId()); getContainerModel(datum.junit).removeListener(datum); datum.waitForEvents(); final Container cRead = getContainerModel(datum.junit).read(c.getId()); assertNull("Container \"" + c.getName() + "\" was not deleted.", cRead); assertTrue("Container deleted event was not fired for container \"" + c.getName() + ".\"", datum.didNotify); }
|
public void testDeletePostMultiPublish() { final Container c = createContainer(datum.junit, NAME); final Document d_doc = addDocument(datum.junit, c.getId(), "JUnitTestFramework.doc"); final Document d_odt = addDocument(datum.junit, c.getId(), "JUnitTestFramework.odt"); final Document d_pdf = addDocument(datum.junit, c.getId(), "JUnitTestFramework.pdf"); final Document d_txt = addDocument(datum.junit, c.getId(), "JUnitTestFramework.txt"); publishToContacts(datum.junit, c.getId(), "JUnit.X thinkParity", "JUnit.Y thinkParity"); datum.waitForEvents(); createDraft(datum.junit, c.getId()); datum.waitForEvents(); modifyDocument(datum.junit, d_doc.getId()); modifyDocument(datum.junit, d_odt.getId()); modifyDocument(datum.junit, d_pdf.getId()); modifyDocument(datum.junit, d_txt.getId()); publishToTeam(datum.junit, c.getId()); datum.waitForEvents(); getContainerModel(datum.junit).addListener(datum); logger.logInfo("Deleting container \"{0}\" as \"{1}.\"", c.getName(), datum.junit.getSimpleUsername()); getContainerModel(datum.junit).delete(c.getId()); getContainerModel(datum.junit).removeListener(datum); datum.waitForEvents(); final Container cRead = getContainerModel(datum.junit).read(c.getId()); assertNull("Container \"" + c.getName() + "\" was not deleted.", cRead); assertTrue("Container deleted event was not fired for container \"" + c.getName() + ".\"", datum.didNotify); }
| 1,113,985
|
public void testDeletePostPublish() { final Container c = createContainer(datum.junit, NAME); addDocument(datum.junit, c.getId(), "JUnitTestFramework.doc"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.odt"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.pdf"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.txt"); publishToContacts(datum.junit, c.getId(), "JUnit.X thinkParity", "JUnit.Y thinkParity"); datum.waitForEvents(); getContainerModel(datum.junit).addListener(datum); logger.logInfo("Deleting container \"{0}\" as \"{1}.\"", c.getName(), datum.junit.getSimpleUsername()); getContainerModel(datum.junit).delete(c.getId()); getContainerModel(datum.junit).removeListener(datum); datum.waitForEvents(); final Container cRead = getContainerModel(datum.junit).read(c.getId()); assertNull("Container \"" + c.getName() + "\" was not deleted.", cRead); assertTrue("Container deleted event was not fired for container \"" + c.getName() + ".\"", datum.didNotify); }
|
public void testDeletePostPublish() { final Container c = createContainer(datum.junit, NAME); addDocument(datum.junit, c.getId(), "JUnitTestFramework.doc"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.odt"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.pdf"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.txt"); publishToContacts(datum.junit, c.getId(), "JUnit.X thinkParity", "JUnit.Y thinkParity"); datum.waitForEvents(); getContainerModel(datum.junit).addListener(datum); logger.logInfo("Deleting container \"{0}\" as \"{1}.\"", c.getName(), datum.junit.getSimpleUsername()); getContainerModel(datum.junit).delete(c.getId()); getContainerModel(datum.junit).removeListener(datum); datum.waitForEvents(); final Container cRead = getContainerModel(datum.junit).read(c.getId()); assertNull("Container \"" + c.getName() + "\" was not deleted.", cRead); assertTrue("Container deleted event was not fired for container \"" + c.getName() + ".\"", datum.didNotify); }
| 1,113,986
|
public void testDeletePostPublishAsRecipient() { final Container c = createContainer(datum.junit, NAME); addDocument(datum.junit, c.getId(), "JUnitTestFramework.doc"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.odt"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.pdf"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.txt"); publishToContacts(datum.junit, c.getId(), "JUnit.X thinkParity", "JUnit.Y thinkParity"); datum.waitForEvents(); final Container c_x = readContainer(datum.junit_x, c.getUniqueId()); getContainerModel(datum.junit_x).addListener(datum); logger.logInfo("Deleting container \"{0}\" as \"{1}.\"", c_x.getName(), datum.junit_x.getSimpleUsername()); getContainerModel(datum.junit_x).delete(c_x.getId()); getContainerModel(datum.junit_x).removeListener(datum); datum.waitForEvents(); final Container cRead = getContainerModel(datum.junit_x).read(c_x.getId()); assertNull("Container \"" + c_x.getName() + "\" was not deleted.", cRead); assertTrue("Container deleted event was not fired for container \"" + c_x.getName() + ".\"", datum.didNotify); }
|
public void testDeletePostPublishAsRecipient() { final Container c = createContainer(datum.junit, NAME); addDocument(datum.junit, c.getId(), "JUnitTestFramework.doc"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.odt"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.pdf"); addDocument(datum.junit, c.getId(), "JUnitTestFramework.txt"); publishToContacts(datum.junit, c.getId(), "JUnit.X thinkParity", "JUnit.Y thinkParity"); datum.waitForEvents(); final Container c_x = readContainer(datum.junit_x, c.getUniqueId()); getContainerModel(datum.junit_x).addListener(datum); logger.logInfo("Deleting container \"{0}\" as \"{1}.\"", c_x.getName(), datum.junit_x.getSimpleUsername()); getContainerModel(datum.junit_x).delete(c_x.getId()); getContainerModel(datum.junit_x).removeListener(datum); datum.waitForEvents(); final Container cRead = getContainerModel(datum.junit_x).read(c_x.getId()); assertNull("Container \"" + c_x.getName() + "\" was not deleted.", cRead); assertTrue("Container deleted event was not fired for container \"" + c_x.getName() + ".\"", datum.didNotify); }
| 1,113,987
|
void addPanel(final AbstractJPanel jPanel) { final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.weightx = 1; add(new WindowTitle(), c.clone()); jPanels.add(jPanel); ac.gridy++; add((Component) jPanel, ac.clone()); }
|
void addPanel(final AbstractJPanel jPanel) { final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.weightx = 1; jPanels.add(jPanel); ac.gridy++; add((Component) jPanel, ac.clone()); }
| 1,113,988
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.