bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
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; add(new WindowTitle(), c.clone()); jPanels.add(jPanel); add((Component) jPanel, ac.clone()); }
1,113,989
public DocumentVersion getVersion(final Long documentId, final Long versionId) { final Session session = openSession(); try { session.prepareStatement(SQL_GET_VERSION); session.setLong(1, documentId); session.setLong(2, versionId); session.executeQuery(); if(session.nextResult()) { return extractVersion(session); } else { return null; } } catch(final RuntimeException rx) { session.rollback(); throw rx; } finally { session.close(); } }
public DocumentVersion getVersion(final Long documentId, final Long versionId) { final Session session = openSession(); try { session.prepareStatement(SQL_GET_VERSION); session.setLong(1, documentId); session.setLong(2, versionId); session.executeQuery(); if(session.nextResult()) { return extractVersion(session); } else { return null; } } catch(final RuntimeException rx) { session.rollback(); throw rx; } }
1,113,990
void deleteRemoteInfo(final Session session, final Long artifactId) { session.prepareStatement(SQL_DELETE_REMOTE_INFO); session.setLong(1, artifactId); if(1 != session.executeUpdate()) throw new HypersonicException("Could not delete remote info."); }
void deleteRemoteInfo(final Session session, final Long artifactId) { session.prepareStatement(SQL_DELETE_REMOTE_INFO); session.setLong(1, artifactId); if(1 != session.executeUpdate()) throw new HypersonicException("Could not delete remote info."); }
1,113,991
public KeywordSpotter() { super("Sieve.KeywordSpotter"); }
public KeywordSpotter() { super("Sieve.KeywordSpotter"); }
1,113,992
public void airBrushReceiveMessage(Message msg) { super.airBrushReceiveMessage(msg); if (msg.type.equals("Keywords")) { // FIXME: Do something } }
public void airBrushReceiveMessage(Message msg) { super.airBrushReceiveMessage(msg); if (msg.type.equals("Keywords")) { // FIXME: Do something } }
1,113,993
public Analysis doAnalysis(Story story, String topic) { Analysis a = new Analysis(); a.setID(story.getID()); a.setTopic(topic); String content = story.getContent(); if (content.matches("IJsland")) { // If the string IJsland appears in the text, it's definitely about // Iceland a.setTopicRelevance(1.0); } String author = story.getAuthor(); if (author.matches("Christian")) { // Christian writes 75% of the time about the topic a.setTopicRelevance(0.75); } return a; }
public Analysis doAnalysis(Story story, String topic) { Analysis a = new Analysis(); a.setID(story.getID()); a.setTopic(topic); String content = story.getContent(); if (content.matches(contentMatchString)) { // If the string IJsland appears in the text, it's definitely about // Iceland a.setTopicRelevance(1.0); } String author = story.getAuthor(); if (author.matches("Christian")) { // Christian writes 75% of the time about the topic a.setTopicRelevance(0.75); } return a; }
1,113,995
public Analysis doAnalysis(Story story, String topic) { Analysis a = new Analysis(); a.setID(story.getID()); a.setTopic(topic); String content = story.getContent(); if (content.matches("IJsland")) { // If the string IJsland appears in the text, it's definitely about // Iceland a.setTopicRelevance(1.0); } String author = story.getAuthor(); if (author.matches("Christian")) { // Christian writes 75% of the time about the topic a.setTopicRelevance(0.75); } return a; }
public Analysis doAnalysis(Story story, String topic) { Analysis a = new Analysis(); a.setID(story.getID()); a.setTopic(topic); String content = story.getContent(); if (content.matches("IJsland")) { // If the string IJsland appears in the text, it's definitely about // Iceland a.setTopicRelevance(1.0); } String author = story.getAuthor(); if (author.matches("Christian")) { // Christian writes 75% of the time about the topic a.setTopicRelevance(0.75); } return a; }
1,113,996
public SieveObject(String moduleName) { super(moduleName); }
public SieveObject(String moduleName) { super(moduleName); }
1,113,997
public void airBrushReceiveMessage(Message msg) { if (msg.type.equals("Story")) { System.out.println("Story received"); handleIncomingStory(msg); } }
public void airBrushReceiveMessage(Message msg) { if (msg.type.equals("Story")) { System.out.println("Story received"); handleIncomingStory(msg); } }
1,113,998
public String getID() { return getProperty(keyIdentifier); }
public String getID() { return (String) getProperty(keyIdentifier); }
1,114,000
public String getContent() { return getProperty(keyContent); }
public String getContent() { return (String) getProperty(keyContent); }
1,114,001
public String getAuthor() { return getProperty(keyAuthor); }
public String getAuthor() { return (String) getProperty(keyAuthor); }
1,114,002
public void setAuthorRelevance(String value) { setProperty(keyAuthorRelevance, value); relevant = true; }
public void setAuthorRelevance(String value) { setProperty(keyAuthorRelevance, value); relevant = true; }
1,114,003
public Map<User, ArtifactReceipt> readPublishedTo(final UUID uniqueId, final Long versionId) { final Long containerId = readArchivedArtifactId(uniqueId); if (null == containerId) { return Collections.emptyMap(); } else { return containerModel.readPublishedTo(uniqueId, versionId); } }
public Map<User, ArtifactReceipt> readPublishedTo(final UUID uniqueId, final Long versionId) { final Long containerId = readArchivedArtifactId(uniqueId); if (null == containerId) { return Collections.emptyMap(); } else { return containerModel.readPublishedTo(containerId, versionId); } }
1,114,004
private void initComponents() { contactsJLabel = LabelFactory.create(CONTACTS_ICON); contactsJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { displayManageContacts(); } public void mouseEntered(final MouseEvent e) { contactsJLabel.setIcon(CONTACTS_ROLLOVER_ICON); } public void mouseExited(final MouseEvent e) { contactsJLabel.setIcon(CONTACTS_ICON); } }); closeJLabel = LabelFactory.create(CLOSE_ICON); closeJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { closeJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { closeJLabel.setIcon(CLOSE_ROLLOVER_ICON); } public void mouseExited(final MouseEvent e) { closeJLabel.setIcon(CLOSE_ICON); } }); minJLabel = LabelFactory.create(MIN_ICON); minJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { minJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { minJLabel.setIcon(MIN_ROLLOVER_ICON); } public void mouseExited(final MouseEvent e) { minJLabel.setIcon(MIN_ICON); } }); final GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.NORTHEAST; c.weightx = 1; c.weighty = 1; add(contactsJLabel, c.clone()); c.anchor = GridBagConstraints.NORTH; c.insets.top = 6; c.insets.left = 4; c.insets.right = 2; c.weightx = 0; c.weighty = 0; add(minJLabel, c.clone()); c.insets.left = 0; c.insets.right = 8; add(closeJLabel, c.clone()); }
private void initComponents() { contactsJLabel = LabelFactory.create(CONTACTS_ICON); contactsJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { displayManageContacts(); } public void mouseEntered(final MouseEvent e) { contactsJLabel.setIcon(CONTACTS_ROLLOVER_ICON); } public void mouseExited(final MouseEvent e) { contactsJLabel.setIcon(CONTACTS_ICON); } }); closeJLabel = LabelFactory.create(CLOSE_ICON); closeJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { closeJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { closeJLabel.setIcon(CLOSE_ROLLOVER_ICON); } public void mouseExited(final MouseEvent e) { closeJLabel.setIcon(CLOSE_ICON); } }); minJLabel = LabelFactory.create(MIN_ICON); minJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { minJLabelMouseClicked(e); } public void mouseEntered(final MouseEvent e) { minJLabel.setIcon(MIN_ROLLOVER_ICON); } public void mouseExited(final MouseEvent e) { minJLabel.setIcon(MIN_ICON); } }); final GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.NORTHEAST; c.insets.right = 50; c.weightx = 1; c.weighty = 1; add(contactsJLabel, c.clone()); c.anchor = GridBagConstraints.NORTH; c.insets.top = 6; c.insets.left = 4; c.insets.right = 2; c.weightx = 0; c.weighty = 0; add(minJLabel, c.clone()); c.insets.left = 0; c.insets.right = 8; add(closeJLabel, c.clone()); }
1,114,005
public void mouseExited(final MouseEvent e) { unselectDocument(document.getId()); }
public void mouseExited(final MouseEvent e) { if(!isWithinListItem(e)) { unselectDocument(document.getId()); } }
1,114,007
void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { final JabberId receivedFromJabberId = JabberIdBuilder.parseUsername(xmppDocument.getReceivedFrom()); Document document = get(xmppDocument.getUniqueId()); if(null == document) { document = receiveCreate(xmppDocument); } else { final DocumentVersion version = getVersion(document.getId(), xmppDocument.getVersionId()); // i have this version. wtf biotch if(null == version) { document.setUpdatedOn(currentDateTime()); receiveUpdate(xmppDocument, document); } } // if key holder: apply flag key final InternalSessionModel iSModel = getInternalSessionModel(); if(iSModel.isLoggedInUserKeyHolder(document.getId())) { final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(document.getId()); } // audit the receiving final Document d = get(document.getId()); auditor.recieve(d.getId(), xmppDocument.getVersionId(), receivedFromJabberId, currentUserId(), currentDateTime()); // notify notifyUpdate_objectReceived(d); } catch(IOException iox) { logger.error("receiveDocument(XMPPDocument)", iox); throw ParityErrorTranslator.translate(iox); } catch(RuntimeException rx) { logger.error("receiveDocument(XMPPDocument)", rx); throw ParityErrorTranslator.translate(rx); } }
void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { final JabberId receivedFromJabberId = JabberIdBuilder.parseUsername(xmppDocument.getReceivedFrom()); Document document = get(xmppDocument.getUniqueId()); if(null == document) { document = receiveCreate(xmppDocument); final InternalSessionModel iSModel = getInternalSessionModel(); if(iSModel.isLoggedInUserKeyHolder(document.getId())) { final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(document.getId()); } final Document d = get(document.getId()); auditor.recieve(d.getId(), xmppDocument.getVersionId(), receivedFromJabberId, currentUserId(), currentDateTime()); notifyUpdate_objectReceived(d); } else { final DocumentVersion version = getVersion(document.getId(), xmppDocument.getVersionId()); // i have this version. wtf biotch if(null == version) { document.setUpdatedOn(currentDateTime()); receiveUpdate(xmppDocument, document); } } // if key holder: apply flag key final InternalSessionModel iSModel = getInternalSessionModel(); if(iSModel.isLoggedInUserKeyHolder(document.getId())) { final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(document.getId()); } // audit the receiving final Document d = get(document.getId()); auditor.recieve(d.getId(), xmppDocument.getVersionId(), receivedFromJabberId, currentUserId(), currentDateTime()); // notify notifyUpdate_objectReceived(d); } catch(IOException iox) { logger.error("receiveDocument(XMPPDocument)", iox); throw ParityErrorTranslator.translate(iox); } catch(RuntimeException rx) { logger.error("receiveDocument(XMPPDocument)", rx); throw ParityErrorTranslator.translate(rx); } }
1,114,008
void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { final JabberId receivedFromJabberId = JabberIdBuilder.parseUsername(xmppDocument.getReceivedFrom()); Document document = get(xmppDocument.getUniqueId()); if(null == document) { document = receiveCreate(xmppDocument); } else { final DocumentVersion version = getVersion(document.getId(), xmppDocument.getVersionId()); // i have this version. wtf biotch if(null == version) { document.setUpdatedOn(currentDateTime()); receiveUpdate(xmppDocument, document); } } // if key holder: apply flag key final InternalSessionModel iSModel = getInternalSessionModel(); if(iSModel.isLoggedInUserKeyHolder(document.getId())) { final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(document.getId()); } // audit the receiving final Document d = get(document.getId()); auditor.recieve(d.getId(), xmppDocument.getVersionId(), receivedFromJabberId, currentUserId(), currentDateTime()); // notify notifyUpdate_objectReceived(d); } catch(IOException iox) { logger.error("receiveDocument(XMPPDocument)", iox); throw ParityErrorTranslator.translate(iox); } catch(RuntimeException rx) { logger.error("receiveDocument(XMPPDocument)", rx); throw ParityErrorTranslator.translate(rx); } }
void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { final JabberId receivedFromJabberId = JabberIdBuilder.parseUsername(xmppDocument.getReceivedFrom()); Document document = get(xmppDocument.getUniqueId()); if(null == document) { document = receiveCreate(xmppDocument); } else { final DocumentVersion version = getVersion(document.getId(), xmppDocument.getVersionId()); // i have this version. wtf biotch if(null == version) { document.setUpdatedOn(currentDateTime()); receiveUpdate(xmppDocument, document); } } // if key holder: apply flag key final InternalSessionModel iSModel = getInternalSessionModel(); if(iSModel.isLoggedInUserKeyHolder(document.getId())) { final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(document.getId()); } // audit the receiving final Document d = get(document.getId()); auditor.recieve(d.getId(), xmppDocument.getVersionId(), receivedFromJabberId, currentUserId(), currentDateTime()); // notify notifyUpdate_objectReceived(d); } catch(IOException iox) { logger.error("receiveDocument(XMPPDocument)", iox); throw ParityErrorTranslator.translate(iox); } catch(RuntimeException rx) { logger.error("receiveDocument(XMPPDocument)", rx); throw ParityErrorTranslator.translate(rx); } }
1,114,009
private Fixture(final Container container, final InternalContainerModel containerModel, final User loginUser) { this.containerModel = containerModel; this.container = container; this.didNotify = Boolean.FALSE; this.loginUser = loginUser; }
private Fixture(final Container container, final InternalContainerModel containerModel, final User loginUser) { this.containerModel = containerModel; this.container = container; this.didNotify = Boolean.FALSE; this.loginUser = loginUser; }
1,114,010
private Fixture(final Container container, final InternalContainerModel containerModel, final User loginUser) { this.containerModel = containerModel; this.container = container; this.didNotify = Boolean.FALSE; this.loginUser = loginUser; }
private Fixture(final Container container, final InternalContainerModel containerModel, final User loginUser) { this.containerModel = containerModel; this.container = container; this.didNotify = Boolean.FALSE; addQueueHelper(junit); addQueueHelper(junit_x); addQueueHelper(junit_y); }
1,114,011
protected void setUp() throws Exception { super.setUp(); login(OpheliaTestUser.JUNIT); final InternalContainerModel containerModel = getContainerModel(OpheliaTestUser.JUNIT); final Container container = createContainer(OpheliaTestUser.JUNIT, NAME); addDocuments(OpheliaTestUser.JUNIT, container); publishToContacts(OpheliaTestUser.JUNIT, container); datum = new Fixture(container, containerModel, OpheliaTestUser.JUNIT); containerModel.addListener(datum); }
protected void setUp() throws Exception { super.setUp(); login(OpheliaTestUser.JUNIT); final InternalContainerModel containerModel = getContainerModel(OpheliaTestUser.JUNIT); final Container container = createContainer(OpheliaTestUser.JUNIT, NAME); addDocuments(OpheliaTestUser.JUNIT, container); publishToContacts(OpheliaTestUser.JUNIT, container); datum = new Fixture(container, containerModel, OpheliaTestUser.JUNIT); containerModel.addListener(datum); }
1,114,012
protected void tearDown() throws Exception { logout(OpheliaTestUser.JUNIT); datum.containerModel.removeListener(datum); datum = null; super.tearDown(); }
protected void tearDown() throws Exception { logout(OpheliaTestUser.JUNIT); datum.containerModel.removeListener(datum); datum = null; super.tearDown(); }
1,114,013
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = datum.containerModel.readLatestVersion(datum.container.getId()); final List<Document> latestVersionDocuments = datum.containerModel.readDocuments(latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = datum.containerModel.readLatestVersion(datum.container.getId()); final List<Document> latestVersionDocuments = datum.containerModel.readDocuments(latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
1,114,014
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = datum.containerModel.readLatestVersion(datum.container.getId()); final List<Document> latestVersionDocuments = datum.containerModel.readDocuments(latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = datum.containerModel.readLatestVersion(datum.container.getId()); final List<Document> latestVersionDocuments = datum.containerModel.readDocuments(latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
1,114,015
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = datum.containerModel.readLatestVersion(datum.container.getId()); final List<Document> latestVersionDocuments = datum.containerModel.readDocuments(latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = getContainerModel(datum.junit).readLatestVersion(c.getId()); final List<Document> latestVersionDocuments = datum.containerModel.readDocuments(latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
1,114,016
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = datum.containerModel.readLatestVersion(datum.container.getId()); final List<Document> latestVersionDocuments = datum.containerModel.readDocuments(latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = datum.containerModel.readLatestVersion(datum.container.getId()); final List<Document> latestVersionDocuments = getContainerModel(datum.junit).readDocuments( latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
1,114,017
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = datum.containerModel.readLatestVersion(datum.container.getId()); final List<Document> latestVersionDocuments = datum.containerModel.readDocuments(latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = datum.containerModel.readLatestVersion(datum.container.getId()); final List<Document> latestVersionDocuments = datum.containerModel.readDocuments(latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
1,114,018
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = datum.containerModel.readLatestVersion(datum.container.getId()); final List<Document> latestVersionDocuments = datum.containerModel.readDocuments(latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EXPECTATION]", datum.container.getId(), draft.getContainerId()); assertTrue(NAME + " [CONTAINER CREATION EVENT NOT FIRED]", datum.didNotify); final ContainerVersion latestVersion = datum.containerModel.readLatestVersion(datum.container.getId()); final List<Document> latestVersionDocuments = datum.containerModel.readDocuments(latestVersion.getArtifactId(), latestVersion.getVersionId()); assertEquals( "LATEST VERSION DOCUMENT LIST SIZE DOES NOT MATCH DRAFT DOCUMENT LIST SIZE", latestVersionDocuments.size(), draft.getDocuments().size()); assertTrue(NAME + " [KEY FLAG IS NOT APPLIED]", getArtifactModel(OpheliaTestUser.JUNIT).isFlagApplied(datum.container.getId(), ArtifactFlag.KEY)); assertTrue(NAME + " [USER IS NOT KEY HOLDER]", getSessionModel(OpheliaTestUser.JUNIT).readKeyHolder(datum.loginUser.getId(), datum.container.getUniqueId()).equals(datum.loginUser.getId())); }
1,114,019
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { // since the path always ends in '/', // make sure the name never ends in one if (name.startsWith("/")) { name = name.substring(1); } result = servletContext.getResourceAsStream(path + name); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("WebappLoader : No template name provided"); } try { // since the path always ends in '/', // make sure the name never ends in one if (name.startsWith("/")) { name = name.substring(1); } result = servletContext.getResourceAsStream(path + name); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
1,114,020
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { // since the path always ends in '/', // make sure the name never ends in one if (name.startsWith("/")) { name = name.substring(1); } result = servletContext.getResourceAsStream(path + name); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } while (name.startsWith("/")) { // since the path always ends in '/', // make sure the name never ends in one if (name.startsWith("/")) { name = name.substring(1); } result = servletContext.getResourceAsStream(path + name); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
1,114,021
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { // since the path always ends in '/', // make sure the name never ends in one if (name.startsWith("/")) { name = name.substring(1); } result = servletContext.getResourceAsStream(path + name); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { // since the path always ends in '/', // make sure the name never ends in one name = name.substring(1); } Exception exception = null; for (int i=0; i < paths.length; i++) { try { name = name.substring(1); } result = servletContext.getResourceAsStream(path + name); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
1,114,022
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { // since the path always ends in '/', // make sure the name never ends in one if (name.startsWith("/")) { name = name.substring(1); } result = servletContext.getResourceAsStream(path + name); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { // since the path always ends in '/', // make sure the name never ends in one if (name.startsWith("/")) { result = servletContext.getResourceAsStream(paths[i] + name); if (result != null) { break; } } result = servletContext.getResourceAsStream(path + name); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
1,114,023
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { // since the path always ends in '/', // make sure the name never ends in one if (name.startsWith("/")) { name = name.substring(1); } result = servletContext.getResourceAsStream(path + name); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { // since the path always ends in '/', // make sure the name never ends in one if (name.startsWith("/")) { name = name.substring(1); } if (result == null) { String msg; if (exception == null) { msg = "WebappLoader : Resource '" + name + "' not found."; } else { msg = exception.getMessage(); } throw new ResourceNotFoundException(msg); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
1,114,024
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { // since the path always ends in '/', // make sure the name never ends in one if (name.startsWith("/")) { name = name.substring(1); } result = servletContext.getResourceAsStream(path + name); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { // since the path always ends in '/', // make sure the name never ends in one if (name.startsWith("/")) { name = name.substring(1); } result = servletContext.getResourceAsStream(path + name); } catch( Exception fnfe ) { /* * log and convert to a general Velocity ResourceNotFoundException */ throw new ResourceNotFoundException( fnfe.getMessage() ); } return result; }
1,114,025
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { // make sure the path ends with a '/' if (!path.endsWith("/")) { path += '/'; } rsvc.info("WebappLoader : template path (relative to webapp root) is '" + path + "'"); } // get the ServletContext Object obj = rsvc.getApplicationAttribute(ServletContext.class.getName()); if (obj instanceof ServletContext) { servletContext = (ServletContext)obj; } else { rsvc.error("WebappLoader : unable to retrieve ServletContext"); } rsvc.info("WebappLoader : initialization complete."); }
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { // make sure the path ends with a '/' if (!path.endsWith("/")) { path += '/'; } rsvc.info("WebappLoader : template path (relative to webapp root) is '" + path + "'"); } // get the ServletContext Object obj = rsvc.getApplicationAttribute(ServletContext.class.getName()); if (obj instanceof ServletContext) { servletContext = (ServletContext)obj; } else { rsvc.error("WebappLoader : unable to retrieve ServletContext"); } rsvc.info("WebappLoader : initialization complete."); }
1,114,026
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { // make sure the path ends with a '/' if (!path.endsWith("/")) { path += '/'; } rsvc.info("WebappLoader : template path (relative to webapp root) is '" + path + "'"); } // get the ServletContext Object obj = rsvc.getApplicationAttribute(ServletContext.class.getName()); if (obj instanceof ServletContext) { servletContext = (ServletContext)obj; } else { rsvc.error("WebappLoader : unable to retrieve ServletContext"); } rsvc.info("WebappLoader : initialization complete."); }
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { paths = new String[1]; paths[0] = "/"; } else { // make sure the path ends with a '/' if (!path.endsWith("/")) { path += '/'; } rsvc.info("WebappLoader : template path (relative to webapp root) is '" + path + "'"); } // get the ServletContext Object obj = rsvc.getApplicationAttribute(ServletContext.class.getName()); if (obj instanceof ServletContext) { servletContext = (ServletContext)obj; } else { rsvc.error("WebappLoader : unable to retrieve ServletContext"); } rsvc.info("WebappLoader : initialization complete."); }
1,114,027
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { // make sure the path ends with a '/' if (!path.endsWith("/")) { path += '/'; } rsvc.info("WebappLoader : template path (relative to webapp root) is '" + path + "'"); } // get the ServletContext Object obj = rsvc.getApplicationAttribute(ServletContext.class.getName()); if (obj instanceof ServletContext) { servletContext = (ServletContext)obj; } else { rsvc.error("WebappLoader : unable to retrieve ServletContext"); } rsvc.info("WebappLoader : initialization complete."); }
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { // make sure the path ends with a '/' for (int i=0; i < paths.length; i++) { path += '/'; } rsvc.info("WebappLoader : template path (relative to webapp root) is '" + path + "'"); } // get the ServletContext Object obj = rsvc.getApplicationAttribute(ServletContext.class.getName()); if (obj instanceof ServletContext) { servletContext = (ServletContext)obj; } else { rsvc.error("WebappLoader : unable to retrieve ServletContext"); } rsvc.info("WebappLoader : initialization complete."); }
1,114,028
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { // make sure the path ends with a '/' if (!path.endsWith("/")) { path += '/'; } rsvc.info("WebappLoader : template path (relative to webapp root) is '" + path + "'"); } // get the ServletContext Object obj = rsvc.getApplicationAttribute(ServletContext.class.getName()); if (obj instanceof ServletContext) { servletContext = (ServletContext)obj; } else { rsvc.error("WebappLoader : unable to retrieve ServletContext"); } rsvc.info("WebappLoader : initialization complete."); }
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { // make sure the path ends with a '/' if (!path.endsWith("/")) { if (!paths[i].endsWith("/")) { paths[i] += '/'; } rsvc.info("WebappLoader : added template path - '" + paths[i] + "'"); } rsvc.info("WebappLoader : template path (relative to webapp root) is '" + path + "'"); } // get the ServletContext Object obj = rsvc.getApplicationAttribute(ServletContext.class.getName()); if (obj instanceof ServletContext) { servletContext = (ServletContext)obj; } else { rsvc.error("WebappLoader : unable to retrieve ServletContext"); } rsvc.info("WebappLoader : initialization complete."); }
1,114,029
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { // make sure the path ends with a '/' if (!path.endsWith("/")) { path += '/'; } rsvc.info("WebappLoader : template path (relative to webapp root) is '" + path + "'"); } // get the ServletContext Object obj = rsvc.getApplicationAttribute(ServletContext.class.getName()); if (obj instanceof ServletContext) { servletContext = (ServletContext)obj; } else { rsvc.error("WebappLoader : unable to retrieve ServletContext"); } rsvc.info("WebappLoader : initialization complete."); }
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { // make sure the path ends with a '/' if (!path.endsWith("/")) { path += '/'; } } // get the ServletContext Object obj = rsvc.getApplicationAttribute(ServletContext.class.getName()); if (obj instanceof ServletContext) { servletContext = (ServletContext)obj; } else { rsvc.error("WebappLoader : unable to retrieve ServletContext"); } rsvc.info("WebappLoader : initialization complete."); }
1,114,030
private void initBackgroundImages() { if (null == scaledContainerBackgroundLeft) { scaledContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS]; } if (null == clippedContainerBackgroundLeft) { clippedContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS]; } final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); initBackgroundImages((int)screenSize.getWidth()); }
private void initBackgroundImages() { if (null == scaledContainerBackgroundLeft) { scaledContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS + 1]; } if (null == clippedContainerBackgroundLeft) { clippedContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS]; } final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); initBackgroundImages((int)screenSize.getWidth()); }
1,114,031
private void initBackgroundImages() { if (null == scaledContainerBackgroundLeft) { scaledContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS]; } if (null == clippedContainerBackgroundLeft) { clippedContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS]; } final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); initBackgroundImages((int)screenSize.getWidth()); }
private void initBackgroundImages() { if (null == scaledContainerBackgroundLeft) { scaledContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS]; } if (null == clippedContainerBackgroundLeft) { clippedContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS + 1]; } final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); initBackgroundImages((int)screenSize.getWidth()); }
1,114,032
public SessionSendFormAvatar() { // COLOR Send Form Background super("SessionSendForm", Color.WHITE); this.contactsModel = new DefaultListModel(); this.contactsSelectionModel = new DefaultListSelectionModel(); this.teamModel = new DefaultListModel(); this.teamSelectionModel = new DefaultListSelectionModel(); initComponents(); }
public SessionSendFormAvatar() { // COLOR Send Form Background super("SessionSendForm", BrowserConstants.DIALOGUE_BACKGROUND); this.contactsModel = new DefaultListModel(); this.contactsSelectionModel = new DefaultListSelectionModel(); this.teamModel = new DefaultListModel(); this.teamSelectionModel = new DefaultListSelectionModel(); initComponents(); }
1,114,033
private AvatarFactory(final Platform platform) { super(); this.avatarRegistry = new AvatarRegistry(); this.logger = Logger.getLogger(getClass()); }
private AvatarFactory(final Platform platform) { super(); this.avatarRegistry = new AvatarRegistry(); }
1,114,034
private void register(final Avatar avatar) { logger.info(MessageFormat.format("AVATAR {0} REGISTERED", avatar.getId().toString())); Assert.assertIsNull( "Avatar " + avatar.getId() + " already registered.", avatarRegistry.put(avatar.getId(), avatar)); }
private void register(final Avatar avatar) { logger.info(MessageFormat.format("AVATAR {0} REGISTERED", avatar.getId().toString())); Assert.assertIsNull( "Avatar " + avatar.getId() + " already registered.", avatarRegistry.put(avatar.getId(), avatar)); }
1,114,035
private Display createContent() { if(null == content) { content = new ContentDisplay(); applySize(content, 275); } return content; }
private Display createContent() { if(null == content) { content = new ContentDisplay(); applySize(content, 300); } return content; }
1,114,037
private Display createForm() { if(null == form) { form = new FormDisplay(); applySize(form, 435); } return form; }
private Display createForm() { if(null == form) { form = new FormDisplay(); applySize(form, 394); } return form; }
1,114,038
private Display createInfo() { if(null == info) { info = new InfoDisplay(); applySize(info, 160); } return info; }
private Display createInfo() { if(null == info) { info = new InfoDisplay(); applySize(info, 135); } return info; }
1,114,039
private Display createLogo() { if(null == logo) { logo = new LogoDisplay(); applySize(logo, 85); } return logo; }
private Display createLogo() { if(null == logo) { logo = new LogoDisplay(); applySize(logo, 94); } return logo; }
1,114,040
private Display createTitle() { if(null == title) { title = new TitleDisplay(); applySize(title, 30); } return title; }
private Display createTitle() { if(null == title) { title = new TitleDisplay(); applySize(title, 21); } return title; }
1,114,041
public void panelCellMouseClicked(final Cell cell, final MouseEvent e) { if (cell instanceof WestCell) { if (e.isPopupTrigger() || (e.getButton() == MouseEvent.BUTTON1)) { westListModel.setSelectedCell(cell); } if ((e.getClickCount() % 2) == 0) { tabDelegate.toggleExpansion(this); } } else if (cell instanceof EastCell) { if ((e.getClickCount() % 2) == 0) { tabDelegate.toggleExpansion(this); } } }
public void panelCellMouseClicked(final Cell cell, final MouseEvent e) { if (cell instanceof WestCell) { if (e.isPopupTrigger() || (e.getButton() == MouseEvent.BUTTON1)) { westListModel.setSelectedCell(cell); } if ((e.getClickCount() % 2) == 0) { tabDelegate.toggleExpansion(this); } } else if (cell instanceof EastCell) { if ((e.getClickCount() % 2) == 0) { tabDelegate.toggleExpansion(this); } } }
1,114,042
public TopWestCellRenderer(final DefaultTabPanel tabPanel) { super(tabPanel); initComponents(); installListeners(tabPanel, iconJLabel); }
public TopWestCellRenderer(final DefaultTabPanel tabPanel) { super(tabPanel); initComponents(); installListeners(tabPanel, iconJLabel); }
1,114,043
public TopWestCellRenderer(final DefaultTabPanel tabPanel) { super(tabPanel); initComponents(); installListeners(tabPanel, iconJLabel); }
public TopWestCellRenderer(final DefaultTabPanel tabPanel) { super(tabPanel); initComponents(); }
1,114,044
LogoDisplay() { // COLOR WHITE super("LogoDisplay", Color.WHITE); // COLOR 180, 180, 180, 255 setBorder(new DefaultBorder(new Color(180, 180, 180, 255))); }
LogoDisplay() { // COLOR WHITE super("LogoDisplay", Color.WHITE); // COLOR 180, 180, 180, 255 setBorder(new TopBorder(new Color(180, 180, 180, 255))); }
1,114,045
User create(final JabberId jabberId) throws ParityException { final User remoteUser = getInternalSessionModel().readUser(jabberId); return userIO.create(remoteUser); }
User create(final JabberId jabberId) throws ParityException { final User remoteUser = getInternalSessionModel().readUser(jabberId); userIO.create(remoteUser); return read(jabberId); }
1,114,046
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toString())); } public Dimension get(String key, Dimension defaultValue) { return new Dimension( get(key + ".width", defaultValue.width), get(key + ".height", defaultValue.height)); } public int get(final String key, final int defaultValue) { try { return Integer.parseInt(javaProperties.getProperty(key, String.valueOf(defaultValue))); } catch(final NumberFormatException nfx) { return defaultValue; } } public Point get(String key, Point defaultValue) { return new Point( get(key + ".x", defaultValue.x), get(key + ".y", defaultValue.y)); } public String get(String key, String defaultValue) { return javaProperties.getProperty(context + "." + key, defaultValue); } public void set(String key, Boolean value) { set(key, value.toString()); } public void set(String key, Dimension value) { set(key + ".height", value.height); set(key + ".width", value.width); } public void set(String key, int value) { javaProperties.setProperty(context + "." + key, String.valueOf(value)); } public void set(String key, Point value) { set(key + ".x", value.x); set(key + ".y", value.y); } public void set(String key, String value) { javaProperties.setProperty(context + "." + key, value); } }; }
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toString())); } public Dimension get(String key, Dimension defaultValue) { return new Dimension( get(key + ".width", defaultValue.width), get(key + ".height", defaultValue.height)); } public int get(final String key, final int defaultValue) { try { return Integer.parseInt( javaProperties.getProperty( contextualize(key), String.valueOf(defaultValue))); } catch(final NumberFormatException nfx) { return defaultValue; } } public Point get(String key, Point defaultValue) { return new Point( get(key + ".x", defaultValue.x), get(key + ".y", defaultValue.y)); } public String get(String key, String defaultValue) { return javaProperties.getProperty(context + "." + key, defaultValue); } public void set(String key, Boolean value) { set(key, value.toString()); } public void set(String key, Dimension value) { set(key + ".height", value.height); set(key + ".width", value.width); } public void set(String key, int value) { javaProperties.setProperty(context + "." + key, String.valueOf(value)); } public void set(String key, Point value) { set(key + ".x", value.x); set(key + ".y", value.y); } public void set(String key, String value) { javaProperties.setProperty(context + "." + key, value); } }; }
1,114,047
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toString())); } public Dimension get(String key, Dimension defaultValue) { return new Dimension( get(key + ".width", defaultValue.width), get(key + ".height", defaultValue.height)); } public int get(final String key, final int defaultValue) { try { return Integer.parseInt(javaProperties.getProperty(key, String.valueOf(defaultValue))); } catch(final NumberFormatException nfx) { return defaultValue; } } public Point get(String key, Point defaultValue) { return new Point( get(key + ".x", defaultValue.x), get(key + ".y", defaultValue.y)); } public String get(String key, String defaultValue) { return javaProperties.getProperty(context + "." + key, defaultValue); } public void set(String key, Boolean value) { set(key, value.toString()); } public void set(String key, Dimension value) { set(key + ".height", value.height); set(key + ".width", value.width); } public void set(String key, int value) { javaProperties.setProperty(context + "." + key, String.valueOf(value)); } public void set(String key, Point value) { set(key + ".x", value.x); set(key + ".y", value.y); } public void set(String key, String value) { javaProperties.setProperty(context + "." + key, value); } }; }
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toString())); } public Dimension get(String key, Dimension defaultValue) { return new Dimension( get(key + ".width", defaultValue.width), get(key + ".height", defaultValue.height)); } public int get(final String key, final int defaultValue) { try { return Integer.parseInt(javaProperties.getProperty(key, String.valueOf(defaultValue))); } catch(final NumberFormatException nfx) { return defaultValue; } } public Point get(String key, Point defaultValue) { return new Point( get(key + ".x", defaultValue.x), get(key + ".y", defaultValue.y)); } public String get(String key, String defaultValue) { return javaProperties.getProperty(contextualize(key), defaultValue); } public void set(String key, Boolean value) { set(key, value.toString()); } public void set(String key, Dimension value) { set(key + ".height", value.height); set(key + ".width", value.width); } public void set(String key, int value) { javaProperties.setProperty(context + "." + key, String.valueOf(value)); } public void set(String key, Point value) { set(key + ".x", value.x); set(key + ".y", value.y); } public void set(String key, String value) { javaProperties.setProperty(context + "." + key, value); } }; }
1,114,048
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toString())); } public Dimension get(String key, Dimension defaultValue) { return new Dimension( get(key + ".width", defaultValue.width), get(key + ".height", defaultValue.height)); } public int get(final String key, final int defaultValue) { try { return Integer.parseInt(javaProperties.getProperty(key, String.valueOf(defaultValue))); } catch(final NumberFormatException nfx) { return defaultValue; } } public Point get(String key, Point defaultValue) { return new Point( get(key + ".x", defaultValue.x), get(key + ".y", defaultValue.y)); } public String get(String key, String defaultValue) { return javaProperties.getProperty(context + "." + key, defaultValue); } public void set(String key, Boolean value) { set(key, value.toString()); } public void set(String key, Dimension value) { set(key + ".height", value.height); set(key + ".width", value.width); } public void set(String key, int value) { javaProperties.setProperty(context + "." + key, String.valueOf(value)); } public void set(String key, Point value) { set(key + ".x", value.x); set(key + ".y", value.y); } public void set(String key, String value) { javaProperties.setProperty(context + "." + key, value); } }; }
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toString())); } public Dimension get(String key, Dimension defaultValue) { return new Dimension( get(key + ".width", defaultValue.width), get(key + ".height", defaultValue.height)); } public int get(final String key, final int defaultValue) { try { return Integer.parseInt(javaProperties.getProperty(key, String.valueOf(defaultValue))); } catch(final NumberFormatException nfx) { return defaultValue; } } public Point get(String key, Point defaultValue) { return new Point( get(key + ".x", defaultValue.x), get(key + ".y", defaultValue.y)); } public String get(String key, String defaultValue) { return javaProperties.getProperty(context + "." + key, defaultValue); } public void set(String key, Boolean value) { set(key, value.toString()); } public void set(String key, Dimension value) { set(key + ".height", value.height); set(key + ".width", value.width); } public void set(String key, int value) { javaProperties.setProperty(context + "." + key, String.valueOf(value)); } public void set(String key, Point value) { set(key + ".x", value.x); set(key + ".y", value.y); } public void set(String key, String value) { javaProperties.setProperty(context + "." + key, value); } }; }
1,114,049
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toString())); } public Dimension get(String key, Dimension defaultValue) { return new Dimension( get(key + ".width", defaultValue.width), get(key + ".height", defaultValue.height)); } public int get(final String key, final int defaultValue) { try { return Integer.parseInt(javaProperties.getProperty(key, String.valueOf(defaultValue))); } catch(final NumberFormatException nfx) { return defaultValue; } } public Point get(String key, Point defaultValue) { return new Point( get(key + ".x", defaultValue.x), get(key + ".y", defaultValue.y)); } public String get(String key, String defaultValue) { return javaProperties.getProperty(context + "." + key, defaultValue); } public void set(String key, Boolean value) { set(key, value.toString()); } public void set(String key, Dimension value) { set(key + ".height", value.height); set(key + ".width", value.width); } public void set(String key, int value) { javaProperties.setProperty(context + "." + key, String.valueOf(value)); } public void set(String key, Point value) { set(key + ".x", value.x); set(key + ".y", value.y); } public void set(String key, String value) { javaProperties.setProperty(context + "." + key, value); } }; }
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toString())); } public Dimension get(String key, Dimension defaultValue) { return new Dimension( get(key + ".width", defaultValue.width), get(key + ".height", defaultValue.height)); } public int get(final String key, final int defaultValue) { try { return Integer.parseInt(javaProperties.getProperty(key, String.valueOf(defaultValue))); } catch(final NumberFormatException nfx) { return defaultValue; } } public Point get(String key, Point defaultValue) { return new Point( get(key + ".x", defaultValue.x), get(key + ".y", defaultValue.y)); } public String get(String key, String defaultValue) { return javaProperties.getProperty(context + "." + key, defaultValue); } public void set(String key, Boolean value) { set(key, value.toString()); } public void set(String key, Dimension value) { set(key + ".height", value.height); set(key + ".width", value.width); } public void set(String key, int value) { javaProperties.setProperty(context + "." + key, String.valueOf(value)); } public void set(String key, Point value) { set(key + ".x", value.x); set(key + ".y", value.y); } public void set(String key, String value) { javaProperties.setProperty(contextualize(key), value); } }; }
1,114,050
public int compare(final Contact o1, final Contact o2) { final int compareResult = o1.getName().compareTo(o2.getName()); if(0 == compareResult) { return subCompare(o1, o2); } else { return compareResult * resultMultiplier; } }
public int compare(final Contact o1, final Contact o2) { final int compareResult = o1.getName().compareTo(o2.getName()); if(0 == compareResult) { return subCompare(o1, o2); } else { return compareResult * resultMultiplier; } }
1,114,053
public int whichTaxonNumber(Taxon t){ for (int i=0; i<numTaxa; i++) if (t == taxon[i]) return i; return -1; }
public int whichTaxonNumber(Taxon t){ for (int i=0; i<numTaxa; i++) if (t == taxon[i]) return i; return -1; }
1,114,054
void close(final Long documentId, final JabberId closedBy, final Calendar closedOn) { final CloseEvent closeEvent = new CloseEvent(); closeEvent.setArtifactId(documentId); closeEvent.setCreatedBy(closedBy); closeEvent.setCreatedOn(closedOn); closeEvent.setType(AuditEventType.CLOSE); getInternalAuditModel().audit(closeEvent); }
void close(final Long documentId, final JabberId closedBy, final Calendar closedOn, final JabberId createdBy) { final CloseEvent closeEvent = new CloseEvent(); closeEvent.setArtifactId(documentId); closeEvent.setCreatedBy(closedBy); closeEvent.setCreatedOn(closedOn); closeEvent.setType(AuditEventType.CLOSE); getInternalAuditModel().audit(closeEvent); }
1,114,055
public FieldDescriptor getDiscriminatorFieldDescriptor() { return this.discriminatorFieldDescriptor; }
public FieldDescriptor getDiscriminatorFieldDescriptor() { return this.discriminatorFieldDescriptor; }
1,114,057
public boolean hasDiscriminatorField() { return this.discriminatorFieldDescriptor != null; }
public boolean hasDiscriminatorField() { return this.getDiscriminatorFieldDescriptor() != null; }
1,114,058
private void lookupInheritanceSettings() { if (null != this.superClassDescriptor) { if (this.jcrNodeType.equals(this.superClassDescriptor.jcrNodeType)) { this.extendsStrategy = NODETYPE_PER_HIERARCHY; } else { this.extendsStrategy = NODETYPE_PER_CONCRETECLASS; } } }
private void lookupInheritanceSettings() { if (null != this.superClassDescriptor) { if (this.jcrNodeType.equals(this.superClassDescriptor.jcrNodeType)) { this.extendsStrategy = NODETYPE_PER_HIERARCHY; } else { this.extendsStrategy = NODETYPE_PER_CONCRETECLASS; } } }
1,114,059
private void validateInheritanceSettings() { if (NODETYPE_PER_CONCRETECLASS.equals(this.extendsStrategy)) { this.discriminatorFieldDescriptor = findDiscriminatorField(); if (null != this.discriminatorFieldDescriptor) { throw new JcrMappingException(""); } } else if (NODETYPE_PER_HIERARCHY.equals(this.extendsStrategy)) { this.discriminatorFieldDescriptor = findDiscriminatorField(); if (null == this.discriminatorFieldDescriptor) { throw new JcrMappingException(""); } } }
private void validateInheritanceSettings() { if (NODETYPE_PER_CONCRETECLASS.equals(this.extendsStrategy)) { this.discriminatorFieldDescriptor = getDiscriminatorFieldDescriptor(); if (null != this.discriminatorFieldDescriptor) { throw new JcrMappingException(""); } } else if (NODETYPE_PER_HIERARCHY.equals(this.extendsStrategy)) { this.discriminatorFieldDescriptor = getDiscriminatorFieldDescriptor(); if (null == this.discriminatorFieldDescriptor) { throw new JcrMappingException(""); } } }
1,114,062
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
1,114,063
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
1,114,064
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.get(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.get(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
1,114,065
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
1,114,066
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
1,114,067
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
1,114,068
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
1,114,069
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
1,114,070
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints, listModel.size()); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints, listModel.size()); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints, listModel.size()); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); } }); }
1,114,071
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
1,114,073
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
1,114,074
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.get(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
1,114,075
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
1,114,076
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
1,114,078
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
1,114,079
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
1,114,080
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { tabJPanel.remove(i); } for (int i = index0; i < listModel.size(); i++) { panelConstraints.gridy = i; tabJPanel.add((DefaultTabPanel) listModel.getElementAt(i), panelConstraints.clone(), i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
1,114,081
public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
1,114,083
public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
1,114,084
public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(i); } tabJPanel.add(fillJLabel, fillConstraints, listModel.size()); tabJPanel.revalidate(); tabJScrollPane.revalidate(); revalidate(); repaint(); debug(); }
1,114,085
private void versionsContentJListMousePressed(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsContentJListMousePressed logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractContentCell) ((JList) e.getSource()).getSelectedValue(), e); e.consume(); } }//GEN-LAST:event_versionsContentJListMousePressed
private void versionsContentJListMousePressed(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsContentJListMousePressed logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractContentCell) ((JList) e.getSource()).getSelectedValue(), e); e.consume(); } }//GEN-LAST:event_versionsContentJListMousePressed
1,114,087
private void versionsContentJListMouseReleased(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsContentJListMouseReleased logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractContentCell) ((JList) e.getSource()).getSelectedValue(), e); e.consume(); } }//GEN-LAST:event_versionsContentJListMouseReleased
private void versionsContentJListMouseReleased(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsContentJListMouseReleased logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractContentCell) ((JList) e.getSource()).getSelectedValue(), e); e.consume(); } }//GEN-LAST:event_versionsContentJListMouseReleased
1,114,088
private void versionsJListMousePressed(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsJListMousePressed logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup( (AbstractVersionCell) ((JList) e.getSource()).getSelectedValue(), e); e.consume(); } }//GEN-LAST:event_versionsJListMousePressed
private void versionsJListMousePressed(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsJListMousePressed logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup( (AbstractVersionCell) ((JList) e.getSource()).getSelectedValue(), e); e.consume(); } }//GEN-LAST:event_versionsJListMousePressed
1,114,089
private void versionsJListMouseReleased(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsJListMouseReleased logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractVersionCell) ((JList) e.getSource()).getSelectedValue(), e); e.consume(); } }//GEN-LAST:event_versionsJListMouseReleased
private void versionsJListMouseReleased(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsJListMouseReleased logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractVersionCell) ((JList) e.getSource()).getSelectedValue(), e); e.consume(); } }//GEN-LAST:event_versionsJListMouseReleased
1,114,090
public abstract Analysis doAnalysis(Story story);
public abstract Analysis doAnalysis(Story story, String topic);
1,114,091
private void handleIncomingStory(Message msg) { Story s = Story.createFromYAML(msg.content); Analysis a = doAnalysis(s); if (a.isRelevant()) { Message m = new Message(); m.to = "WB.Analyses"; m.content = a.toYAML(); airBrush.postMessage(m); } }
private void handleIncomingStory(Message msg) { Story s = Story.createFromYAML(msg.content); String t = "iceland"; Analysis a = doAnalysis(s, t); if (a.isRelevant()) { Message m = new Message(); m.to = "WB.Analyses"; m.content = a.toYAML(); airBrush.postMessage(m); } }
1,114,092
public Module(String moduleName) { airBrush = new AirBrush(moduleName, airHostName, airPort); airBrush.setCallbackObject(this); try { airBrush.startListening(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } connected = true; }
public Module(String moduleName) { airBrush = new AirBrush(moduleName, airHostName, airPort); airBrush.setCallbackObject(this); try { airBrush.startListening(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } connected = true; }
1,114,093
public Module(String moduleName) { airBrush = new AirBrush(moduleName, airHostName, airPort); airBrush.setCallbackObject(this); try { airBrush.startListening(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } connected = true; }
public Module(String moduleName) { airBrush = new AirBrush(moduleName, airHostName, airPort); airBrush.setCallbackObject(this); try { airBrush.startListening(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
1,114,094
public History2Window(final BrowserWindow browserWindow, final Avatar avatar) { super(browserWindow, Boolean.FALSE, ""); final Color c1 = new Color(196, 213, 255, 255); final Color c2 = new Color(117, 130, 162, 255); getRootPane().setBorder(new CustomEtechedBorder(EtchedBorder.RAISED, c1, c2)); setUndecorated(true); setLayout(new GridBagLayout()); setSize(new Dimension(306, 490)); setLocation(calculateLocation(browserWindow, getSize())); initComponents(avatar); }
public History2Window(final BrowserWindow browserWindow, final Avatar avatar) { super(browserWindow, Boolean.FALSE, ""); final Color c1 = new Color(196, 213, 255, 255); final Color c2 = new Color(117, 130, 162, 255); getRootPane().setBorder(new CustomEtechedBorder(EtchedBorder.RAISED, c1, c2)); setUndecorated(true); setLayout(new GridBagLayout()); setSize(new Dimension(306, 490)); setLocation(calculateLocation(browserWindow, getSize())); initComponents(avatar); }
1,114,095
public History2Window(final BrowserWindow browserWindow, final Avatar avatar) { super(browserWindow, Boolean.FALSE, ""); final Color c1 = new Color(196, 213, 255, 255); final Color c2 = new Color(117, 130, 162, 255); getRootPane().setBorder(new CustomEtechedBorder(EtchedBorder.RAISED, c1, c2)); setUndecorated(true); setLayout(new GridBagLayout()); setSize(new Dimension(306, 490)); setLocation(calculateLocation(browserWindow, getSize())); initComponents(avatar); }
public History2Window(final BrowserWindow browserWindow, final Avatar avatar) { super(browserWindow, Boolean.FALSE, ""); final Color c1 = new Color(196, 213, 255, 255); final Color c2 = new Color(117, 130, 162, 255); getRootPane().setBorder(new CustomEtechedBorder(EtchedBorder.RAISED, c1, c2)); setUndecorated(true); setLayout(new GridBagLayout()); setSize(new Dimension(306, 430)); setLocation(calculateLocation(browserWindow, getSize())); initComponents(avatar); }
1,114,096
private static Point calculateLocation(final BrowserWindow browserWindow, final Dimension hws) { final Point bwl = browserWindow.getLocation(); final Dimension bws = browserWindow.getSize(); return new Point(bwl.x + bws.width, bwl.y + (bws.height - hws.height)); }
private static Point calculateLocation(final BrowserWindow browserWindow, final Dimension hws) { final Point bwl = browserWindow.getLocation(); final Dimension bws = browserWindow.getSize(); return new Point(bwl.x + bws.width, bwl.y + (bws.height - hws.height) - 45); }
1,114,097
public void applySearchFilter(final List<IndexHit> searchResult) { if(null == searchFilter) { searchFilter = new com.thinkparity.model.parity.model.filter.artifact.Search(searchResult); } else { searchFilter.setResults(searchResult); } SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).applyFilter(searchFilter); } }); }
public void applySearchFilter(final List<IndexHit> searchResult) { if(null == searchFilter) { searchFilter = new com.thinkparity.model.parity.model.filter.artifact.Search(searchResult); } else { searchFilter.setResults(searchResult); } SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).applyFilter(searchFilter); } }); }
1,114,098
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).applyFilter(searchFilter); }
public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); }
1,114,099
public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); }
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE); }
1,114,100
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE); }
public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); }
1,114,101