bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private void tabJListValueChanged(javax.swing.event.ListSelectionEvent e) { final Integer newSelectedIndex = tabJList.getSelectedIndex(); final Integer lastIndex = tabJList.getModel().getSize() - 1; // The first time here, or if the current selectio... | private void tabJListValueChanged(javax.swing.event.ListSelectionEvent e) { final Integer newSelectedIndex = tabJList.getSelectedIndex(); final Integer lastIndex = tabJList.getModel().getSize() - 1; // The first time here, or if the current selectio... | 1,113,200 |
protected final void installMouseOverTracker() { final MouseInputListener mouseOverListener = new MouseInputAdapter() { private int mouseOverIndex = -1; @Override public void mouseEntered(final MouseEvent e) { mouseMoved(e); } @Override ... | protected final void installMouseOverTracker() { final MouseInputListener mouseOverListener = new MouseInputAdapter() { private int mouseOverIndex = -1; @Override public void mouseEntered(final MouseEvent e) { mouseMoved(e); } @Override ... | 1,113,201 |
protected final void installMouseOverTracker() { final MouseInputListener mouseOverListener = new MouseInputAdapter() { private int mouseOverIndex = -1; @Override public void mouseEntered(final MouseEvent e) { mouseMoved(e); } @Override ... | protected final void installMouseOverTracker() { final MouseInputListener mouseOverListener = new MouseInputAdapter() { private int mouseOverIndex = -1; @Override public void mouseEntered(final MouseEvent e) { mouseMoved(e); } @Override ... | 1,113,202 |
protected final void installMouseOverTracker() { final MouseInputListener mouseOverListener = new MouseInputAdapter() { private int mouseOverIndex = -1; @Override public void mouseEntered(final MouseEvent e) { mouseMoved(e); } @Override ... | protected final void installMouseOverTracker() { final MouseInputListener mouseOverListener = new MouseInputAdapter() { private int mouseOverIndex = -1; @Override public void mouseEntered(final MouseEvent e) { mouseMoved(e); } @Override ... | 1,113,203 |
private static void initParityInstall() { final File parent = SESSION.getOutputDirectory(); final File install = new File(parent, "parity.install"); Assert.assertTrue("[LMODEL] [TEST INIT] [INIT INSTALL]", install.mkdir()); Assert.assertTrue("[LMODEL] [TEST INIT] [INIT INSTALL CORE]", ne... | private static void initParityInstall() { final File parent = SESSION.getOutputDirectory(); final File install = new File(parent, "thinkparity.install"); Assert.assertTrue("[LMODEL] [TEST INIT] [INIT INSTALL]", install.mkdir()); Assert.assertTrue("[LMODEL] [TEST INIT] [INIT INSTALL CORE]... | 1,113,204 |
private static void initParityInstall() { final File parent = SESSION.getOutputDirectory(); final File install = new File(parent, "parity.install"); Assert.assertTrue("[LMODEL] [TEST INIT] [INIT INSTALL]", install.mkdir()); Assert.assertTrue("[LMODEL] [TEST INIT] [INIT INSTALL CORE]", ne... | private static void initParityInstall() { final File parent = SESSION.getOutputDirectory(); final File install = new File(parent, "parity.install"); Assert.assertTrue("[LMODEL] [TEST INIT] [INIT INSTALL]", install.mkdir()); Assert.assertTrue("[LMODEL] [TEST INIT] [INIT INSTALL CORE]", ne... | 1,113,205 |
private DocumentListener createDocumentListener() { return new DocumentAdapter() { public void confirmationReceived(final DocumentEvent e) { if(e.isRemote()) { browser.fireDocumentConfirmationReceived(e.getDocument().getId()); } } publi... | private DocumentListener createDocumentListener() { return new DocumentAdapter() { public void confirmationReceived(final DocumentEvent e) { if(e.isRemote()) { browser.fireDocumentConfirmationReceived(e.getDocument().getId()); } } publi... | 1,113,206 |
public void execute() { if(!isMounted()) { throw new IllegalStateException(); } // set last run property final Calendar lastRun = Calendar.getInstance(); properties.setProperty(PropertyNames.ParityImageLastRun, DateFormats.ImageLastRun.format(lastRun.getTime())); // set library pa... | public void execute() { if(!isMounted()) { throw new IllegalStateException(); } // set last run property final Calendar lastRun = Calendar.getInstance(); properties.setProperty(PropertyNames.ParityImageLastRun, DateFormats.ImageLastRun.format(lastRun.getTime())); // set library pa... | 1,113,208 |
public Boolean doesExist(final UUID uniqueId) { synchronized(getImplLock()) { return getImpl().doesExist(uniqueId); } } | public Boolean doesExist(final UUID uniqueId) { synchronized(getImplLock()) { return getImpl().doesExist(uniqueId); } } | 1,113,209 |
public void fireDocumentCreated(final Long documentId) { SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); } }); SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserMainAvatar) avatarRegistry.get... | public void fireDocumentCreated(final Long documentId) { SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); } }); SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserMainAvatar) avatarRegistry.get... | 1,113,210 |
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE); } | public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).syncDocument(documentId, Boolean.FALSE); } | 1,113,211 |
public void fireDocumentDeleted(final Long documentId) { SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); } }); // refresh the document main list SwingUtilities.invokeLater(new Runnable() { public void run() { ((Br... | public void fireDocumentDeleted(final Long documentId) { SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); } }); // refresh the document main list SwingUtilities.invokeLater(new Runnable() { public void run() { ((Br... | 1,113,212 |
public void fireDocumentReceived(final Long documentId) { // refresh the document main list SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.TRUE); } }); } | public void fireDocumentReceived(final Long documentId) { // refresh the document main list SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).syncDocument(documentId, Boolean.TRUE); } }); } | 1,113,213 |
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.TRUE); } | public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).syncDocument(documentId, Boolean.TRUE); } | 1,113,214 |
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, remoteReload); } | public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).syncDocument(documentId, remoteReload); } | 1,113,215 |
public void moveBrowserWindow(final Point l) { logger.info("moveMainWindow(Point)"); logger.debug(l); final Point newL = mainWindow.getLocation(); newL.x += l.x; newL.y += l.y; logger.debug(newL); mainWindow.setLocation(newL); if(null != history2Window && history2Window.isVisible()) { final Point hl = histor... | public void moveBrowserWindow(final Point l) { logger.info("moveMainWindow(Point)"); logger.debug(l); final Point newL = mainWindow.getLocation(); newL.x += l.x; newL.y += l.y; logger.debug(newL); mainWindow.setLocation(newL); if(null != history2Window && history2Window.isVisible()) { final Point hl = histor... | 1,113,216 |
BrowserWindow(final Browser browser) throws HeadlessException { super("BrowserWindow"); this.browser = browser; // initialize the state new BrowserWindowState(this); getRootPane().setBorder(getBorder()); setIconImage(BROWSER_ICON); setTitle(getString("Title")); setUndecorated(true); setDefaultCloseOperation(J... | BrowserWindow(final Browser browser) throws HeadlessException { super("BrowserWindow"); this.browser = browser; // initialize the state new BrowserWindowState(this); getRootPane().setBorder(new ImageBorder("MainWindowBorderTop.png", "MainWindowBorderLeft.png", "MainWindowBorderBottom.png", "MainWindowBorderRight.... | 1,113,218 |
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(tru... | 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(tru... | 1,113,219 |
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); directoryJLabel = new javax.swing.JLabel(); directoryJTextField = new javax.swing.JTextField(); directoryJButton = new javax.swing.JButton(); openWhenDoneCheckBox = new javax.swing.JCheckBox(); ok... | private void initComponents() { explanationJLabel = new javax.swing.JLabel(); directoryJLabel = new javax.swing.JLabel(); directoryJTextField = new javax.swing.JTextField(); directoryJButton = new javax.swing.JButton(); openWhenDoneCheckBox = new javax.swing.JCheckBox(); ok... | 1,113,220 |
private void okJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okJButtonActionPerformed if(isInputValid()) { final Long containerId = getInputContainerId(); final Long versionId = getInputVersionId(); File directory = new File(SwingUtil.extract(direc... | private void okJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okJButtonActionPerformed if(isInputValid()) { final Long containerId = getInputContainerId(); final Long versionId = getInputVersionId(); File directory = new File(SwingUtil.extract(direc... | 1,113,221 |
private Delta calculateDelta(final ArtifactVersion compare, final List<? extends ArtifactVersion> compareToList) { for (final ArtifactVersion compareTo : compareToList) { if (compare.getArtifactId().equals(compareTo.getArtifactId())) { if (compare.getVersionId().equals(co... | private Delta calculateDelta(final ArtifactVersion compare, final List<? extends ArtifactVersion> compareToList) { for (final ArtifactVersion compareTo : compareToList) { if (compare.getArtifactId().equals(compareTo.getArtifactId())) { if (compare.getVersionId().equals(co... | 1,113,222 |
private Delta calculateDelta(final ArtifactVersion compare, final List<? extends ArtifactVersion> compareToList) { for (final ArtifactVersion compareTo : compareToList) { if (compare.getArtifactId().equals(compareTo.getArtifactId())) { if (compare.getVersionId().equals(co... | private Delta calculateDelta(final ArtifactVersion compare, final List<? extends ArtifactVersion> compareToList) { for (final ArtifactVersion compareTo : compareToList) { if (compare.getArtifactId().equals(compareTo.getArtifactId())) { if (compare.getVersionId().equals(co... | 1,113,223 |
private Delta calculateDelta(final ArtifactVersion compare, final List<? extends ArtifactVersion> compareToList) { for (final ArtifactVersion compareTo : compareToList) { if (compare.getArtifactId().equals(compareTo.getArtifactId())) { if (compare.getVersionId().equals(co... | private Delta calculateDelta(final ArtifactVersion compare, final List<? extends ArtifactVersion> compareToList) { for (final ArtifactVersion compareTo : compareToList) { if (compare.getArtifactId().equals(compareTo.getArtifactId())) { if (compare.getVersionId().equals(co... | 1,113,224 |
void handlePublished(final ContainerPublishedEvent event) { logger.logApiId(); logger.logVariable("event", event); try { final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long containerId = artifactModel.readId(event.getUniqueId()); /... | void handlePublished(final ContainerPublishedEvent event) { logger.logApiId(); logger.logVariable("event", event); try { final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long containerId = artifactModel.readId(event.getUniqueId()); /... | 1,113,225 |
void handlePublished(final ContainerPublishedEvent event) { logger.logApiId(); logger.logVariable("event", event); try { final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long containerId = artifactModel.readId(event.getUniqueId()); /... | void handlePublished(final ContainerPublishedEvent event) { logger.logApiId(); logger.logVariable("event", event); try { final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long containerId = artifactModel.readId(event.getUniqueId()); /... | 1,113,226 |
ContainerVersion readPreviousVersion(final Long containerId, final Long versionId) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("versionId", versionId); try { final Long nextVersionId = artifactIO.readPreviou... | ContainerVersion readPreviousVersion(final Long containerId, final Long versionId) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("versionId", versionId); try { final Long previousVersionId = artifactIO.readPre... | 1,113,227 |
ContainerVersion readPreviousVersion(final Long containerId, final Long versionId) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("versionId", versionId); try { final Long nextVersionId = artifactIO.readPreviou... | ContainerVersion readPreviousVersion(final Long containerId, final Long versionId) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("versionId", versionId); try { final Long nextVersionId = artifactIO.readPreviou... | 1,113,228 |
public Comparator<ArtifactVersion> createVersionByName() { return new AbstractComparator<ArtifactVersion>(Boolean.TRUE) { public int compare(final ArtifactVersion o1, final ArtifactVersion o2) { final int compareResult = o1.getName().compareTo(o2.getName()); ... | public Comparator<ArtifactVersion> createVersionByName() { return new AbstractComparator<ArtifactVersion>(Boolean.TRUE) { public int compare(final ArtifactVersion o1, final ArtifactVersion o2) { final int compareResult = o1.getName().compareTo(o2.getName()); ... | 1,113,229 |
public static Comparator<User> createOrganizationAndName( final Boolean ascending) { final AbstractComparator<User> comparator = new NameComparator(ascending); comparator.add(new OrganizationComparator(ascending)); return comparator; } | public static Comparator<User> createOrganizationAndName( final Boolean ascending) { final DefaultComparator<User> comparator = new NameComparator(ascending); comparator.add(new OrganizationComparator(ascending)); return comparator; } | 1,113,230 |
protected void assertOnline(final String assertion) { Assert.assertTrue(assertion, isOnline()); } | protected void assertOnline(final String assertion) { Assert.assertTrue(assertion, isOnline()); } | 1,113,231 |
public File createTempDirectory(final String suffix) throws IOException; | public File createTempDirectory() throws IOException; | 1,113,232 |
public void write( final String pdfPath, final Container container, final User containerCreatedBy, final List<ContainerVersion> versions, final Map<ContainerVersion, User> versionsPublishedBy, final Map<ContainerVersion, List<DocumentVersion>> docume... | public void write( final String pdfPath, final Container container, final User containerCreatedBy, final List<ContainerVersion> versions, final Map<ContainerVersion, User> versionsPublishedBy, final Map<ContainerVersion, List<DocumentVersion>> docume... | 1,113,233 |
public void write( final String pdfPath, final Container container, final User containerCreatedBy, final List<ContainerVersion> versions, final Map<ContainerVersion, User> versionsPublishedBy, final Map<ContainerVersion, List<DocumentVersion>> docume... | public void write( final String pdfPath, final Container container, final User containerCreatedBy, final List<ContainerVersion> versions, final Map<ContainerVersion, User> versionsPublishedBy, final Map<ContainerVersion, List<DocumentVersion>> docume... | 1,113,234 |
public static void createZipFile(final File zipFile, final File inputDirectory) throws FileNotFoundException, IOException { Assert.assertNotTrue(zipFile.exists(), "Zip file ''{0}'' already exists.", zipFile); Assert.assertTrue(zipFile.createNewFile(), "Zip file ''{... | public static void createZipFile(final File zipFile, final File inputDirectory) throws FileNotFoundException, IOException { Assert.assertNotTrue(zipFile.exists(), "Zip file ''{0}'' already exists.", zipFile); Assert.assertTrue(zipFile.createNewFile(), "Zip file ''{... | 1,113,235 |
protected String uploadStream(final StreamSession session, final InputStream stream) throws IOException { final InternalSessionModel sessionModel = getSessionModel(); final StreamWriter writer = new StreamWriter(session); writer.open(); try { final String streamId =... | protected String uploadStream(final StreamSession session, final InputStream stream, final Long streamSize) throws IOException { final InternalSessionModel sessionModel = getSessionModel(); final StreamWriter writer = new StreamWriter(session); writer.open(); try { ... | 1,113,236 |
protected String uploadStream(final StreamSession session, final InputStream stream) throws IOException { final InternalSessionModel sessionModel = getSessionModel(); final StreamWriter writer = new StreamWriter(session); writer.open(); try { final String streamId =... | protected String uploadStream(final StreamSession session, final InputStream stream) throws IOException { final InternalSessionModel sessionModel = getSessionModel(); final StreamWriter writer = new StreamWriter(session); writer.open(); try { final String streamId =... | 1,113,237 |
public List<JabberId> readTeamIds(UUID uniqueId) { synchronized (getImplLock()) { return getImpl().readTeamIds(uniqueId); } } | public List<JabberId> readTeamIds(final UUID uniqueId) { synchronized (getImplLock()) { return getImpl().readTeamIds(uniqueId); } } | 1,113,238 |
private void sendJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendJButtonActionPerformed if(isInputValid()) { final Long documentId = extractDocumentId(); final List<User> contacts = proxy(extractTeam()); contacts.addAll(proxy(extractContacts())); final Boolean doIncludeKey ... | private void sendJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendJButtonActionPerformed if(isInputValid()) { final Long documentId = extractDocumentId(); final List<User> contacts = proxy(extractTeam()); contacts.addAll(proxy(extractContacts())); final Boolean doIncludeKey ... | 1,113,239 |
public static JList create() { synchronized(singletonLock) { return singleton.doCreate(); } } | public static JList create() { synchronized(singletonLock) { return singleton.doCreate(); } } | 1,113,240 |
public void send(final Collection<User> users, final Long documentId, final Long versionId) throws ParityException { synchronized(implLock) { impl.send(users, documentId, versionId); } } | public void send(final Collection<User> users, final Long documentId, final Long versionId) throws ParityException { synchronized(implLock) { impl.send(users, documentId, versionId); } } | 1,113,241 |
public int compare(final String o1, final String o2) { final int compareResult; switch (platform) { case WIN32: compareResult = o1.toLowerCase().compareTo(o2.toLowerCase()); break; case LINUX: case UNIX: compareResult = o1.compareTo(o2); ... | public int compare(final String o1, final String o2) { final int compareResult; switch (platform) { case WIN32: compareResult = o1.toLowerCase().compareTo(o2.toLowerCase()); break; case LINUX: case UNIX: compareResult = o1.compareTo(o2); ... | 1,113,244 |
public XMPPSessionImpl() { logger.info("Jive Software: Smack: " + SmackConfiguration.getVersion()); this.listeners = new ArrayList<SessionListener>(); this.xmppArtifact = new XMPPArtifact(this); this.xmppContainer = new XMPPContainer(this); this.xmppContact = new XMPPContact(this); this.xmppProfile... | public XMPPSessionImpl() { logger.info("Jive Software: Smack: " + SmackConfiguration.getVersion()); this.listeners = new ArrayList<SessionListener>(); this.xmppArtifact = new XMPPArtifact(this); this.xmppContainer = new XMPPContainer(this); this.xmppContact = new XMPPContact(this); this.xmppProfile... | 1,113,245 |
public void notifyListener(final SessionListener listener) { listener.sessionTerminated(); } | public void notifyListener(final SessionListener listener) { listener.sessionTerminated(x); } | 1,113,246 |
private void handleConnectionEstablished(final XMPPConnection xmppConnection) { if (null != this.xmppConnection && this.xmppConnection.equals(xmppConnection)) { notifyListeners(new EventNotifier<SessionListener>() { public void notifyListener(final SessionListener listener) { ... | private void handleConnectionEstablished(final XMPPConnection xmppConnection) { if (null != this.xmppConnection && this.xmppConnection.equals(xmppConnection)) { notifyListeners(new EventNotifier<SessionListener>() { public void notifyListener(final SessionListener listener) { ... | 1,113,247 |
public void notifyListener(final SessionListener listener) { listener.sessionTerminated(x); } | public void notifyListener(final SessionListener listener) { listener.sessionEstablished(); } | 1,113,248 |
public SmackException(String string) { super(string); } | SmackException(final String message, final Throwable cause) { super(message, cause); } | 1,113,250 |
private XMPPDocument(final byte[] content, final String createdBy, final Calendar createdOn, final String description, final Collection<ParityObjectFlag> flags, final UUID id, final String name, final String updatedBy, final Calendar updatedOn) { super(); this.content = new byte[content.length]; System.arrayc... | private XMPPDocument(final byte[] content, final String createdBy, final Calendar createdOn, final String description, final Collection<ParityObjectFlag> flags, final UUID id, final String name, final String updatedBy, final Calendar updatedOn) { super(); this.content = new byte[content.length]; System.arrayc... | 1,113,251 |
public static XMPPDocument create(final Document document, final DocumentContent content) { return new XMPPDocument(content.getContent(), document.getCreatedBy(), document.getCreatedOn(), document.getDescription(), document.getFlags(), document.getId(), document.getName(), document.getUpdatedBy(), document... | public static XMPPDocument create(final Document document, final DocumentContent content) { return new XMPPDocument(content.getContent(), document.getCreatedBy(), document.getCreatedOn(), document.getDescription(), document.getFlags(), document.getId(), document.getName(), document.getUpdatedBy(), document... | 1,113,252 |
public PDFXMLWriter(final FileSystem exportFileSystem) { super(); this.documents = new HashMap<ContainerVersion, List<DocumentVersion>>(); this.documentsSize = new HashMap<DocumentVersion, Long>(); this.publishedTo = new HashMap<ContainerVersion, Map<User, ArtifactReceipt>>(); this.sha... | public PDFXMLWriter(final FileSystem exportFileSystem) { super(); this.documents = new HashMap<ContainerVersion, List<DocumentVersion>>(); this.documentsSize = new HashMap<DocumentVersion, Long>(); this.publishedTo = new HashMap<ContainerVersion, Map<User, ArtifactReceipt>>(); t... | 1,113,254 |
void write( final String path, final Container container, final User containerCreatedBy, final List<ContainerVersion> versions, final Map<ContainerVersion, User> versionsPublishedBy, final Map<ContainerVersion, List<DocumentVersion>> documents, ... | void write( final String path, final Container container, final User containerCreatedBy, final List<ContainerVersion> versions, final Map<ContainerVersion, User> versionsPublishedBy, final Map<ContainerVersion, List<DocumentVersion>> documents, ... | 1,113,255 |
void write( final String path, final Container container, final User containerCreatedBy, final List<ContainerVersion> versions, final Map<ContainerVersion, User> versionsPublishedBy, final Map<ContainerVersion, List<DocumentVersion>> documents, ... | void write( final String path, final Container container, final User containerCreatedBy, final List<ContainerVersion> versions, final Map<ContainerVersion, User> versionsPublishedBy, final Map<ContainerVersion, List<DocumentVersion>> documents, ... | 1,113,256 |
public static File getFile(String resourcePath) { if (null == resourcePath) return null; return new File(getURL(resourcePath).getFile()); } | public static File getFile(String resourcePath) { if (null == resourcePath) return null; return new File(getURL(resourcePath).getFile()); } | 1,113,257 |
public static File getFile(String resourcePath) { if (null == resourcePath) return null; return new File(getURL(resourcePath).getFile()); } | public static File getFile(String resourcePath) { if (null == resourcePath) return null; try { final URL url = getURL(name); if (null == url) return null; final String pathname = URLDecoder.decode( url.getFile(), SYSTEM_FILE_ENCODING); return new File(pathname); } catch (final UnsupportedEncodingException uex) { t... | 1,113,258 |
public NameComparator(final Boolean doCompareAscending) { super(doCompareAscending); this.comparator = new StringComparator(doCompareAscending); } | public NameComparator(final Boolean doCompareAscending) { super(); this.comparator = new StringComparator(doCompareAscending); } | 1,113,259 |
private void updateCellMouseOver(final Integer index, final Boolean mouseOver) { saveSelection(); final TabCell cell = (TabCell) tabJList.getModel().getElementAt(index); cell.setMouseOver(mouseOver); model.getListModel().removeElementAt(index); model.getListModel().add(index, cell... | private void updateCellMouseOver(final Integer index, final Boolean mouseOver) { saveSelection(); final TabCell cell = (TabCell) tabJList.getModel().getElementAt(index); cell.setMouseOver(mouseOver); model.getListModel().removeElementAt(index); model.getListModel().add(index, cell... | 1,113,260 |
protected void setUp() throws Exception { super.setUp(); final File inputFile = getInputFile("JUnitTestFramework.txt"); final DocumentModel documentModel = getDocumentModel(OpheliaTestUser.JUNIT); final Document document = createDocument(OpheliaTestUser.JUNIT, inputFile); modifyDocument(OpheliaTestUser.JUNI... | protected void setUp() throws Exception { super.setUp(); final File inputFile = getInputFile("JUnitTestFramework.txt"); final DocumentModel documentModel = getDocumentModel(OpheliaTestUser.JUNIT); final Document document = createDocument(OpheliaTestUser.JUNIT, inputFile); modifyDocument(OpheliaTestUser.JUNI... | 1,113,261 |
ArchiveTabModel(final TabPanelExtension extension) { super(extension); this.actionDelegate = new ArchiveTabActionDelegate(this); this.expandedState = new HashMap<TabPanel, Boolean>(); this.filteredPanels = new ArrayList<TabPanel>(); this.listModel = new DefaultListModel(); ... | ArchiveTabModel(final TabPanelExtension extension) { super(extension); this.actionDelegate = new ArchiveTabActionDelegate(this); this.expandedState = new HashMap<TabPanel, Boolean>(); this.filteredPanels = new ArrayList<TabPanel>(); this.listModel = new DefaultListModel(); ... | 1,113,262 |
void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() ... | void applySort(final SortBy sortBy) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() == ascending.booleanVa... | 1,113,263 |
void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() ... | void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() ... | 1,113,264 |
void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() ... | void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() ... | 1,113,265 |
void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() ... | void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() ... | 1,113,266 |
void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() ... | void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() ... | 1,113,267 |
void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() ... | void applySort(final Ordering ordering, final Boolean ascending) { debug(); // if the sorted by stack already contains the ordering do nothing if (sortedBy.contains(ordering)) { if (sortedBy.get(sortedBy.indexOf( ordering)).isAscending().booleanValue() ... | 1,113,268 |
String getString(final Ordering ordering) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(ordering)) { pattern.append("_{1}"); if (ordering.isAscending()) { return getExtension().getLocalization().getString( ... | String getString(final SortBy sortBy) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(ordering)) { pattern.append("_{1}"); if (ordering.isAscending()) { return getExtension().getLocalization().getString( M... | 1,113,269 |
String getString(final Ordering ordering) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(ordering)) { pattern.append("_{1}"); if (ordering.isAscending()) { return getExtension().getLocalization().getString( ... | String getString(final Ordering ordering) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(sortBy)) { pattern.append("_{1}"); if (ordering.isAscending()) { return getExtension().getLocalization().getString( ... | 1,113,270 |
String getString(final Ordering ordering) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(ordering)) { pattern.append("_{1}"); if (ordering.isAscending()) { return getExtension().getLocalization().getString( ... | String getString(final Ordering ordering) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(ordering)) { pattern.append("_{1}"); if (sortBy.ascending) { return getExtension().getLocalization().getString( Mes... | 1,113,271 |
String getString(final Ordering ordering) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(ordering)) { pattern.append("_{1}"); if (ordering.isAscending()) { return getExtension().getLocalization().getString( ... | String getString(final Ordering ordering) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(ordering)) { pattern.append("_{1}"); if (ordering.isAscending()) { return getExtension().getLocalization().getString( ... | 1,113,272 |
String getString(final Ordering ordering) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(ordering)) { pattern.append("_{1}"); if (ordering.isAscending()) { return getExtension().getLocalization().getString( ... | String getString(final Ordering ordering) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(ordering)) { pattern.append("_{1}"); if (ordering.isAscending()) { return getExtension().getLocalization().getString( ... | 1,113,273 |
String getString(final Ordering ordering) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(ordering)) { pattern.append("_{1}"); if (ordering.isAscending()) { return getExtension().getLocalization().getString( ... | String getString(final Ordering ordering) { final StringBuffer pattern = new StringBuffer("ArchiveTab.{0}"); if (isSortApplied(ordering)) { pattern.append("_{1}"); if (ordering.isAscending()) { return getExtension().getLocalization().getString( ... | 1,113,274 |
protected void initialize() { debug(); clearPanels(); final List<Container> containers = readContainers(); for (final Container container : containers) { addContainerPanel(container); } applySort(Ordering.CREATED_ON, Boolean.FALSE); debug(); } | protected void initialize() { debug(); clearPanels(); final List<Container> containers = readContainers(); for (final Container container : containers) { addContainerPanel(container); } applySort(SortBy.CREATED_ON); debug(); } | 1,113,275 |
Boolean isSortApplied(final Ordering ordering) { debug(); return sortedBy.contains(ordering); } | private boolean isSortApplied(final SortBy sortBy) { debug(); return sortedBy.contains(ordering); } | 1,113,276 |
Boolean isSortApplied(final Ordering ordering) { debug(); return sortedBy.contains(ordering); } | Boolean isSortApplied(final Ordering ordering) { debug(); return sortedBy.contains(sortBy); } | 1,113,277 |
public SemiTransparentJPanel(final Boolean enabled) { super(); setBorder(null); setOpaque(false); setSize(mainWindowSize); setLocation(0,0); this.enabled = enabled; } | public SemiTransparentJPanel(final Boolean enabled) { super(); setBorder(null); setOpaque(false); setSize(BrowserWindow.this.getSize()); setLocation(0,0); this.enabled = enabled; } | 1,113,278 |
public void paintComponent(final Graphics g) { super.paintComponent(g); if (enabled) { setSize(mainWindowSize); final Graphics2D g2 = (Graphics2D) g.create(); try { g2.setComposite(makeComposite(Colors.Browser.SemiTrans... | public void paintComponent(final Graphics g) { super.paintComponent(g); if (enabled) { setSize(BrowserWindow.this.getSize()); final Graphics2D g2 = (Graphics2D) g.create(); try { g2.setComposite(makeComposite(Colors.Bro... | 1,113,279 |
public void paintComponent(final Graphics g) { super.paintComponent(g); if (enabled) { setSize(mainWindowSize); final Graphics2D g2 = (Graphics2D) g.create(); try { g2.setComposite(makeComposite(Colors.Browser.SemiTrans... | public void paintComponent(final Graphics g) { super.paintComponent(g); if (enabled) { setSize(mainWindowSize); final Graphics2D g2 = (Graphics2D) g.create(); try { g2.setComposite(makeComposite(Colors.Browser.SemiTrans... | 1,113,280 |
private void initComponents() { mainPanel = new MainPanel(); add(mainPanel); roundCorners(); } | private void initComponents() { mainPanel = new MainPanel(); add(mainPanel); } | 1,113,281 |
private void initMenu() { final JMenuBar menuBar = new BrowserMenuBar(browser); setJMenuBar(menuBar); } | private void initMenu() { final JMenuBar menuBar = new BrowserMenuBar(browser); setJMenuBar(menuBar); } | 1,113,282 |
public void maximizeMainWindow(final Boolean maximize) { final Dimension size = getSize(); final Point location = getLocation(); setBounds(location.x, location.y, (int)size.getWidth(), (int)size.getHeight()); setMinimumSize(size); mainWindowSize.setSize(size); //if (!maximi... | public void maximizeMainWindow(final Boolean maximize) { final Dimension size = getSize(); final Point location = getLocation(); setBounds(location.x, location.y, (int)size.getWidth(), (int)size.getHeight()); setMinimumSize(size); mainWindowSize.setSize(size); //if (!maximi... | 1,113,283 |
private void persist() { persistence.set("location", getLocation()); persistence.set("size", getMainWindowSize()); } | private void persist() { persistence.set("location", getLocation()); persistence.set("size", getMainWindowSize()); } | 1,113,284 |
public BrowserMenuBar(final Browser browser) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeE... | public BrowserMenuBar(final Browser browser, final Boolean maximized) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Bool... | 1,113,286 |
public BrowserMenuBar(final Browser browser) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeE... | public BrowserMenuBar(final Browser browser) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeE... | 1,113,287 |
public BrowserMenuBar(final Browser browser) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeE... | public BrowserMenuBar(final Browser browser) { super(); this.browser = browser; this.localization = new JFrameLocalization("BrowserWindow.Menu"); this.popupItemFactory = PopupItemFactory.getInstance(); this.resizer = new Resizer(browser, this, Boolean.TRUE, Resizer.ResizeE... | 1,113,288 |
public void roundCorners(final Window window) { if (!NO_NATIVE_SKIN) { final Region region = NATIVE_SKIN.createRoundRectangleRegion(0, 0, window.getWidth() + 1, window.getHeight() + 1, 9, 9); NATIVE_SKIN.setWindowRegion(window, region, true); } } | public void roundCorners(final Window window) { if (isRounded()) { final Region region = NATIVE_SKIN.createRoundRectangleRegion(0, 0, window.getWidth() + 1, window.getHeight() + 1, 9, 9); NATIVE_SKIN.setWindowRegion(window, region, true); } } | 1,113,289 |
public MainProvider(final ArtifactModel artifactModel, final DocumentModel documentModel, final SystemMessageModel systemMessageModel) { super(); this.documentProvider = new SingleContentProvider() { public Object getElement(final Object input) { final Long documentId = (Long) ((Pair) input).getFirst(); ... | public MainProvider(final ArtifactModel artifactModel, final DocumentModel documentModel, final SystemMessageModel systemMessageModel) { super(); this.documentProvider = new SingleContentProvider() { public Object getElement(final Object input) { final Long documentId = (Long) ((Pair) input).getFirst(); ... | 1,113,290 |
public Object getElement(final Object input) { final Long documentId = (Long) ((Pair) input).getFirst(); final Filter<Artifact> filter = (Filter<Artifact>) ((Pair) input).getSecond(); try { final Document document = documentModel.get(documentId); if(filter.doFilter(documen... | public Object getElement(final Object input) { final Long documentId = (Long) ((Pair) input).getFirst(); final Filter<Artifact> filter = (Filter<Artifact>) ((Pair) input).getSecond(); try { final Document document = documentModel.get(documentId); if(null == document) { ret... | 1,113,291 |
void selectTab(final TabId tabId) { this.selectedTab = allTabs.get(tabId); reloadDisplay(); } | void selectTab(final TabId tabId) { this.selectedTab = allTabs.get(tabId); reloadDisplay(); } | 1,113,293 |
public String fileName(final Document document) { return MessageFormat.format("{0}.{2}", FileUtil.getName(document.getName()), FileUtil.getExtension(document.getName())); } | public String fileName(final Document document) { return MessageFormat.format("{0}{1}", FileUtil.getName(document.getName()), FileUtil.getExtension(document.getName())); } | 1,113,294 |
private Filter buildDiscriminatorFilter(Query query, ClassDescriptor classDescriptor) { Filter discrininatorFilter = this.createFilter(query.getFilter().getFilterClass()); if ( ! classDescriptor.isAbstract()) { FieldDescriptor fieldDescriptor = classDescriptor.getDiscriminatorFieldDescriptor(); discrinina... | private Filter buildDiscriminatorFilter(Query query, ClassDescriptor classDescriptor) { Filter discrininatorFilter = this.createFilter(query.getFilter().getFilterClass()); if ( ! classDescriptor.isAbstract()) { FieldDescriptor fieldDescriptor = classDescriptor.getDiscriminatorFieldDescriptor(); discrinina... | 1,113,296 |
public String buildJCRExpression(Query query) { Filter filter = query.getFilter(); // Check if the class has an inheritance discriminator field ClassDescriptor classDescriptor = mapper.getClassDescriptor(filter.getFilterClass()); if (classDescriptor.hasDiscriminatorField()) { Filter discrininatorFil... | public String buildJCRExpression(Query query) { Filter filter = query.getFilter(); // Check if the class has an inheritance discriminator field ClassDescriptor classDescriptor = mapper.getClassDescriptor(filter.getFilterClass()); if (classDescriptor.hasDiscriminatorField()) { Filter discrininatorFil... | 1,113,297 |
public String getJcrExpression() { return this.jcrExpression; } | public String getJcrExpression() { return this.jcrExpression.toString(); } | 1,113,298 |
public FilterImpl(ClassDescriptor classDescriptor, Map atomicTypeConverters, Class clazz) { this.claszz = clazz; this.atomicTypeConverters = atomicTypeConverters; this.classDescriptor = classDescriptor; } | public FilterImpl(ClassDescriptor classDescriptor, Map atomicTypeConverters, Class clazz) { this.clazz = clazz; this.atomicTypeConverters = atomicTypeConverters; this.classDescriptor = classDescriptor; } | 1,113,299 |
public static JMenuItem create(final String text, final Integer mnemonic) { synchronized(singletonLock) { return singleton.doCreate(text, mnemonic); } } | public static JMenuItem create(final String text, final Integer mnemonic) { synchronized(singletonLock) { return singleton.doCreate(text, mnemonic); } } | 1,113,300 |
public BinaryTypeConverterImpl(ValueFactory factory) { super(factory); } | public BinaryTypeConverterImpl(ValueFactory factory) { super(factory); } | 1,113,301 |
public AbstractAtomicTypeConverterImpl(ValueFactory factory) { super(); valueFactory = factory; } | public AbstractAtomicTypeConverterImpl(ValueFactory factory) { super(); valueFactory = factory; } | 1,113,302 |
public HistoryItems() { super("DocumentHistory", Color.WHITE); setBorder(new MultiLineBorder(new Color[] {BC_1, BC_2})); initComponents(); } | public HistoryItems() { super("DocumentHistory", Color.WHITE); initComponents(); } | 1,113,303 |
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory... | private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory.create(); setLayout(ne... | 1,113,304 |
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory... | private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory.create(); setLayout(new java.a... | 1,113,305 |
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory... | private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory... | 1,113,306 |
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory... | private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory... | 1,113,307 |
protected AbstractSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) { this.application = application; this.settings = settings; this.messageStoreFactory = messag... | protected AbstractSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) { this.application = application; this.settings = settings; this.messageStoreFactory = messag... | 1,113,309 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.