bugged
stringlengths 6
599k
| fixed
stringlengths 10
599k
| __index_level_0__
int64 0
1.13M
|
|---|---|---|
public void panelCellMousePressed(final Cell cell, final MouseEvent e) { if (cell instanceof WestCell) { westListModel.setSelectedCell(cell); } if ((e.getClickCount() % 2) == 0) { tabDelegate.toggleExpansion(this); } }
|
public void panelCellMousePressed(final Cell cell, final MouseEvent e) { if (cell instanceof WestCell) { westListModel.setSelectedCell(cell); } if (!onIcon && e.getClickCount() % 2 == 0) { tabDelegate.toggleExpansion(this); } }
| 1,114,792
|
public void testGet() { try { Document document; for(Fixture datum : data) { document = datum.documentModel.get(datum.id); assertNotNull(document); assertEquals(datum.document, document); } } catch(Throwable t) { fail(getFailMessage(t)); } }
|
public void testGet() { try { Document document; for(Fixture datum : data) { document = datum.documentModel.get(datum.id); assertEquals(datum.document, document); } } catch(Throwable t) { fail(getFailMessage(t)); } }
| 1,114,793
|
public void airBrushReceiveMessage(Message msg) { // TODO Auto-generated method stub System.out.println("Receiving " + msg.type + " from AirBrush."); if (msg.type.equals("Story")) { System.out.println("Story content: " + msg.content); Story story; // Parse the XML into the Story object story = Story.createFromYAML(msg.content); // Print some information System.out.println("Received story written by " + story.getAuthor() + " on " + story.getPublicationDate() + ": " + story.getContent()); // Now add this story to the queue storyQueue.offer(story); } }
|
public boolean airBrushReceiveMessage(Message msg) { if (super.airBrushReceiveMessage(msg)) return true; // TODO Auto-generated method stub System.out.println("Receiving " + msg.type + " from AirBrush."); if (msg.type.equals("Story")) { System.out.println("Story content: " + msg.content); Story story; // Parse the XML into the Story object story = Story.createFromYAML(msg.content); // Print some information System.out.println("Received story written by " + story.getAuthor() + " on " + story.getPublicationDate() + ": " + story.getContent()); // Now add this story to the queue storyQueue.offer(story); } }
| 1,114,794
|
void delete(final Long documentId) throws ParityException { logger.info("[LMODEL] [DOCUMENT MODEL] [DELETE]"); logger.debug(documentId); assertOnline("[LMODEL] [DOCUMENT MODEL] [DELETE] [USER IS NOT ONLINE]"); final Document document = get(documentId); if(isClosed(document)) { deleteLocal(document); } else { if(isKeyHolder(documentId)) { if(!isDistributed(documentId)) { deleteLocal(document); } else { throw Assert.createUnreachable( "[LMODEL] [DOCUMENT] [DELETE] [CAN ONLY DELETE CLOSED DOCUMENTS IF YOU ARE THE KEY HOLDER]"); } } else { deleteLocal(document); } } // fire event notifyDocumentDeleted(null, localEventGen); }
|
void delete(final Long documentId) throws ParityException { logger.info("[LMODEL] [DOCUMENT MODEL] [DELETE]"); logger.debug(documentId); assertOnline("[LMODEL] [DOCUMENT MODEL] [DELETE] [USER IS NOT ONLINE]"); final Document document = get(documentId); if(isClosed(document)) { deleteLocal(document); } else { if(isKeyHolder(documentId)) { if(!isDistributed(documentId)) { deleteLocal(document); } else { throw Assert.createUnreachable( "[LMODEL] [DOCUMENT] [DELETE] [CAN ONLY DELETE CLOSED DOCUMENTS IF YOU ARE THE KEY HOLDER]"); } } else { getInternalSessionModel().sendDelete(document.getId()); deleteLocal(document); } } // fire event notifyDocumentDeleted(null, localEventGen); }
| 1,114,796
|
void reactivate(final Long documentId) throws ParityException { logger.info(getApiId("[REACTIVATE]")); assertIsClosed(getErrorId("[REACTIVATE]", "[CANNOT REACTIVATE A CLOSED DOCUMENT]"), get(documentId)); // update the local state final Document document = get(documentId); assertStateTransition(document.getState(), ArtifactState.ACTIVE); document.setState(ArtifactState.ACTIVE); documentIO.update(document); // set key locally final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(documentId); // create remotely final InternalSessionModel iSModel = getInternalSessionModel(); iSModel.sendCreate(document); // share final Set<User> users = iAModel.readTeam(documentId); Collection<User> userCollection; Collection<DocumentVersion> versions; for(final User user : users) { userCollection = new Vector<User>(1); userCollection.add(user); versions = listVersions(documentId); for(final DocumentVersion version : versions) { getInternalSessionModel().send(userCollection, documentId, version.getVersionId()); } } }
|
void reactivate(final Long documentId) throws ParityException { logger.info(getApiId("[REACTIVATE]")); assertIsClosed(getErrorId("[REACTIVATE]", "[CANNOT REACTIVATE A CLOSED DOCUMENT]"), get(documentId)); // update the local state final Document document = get(documentId); assertStateTransition(document.getState(), ArtifactState.ACTIVE); document.setState(ArtifactState.ACTIVE); documentIO.update(document); // set key locally final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(documentId); // create remotely final InternalSessionModel iSModel = getInternalSessionModel(); iSModel.sendCreate(document); // share final Set<User> users = iAModel.readTeam(documentId); Collection<User> userCollection; Collection<DocumentVersion> versions; for(final User user : users) { userCollection = new Vector<User>(1); userCollection.add(user); versions = listVersions(documentId); for(final DocumentVersion version : versions) { getInternalSessionModel().send(userCollection, documentId, version.getVersionId()); } } }
| 1,114,797
|
void reactivate(final Long documentId) throws ParityException { logger.info(getApiId("[REACTIVATE]")); assertIsClosed(getErrorId("[REACTIVATE]", "[CANNOT REACTIVATE A CLOSED DOCUMENT]"), get(documentId)); // update the local state final Document document = get(documentId); assertStateTransition(document.getState(), ArtifactState.ACTIVE); document.setState(ArtifactState.ACTIVE); documentIO.update(document); // set key locally final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(documentId); // create remotely final InternalSessionModel iSModel = getInternalSessionModel(); iSModel.sendCreate(document); // share final Set<User> users = iAModel.readTeam(documentId); Collection<User> userCollection; Collection<DocumentVersion> versions; for(final User user : users) { userCollection = new Vector<User>(1); userCollection.add(user); versions = listVersions(documentId); for(final DocumentVersion version : versions) { getInternalSessionModel().send(userCollection, documentId, version.getVersionId()); } } }
|
void reactivate(final Long documentId) throws ParityException { logger.info(getApiId("[REACTIVATE]")); assertIsClosed(getErrorId("[REACTIVATE]", "[CANNOT REACTIVATE A CLOSED DOCUMENT]"), get(documentId)); // update the local state final Document document = get(documentId); assertStateTransition(document.getState(), ArtifactState.ACTIVE); document.setState(ArtifactState.ACTIVE); documentIO.update(document); // set key locally final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(documentId); // create remotely final InternalSessionModel iSModel = getInternalSessionModel(); iSModel.sendCreate(document); // share final Set<User> users = iAModel.readTeam(documentId); Collection<User> userCollection; Collection<DocumentVersion> versions; for(final User user : users) { userCollection = new Vector<User>(1); userCollection.add(user); versions = listVersions(documentId); for(final DocumentVersion version : versions) { getInternalSessionModel().send(userCollection, documentId, version.getVersionId()); } } }
| 1,114,798
|
void send(final Collection<User> users, final Document document) throws ParityException { synchronized(xmppHelperLock) { assertIsLoggedIn("send(Collection<User>,Document)", xmppHelper); try { final DocumentModel documentModel = DocumentModel.getModel(); final DocumentContent content = documentModel.getContent(document); xmppHelper.send(users, XMPPDocument.create(document, content)); } catch(SmackException sx) { logger.error("send(Collection<User>,Document)", sx); throw ParityErrorTranslator.translate(sx); } catch(RuntimeException rx) { logger.error("send(Collection<User>,Document)", rx); throw ParityErrorTranslator.translate(rx); } } }
|
void send(final Collection<User> users, final Document document) throws ParityException { synchronized(xmppHelperLock) { assertIsLoggedIn("send(Collection<User>,Document)", xmppHelper); try { final DocumentModel documentModel = DocumentModel.getModel(); final DocumentContent content = documentModel.getContent(document); xmppHelper.send(users, XMPPDocument.create(document, content)); } catch(SmackException sx) { logger.error("send(Collection<User>,Document)", sx); throw ParityErrorTranslator.translate(sx); } catch(RuntimeException rx) { logger.error("send(Collection<User>,Document)", rx); throw ParityErrorTranslator.translate(rx); } } }
| 1,114,800
|
private Boolean isBrowserWindowMaximized() { return JFrame.MAXIMIZED_BOTH == mainWindow.getExtendedState(); }
|
public Boolean isBrowserWindowMaximized() { return JFrame.MAXIMIZED_BOTH == mainWindow.getExtendedState(); }
| 1,114,801
|
public void maximize() { if (isBrowserWindowMaximized()) { mainWindow.setExtendedState(JFrame.NORMAL); mainWindow.maximizeMainWindow(Boolean.FALSE); } else { mainWindow.setExtendedState(mainWindow.getExtendedState() | JFrame.MAXIMIZED_BOTH); /* This works... mainWindow.setLocation(0,0); mainWindow.setSize(java.awt.Toolkit.getDefaultToolkit().getScreenSize()); */ GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); Rectangle bounds = env.getMaximumWindowBounds(); mainWindow.setLocation(0,0); mainWindow.setSize(bounds.getSize()); mainWindow.maximizeMainWindow(Boolean.TRUE); } }
|
public void maximize() { if (isBrowserWindowMaximized()) { mainWindow.setExtendedState(JFrame.NORMAL); mainWindow.maximizeMainWindow(Boolean.FALSE); } else { mainWindow.setExtendedState(mainWindow.getExtendedState() | JFrame.MAXIMIZED_BOTH); /* This works... mainWindow.setLocation(0,0); mainWindow.setSize(java.awt.Toolkit.getDefaultToolkit().getScreenSize()); */ GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); Rectangle bounds = env.getMaximumWindowBounds(); mainWindow.setLocation(0,0); mainWindow.setSize(bounds.getSize()); mainWindow.maximizeMainWindow(Boolean.TRUE); } }
| 1,114,802
|
private void register(final Avatar avatar) { Assert.assertIsNull( "Avatar " + avatar.getId() + " already registerd.", avatarRegistry.put(avatar.getId(), avatar)); }
|
private void register(final Avatar avatar) { Assert.assertIsNull( "Avatar " + avatar.getId() + " already registered.", avatarRegistry.put(avatar.getId(), avatar)); }
| 1,114,803
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,804
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,805
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,806
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(java.util.ResourceBundle.getBundle("localization/JPanel_Messages").getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,807
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,808
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,809
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 19, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { explanationJLabel = new javax.swing.JLabel(); okJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); nameJLabel = new javax.swing.JLabel(); nameJTextField = new javax.swing.JTextField(); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("localization/JPanel_Messages"); // NOI18N explanationJLabel.setText(bundle.getString("NewContainerDialog.Explanation")); // NOI18N explanationJLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); okJButton.setText(bundle.getString("NewContainerDialog.Ok")); // NOI18N okJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { okJButtonActionPerformed(evt); } }); cancelJButton.setText(bundle.getString("NewContainerDialog.Cancel")); // NOI18N cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); nameJLabel.setText(bundle.getString("NewContainerDialog.Name")); // NOI18N nameJTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameJTextFieldActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(okJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelJButton)) .add(explanationJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(nameJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(nameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))) .addContainerGap()) ); layout.linkSize(new java.awt.Component[] {cancelJButton, okJButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(explanationJLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(nameJLabel) .add(nameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(cancelJButton) .add(okJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,810
|
public void addListener(final ArtifactListener listener) { xmppArtifact.addListener(listener); }
|
public void addListener(final ArtifactListener listener) { xmppArtifact.addListener(listener); }
| 1,114,811
|
public void clearListeners() { logger.logApiId(); synchronized (listeners) { listeners.clear(); } xmppArchive.clearListeners(); xmppArtifact.clearListeners(); xmppBackup.clearListeners(); xmppContact.clearListeners(); xmppContainer.clearListeners(); xmppProfile.clearListeners(); xmppStream.clearListeners(); xmppSystem.clearListeners(); xmppUser.clearListeners(); }
|
public void clearListeners() { logger.logApiId(); synchronized (listeners) { listeners.clear(); } xmppArchive.clearListeners(); xmppArtifact.clearListeners(); xmppBackup.clearListeners(); xmppContact.clearListeners(); xmppContainer.clearListeners(); xmppProfile.clearListeners(); xmppStream.clearListeners(); xmppSystem.clearListeners(); xmppUser.clearListeners(); }
| 1,114,812
|
public void logout() { logger.logApiId(); clearEventHandlers(); clearListeners(); xmppAnonymousConnection.close(); xmppAnonymousConnection = null; xmppConnection.close(); xmppConnection = null; }
|
public void logout() { logger.logApiId(); clearListeners(); xmppAnonymousConnection.close(); xmppAnonymousConnection = null; xmppConnection.close(); xmppConnection = null; }
| 1,114,813
|
public void removeListener(final ArtifactListener listener) { xmppArtifact.removeListener(listener); }
|
public void removeListener(final ArtifactListener listener) { xmppArtifact.removeListener(listener); }
| 1,114,814
|
private ProviderFactory() { super(); final ModelFactory modelFactory = ModelFactory.getInstance(); this.artifactModel = modelFactory.getArtifactModel(getClass()); this.dModel = modelFactory.getDocumentModel(getClass()); this.logger = ModelLoggerFactory.getLogger(getClass()); this.loggedInUser = JabberIdBuilder.parseUsername(preferences.getUsername()); this.sModel = modelFactory.getSessionModel(getClass()); this.systemMessageModel = modelFactory.getSystemMessageModel(getClass()); this.historyProvider = new HistoryProvider(dModel); this.infoProvider = new InfoProvider(dModel, sModel); this.mainProvider = new MainProvider(artifactModel, dModel, systemMessageModel); this.manageContactsProvider = new ManageContactsProvider(sModel); this.sendArtifactProvider = new SendArtifactProvider(dModel, sModel, loggedInUser); this.sendVersionProvider = new SendVersionProvider(dModel, sModel, loggedInUser); }
|
private ProviderFactory() { super(); final ModelFactory modelFactory = ModelFactory.getInstance(); this.artifactModel = modelFactory.getArtifactModel(getClass()); this.dModel = modelFactory.getDocumentModel(getClass()); this.logger = ModelLoggerFactory.getLogger(getClass()); this.loggedInUser = JabberIdBuilder.parseUsername(preferences.getUsername()); this.sModel = modelFactory.getSessionModel(getClass()); this.systemMessageModel = modelFactory.getSystemMessageModel(getClass()); this.historyProvider = new HistoryProvider(loggedInUser, dModel, sModel); this.infoProvider = new InfoProvider(dModel, sModel); this.mainProvider = new MainProvider(artifactModel, dModel, systemMessageModel); this.manageContactsProvider = new ManageContactsProvider(sModel); this.sendArtifactProvider = new SendArtifactProvider(dModel, sModel, loggedInUser); this.sendVersionProvider = new SendVersionProvider(dModel, sModel, loggedInUser); }
| 1,114,815
|
public int compare(final User o1, final User o2) { final int compareResult = o1.getOrganization().compareTo(o2.getOrganization()); if(0 == compareResult) { return subCompare(o1, o2); } else { return compareResult * resultMultiplier; } }
|
public int compare(final User o1, final User o2) { final int compareResult = o1.getOrganization().compareTo(o2.getOrganization()); if(0 == compareResult) { return subCompare(o1, o2); } else { return compareResult * resultMultiplier; } }
| 1,114,816
|
public Applet() { EarthViewWrapper evw = new EarthViewWrapper("Applet", "localhost", 10000); Container mainpane = this.getContentPane(); mainpane.setBackground(Color.black); mainpane.add(evw.earthView); this.setVisible(true); evw.start(); }
|
public Applet() { evw = new EarthViewWrapper("Applet", "luijten.local", 10000); Container mainpane = this.getContentPane(); mainpane.setBackground(Color.black); mainpane.add(evw.earthView); this.setVisible(true); evw.start(); }
| 1,114,817
|
public Applet() { EarthViewWrapper evw = new EarthViewWrapper("Applet", "localhost", 10000); Container mainpane = this.getContentPane(); mainpane.setBackground(Color.black); mainpane.add(evw.earthView); this.setVisible(true); evw.start(); }
|
public Applet() { EarthViewWrapper evw = new EarthViewWrapper("Applet", "localhost", 10000); Container mainpane = this.getContentPane(); mainpane.setBackground(Color.black); mainpane.add(evw.earthView); this.setVisible(true); }
| 1,114,818
|
private void processOfflineQueue() { assertIsReachable(environment); XMPPSession session = null; try { session = new XMPPSessionImpl(); session.login(environment, credentials); session.processOfflineQueue(session.readCurrentUser().getId()); } catch (final SmackException sx) { throw new RuntimeException(sx); } finally { Assert.assertNotNull(session, "User {0}'s session is null.", credentials.getUsername()); Assert.assertTrue(session.isLoggedIn(), "User {0} not logged in.", credentials.getUsername()); try { session.logout(); } catch (final SmackException sx) { throw new RuntimeException(sx); } } }
|
private void processOfflineQueue() { assertIsReachable(environment); XMPPSession session = null; try { session = new XMPPSessionImpl(); session.login(environment, credentials); session.processOfflineQueue(session.readCurrentUser().getId()); } catch (final SmackException sx) { throw new RuntimeException(sx); } finally { Assert.assertNotNull(session, "User {0}'s session is null.", credentials.getUsername()); Assert.assertTrue(session.isLoggedIn(), "User {0} not logged in.", credentials.getUsername()); try { session.logout(); } catch (final SmackException sx) { throw new RuntimeException(sx); } } }
| 1,114,819
|
private void processOfflineQueue() { assertIsReachable(environment); XMPPSession session = null; try { session = new XMPPSessionImpl(); session.login(environment, credentials); session.processOfflineQueue(session.readCurrentUser().getId()); } catch (final SmackException sx) { throw new RuntimeException(sx); } finally { Assert.assertNotNull(session, "User {0}'s session is null.", credentials.getUsername()); Assert.assertTrue(session.isLoggedIn(), "User {0} not logged in.", credentials.getUsername()); try { session.logout(); } catch (final SmackException sx) { throw new RuntimeException(sx); } } }
|
private void processOfflineQueue() { assertIsReachable(environment); XMPPSession session = null; try { session = new XMPPSessionImpl(); session.login(environment, credentials); session.processOfflineQueue(session.readCurrentUser().getId()); } catch (final SmackException sx) { throw new RuntimeException(sx); } finally { Assert.assertNotNull(session, "User {0}'s session is null.", credentials.getUsername()); Assert.assertTrue(session.isLoggedIn(), "User {0} not logged in.", credentials.getUsername()); try { session.logout(); } catch (final SmackException sx) { throw new RuntimeException(sx); } } }
| 1,114,820
|
public void close() throws IOException { isReader.close(); }
|
public void close() throws IOException { try { if(DEBUG) os.println(PREFIX + "isReader.close()"); isReader.close(); } catch(IOException ioe) { if(DEBUG) ioe.printStackTrace(); throw ioe; } catch(RuntimeException e) { if(DEBUG) e.printStackTrace(); throw e; } }
| 1,114,822
|
public void mark(int readAheadLimit) throws IOException { isReader.mark(readAheadLimit); }
|
public void mark(int readAheadLimit) throws IOException { try { if(DEBUG) os.println(PREFIX + "isReader.mark(" + readAheadLimit + ")"); isReader.mark(readAheadLimit); } catch(IOException ioe) { if(DEBUG) ioe.printStackTrace(); throw ioe; } catch(RuntimeException e) { if(DEBUG) e.printStackTrace(); throw e; } }
| 1,114,823
|
public boolean markSupported() { return isReader.markSupported(); }
|
public boolean markSupported() { try { boolean result = isReader.markSupported(); if(DEBUG) os.println(PREFIX + "isReader.markSupported() == " + result); return result; } catch(RuntimeException e) { if(DEBUG) e.printStackTrace(); throw e; } }
| 1,114,824
|
public int read() throws IOException { return isReader.read(); }
|
public int read() throws IOException { try { int result = isReader.read(); if(DEBUG) os.println(PREFIX + "isReader.read() == " + result); return result; } catch(IOException ioe) { if(DEBUG) ioe.printStackTrace(); throw ioe; } catch(RuntimeException e) { if(DEBUG) e.printStackTrace(); throw e; } }
| 1,114,825
|
public boolean ready() throws IOException { return isReader.ready(); }
|
public boolean ready() throws IOException { try { boolean result = isReader.ready(); if(DEBUG) os.println(PREFIX + "isReader.ready() == " + result); return result; } catch(IOException ioe) { if(DEBUG) ioe.printStackTrace(); throw ioe; } catch(RuntimeException e) { if(DEBUG) e.printStackTrace(); throw e; } }
| 1,114,826
|
public void reset() throws IOException { isReader.reset(); }
|
public void reset() throws IOException { try { if(DEBUG) os.println(PREFIX + "isReader.reset()"); isReader.reset(); } catch(IOException ioe) { if(DEBUG) ioe.printStackTrace(); throw ioe; } catch(RuntimeException e) { if(DEBUG) e.printStackTrace(); throw e; } }
| 1,114,827
|
public long skip(long n) throws IOException { return isReader.skip(n); }
|
public long skip(long n) throws IOException { try { long result = isReader.skip(n); if(DEBUG) os.println(PREFIX + "isReader.skip(" + n + ") == " + result); return result; } catch(IOException ioe) { if(DEBUG) ioe.printStackTrace(); throw ioe; } catch(RuntimeException e) { if(DEBUG) e.printStackTrace(); throw e; } }
| 1,114,828
|
final public String encodingDecl() throws ParseException { Token encoding; jj_consume_token(XMLDECL_S); jj_consume_token(ENCODING); jj_consume_token(XMLDECL_EQ); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case XD_SQUOTE_OPEN: jj_consume_token(XD_SQUOTE_OPEN); encoding = jj_consume_token(XD_SQUOTE_STRING); jj_consume_token(XD_SQUOTE_CLOSE); break; case XD_DQUOTE_OPEN: jj_consume_token(XD_DQUOTE_OPEN); encoding = jj_consume_token(XD_DQUOTE_STRING); jj_consume_token(XD_DQUOTE_CLOSE); break; default: jj_la1[5] = jj_gen; jj_consume_token(-1); throw new ParseException(); } try { usedReader.changeEncoding(encoding.image); } catch(Exception e) { {if (true) throw new RuntimeException(e);} } {if (true) return encoding.image;} throw new Error("Missing return statement in function"); }
|
final public String encodingDecl() throws ParseException { Token encoding; jj_consume_token(XMLDECL_S); jj_consume_token(ENCODING); jj_consume_token(XMLDECL_EQ); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case XD_SQUOTE_OPEN: jj_consume_token(XD_SQUOTE_OPEN); encoding = jj_consume_token(XD_SQUOTE_STRING); jj_consume_token(XD_SQUOTE_CLOSE); break; case XD_DQUOTE_OPEN: jj_consume_token(XD_DQUOTE_OPEN); encoding = jj_consume_token(XD_DQUOTE_STRING); jj_consume_token(XD_DQUOTE_CLOSE); break; default: jj_la1[5] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return encoding.image;} throw new Error("Missing return statement in function"); }
| 1,114,829
|
public static void main(String[] args) throws Exception { MutableInputStreamReader usedReader; if(args.length == 1) usedReader = new MutableInputStreamReader(new FileInputStream(args[0]), "US-ASCII"); else usedReader = new MutableInputStreamReader(System.in, "US-ASCII"); Ass a = new Ass(usedReader); a.usedReader = usedReader; a.contentHandler = new DebugXMLContentHandler(); a.xmlDocument(); }
|
public static void main(String[] args) throws Exception { MutableInputStreamReader usedReader; if(args.length == 1) usedReader = new MutableInputStreamReader(new FileInputStream(args[0]), "US-ASCII"); else usedReader = new MutableInputStreamReader(System.in, "US-ASCII"); Ass a = new Ass(usedReader); a.usedReader = usedReader; a.contentHandler = new DebugXMLContentHandler(); a.xmlDocument(); }
| 1,114,830
|
final public void xmlDecl() throws ParseException { String version, encoding = null; Boolean standalone = null; jj_consume_token(STARTXMLDECL); // Takes us to state WithinXMLDecl version = versionInfo(); if (jj_2_1(2)) { encoding = encodingDecl(); } else { ; } if (jj_2_2(2)) { standalone = sdDecl(); } else { ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case XMLDECL_S: jj_consume_token(XMLDECL_S); break; default: jj_la1[3] = jj_gen; ; } jj_consume_token(ENDXMLDECL); contentHandler.xmlDecl(version, encoding, standalone); }
|
final public String xmlDecl() throws ParseException { String version, encoding = null; Boolean standalone = null; jj_consume_token(STARTXMLDECL); // Takes us to state WithinXMLDecl version = versionInfo(); if (jj_2_1(2)) { encoding = encodingDecl(); } else { ; } if (jj_2_2(2)) { standalone = sdDecl(); } else { ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case XMLDECL_S: jj_consume_token(XMLDECL_S); break; default: jj_la1[3] = jj_gen; ; } jj_consume_token(ENDXMLDECL); contentHandler.xmlDecl(version, encoding, standalone); }
| 1,114,831
|
final public void xmlDecl() throws ParseException { String version, encoding = null; Boolean standalone = null; jj_consume_token(STARTXMLDECL); // Takes us to state WithinXMLDecl version = versionInfo(); if (jj_2_1(2)) { encoding = encodingDecl(); } else { ; } if (jj_2_2(2)) { standalone = sdDecl(); } else { ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case XMLDECL_S: jj_consume_token(XMLDECL_S); break; default: jj_la1[3] = jj_gen; ; } jj_consume_token(ENDXMLDECL); contentHandler.xmlDecl(version, encoding, standalone); }
|
final public void xmlDecl() throws ParseException { String version, encoding = null; Boolean standalone = null; jj_consume_token(STARTXMLDECL); // Takes us to state WithinXMLDecl version = versionInfo(); if (jj_2_1(2)) { encoding = encodingDecl(); } else { ; } if (jj_2_2(2)) { standalone = sdDecl(); } else { ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case XMLDECL_S: jj_consume_token(XMLDECL_S); break; default: jj_la1[3] = jj_gen; ; } jj_consume_token(ENDXMLDECL); contentHandler.xmlDecl(version, encoding, standalone); {if (true) return encoding;} throw new Error("Missing return statement in function"); }
| 1,114,832
|
public File[] listFiles(final String path, final Boolean doRecurse) { final File file = resolve(path); if(null == file) { return null; } else if(file.isFile()) { return null; } else { if(doRecurse) { return listFiles(file).toArray(new File[] {}); } else { return file.listFiles(new FileFilter() { public boolean accept(final File pathname) { return pathname.isFile(); } }); } } }
|
public File[] listFiles(final String path, final Boolean doRecurse) { final File file = resolve(path); if(null == file) { return null; } else if(file.isFile()) { return null; } else { if(doRecurse) { return listFiles(file).toArray(new File[] {}); } else { return file.listFiles(new FileFilter() { public boolean accept(final File pathname) { return pathname.isFile(); } }); } } }
| 1,114,833
|
protected InternalAuditModel getInternalAuditModel() { final InternalAuditModel iAModel = InternalAuditModel.getInternalModel(context); return iAModel; }
|
protected InternalAuditModel getInternalAuditModel() { final InternalAuditModel iAModel = InternalAuditModel.getInternalModel(context); return iAModel; }
| 1,114,834
|
protected InternalDocumentModel getInternalDocumentModel() { final InternalDocumentModel iDocumentModel = DocumentModel.getInternalModel(getContext()); return iDocumentModel; }
|
protected InternalDocumentModel getInternalDocumentModel() { final InternalDocumentModel iDocumentModel = DocumentModel.getInternalModel(getContext()); return iDocumentModel; }
| 1,114,835
|
protected InternalSessionModel getInternalSessionModel() { final InternalSessionModel iSessionModel = SessionModel.getInternalModel(getContext()); return iSessionModel; }
|
protected InternalSessionModel getInternalSessionModel() { final InternalSessionModel iSessionModel = SessionModel.getInternalModel(getContext()); return iSessionModel; }
| 1,114,836
|
void addDocument(final Long containerId, final Long documentId) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("documentId", documentId); assertDraftExists("DRAFT DOES NOT EXIST", containerId); containerIO.createDraftArtifactRel(containerId, documentId, ContainerDraft.ArtifactState.ADDED); getIndexModel().indexDocument(containerId, documentId); final Container postAdditionContainer = read(containerId); final ContainerDraft postAdditionDraft = readDraft(containerId); final Document postAdditionDocument = getInternalDocumentModel().read(documentId); notifyDocumentAdded(postAdditionContainer, postAdditionDraft, postAdditionDocument, localEventGenerator); }
|
void addDocument(final Long containerId, final Long documentId) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("documentId", documentId); assertDraftExists("DRAFT DOES NOT EXIST", containerId); containerIO.createDraftArtifactRel(containerId, documentId, ContainerDraft.ArtifactState.ADDED); getIndexModel().indexDocument(containerId, documentId); final Container postAdditionContainer = read(containerId); final ContainerDraft postAdditionDraft = readDraft(containerId); final Document postAdditionDocument = getInternalDocumentModel().read(documentId); notifyDocumentAdded(postAdditionContainer, postAdditionDraft, postAdditionDocument, localEventGenerator); }
| 1,114,837
|
ContainerDraft createDraft(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); assertContainerDraftDoesNotExist("Draft already exist.", containerId); if (isFirstDraft(containerId)) { createFirstDraft(containerId, localTeamMember(containerId)); } else { assertOnline("The user is not online."); final Container container = read(containerId); if (!isDistributed(container.getId())) { createDistributed(container); } final ContainerVersion latestVersion = readLatestVersion(container.getId()); final List<Document> documents = readDocuments( latestVersion.getArtifactId(), latestVersion.getVersionId()); // create final ContainerDraft draft = new ContainerDraft(); draft.setOwner(localTeamMember(containerId)); draft.setContainerId(containerId); for (final Document document : documents) { draft.addDocument(document); draft.putState(document, ContainerDraft.ArtifactState.NONE); } containerIO.createDraft(draft); getInternalArtifactModel().applyFlagKey(container.getId()); // remote create getSessionModel().createDraft(container.getUniqueId()); } // fire event final Container postCreation= read(containerId); final ContainerDraft postCreationDraft = readDraft(containerId); notifyDraftCreated(postCreation, postCreationDraft, localEventGenerator); return postCreationDraft; }
|
ContainerDraft createDraft(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); assertContainerDraftDoesNotExist("Draft already exist.", containerId); if (isFirstDraft(containerId)) { createFirstDraft(containerId, localTeamMember(containerId)); } else { assertOnline("The user is not online."); final Container container = read(containerId); if (!isDistributed(container.getId())) { createDistributed(container); } final ContainerVersion latestVersion = readLatestVersion(container.getId()); final List<Document> documents = readDocuments( latestVersion.getArtifactId(), latestVersion.getVersionId()); // create final ContainerDraft draft = new ContainerDraft(); draft.setOwner(localTeamMember(containerId)); draft.setContainerId(containerId); for (final Document document : documents) { draft.addDocument(document); draft.putState(document, ContainerDraft.ArtifactState.NONE); } containerIO.createDraft(draft); getInternalArtifactModel().applyFlagKey(container.getId()); // remote create getSessionModel().createDraft(container.getUniqueId()); } // fire event final Container postCreation= read(containerId); final ContainerDraft postCreationDraft = readDraft(containerId); notifyDraftCreated(postCreation, postCreationDraft, localEventGenerator); return postCreationDraft; }
| 1,114,838
|
ContainerDraft createDraft(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); assertContainerDraftDoesNotExist("Draft already exist.", containerId); if (isFirstDraft(containerId)) { createFirstDraft(containerId, localTeamMember(containerId)); } else { assertOnline("The user is not online."); final Container container = read(containerId); if (!isDistributed(container.getId())) { createDistributed(container); } final ContainerVersion latestVersion = readLatestVersion(container.getId()); final List<Document> documents = readDocuments( latestVersion.getArtifactId(), latestVersion.getVersionId()); // create final ContainerDraft draft = new ContainerDraft(); draft.setOwner(localTeamMember(containerId)); draft.setContainerId(containerId); for (final Document document : documents) { draft.addDocument(document); draft.putState(document, ContainerDraft.ArtifactState.NONE); } containerIO.createDraft(draft); getInternalArtifactModel().applyFlagKey(container.getId()); // remote create getSessionModel().createDraft(container.getUniqueId()); } // fire event final Container postCreation= read(containerId); final ContainerDraft postCreationDraft = readDraft(containerId); notifyDraftCreated(postCreation, postCreationDraft, localEventGenerator); return postCreationDraft; }
|
ContainerDraft createDraft(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); assertContainerDraftDoesNotExist("Draft already exist.", containerId); if (isFirstDraft(containerId)) { createFirstDraft(containerId, localTeamMember(containerId)); } else { assertOnline("The user is not online."); final Container container = read(containerId); if (!isDistributed(container.getId())) { createDistributed(container); } final ContainerVersion latestVersion = readLatestVersion(container.getId()); final List<Document> documents = readDocuments( latestVersion.getArtifactId(), latestVersion.getVersionId()); // create final ContainerDraft draft = new ContainerDraft(); draft.setOwner(localTeamMember(containerId)); draft.setContainerId(containerId); for (final Document document : documents) { draft.addDocument(document); draft.putState(document, ContainerDraft.ArtifactState.NONE); } containerIO.createDraft(draft); getInternalArtifactModel().applyFlagKey(container.getId()); // remote create getSessionModel().createDraft(container.getUniqueId()); } // fire event final Container postCreation= read(containerId); final ContainerDraft postCreationDraft = readDraft(containerId); notifyDraftCreated(postCreation, postCreationDraft, localEventGenerator); return postCreationDraft; }
| 1,114,839
|
ContainerDraft createDraft(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); assertContainerDraftDoesNotExist("Draft already exist.", containerId); if (isFirstDraft(containerId)) { createFirstDraft(containerId, localTeamMember(containerId)); } else { assertOnline("The user is not online."); final Container container = read(containerId); if (!isDistributed(container.getId())) { createDistributed(container); } final ContainerVersion latestVersion = readLatestVersion(container.getId()); final List<Document> documents = readDocuments( latestVersion.getArtifactId(), latestVersion.getVersionId()); // create final ContainerDraft draft = new ContainerDraft(); draft.setOwner(localTeamMember(containerId)); draft.setContainerId(containerId); for (final Document document : documents) { draft.addDocument(document); draft.putState(document, ContainerDraft.ArtifactState.NONE); } containerIO.createDraft(draft); getInternalArtifactModel().applyFlagKey(container.getId()); // remote create getSessionModel().createDraft(container.getUniqueId()); } // fire event final Container postCreation= read(containerId); final ContainerDraft postCreationDraft = readDraft(containerId); notifyDraftCreated(postCreation, postCreationDraft, localEventGenerator); return postCreationDraft; }
|
ContainerDraft createDraft(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); assertContainerDraftDoesNotExist("Draft already exist.", containerId); if (isFirstDraft(containerId)) { createFirstDraft(containerId, localTeamMember(containerId)); } else { assertOnline("The user is not online."); final Container container = read(containerId); if (!isDistributed(container.getId())) { createDistributed(container); } final ContainerVersion latestVersion = readLatestVersion(container.getId()); final List<Document> documents = readDocuments( latestVersion.getArtifactId(), latestVersion.getVersionId()); // create final ContainerDraft draft = new ContainerDraft(); draft.setOwner(localTeamMember(containerId)); draft.setContainerId(containerId); for (final Document document : documents) { draft.addDocument(document); draft.putState(document, ContainerDraft.ArtifactState.NONE); } containerIO.createDraft(draft); getInternalArtifactModel().applyFlagKey(container.getId()); // remote create getSessionModel().createDraft(container.getUniqueId()); } // fire event final Container postCreation= read(containerId); final ContainerDraft postCreationDraft = readDraft(containerId); notifyDraftCreated(postCreation, postCreationDraft, localEventGenerator); return postCreationDraft; }
| 1,114,840
|
void deleteDraft(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); assertDoesExistLocalDraft("Draft does not exist.", containerId); final Container container = read(containerId); if (!isFirstDraft(container.getId())) { assertOnline("User is not online."); assertIsDistributed("Draft has not been distributed.", containerId); getSessionModel().deleteDraft(container.getUniqueId()); } // delete local data final ContainerDraft draft = readDraft(containerId); for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); notifyDraftDeleted(container, draft, localEventGenerator); }
|
void deleteDraft(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); assertDoesExistLocalDraft("Draft does not exist.", containerId); final Container container = read(containerId); if (!isFirstDraft(container.getId())) { assertOnline("User is not online."); assertIsDistributed("Draft has not been distributed.", containerId); getSessionModel().deleteDraft(container.getUniqueId()); } // delete local data final ContainerDraft draft = readDraft(containerId); for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); notifyDraftDeleted(container, draft, localEventGenerator); }
| 1,114,841
|
void deleteDraft(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); assertDoesExistLocalDraft("Draft does not exist.", containerId); final Container container = read(containerId); if (!isFirstDraft(container.getId())) { assertOnline("User is not online."); assertIsDistributed("Draft has not been distributed.", containerId); getSessionModel().deleteDraft(container.getUniqueId()); } // delete local data final ContainerDraft draft = readDraft(containerId); for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); notifyDraftDeleted(container, draft, localEventGenerator); }
|
void deleteDraft(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); assertDoesExistLocalDraft("Draft does not exist.", containerId); final Container container = read(containerId); if (!isFirstDraft(container.getId())) { assertOnline("User is not online."); assertIsDistributed("Draft has not been distributed.", containerId); getSessionModel().deleteDraft(container.getUniqueId()); } // delete local data final ContainerDraft draft = readDraft(containerId); for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); notifyDraftDeleted(container, draft, localEventGenerator); }
| 1,114,842
|
void handleArtifactPublished(final UUID uniqueId, final Long versionId, final String name, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecksum, final String artifactStreamId, final JabberId publishedBy, final Calendar publishedOn) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("versionId", versionId); logger.logVariable("name", name); logger.logVariable("artifactUniqueId", artifactUniqueId); logger.logVariable("artifactVersionId", artifactVersionId); logger.logVariable("artifactName", artifactName); logger.logVariable("artifactType", artifactType); logger.logVariable("artifactChecksum", artifactChecksum); logger.logVariable("artifactStreamId", artifactStreamId); logger.logVariable("publishedBy", publishedBy); logger.logVariable("publishedOn", publishedOn); assertIsNotLocalUserId(publishedBy); try { // determine the existance of the container and the version. final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Boolean doesExist = artifactModel.doesExist(uniqueId); final Boolean doesVersionExist; final Long containerId; final Container container; final ContainerVersion version; if (doesExist) { containerId = artifactModel.readId(uniqueId); container = read(containerId); doesVersionExist = artifactModel.doesVersionExist(containerId, versionId); if (doesVersionExist) { version = readVersion(container.getId(), versionId); } else { version = createVersion(container.getId(), versionId, publishedBy, publishedOn); } } else { doesVersionExist = Boolean.FALSE; // ensure the published by user exists locally getInternalUserModel().readLazyCreate(publishedBy); container = new Container(); container.setCreatedBy(publishedBy); container.setCreatedOn(publishedOn); container.setName(name); container.setState(ArtifactState.ACTIVE); container.setType(ArtifactType.CONTAINER); container.setUniqueId(uniqueId); container.setUpdatedBy(container.getCreatedBy()); container.setUpdatedOn(container.getCreatedOn()); // create containerIO.create(container); // create version version = createVersion(container.getId(), versionId, publishedBy, publishedOn); // create remote info artifactModel.createRemoteInfo(container.getId(), publishedBy, container.getCreatedOn()); // index getIndexModel().indexContainer(container.getId()); } // handle the artifact by specific type final ArtifactVersion artifactVersion; switch(artifactType) { case DOCUMENT: artifactVersion = handleDocumentPublished(artifactUniqueId, artifactVersionId, artifactName, artifactChecksum, artifactStreamId, publishedBy, publishedOn); break; case CONTAINER: default: throw Assert.createUnreachable("UNKNOWN ARTIFACT TYPE"); } containerIO.addVersion(version.getArtifactId(), version.getVersionId(), artifactVersion.getArtifactId(), artifactVersion.getVersionId(), artifactVersion.getArtifactType()); final Container postPublish = read(container.getId()); final ContainerVersion postPublishVersion = readVersion(version.getArtifactId(), version.getVersionId()); notifyContainerPublished(postPublish, null, postPublishVersion, remoteEventGenerator); } catch(final Throwable t) { throw translateError(t); } }
|
void handleArtifactPublished(final UUID uniqueId, final Long versionId, final String name, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecksum, final String artifactStreamId, final JabberId publishedBy, final Calendar publishedOn) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("versionId", versionId); logger.logVariable("name", name); logger.logVariable("artifactUniqueId", artifactUniqueId); logger.logVariable("artifactVersionId", artifactVersionId); logger.logVariable("artifactName", artifactName); logger.logVariable("artifactType", artifactType); logger.logVariable("artifactChecksum", artifactChecksum); logger.logVariable("artifactStreamId", artifactStreamId); logger.logVariable("publishedBy", publishedBy); logger.logVariable("publishedOn", publishedOn); try { // determine the existance of the container and the version. final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Boolean doesExist = artifactModel.doesExist(uniqueId); final Boolean doesVersionExist; final Long containerId; final Container container; final ContainerVersion version; if (doesExist) { containerId = artifactModel.readId(uniqueId); container = read(containerId); doesVersionExist = artifactModel.doesVersionExist(containerId, versionId); if (doesVersionExist) { version = readVersion(container.getId(), versionId); } else { version = createVersion(container.getId(), versionId, publishedBy, publishedOn); } } else { doesVersionExist = Boolean.FALSE; // ensure the published by user exists locally getInternalUserModel().readLazyCreate(publishedBy); container = new Container(); container.setCreatedBy(publishedBy); container.setCreatedOn(publishedOn); container.setName(name); container.setState(ArtifactState.ACTIVE); container.setType(ArtifactType.CONTAINER); container.setUniqueId(uniqueId); container.setUpdatedBy(container.getCreatedBy()); container.setUpdatedOn(container.getCreatedOn()); // create containerIO.create(container); // create version version = createVersion(container.getId(), versionId, publishedBy, publishedOn); // create remote info artifactModel.createRemoteInfo(container.getId(), publishedBy, container.getCreatedOn()); // index getIndexModel().indexContainer(container.getId()); } // handle the artifact by specific type final ArtifactVersion artifactVersion; switch(artifactType) { case DOCUMENT: artifactVersion = handleDocumentPublished(artifactUniqueId, artifactVersionId, artifactName, artifactChecksum, artifactStreamId, publishedBy, publishedOn); break; case CONTAINER: default: throw Assert.createUnreachable("UNKNOWN ARTIFACT TYPE"); } containerIO.addVersion(version.getArtifactId(), version.getVersionId(), artifactVersion.getArtifactId(), artifactVersion.getVersionId(), artifactVersion.getArtifactType()); final Container postPublish = read(container.getId()); final ContainerVersion postPublishVersion = readVersion(version.getArtifactId(), version.getVersionId()); notifyContainerPublished(postPublish, null, postPublishVersion, remoteEventGenerator); } catch(final Throwable t) { throw translateError(t); } }
| 1,114,843
|
void handleDraftCreated(final Long containerId, final JabberId createdBy, final Calendar createdOn) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("createdBy", createdBy); logger.logVariable("createdOn", createdOn); final ContainerDraft draft = new ContainerDraft(); draft.setContainerId(containerId); final List<TeamMember> team = readTeam(containerId); logger.logVariable("team", team); draft.setOwner(team.get(indexOf(team, createdBy))); containerIO.createDraft(draft); // fire event notifyDraftCreated(read(containerId), readDraft(containerId), remoteEventGenerator); }
|
void handleDraftCreated(final Long containerId, final JabberId createdBy, final Calendar createdOn) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("createdBy", createdBy); logger.logVariable("createdOn", createdOn); final ContainerDraft draft = new ContainerDraft(); draft.setContainerId(containerId); final List<TeamMember> team = readTeam(containerId); logger.logVariable("team", team); draft.setOwner(team.get(indexOf(team, createdBy))); containerIO.createDraft(draft); // fire event notifyDraftCreated(read(containerId), readDraft(containerId), remoteEventGenerator); }
| 1,114,845
|
void handleDraftDeleted(final Long containerId, final JabberId deletedBy, final Calendar deletedOn) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("createdBy", deletedBy); logger.logVariable("createdOn", deletedOn); final ContainerDraft draft = readDraft(containerId); for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); // fire event notifyDraftDeleted(read(containerId), draft, remoteEventGenerator); }
|
void handleDraftDeleted(final Long containerId, final JabberId deletedBy, final Calendar deletedOn) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("createdBy", deletedBy); logger.logVariable("createdOn", deletedOn); final ContainerDraft draft = readDraft(containerId); for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); // fire event notifyDraftDeleted(read(containerId), draft, remoteEventGenerator); }
| 1,114,846
|
void handleDraftDeleted(final Long containerId, final JabberId deletedBy, final Calendar deletedOn) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("createdBy", deletedBy); logger.logVariable("createdOn", deletedOn); final ContainerDraft draft = readDraft(containerId); for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); // fire event notifyDraftDeleted(read(containerId), draft, remoteEventGenerator); }
|
void handleDraftDeleted(final Long containerId, final JabberId deletedBy, final Calendar deletedOn) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("createdBy", deletedBy); logger.logVariable("createdOn", deletedOn); final ContainerDraft draft = readDraft(containerId); for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); // fire event notifyDraftDeleted(read(containerId), draft, remoteEventGenerator); }
| 1,114,847
|
void handlePublished(final UUID uniqueId, final Long versionId, final String name, final Integer artifactCount, final JabberId publishedBy, final List<JabberId> publishedTo, final Calendar publishedOn) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("versionId", versionId); logger.logVariable("name", name); logger.logVariable("artifactCount", artifactCount); logger.logVariable("publishedBy", publishedBy); logger.logVariable("publishedTo", publishedTo); logger.logVariable("publishedOn", publishedOn); final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long containerId = artifactModel.readId(uniqueId); // add to local team final InternalUserModel userModel = getInternalUserModel(); final List<TeamMember> localTeam = artifactModel.readTeam2(containerId); final List<User> publishedToUsers = new ArrayList<User>(); for (final JabberId publishedToId : publishedTo) { if (!contains(localTeam, publishedToId)) { artifactModel.addTeamMember(containerId, publishedToId); } publishedToUsers.add(userModel.read(publishedToId)); } // add the sender as well if (!contains(localTeam, publishedBy)) { artifactModel.addTeamMember(containerId, publishedBy); } // delete draft final ContainerDraft draft = readDraft(containerId); if (null == draft) { logger.logWarning("Draft did not previously exist for {0}.", name); } else { for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // create published to list containerIO.createPublishedTo(containerId, versionId, publishedToUsers); // send confirmation getSessionModel().confirmArtifactReceipt(localUserId(), uniqueId, versionId, localUserId(), currentDateTime()); // audit\fire event final Container postPublish = read(containerId); final ContainerDraft postPublishDraft = readDraft(containerId); final ContainerVersion postPublishVersion = readVersion(containerId, versionId); auditContainerPublished(postPublish, postPublishDraft, postPublishVersion, publishedBy, publishedTo, publishedOn); notifyContainerPublished(postPublish, postPublishDraft, postPublishVersion, remoteEventGenerator); }
|
void handlePublished(final UUID uniqueId, final Long versionId, final String name, final Integer artifactCount, final JabberId publishedBy, final List<JabberId> publishedTo, final Calendar publishedOn) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("versionId", versionId); logger.logVariable("name", name); logger.logVariable("artifactCount", artifactCount); logger.logVariable("publishedBy", publishedBy); logger.logVariable("publishedTo", publishedTo); logger.logVariable("publishedOn", publishedOn); final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long containerId = artifactModel.readId(uniqueId); // add to local team final InternalUserModel userModel = getInternalUserModel(); final List<TeamMember> localTeam = artifactModel.readTeam2(containerId); final List<User> publishedToUsers = new ArrayList<User>(); for (final JabberId publishedToId : publishedTo) { if (!contains(localTeam, publishedToId)) { artifactModel.addTeamMember(containerId, publishedToId); } publishedToUsers.add(userModel.read(publishedToId)); } // add the sender as well if (!contains(localTeam, publishedBy)) { artifactModel.addTeamMember(containerId, publishedBy); } // delete draft final ContainerDraft draft = readDraft(containerId); if (null == draft) { logger.logWarning("Draft did not previously exist for {0}.", name); } else { for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // create published to list containerIO.createPublishedTo(containerId, versionId, publishedToUsers); // send confirmation getSessionModel().confirmArtifactReceipt(localUserId(), uniqueId, versionId, localUserId(), currentDateTime()); // audit\fire event final Container postPublish = read(containerId); final ContainerDraft postPublishDraft = readDraft(containerId); final ContainerVersion postPublishVersion = readVersion(containerId, versionId); auditContainerPublished(postPublish, postPublishDraft, postPublishVersion, publishedBy, publishedTo, publishedOn); notifyContainerPublished(postPublish, postPublishDraft, postPublishVersion, remoteEventGenerator); }
| 1,114,848
|
void handlePublished(final UUID uniqueId, final Long versionId, final String name, final Integer artifactCount, final JabberId publishedBy, final List<JabberId> publishedTo, final Calendar publishedOn) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("versionId", versionId); logger.logVariable("name", name); logger.logVariable("artifactCount", artifactCount); logger.logVariable("publishedBy", publishedBy); logger.logVariable("publishedTo", publishedTo); logger.logVariable("publishedOn", publishedOn); final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long containerId = artifactModel.readId(uniqueId); // add to local team final InternalUserModel userModel = getInternalUserModel(); final List<TeamMember> localTeam = artifactModel.readTeam2(containerId); final List<User> publishedToUsers = new ArrayList<User>(); for (final JabberId publishedToId : publishedTo) { if (!contains(localTeam, publishedToId)) { artifactModel.addTeamMember(containerId, publishedToId); } publishedToUsers.add(userModel.read(publishedToId)); } // add the sender as well if (!contains(localTeam, publishedBy)) { artifactModel.addTeamMember(containerId, publishedBy); } // delete draft final ContainerDraft draft = readDraft(containerId); if (null == draft) { logger.logWarning("Draft did not previously exist for {0}.", name); } else { for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // create published to list containerIO.createPublishedTo(containerId, versionId, publishedToUsers); // send confirmation getSessionModel().confirmArtifactReceipt(localUserId(), uniqueId, versionId, localUserId(), currentDateTime()); // audit\fire event final Container postPublish = read(containerId); final ContainerDraft postPublishDraft = readDraft(containerId); final ContainerVersion postPublishVersion = readVersion(containerId, versionId); auditContainerPublished(postPublish, postPublishDraft, postPublishVersion, publishedBy, publishedTo, publishedOn); notifyContainerPublished(postPublish, postPublishDraft, postPublishVersion, remoteEventGenerator); }
|
void handlePublished(final UUID uniqueId, final Long versionId, final String name, final Integer artifactCount, final JabberId publishedBy, final List<JabberId> publishedTo, final Calendar publishedOn) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("versionId", versionId); logger.logVariable("name", name); logger.logVariable("artifactCount", artifactCount); logger.logVariable("publishedBy", publishedBy); logger.logVariable("publishedTo", publishedTo); logger.logVariable("publishedOn", publishedOn); final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long containerId = artifactModel.readId(uniqueId); // add to local team final InternalUserModel userModel = getInternalUserModel(); final List<TeamMember> localTeam = artifactModel.readTeam2(containerId); final List<User> publishedToUsers = new ArrayList<User>(); for (final JabberId publishedToId : publishedTo) { if (!contains(localTeam, publishedToId)) { artifactModel.addTeamMember(containerId, publishedToId); } if (!contains(localTeam, publishedBy)) { artifactModel.addTeamMember(containerId, publishedBy); } final ContainerDraft draft = readDraft(containerId); if (null == draft) { logger.logWarning("Draft did not previously exist for {0}.", name); } else { for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } containerIO.createPublishedTo(containerId, versionId, publishedToUsers); getSessionModel().confirmArtifactReceipt(localUserId(), uniqueId, versionId, localUserId(), currentDateTime()); final Container postPublish = read(containerId); final ContainerDraft postPublishDraft = readDraft(containerId); final ContainerVersion postPublishVersion = readVersion(containerId, versionId); auditContainerPublished(postPublish, postPublishDraft, postPublishVersion, publishedBy, publishedTo, publishedOn); notifyContainerPublished(postPublish, postPublishDraft, postPublishVersion, remoteEventGenerator); } catch (final Throwable t) { throw translateError(t); } // add the sender as well if (!contains(localTeam, publishedBy)) { artifactModel.addTeamMember(containerId, publishedBy); } // delete draft final ContainerDraft draft = readDraft(containerId); if (null == draft) { logger.logWarning("Draft did not previously exist for {0}.", name); } else { for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // create published to list containerIO.createPublishedTo(containerId, versionId, publishedToUsers); // send confirmation getSessionModel().confirmArtifactReceipt(localUserId(), uniqueId, versionId, localUserId(), currentDateTime()); // audit\fire event final Container postPublish = read(containerId); final ContainerDraft postPublishDraft = readDraft(containerId); final ContainerVersion postPublishVersion = readVersion(containerId, versionId); auditContainerPublished(postPublish, postPublishDraft, postPublishVersion, publishedBy, publishedTo, publishedOn); notifyContainerPublished(postPublish, postPublishDraft, postPublishVersion, remoteEventGenerator); }
| 1,114,849
|
void handlePublished(final UUID uniqueId, final Long versionId, final String name, final Integer artifactCount, final JabberId publishedBy, final List<JabberId> publishedTo, final Calendar publishedOn) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("versionId", versionId); logger.logVariable("name", name); logger.logVariable("artifactCount", artifactCount); logger.logVariable("publishedBy", publishedBy); logger.logVariable("publishedTo", publishedTo); logger.logVariable("publishedOn", publishedOn); final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long containerId = artifactModel.readId(uniqueId); // add to local team final InternalUserModel userModel = getInternalUserModel(); final List<TeamMember> localTeam = artifactModel.readTeam2(containerId); final List<User> publishedToUsers = new ArrayList<User>(); for (final JabberId publishedToId : publishedTo) { if (!contains(localTeam, publishedToId)) { artifactModel.addTeamMember(containerId, publishedToId); } publishedToUsers.add(userModel.read(publishedToId)); } // add the sender as well if (!contains(localTeam, publishedBy)) { artifactModel.addTeamMember(containerId, publishedBy); } // delete draft final ContainerDraft draft = readDraft(containerId); if (null == draft) { logger.logWarning("Draft did not previously exist for {0}.", name); } else { for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // create published to list containerIO.createPublishedTo(containerId, versionId, publishedToUsers); // send confirmation getSessionModel().confirmArtifactReceipt(localUserId(), uniqueId, versionId, localUserId(), currentDateTime()); // audit\fire event final Container postPublish = read(containerId); final ContainerDraft postPublishDraft = readDraft(containerId); final ContainerVersion postPublishVersion = readVersion(containerId, versionId); auditContainerPublished(postPublish, postPublishDraft, postPublishVersion, publishedBy, publishedTo, publishedOn); notifyContainerPublished(postPublish, postPublishDraft, postPublishVersion, remoteEventGenerator); }
|
void handlePublished(final UUID uniqueId, final Long versionId, final String name, final Integer artifactCount, final JabberId publishedBy, final List<JabberId> publishedTo, final Calendar publishedOn) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("versionId", versionId); logger.logVariable("name", name); logger.logVariable("artifactCount", artifactCount); logger.logVariable("publishedBy", publishedBy); logger.logVariable("publishedTo", publishedTo); logger.logVariable("publishedOn", publishedOn); final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long containerId = artifactModel.readId(uniqueId); // add to local team final InternalUserModel userModel = getInternalUserModel(); final List<TeamMember> localTeam = artifactModel.readTeam2(containerId); final List<User> publishedToUsers = new ArrayList<User>(); for (final JabberId publishedToId : publishedTo) { if (!contains(localTeam, publishedToId)) { artifactModel.addTeamMember(containerId, publishedToId); } publishedToUsers.add(userModel.read(publishedToId)); } // add the sender as well if (!contains(localTeam, publishedBy)) { artifactModel.addTeamMember(containerId, publishedBy); } // delete draft final ContainerDraft draft = readDraft(containerId); if (null == draft) { logger.logWarning("Draft did not previously exist for {0}.", name); } else { for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); } // create published to list containerIO.createPublishedTo(containerId, versionId, publishedToUsers); // send confirmation getSessionModel().confirmArtifactReceipt(localUserId(), uniqueId, versionId, localUserId(), currentDateTime()); // audit\fire event final Container postPublish = read(containerId); final ContainerDraft postPublishDraft = readDraft(containerId); final ContainerVersion postPublishVersion = readVersion(containerId, versionId); auditContainerPublished(postPublish, postPublishDraft, postPublishVersion, publishedBy, publishedTo, publishedOn); notifyContainerPublished(postPublish, postPublishDraft, postPublishVersion, remoteEventGenerator); }
| 1,114,850
|
void handleReceived(final Long containerId, final Long versionId, final JabberId receivedBy, final Calendar receivedOn) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("versionId", versionId); logger.logVariable("receivedBy", receivedBy); logger.logVariable("receivedOn", receivedOn); containerIO.updatePublishedTo(containerId, versionId, receivedBy, receivedOn); containerIO.updateSharedWith(containerId, versionId, receivedBy, receivedOn); }
|
void handleReceived(final Long containerId, final Long versionId, final JabberId receivedBy, final Calendar receivedOn) { logger.logApiId(); logger.logVariable("containerId", containerId); logger.logVariable("versionId", versionId); logger.logVariable("receivedBy", receivedBy); logger.logVariable("receivedOn", receivedOn); containerIO.updatePublishedTo(containerId, versionId, receivedBy, receivedOn); containerIO.updateSharedWith(containerId, versionId, receivedBy, receivedOn); }
| 1,114,851
|
public UnsubscribeUser() { super(IQAction.UNSUBSCRIBEUSER); }
|
public UnsubscribeUser() { super("unsubscribeuser"); }
| 1,114,852
|
private void displayMainBrowserAvatar() { getController().displayMainBrowserAvatar(); }
|
private void displayMainBrowserAvatar(final Boolean doReload) { if(doReload) { getController().reloadMainBrowserAvatar(); } getController().displayMainBrowserAvatar(); }
| 1,114,853
|
private void sendJButtonActionPerformed(java.awt.event.ActionEvent evt) { if(isInputValid()) { final Long documentId = extractDocumentId(); final List<User> users = extractTeam(); users.addAll(extractContacts()); final Boolean doIncludeKey = extractDoIncludeKey(); toggleVisualFeedback(Boolean.TRUE); try { if(doIncludeKey) { // create a version and send it // update the server key holder final User user = users.get(0); getSessionModel().sendKeyResponse(documentId, user, KeyResponse.ACCEPT); displayMainBrowserAvatar(); } else { final DocumentVersion version = extractDocumentVersion(); if(version == WorkingVersion.getWorkingVersion()) { // create a version and send it getSessionModel().send(users, documentId); displayMainBrowserAvatar(); } else { // send a specific version getSessionModel().send( users, documentId, version.getVersionId()); displayMainBrowserAvatar(); } } } catch(final ParityException px) { throw new RuntimeException(px); } finally { toggleVisualFeedback(Boolean.FALSE); } } }
|
private void sendJButtonActionPerformed(java.awt.event.ActionEvent evt) { if(isInputValid()) { final Long documentId = extractDocumentId(); final List<User> users = extractTeam(); users.addAll(extractContacts()); final Boolean doIncludeKey = extractDoIncludeKey(); toggleVisualFeedback(Boolean.TRUE); try { if(doIncludeKey) { // create a version and send it // update the server key holder final User user = users.get(0); getSessionModel().sendKeyResponse(documentId, user, KeyResponse.ACCEPT); displayMainBrowserAvatar(Boolean.TRUE); } else { final DocumentVersion version = extractDocumentVersion(); if(version == WorkingVersion.getWorkingVersion()) { // create a version and send it getSessionModel().send(users, documentId); displayMainBrowserAvatar(Boolean.TRUE); } else { // send a specific version getSessionModel().send( users, documentId, version.getVersionId()); displayMainBrowserAvatar(Boolean.TRUE); } } } catch(final ParityException px) { throw new RuntimeException(px); } finally { toggleVisualFeedback(Boolean.FALSE); } } }
| 1,114,854
|
SessionModelXMPPHelper() { super(); this.xmppSession = XMPPSessionFactory.createSession(); this.xmppExtensionListener = new XMPPExtensionListener() { public void artifactClosed(final UUID artifactUniqueId) { handleArtifactClosed(artifactUniqueId); } public void documentReceived(final XMPPDocument xmppDocument) { handleDocumentReceived(xmppDocument); } public void keyRequestAccepted(final UUID artifactUniqueId, final JabberId acceptedBy) { handleKeyRequestAccepted(artifactUniqueId, acceptedBy); } public void keyRequestDenied(final UUID artifactUniqueId, final JabberId deniedBy) { handleKeyRequestDenied(artifactUniqueId, deniedBy); } public void keyRequested(final UUID artifactUniqueId, final JabberId requestedBy) { handleKeyRequested(artifactUniqueId, requestedBy); } }; this.xmppPresenceListener = new XMPPContactListener() { public void invitationAccepted(final JabberId acceptedBy) { handleInvitationAccepted(acceptedBy); } public void invitationDeclined(final JabberId declinedBy) { handleInvitationDeclined(declinedBy); } public void invitationExtended(final JabberId invitedBy) { handleInvitationExtended(invitedBy); } }; this.xmppSessionListener = new XMPPSessionListener() { public void sessionEstablished() { handleSessionEstablished(); } public void sessionTerminated() { handleSessionTerminated(); } public void sessionTerminated(final Exception x) { handleSessionTerminated(x); } }; xmppSession.addListener(xmppExtensionListener); xmppSession.addListener(xmppPresenceListener); xmppSession.addListener(xmppSessionListener); }
|
SessionModelXMPPHelper() { super(); this.xmppSession = XMPPSessionFactory.createSession(); this.xmppExtensionListener = new XMPPExtensionListener() { public void artifactClosed(final UUID artifactUniqueId) { handleArtifactClosed(artifactUniqueId); } public void documentReceived(final XMPPDocument xmppDocument) { handleDocumentReceived(xmppDocument); } public void keyRequestAccepted(final UUID artifactUniqueId, final JabberId acceptedBy) { handleKeyRequestAccepted(artifactUniqueId, acceptedBy); } public void keyRequestDenied(final UUID artifactUniqueId, final JabberId deniedBy) { handleKeyRequestDenied(artifactUniqueId, deniedBy); } public void keyRequested(final UUID artifactUniqueId, final JabberId requestedBy) { handleKeyRequested(artifactUniqueId, requestedBy); } }; this.xmppPresenceListener = new XMPPContactListener() { public void invitationAccepted(final JabberId acceptedBy) { handleInvitationAccepted(acceptedBy); } public void invitationDeclined(final JabberId declinedBy) { handleInvitationDeclined(declinedBy); } public void invitationExtended(final JabberId invitedBy) { handleInvitationExtended(invitedBy); } }; this.xmppSessionListener = new XMPPSessionListener() { public void sessionEstablished() { handleSessionEstablished(); } public void sessionTerminated() { handleSessionTerminated(); } public void sessionTerminated(final Exception x) { handleSessionTerminated(x); } }; xmppSession.addListener(xmppExtensionListener); xmppSession.addListener(xmppPresenceListener); xmppSession.addListener(xmppSessionListener); }
| 1,114,855
|
public void artifactClosed(final UUID artifactUniqueId) { handleArtifactClosed(artifactUniqueId); }
|
public void artifactClosed(final UUID artifactUniqueId) { handleArtifactClosed(artifactUniqueId); }
| 1,114,856
|
private void handleArtifactClosed(final UUID artifactUniqueId) { SessionModelImpl.notifyArtifactClosed(artifactUniqueId); }
|
private void handleArtifactClosed(final UUID artifactUniqueId) { SessionModelImpl.notifyArtifactClosed(artifactUniqueId); }
| 1,114,857
|
private List<JabberId> readTeamIds(final JabberId userId, final UUID uniqueId) { return getArchiveModel().readTeam(userId, uniqueId); }
|
private List<JabberId> readTeamIds(final JabberId userId, final UUID uniqueId) { return getArchiveModel().readTeamIds(userId, uniqueId); }
| 1,114,858
|
private List<DocumentVersion> readArchiveDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { return getContainerModel().readArchiveDocumentVersions(userId, uniqueId, versionId, documentUniqueId); }
|
private List<DocumentVersion> readArchiveDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { return getContainerModel().readArchiveDocumentVersions(userId, uniqueId, versionId, documentUniqueId); }
| 1,114,859
|
private List<DocumentVersion> readArchiveDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { return getContainerModel().readArchiveDocumentVersions(userId, uniqueId, versionId, documentUniqueId); }
|
private List<DocumentVersion> readArchiveDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { return getContainerModel().readArchiveDocumentVersions(userId, uniqueId, versionId); }
| 1,114,860
|
public void service() { logApiId(); final List<DocumentVersion> versions = readArchiveDocumentVersions( readJabberId("userId"), readUUID("uniqueId"), readLong("versionId"), readUUID("documentUniqueId")); writeDocumentVersions("documentVersions", "documentVersion", versions); }
|
public void service() { logApiId(); final List<DocumentVersion> versions = readArchiveDocumentVersions( readJabberId("userId"), readUUID("uniqueId"), readLong("versionId")); writeDocumentVersions("documentVersions", "documentVersion", versions); }
| 1,114,861
|
private void initComponents() { confirmJButton = ButtonFactory.create(getString("ConfirmButton")); denyJButton = ButtonFactory.create(getString("DenyButton")); confirmMessageJTextArea = TextFactory.createArea(); setBackground(new java.awt.Color(255, 255, 255)); confirmJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { confirmJButtonActionPerformed(e); } }); denyJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { denyJButtonActionPerformed(e); } }); confirmMessageJTextArea.setColumns(20); confirmMessageJTextArea.setEditable(false); confirmMessageJTextArea.setLineWrap(true); confirmMessageJTextArea.setRows(5); confirmMessageJTextArea.setWrapStyleWord(true); confirmMessageJTextArea.setBorder(null); confirmMessageJTextArea.setFocusable(false); confirmMessageJTextArea.setBorder(null); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, confirmMessageJTextArea, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(denyJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(confirmJButton))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(confirmMessageJTextArea, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 18, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(confirmJButton) .add(denyJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { confirmJButton = ButtonFactory.create(getString("ConfirmButton")); denyJButton = ButtonFactory.create(getString("DenyButton")); confirmMessageJTextArea = TextFactory.createArea(); confirmJButton.setText("!Yes!"); confirmJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { confirmJButtonActionPerformed(e); } }); denyJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { denyJButtonActionPerformed(e); } }); confirmMessageJTextArea.setColumns(20); confirmMessageJTextArea.setEditable(false); confirmMessageJTextArea.setLineWrap(true); confirmMessageJTextArea.setRows(5); confirmMessageJTextArea.setWrapStyleWord(true); confirmMessageJTextArea.setBorder(null); confirmMessageJTextArea.setFocusable(false); confirmMessageJTextArea.setBorder(null); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, confirmMessageJTextArea, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE) .add(layout.createSequentialGroup() .add(denyJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(confirmJButton))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(confirmMessageJTextArea, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 18, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(confirmJButton) .add(denyJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,862
|
private ModelTestUser(final String password, final String serverHost, final Integer serverPort, final String username) { super(); this.password = password; this.serverHost = serverHost; this.serverPort = serverPort; this.username = username; }
|
private ModelTestUser(final String password, final String serverHost, final Integer serverPort, final String username) { super(); this.password = password; this.serverHost = serverHost; this.serverPort = serverPort; this.username = username; }
| 1,114,864
|
public Boolean extractSavePassword() { return SwingUtil.extract(savePasswordJCheckBox); }
|
public Boolean extractSavePassword() { return SwingUtil.extract(savePasswordJCheckBox); }
| 1,114,866
|
private void hideConnectionInfo() { infoJLabel.setText(""); }
|
private void hideConnectionInfo() { }
| 1,114,867
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JButton loginJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; usernameJLabel = LabelFactory.create(getString("UsernameLabel")); usernameJTextField = TextFactory.create(); passwordJLabel = LabelFactory.create(getString("PasswordLabel")); passwordJPasswordField = TextFactory.createPassword(); savePasswordJCheckBox = CheckBoxFactory.create(getString("SavePasswordCheckBox")); loginJButton = ButtonFactory.create(getString("LoginButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); infoJLabel = LabelFactory.create(); passwordJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { passwordJLabelMouseClicked(e); } }); passwordJPasswordField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { passwordJPasswordFieldActionPerformed(e); } }); savePasswordJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); savePasswordJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); savePasswordJCheckBox.setOpaque(false); loginJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { loginJButtonActionPerformed(e); } }); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(savePasswordJCheckBox) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE))) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginJButton)) .add(infoJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(savePasswordJCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(infoJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(loginJButton) .add(cancelJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JButton loginJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; usernameJLabel = LabelFactory.create(getString("UsernameLabel")); usernameJTextField = TextFactory.create(); passwordJLabel = LabelFactory.create(getString("PasswordLabel")); passwordJPasswordField = TextFactory.createPassword(); loginJButton = ButtonFactory.create(getString("LoginButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); infoJLabel = LabelFactory.create(); passwordJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { passwordJLabelMouseClicked(e); } }); passwordJPasswordField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { passwordJPasswordFieldActionPerformed(e); } }); savePasswordJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); savePasswordJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); savePasswordJCheckBox.setOpaque(false); loginJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { loginJButtonActionPerformed(e); } }); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(savePasswordJCheckBox) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE))) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginJButton)) .add(infoJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(savePasswordJCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(infoJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(loginJButton) .add(cancelJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,868
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JButton loginJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; usernameJLabel = LabelFactory.create(getString("UsernameLabel")); usernameJTextField = TextFactory.create(); passwordJLabel = LabelFactory.create(getString("PasswordLabel")); passwordJPasswordField = TextFactory.createPassword(); savePasswordJCheckBox = CheckBoxFactory.create(getString("SavePasswordCheckBox")); loginJButton = ButtonFactory.create(getString("LoginButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); infoJLabel = LabelFactory.create(); passwordJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { passwordJLabelMouseClicked(e); } }); passwordJPasswordField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { passwordJPasswordFieldActionPerformed(e); } }); savePasswordJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); savePasswordJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); savePasswordJCheckBox.setOpaque(false); loginJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { loginJButtonActionPerformed(e); } }); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(savePasswordJCheckBox) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE))) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginJButton)) .add(infoJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(savePasswordJCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(infoJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(loginJButton) .add(cancelJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JButton loginJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; usernameJLabel = LabelFactory.create(getString("UsernameLabel")); usernameJTextField = TextFactory.create(); passwordJLabel = LabelFactory.create(getString("PasswordLabel")); passwordJPasswordField = TextFactory.createPassword(); savePasswordJCheckBox = CheckBoxFactory.create(getString("SavePasswordCheckBox")); loginJButton = ButtonFactory.create(getString("LoginButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); paddingJLabel = new javax.swing.JLabel(); setLayout(new java.awt.GridBagLayout()); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.insets = new java.awt.Insets(22, 11, 3, 3); add(usernameJLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(22, 3, 3, 22); add(usernameJTextField, gridBagConstraints); passwordJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { passwordJLabelMouseClicked(e); } }); passwordJPasswordField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { passwordJPasswordFieldActionPerformed(e); } }); savePasswordJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); savePasswordJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); savePasswordJCheckBox.setOpaque(false); loginJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { loginJButtonActionPerformed(e); } }); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(savePasswordJCheckBox) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE))) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginJButton)) .add(infoJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(savePasswordJCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(infoJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(loginJButton) .add(cancelJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,869
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JButton loginJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; usernameJLabel = LabelFactory.create(getString("UsernameLabel")); usernameJTextField = TextFactory.create(); passwordJLabel = LabelFactory.create(getString("PasswordLabel")); passwordJPasswordField = TextFactory.createPassword(); savePasswordJCheckBox = CheckBoxFactory.create(getString("SavePasswordCheckBox")); loginJButton = ButtonFactory.create(getString("LoginButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); infoJLabel = LabelFactory.create(); passwordJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { passwordJLabelMouseClicked(e); } }); passwordJPasswordField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { passwordJPasswordFieldActionPerformed(e); } }); savePasswordJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); savePasswordJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); savePasswordJCheckBox.setOpaque(false); loginJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { loginJButtonActionPerformed(e); } }); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(savePasswordJCheckBox) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE))) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginJButton)) .add(infoJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(savePasswordJCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(infoJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(loginJButton) .add(cancelJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JButton loginJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; usernameJLabel = LabelFactory.create(getString("UsernameLabel")); usernameJTextField = TextFactory.create(); passwordJLabel = LabelFactory.create(getString("PasswordLabel")); passwordJPasswordField = TextFactory.createPassword(); savePasswordJCheckBox = CheckBoxFactory.create(getString("SavePasswordCheckBox")); loginJButton = ButtonFactory.create(getString("LoginButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); infoJLabel = LabelFactory.create(); passwordJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { passwordJLabelMouseClicked(e); } }); passwordJPasswordField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { passwordJPasswordFieldActionPerformed(e); } }); savePasswordJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); savePasswordJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); savePasswordJCheckBox.setOpaque(false); loginJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { loginJButtonActionPerformed(e); } }); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(savePasswordJCheckBox) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE))) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginJButton)) .add(infoJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(savePasswordJCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(infoJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(loginJButton) .add(cancelJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,870
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JButton loginJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; usernameJLabel = LabelFactory.create(getString("UsernameLabel")); usernameJTextField = TextFactory.create(); passwordJLabel = LabelFactory.create(getString("PasswordLabel")); passwordJPasswordField = TextFactory.createPassword(); savePasswordJCheckBox = CheckBoxFactory.create(getString("SavePasswordCheckBox")); loginJButton = ButtonFactory.create(getString("LoginButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); infoJLabel = LabelFactory.create(); passwordJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { passwordJLabelMouseClicked(e); } }); passwordJPasswordField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { passwordJPasswordFieldActionPerformed(e); } }); savePasswordJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); savePasswordJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); savePasswordJCheckBox.setOpaque(false); loginJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { loginJButtonActionPerformed(e); } }); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(savePasswordJCheckBox) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE))) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginJButton)) .add(infoJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(savePasswordJCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(infoJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(loginJButton) .add(cancelJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
|
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JButton loginJButton; javax.swing.JLabel passwordJLabel; javax.swing.JLabel usernameJLabel; usernameJLabel = LabelFactory.create(getString("UsernameLabel")); usernameJTextField = TextFactory.create(); passwordJLabel = LabelFactory.create(getString("PasswordLabel")); passwordJPasswordField = TextFactory.createPassword(); savePasswordJCheckBox = CheckBoxFactory.create(getString("SavePasswordCheckBox")); loginJButton = ButtonFactory.create(getString("LoginButton")); cancelJButton = ButtonFactory.create(getString("CancelButton")); infoJLabel = LabelFactory.create(); passwordJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { passwordJLabelMouseClicked(e); } }); passwordJPasswordField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { passwordJPasswordFieldActionPerformed(e); } }); savePasswordJCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); savePasswordJCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0)); savePasswordJCheckBox.setOpaque(false); loginJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { loginJButtonActionPerformed(e); } }); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { cancelJButtonActionPerformed(e); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(usernameJLabel) .add(passwordJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(savePasswordJCheckBox) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE))) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(cancelJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(loginJButton)) .add(infoJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(usernameJLabel) .add(usernameJTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(passwordJLabel) .add(passwordJPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(savePasswordJCheckBox) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(infoJLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(loginJButton) .add(cancelJButton)) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents
| 1,114,871
|
public void reload() { if(getPreferences().isSetUsername()) { usernameJTextField.setText(getPreferences().getUsername()); usernameJTextField.setEnabled(false); } else { usernameJTextField.setEnabled(true); } if(containsErrors()) { infoJLabel.setText(extractErrorMessage()); clearErrors(); } }
|
public void reload() { if(getPreferences().isSetUsername()) { usernameJTextField.setText(getPreferences().getUsername()); usernameJTextField.setEnabled(false); } else { usernameJTextField.setEnabled(true); } if(containsErrors()) { clearErrors(); } }
| 1,114,872
|
private void showConnectionInfo() { final StringBuffer buffer = new StringBuffer(getPreferences().getServerHost()) .append(":") .append(getPreferences().getServerPort()) .append(" ") .append(com.thinkparity.browser.Version.getVersion()) .append(" ") .append(com.thinkparity.browser.Version.getBuildId()) .append(" ") .append(com.thinkparity.browser.Version.getMode()); infoJLabel.setText(buffer.toString()); final javax.swing.Timer timer = new javax.swing.Timer(3 * 1000, new ActionListener() { public void actionPerformed(final ActionEvent e) { hideConnectionInfo(); } }); timer.setRepeats(false); timer.start(); }
|
private void showConnectionInfo() { final StringBuffer buffer = new StringBuffer(getPreferences().getServerHost()) .append(":") .append(getPreferences().getServerPort()) .append(" ") .append(com.thinkparity.browser.Version.getVersion()) .append(" ") .append(com.thinkparity.browser.Version.getBuildId()) .append(" ") .append(com.thinkparity.browser.Version.getMode()); final javax.swing.Timer timer = new javax.swing.Timer(3 * 1000, new ActionListener() { public void actionPerformed(final ActionEvent e) { hideConnectionInfo(); } }); timer.setRepeats(false); timer.start(); }
| 1,114,873
|
public void run() { window.open(avatar); }
|
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.TRUE); }
| 1,114,874
|
public void fireDocumentCreated(final Long documentId) { SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); } }); reloadMainList(); }
|
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(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE); } }); }
| 1,114,875
|
public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); }
|
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).applyFilter(filter); }
| 1,114,876
|
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() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId); } }); }
|
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() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE); } }); }
| 1,114,877
|
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId); }
|
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE); }
| 1,114,878
|
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); } }); }
|
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); } }); }
| 1,114,879
|
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId); }
|
public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); }
| 1,114,880
|
public void fireDocumentUpdated(final Long documentId) { // refresh the document in the main list SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId); } }); }
|
public void fireDocumentUpdated(final Long documentId) { // refresh the document in the main list SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId); } }); }
| 1,114,881
|
public void runAcceptContactInvitation(final Long systemMessageId) { final Data data = new Data(1); data.set(AcceptInvitation.DataKey.SYSTEM_MESSAGE_ID, systemMessageId); invoke(ActionId.SESSION_ACCEPT_INVITATION, data); reloadMainList(); }
|
public void runAcceptContactInvitation(final Long systemMessageId) { final Data data = new Data(1); data.set(AcceptInvitation.DataKey.SYSTEM_MESSAGE_ID, systemMessageId); invoke(ActionId.SESSION_ACCEPT_INVITATION, data); }
| 1,114,882
|
public void runDeclineAllKeyRequests(final Long artifactId) { final Data data = new Data(1); data.set(DeclineAllKeyRequests.DataKey.ARTIFACT_ID, artifactId); invoke(ActionId.ARTIFACT_DECLINE_ALL_KEY_REQUESTS, data); reloadMainList(); }
|
public void runDeclineAllKeyRequests(final Long artifactId) { final Data data = new Data(1); data.set(DeclineAllKeyRequests.DataKey.ARTIFACT_ID, artifactId); invoke(ActionId.ARTIFACT_DECLINE_ALL_KEY_REQUESTS, data); }
| 1,114,883
|
public void runDeleteSystemMessage(final Long systemMessageId) { final Data data = new Data(1); data.set(DeleteSystemMessage.DataKey.SYSTEM_MESSAGE_ID, systemMessageId); invoke(ActionId.SYSTEM_MESSAGE_DELETE, data); reloadMainList(); }
|
public void runDeleteSystemMessage(final Long systemMessageId) { final Data data = new Data(1); data.set(DeleteSystemMessage.DataKey.SYSTEM_MESSAGE_ID, systemMessageId); invoke(ActionId.SYSTEM_MESSAGE_DELETE, data); }
| 1,114,884
|
public void toggleHistory3Avatar() { if(null == history2Window) { final Avatar avatar = getAvatar(AvatarId.DOCUMENT_HISTORY3); if(null != getAvatarInput(AvatarId.DOCUMENT_HISTORY3)) avatar.setInput(getAvatarInput(AvatarId.DOCUMENT_HISTORY3)); history2Window = new History2Window(mainWindow, avatar); history2Window.setVisible(true); runApplyFlagSeen(session.getSelectedDocumentId()); reloadMainList(); } else { history2Window.dispose(); history2Window = null; } }
|
public void toggleHistory3Avatar() { if(null == history2Window) { final Avatar avatar = getAvatar(AvatarId.DOCUMENT_HISTORY3); if(null != getAvatarInput(AvatarId.DOCUMENT_HISTORY3)) avatar.setInput(getAvatarInput(AvatarId.DOCUMENT_HISTORY3)); history2Window = new History2Window(mainWindow, avatar); history2Window.setVisible(true); runApplyFlagSeen(session.getSelectedDocumentId()); reloadMainList(); } else { history2Window.dispose(); history2Window = null; } }
| 1,114,885
|
public IQ handleIQ(final IQ iq) throws UnauthorizedException { synchronized (AbstractHandler.SERIALIZER) { this.userModel = UserModel.getModel(); return logVariable("response", super.handleIQ(logVariable("iq", iq))); } }
|
public IQ handleIQ(final IQ iq) throws UnauthorizedException { synchronized (AbstractHandler.SERIALIZER) { this.userModel = UserModel.getModel(); return logVariable("response", super.handleIQ(logVariable("iq", iq))); } }
| 1,114,888
|
public IQ handleIQ(final IQ iq) throws UnauthorizedException { synchronized (SERIALIZER) { this.session = SessionUtil.getInstance().createSession(iq); this.archiveModel = ArchiveModel.getModel(session); this.artifactModel = ArtifactModel.getModel(session); this.backupModel = BackupModel.getModel(session); this.contactModel = ContactModel.getModel(session); this.containerModel = ContainerModel.getModel(session); this.profileModel = ProfileModel.getModel(session); this.queueModel = QueueModel.getModel(session); this.streamModel = StreamModel.getModel(session); this.userModel = UserModel.getModel(session); logVariable("iq", iq); final IQ response = super.handleIQ(iq); logVariable("response", response); return response; } }
|
public IQ handleIQ(final IQ iq) throws UnauthorizedException { synchronized (SERIALIZER) { this.session = SessionUtil.getInstance().createSession(iq); this.archiveModel = ArchiveModel.getModel(session); this.artifactModel = ArtifactModel.getModel(session); this.backupModel = BackupModel.getModel(session); this.contactModel = ContactModel.getModel(session); this.containerModel = ContainerModel.getModel(session); this.profileModel = ProfileModel.getModel(session); this.queueModel = QueueModel.getModel(session); this.streamModel = StreamModel.getModel(session); this.userModel = UserModel.getModel(session); final IQ response = super.handleIQ(iq); logVariable("response", response); return response; } }
| 1,114,889
|
public IQ handleIQ(final IQ iq) throws UnauthorizedException { synchronized (SERIALIZER) { this.session = SessionUtil.getInstance().createSession(iq); this.archiveModel = ArchiveModel.getModel(session); this.artifactModel = ArtifactModel.getModel(session); this.backupModel = BackupModel.getModel(session); this.contactModel = ContactModel.getModel(session); this.containerModel = ContainerModel.getModel(session); this.profileModel = ProfileModel.getModel(session); this.queueModel = QueueModel.getModel(session); this.streamModel = StreamModel.getModel(session); this.userModel = UserModel.getModel(session); logVariable("iq", iq); final IQ response = super.handleIQ(iq); logVariable("response", response); return response; } }
|
public IQ handleIQ(final IQ iq) throws UnauthorizedException { synchronized (SERIALIZER) { this.session = SessionUtil.getInstance().createSession(iq); this.archiveModel = ArchiveModel.getModel(session); this.artifactModel = ArtifactModel.getModel(session); this.backupModel = BackupModel.getModel(session); this.contactModel = ContactModel.getModel(session); this.containerModel = ContainerModel.getModel(session); this.profileModel = ProfileModel.getModel(session); this.queueModel = QueueModel.getModel(session); this.streamModel = StreamModel.getModel(session); this.userModel = UserModel.getModel(session); logVariable("iq", iq); final IQ response = super.handleIQ(iq); IQ_LOGGER.logVariable("iq", iq); IQ_LOGGER.logVariable("iq response", response); return response; } }
| 1,114,890
|
private void readIndex(final Index index, final HierarchicalStreamReader reader, final UnmarshallingContext context) { while(reader.hasMoreChildren()) { reader.moveDown(); index.addLookup( UUID.fromString(reader.getAttribute("id")), new File(reader.getAttribute("xmlFile"))); reader.moveUp(); } }
|
private void readIndex(final Index index, final HierarchicalStreamReader reader, final UnmarshallingContext context) { while(reader.hasMoreChildren()) { reader.moveDown(); index.addXmlFileLookup( UUID.fromString(reader.getAttribute("id")), new File(reader.getAttribute("xmlFile"))); reader.moveUp(); } }
| 1,114,892
|
public void containerDeleted(ContainerEvent e) { didNotify = Boolean.TRUE; assertTrue(NAME + " [EVENT GENERATED IS NOT LOCAL]", e.isLocal()); assertTrue(NAME + " [EVENT GENERATED IS REMOTE]", !e.isRemote()); assertNull(NAME + " [EVENT CONTAINER IS NOT NULL]", e.getContainer()); assertNull(NAME + " [EVENT DOCUMENT IS NOT NULL]", e.getDocument()); assertNull(NAME + " [EVENT DRAFT IS NOT NULL]", e.getDraft()); assertNull(NAME + " [EVENT TEAM MEMBER IS NOT NULL]", e.getTeamMember()); assertNull(NAME + " [EVENT VERSION NOT NULL]", e.getVersion()); }
|
public void containerDeleted(ContainerEvent e) { didNotify = Boolean.TRUE; assertTrue(NAME + " [EVENT GENERATED IS NOT LOCAL]", e.isLocal()); assertTrue(NAME + " [EVENT GENERATED IS REMOTE]", !e.isRemote()); assertNotNull(NAME + " [EVENT CONTAINER IS NOT NULL]", e.getContainer()); assertNull(NAME + " [EVENT DOCUMENT IS NOT NULL]", e.getDocument()); assertNull(NAME + " [EVENT DRAFT IS NOT NULL]", e.getDraft()); assertNull(NAME + " [EVENT TEAM MEMBER IS NOT NULL]", e.getTeamMember()); assertNull(NAME + " [EVENT VERSION NOT NULL]", e.getVersion()); }
| 1,114,893
|
protected void setUp() throws Exception { super.setUp(); final Document document = createDocument(OpheliaTestUser.JUNIT, getInputFiles()[0]); modifyDocument(OpheliaTestUser.JUNIT, document); datum = new Fixture(getDocumentModel(OpheliaTestUser.JUNIT), document.getId(), Boolean.TRUE); }
|
protected void setUp() throws Exception { super.setUp(); final Document document = createDocument(OpheliaTestUser.JUNIT, getInputFiles()[0]); modifyDocument(OpheliaTestUser.JUNIT, document.getId()); datum = new Fixture(getDocumentModel(OpheliaTestUser.JUNIT), document.getId(), Boolean.TRUE); }
| 1,114,894
|
private ProviderFactory() { super(); final ModelFactory modelFactory = ModelFactory.getInstance(); this.artifactModel = modelFactory.getArtifactModel(getClass()); this.dModel = modelFactory.getDocumentModel(getClass()); this.logger = ModelLoggerFactory.getLogger(getClass()); this.loggedInUser = JabberIdBuilder.parseUsername(preferences.getUsername()); this.sessionModel = modelFactory.getSessionModel(getClass()); this.systemMessageModel = modelFactory.getSystemMessageModel(getClass()); this.historyProvider = new HistoryProvider(dModel); this.infoProvider = new InfoProvider(dModel); this.mainProvider = new MainProvider(artifactModel, dModel, systemMessageModel); this.manageContactsProvider = new ManageContactsProvider(sessionModel); this.sendArtifactProvider = new SendArtifactProvider(dModel, sessionModel, loggedInUser); this.sendVersionProvider = new SendVersionProvider(dModel, sessionModel, loggedInUser); }
|
private ProviderFactory() { super(); final ModelFactory modelFactory = ModelFactory.getInstance(); this.artifactModel = modelFactory.getArtifactModel(getClass()); this.dModel = modelFactory.getDocumentModel(getClass()); this.logger = ModelLoggerFactory.getLogger(getClass()); this.loggedInUser = JabberIdBuilder.parseUsername(preferences.getUsername()); this.sModel = modelFactory.getSessionModel(getClass()); this.systemMessageModel = modelFactory.getSystemMessageModel(getClass()); this.historyProvider = new HistoryProvider(dModel); this.infoProvider = new InfoProvider(dModel); this.mainProvider = new MainProvider(artifactModel, dModel, systemMessageModel); this.manageContactsProvider = new ManageContactsProvider(sessionModel); this.sendArtifactProvider = new SendArtifactProvider(dModel, sessionModel, loggedInUser); this.sendVersionProvider = new SendVersionProvider(dModel, sessionModel, loggedInUser); }
| 1,114,895
|
private ProviderFactory() { super(); final ModelFactory modelFactory = ModelFactory.getInstance(); this.artifactModel = modelFactory.getArtifactModel(getClass()); this.dModel = modelFactory.getDocumentModel(getClass()); this.logger = ModelLoggerFactory.getLogger(getClass()); this.loggedInUser = JabberIdBuilder.parseUsername(preferences.getUsername()); this.sessionModel = modelFactory.getSessionModel(getClass()); this.systemMessageModel = modelFactory.getSystemMessageModel(getClass()); this.historyProvider = new HistoryProvider(dModel); this.infoProvider = new InfoProvider(dModel); this.mainProvider = new MainProvider(artifactModel, dModel, systemMessageModel); this.manageContactsProvider = new ManageContactsProvider(sessionModel); this.sendArtifactProvider = new SendArtifactProvider(dModel, sessionModel, loggedInUser); this.sendVersionProvider = new SendVersionProvider(dModel, sessionModel, loggedInUser); }
|
private ProviderFactory() { super(); final ModelFactory modelFactory = ModelFactory.getInstance(); this.artifactModel = modelFactory.getArtifactModel(getClass()); this.dModel = modelFactory.getDocumentModel(getClass()); this.logger = ModelLoggerFactory.getLogger(getClass()); this.loggedInUser = JabberIdBuilder.parseUsername(preferences.getUsername()); this.sessionModel = modelFactory.getSessionModel(getClass()); this.systemMessageModel = modelFactory.getSystemMessageModel(getClass()); this.historyProvider = new HistoryProvider(dModel); this.infoProvider = new InfoProvider(dModel, sModel); this.mainProvider = new MainProvider(artifactModel, dModel, systemMessageModel); this.manageContactsProvider = new ManageContactsProvider(sessionModel); this.sendArtifactProvider = new SendArtifactProvider(dModel, sessionModel, loggedInUser); this.sendVersionProvider = new SendVersionProvider(dModel, sessionModel, loggedInUser); }
| 1,114,896
|
private ProviderFactory() { super(); final ModelFactory modelFactory = ModelFactory.getInstance(); this.artifactModel = modelFactory.getArtifactModel(getClass()); this.dModel = modelFactory.getDocumentModel(getClass()); this.logger = ModelLoggerFactory.getLogger(getClass()); this.loggedInUser = JabberIdBuilder.parseUsername(preferences.getUsername()); this.sessionModel = modelFactory.getSessionModel(getClass()); this.systemMessageModel = modelFactory.getSystemMessageModel(getClass()); this.historyProvider = new HistoryProvider(dModel); this.infoProvider = new InfoProvider(dModel); this.mainProvider = new MainProvider(artifactModel, dModel, systemMessageModel); this.manageContactsProvider = new ManageContactsProvider(sessionModel); this.sendArtifactProvider = new SendArtifactProvider(dModel, sessionModel, loggedInUser); this.sendVersionProvider = new SendVersionProvider(dModel, sessionModel, loggedInUser); }
|
private ProviderFactory() { super(); final ModelFactory modelFactory = ModelFactory.getInstance(); this.artifactModel = modelFactory.getArtifactModel(getClass()); this.dModel = modelFactory.getDocumentModel(getClass()); this.logger = ModelLoggerFactory.getLogger(getClass()); this.loggedInUser = JabberIdBuilder.parseUsername(preferences.getUsername()); this.sessionModel = modelFactory.getSessionModel(getClass()); this.systemMessageModel = modelFactory.getSystemMessageModel(getClass()); this.historyProvider = new HistoryProvider(dModel); this.infoProvider = new InfoProvider(dModel); this.mainProvider = new MainProvider(artifactModel, dModel, systemMessageModel); this.manageContactsProvider = new ManageContactsProvider(sessionModel); this.sendArtifactProvider = new SendArtifactProvider(dModel, sessionModel, loggedInUser); this.sendVersionProvider = new SendVersionProvider(dModel, sessionModel, loggedInUser); }
| 1,114,897
|
void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { /* * Obtain the inbox parity project within the workspace, and place * the received document within it, the notify all listeners about * the new document. */ final Project inbox = projectModel.getInbox(); final Document document = new Document(inbox.getId(), xmppDocument.getName(), xmppDocument.getCreatedOn(), xmppDocument.getCreatedBy(), xmppDocument.getDescription(), xmppDocument.getId()); final DocumentContent content = new DocumentContent( MD5Util.md5Hex(xmppDocument.getContent()), xmppDocument.getContent(), xmppDocument.getId()); documentXmlIO.create(document, content); // create a new version createVersion(document, DocumentAction.RECEIVE, receive_ActionData(document)); // fire a receive event notifyCreation_objectReceived(document); } 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 { /* * Obtain the inbox parity project within the workspace, and place * the received document within it, the notify all listeners about * the new document. */ final Project inbox = projectModel.getInbox(); final Document document = new Document(inbox.getId(), xmppDocument.getName(), xmppDocument.getCreatedOn(), xmppDocument.getCreatedBy(), xmppDocument.getDescription(), xmppDocument.getId()); final DocumentContent content = new DocumentContent( MD5Util.md5Hex(xmppDocument.getContent()), xmppDocument.getContent(), xmppDocument.getId()); documentXmlIO.create(document, content); // create a new version createVersion(document, DocumentAction.RECEIVE, receive_ActionData(document)); // fire a receive event notifyCreation_objectReceived(document); } 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,898
|
public int compare(final User o1, final User o2) { final int compareResult = o1.getName().compareTo(o2.getName()); if(0 == compareResult) { return subCompare(o1, o2); } else { return compareResult * resultMultiplier; } }
|
public int compare(final User o1, final User o2) { final int compareResult = o1.getName().compareTo(o2.getName()); if(0 == compareResult) { return subCompare(o1, o2); } else { return compareResult * resultMultiplier; } }
| 1,114,899
|
public boolean canImport(final JComponent comp, final DataFlavor[] transferFlavors) { logger.debug(comp.getClass().getSimpleName()); // when updating a document; only 1 file must be imported if(1 == transferFlavors.length) { if(TxUtils.containsJavaFileList(transferFlavors)) { if(!jList.isSelectionEmpty()) { return true; } } } return false; }
|
public boolean canImport(final JComponent comp, final DataFlavor[] transferFlavors) { logger.debug(comp.getClass().getSimpleName()); // when updating a document; only 1 file must be imported if(1 == transferFlavors.length) { if(TxUtils.containsJavaFileList(transferFlavors)) { if(!jList.isSelectionEmpty()) { if(Connection.ONLINE == application.getConnectionStatus()) { return true; } } } } return false; }
| 1,114,900
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.