rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
synchronized(singletonLock) { return singleton.doCreate(text, mnemonic); }
return SINGLETON.doCreate(text, mnemonic);
public static JMenuItem create(final String text, final Integer mnemonic) { synchronized(singletonLock) { return singleton.doCreate(text, mnemonic); } }
public BinaryTypeConverterImpl(ValueFactory factory) { super(factory); }
public BinaryTypeConverterImpl() { super(); }
public BinaryTypeConverterImpl(ValueFactory factory) { super(factory); }
public AbstractAtomicTypeConverterImpl(ValueFactory factory) { super(); valueFactory = factory; }
public AbstractAtomicTypeConverterImpl() { }
public AbstractAtomicTypeConverterImpl(ValueFactory factory) { super(); valueFactory = factory; }
setBorder(new MultiLineBorder(new Color[] {BC_1, BC_2}));
public HistoryItems() { super("DocumentHistory", Color.WHITE); setBorder(new MultiLineBorder(new Color[] {BC_1, BC_2})); initComponents(); }
javax.swing.JLabel infoJLabel;
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory...
infoJLabel = new javax.swing.JLabel();
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory...
infoJLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/HistoryInfoDisplay.png"))); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; add(infoJLabel, gridBagConstraints);
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory...
gridBagConstraints.gridy = 1;
gridBagConstraints.gridy = 0;
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory...
gridBagConstraints.weightx = 1.0;
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane historyListScrollPane; javax.swing.JLabel infoJLabel; infoJLabel = new javax.swing.JLabel(); historyListScrollPane = ScrollPaneFactory.create(); historyList = ListFactory...
LogFactory logFactory, MessageFactory messageFactory) { this.application = application; this.settings = settings; this.messageStoreFactory = messageStoreFactory; this.logFactory = logFactory; this.messageFactory = messageFactory; sessionFactory = new SessionFactory(application, messageStoreFactory, logFactory);
MessageFactory messageFactory) { this(application, messageStoreFactory, settings, new ScreenLogFactory(settings), messageFactory);
protected AbstractSocketInitiator(Application application, MessageStoreFactory messageStoreFactory, SessionSettings settings, LogFactory logFactory, MessageFactory messageFactory) { this.application = application; this.settings = settings; this.messageStoreFactory = messag...
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...
public HistoryProvider(final DocumentModel documentModel) {
public HistoryProvider(final JabberId loggedInUserId, final DocumentModel dModel, final SessionModel sModel) {
public HistoryProvider(final DocumentModel documentModel) { super(); this.documentProvider = new SingleContentProvider() { public Object getElement(final Object input) { Assert.assertNotNull( "The history provider requries java.lang.Long input.", input); Assert.assertOfType( "The history provi...
try { return documentModel.get((Long) input); }
try { return dModel.get((Long) input); }
public HistoryProvider(final DocumentModel documentModel) { super(); this.documentProvider = new SingleContentProvider() { public Object getElement(final Object input) { Assert.assertNotNull( "The history provider requries java.lang.Long input.", input); Assert.assertOfType( "The history provi...
try { return documentModel.readHistory((Long) input).toArray(new HistoryItem[] {}); }
try { return dModel.readHistory((Long) input).toArray(new HistoryItem[] {}); }
public HistoryProvider(final DocumentModel documentModel) { super(); this.documentProvider = new SingleContentProvider() { public Object getElement(final Object input) { Assert.assertNotNull( "The history provider requries java.lang.Long input.", input); Assert.assertOfType( "The history provi...
this.flatProviders = new FlatContentProvider[] { historyProvider }; this.singleProviders = new SingleContentProvider[] { documentProvider };
this.teamProvider = new FlatContentProvider() { public Object[] getElements(final Object input) { final Long documentId = (Long) input; final List<Contact> team; try { team = sModel.readArtifactContacts(documentId); } catch(final ParityException px) { throw new RuntimeException(px); } Contact contact; for(final Iterat...
public HistoryProvider(final DocumentModel documentModel) { super(); this.documentProvider = new SingleContentProvider() { public Object getElement(final Object input) { Assert.assertNotNull( "The history provider requries java.lang.Long input.", input); Assert.assertOfType( "The history provi...
public InfoProvider(final DocumentModel dModel) {
public InfoProvider(final DocumentModel dModel, final SessionModel sModel) {
public InfoProvider(final DocumentModel dModel) { super(); this.countProvider = new SingleContentProvider() { public Object getElement(final Object input) { // TODO Create a statistics model to obtain and build // reports try { return dModel.list().size(); } catch(final ParityException px) { throw new ...
this.singleProviders = new SingleContentProvider[] {countProvider, contactProvider};
public InfoProvider(final DocumentModel dModel) { super(); this.countProvider = new SingleContentProvider() { public Object getElement(final Object input) { // TODO Create a statistics model to obtain and build // reports try { return dModel.list().size(); } catch(final ParityException px) { throw new ...
XMPPMethod(final String name) {
public XMPPMethod(final String name) {
XMPPMethod(final String name) { super(); this.parameters = new LinkedList<Parameter>(); this.name = name; }
final void setParameter(final String name, final UUID value) { parameters.add(new Parameter(name, UUID.class, value));
public final void setParameter(final String name, final byte[] value) { parameters.add(new Parameter(name, byte[].class, value));
final void setParameter(final String name, final UUID value) { parameters.add(new Parameter(name, UUID.class, value)); }
reader.moveDown();
private ActionWrapper readAction(final HierarchicalStreamReader reader, final UnmarshallingContext context) { reader.moveDown(); final DocumentAction action = DocumentAction.fromId(reader.getAttribute("id")); final DocumentActionData actionData; if(reader.hasMoreChildren()) { reader.moveDown(); actionData ...
reader.moveUp();
private ActionWrapper readAction(final HierarchicalStreamReader reader, final UnmarshallingContext context) { reader.moveDown(); final DocumentAction action = DocumentAction.fromId(reader.getAttribute("id")); final DocumentActionData actionData; if(reader.hasMoreChildren()) { reader.moveDown(); actionData ...
else if(actionId.equals("send")) { return SEND; }
public static DocumentAction fromId(final String actionId) { if(actionId.equals("create")) { return CREATE; } else if(actionId.equals("receive")) { return RECEIVE; } else { throw new IllegalArgumentException( "Unrecognized document action: " + actionId); } }
if (XMPPUncheckedException.class.isAssignableFrom(t.getClass())) { return (XMPPUncheckedException) t; } else if (Assertion.class.isAssignableFrom(t.getClass())) { final String errorId = new ErrorHelper().getErrorId(t); logger.logError(t, errorId); return (Assertion) t; } else { final String errorId = new ErrorHelper()....
return xmppCore.translateError(t);
protected RuntimeException translateError(final Throwable t) { if (XMPPUncheckedException.class.isAssignableFrom(t.getClass())) { return (XMPPUncheckedException) t; } else if (Assertion.class.isAssignableFrom(t.getClass())) { final String errorId = new ErrorHelper().getErrorId(t)...
WorkspaceModel.getModel(environment).getWorkspace(
workspaceModel.getWorkspace(
private OpheliaTestUser(final Environment environment, final String username) { super(); this.credentials = new Credentials(); this.credentials.setPassword(PASSWORD); this.credentials.setUsername(username); this.environment = environment; this.workspace = WorkspaceModel.getModel(environmen...
this.workspace.getPreferences().setUsername(username);
private OpheliaTestUser(final Environment environment, final String username) { super(); this.credentials = new Credentials(); this.credentials.setPassword(PASSWORD); this.credentials.setUsername(username); this.environment = environment; this.workspace = WorkspaceModel.getModel(environmen...
SessionModel.getModel(environment, workspace).login(new DefaultLoginMonitor() { @Override public Boolean confirmSynchronize() { return Boolean.TRUE; } }, credentials); try { ContactModel.getModel(environment, workspace).download(); setId(ProfileModel.getModel(environment, workspace).read().getId()); } finally { Session...
final WorkspaceModel workspaceModel = WorkspaceModel.getModel(environment); if (!workspaceModel.isInitialized(workspace)) { workspaceModel.initialize(workspace, new LoginMonitor() { public Boolean confirmSynchronize() { return Boolean.TRUE; } public void notifyInvalidCredentials( final Credentials credentials) { } }, c...
private void initialize() { SessionModel.getModel(environment, workspace).login(new DefaultLoginMonitor() { @Override public Boolean confirmSynchronize() { return Boolean.TRUE; } }, credentials); try { ContactModel.getModel(environment,...
setId(JabberIdBuilder.parseUsername(credentials.getUsername()));
setId(JabberIdBuilder.build( credentials.getUsername(), environment.getXMPPService())); SessionModel.getModel(environment, workspace).logout();
private void initialize() { SessionModel.getModel(environment, workspace).login(new DefaultLoginMonitor() { @Override public Boolean confirmSynchronize() { return Boolean.TRUE; } }, credentials); try { ContactModel.getModel(environment,...
setPopupDelegate(model.getPopupDelegate());
setSortByDelegate(model);
public ContainerTabAvatar() { super(AvatarId.TAB_CONTAINER, new ContainerTabModel()); model.setLocalization(getLocalization()); model.setSession(getSession()); setPopupDelegate(model.getPopupDelegate()); }
this.containerPanels = new ArrayList<TabPanel>();
this.filteredPanels = new ArrayList<TabPanel>();
ContainerTabModel() { super(); this.actionDelegate = new ContainerTabActionDelegate(this); this.browser = getBrowser(); this.containerIdLookup = new HashMap<Long, Long>(); this.containerPanels = new ArrayList<TabPanel>(); this.expandedState = new HashMap<TabPanel, Boolean>(...
this.searchResults = new ArrayList<Long>();
ContainerTabModel() { super(); this.actionDelegate = new ContainerTabActionDelegate(this); this.browser = getBrowser(); this.containerIdLookup = new HashMap<Long, Long>(); this.containerPanels = new ArrayList<TabPanel>(); this.expandedState = new HashMap<TabPanel, Boolean>(...
public double getDouble(SessionID sessionID, String key) throws ConfigError, FieldConvertError { try { return Double.parseDouble(getString(sessionID, key)); } catch (NumberFormatException e) { throw new FieldConvertError(e.getMessage()); }
public double getDouble(String key) throws ConfigError, FieldConvertError { return getDouble(DEFAULT_SESSION_ID, key);
public double getDouble(SessionID sessionID, String key) throws ConfigError, FieldConvertError { try { return Double.parseDouble(getString(sessionID, key)); } catch (NumberFormatException e) { throw new FieldConvertError(e.getMessage()); } }
public static String getExtension(String fileName) { if(-1 != fileName.indexOf(Separator.Period.toString())) return fileName.substring( fileName.lastIndexOf(Separator.Period.toString())); return fileName;
public static String getExtension(final File file) { if(null == file) { throw new NullPointerException(); } return FileUtil.getExtension(file.getName());
public static String getExtension(String fileName) { if(-1 != fileName.indexOf(Separator.Period.toString())) return fileName.substring( fileName.lastIndexOf(Separator.Period.toString())); return fileName; }
public static String getName(final String fileName) { if(-1 != fileName.indexOf(Separator.Period.toString())) return fileName.substring( 0, fileName.lastIndexOf(Separator.Period.toString())); return fileName;
public static String getName(final File file) { if(null == file) { throw new NullPointerException(); } return getName(file.getName());
public static String getName(final String fileName) { if(-1 != fileName.indexOf(Separator.Period.toString())) return fileName.substring( 0, fileName.lastIndexOf(Separator.Period.toString())); return fileName; }
public void close(final UUID documentUniqueId) throws ParityException { synchronized(getImplLock()) { getImpl().close(documentUniqueId); }
public void close(final UUID documentUniqueId, final JabberId closedBy) throws ParityException { synchronized(getImplLock()) { getImpl().close(documentUniqueId, closedBy); }
public void close(final UUID documentUniqueId) throws ParityException { synchronized(getImplLock()) { getImpl().close(documentUniqueId); } }
html.append("<h2>VelocityServlet : Error processing the template</h2>");
html.append("<h2>VelocityViewServlet : Error processing the template</h2>");
protected void error(HttpServletRequest request, HttpServletResponse response, Exception cause) throws ServletException, IOException { StringBuffer html = new StringBuffer(); html.append("<html>"); html.append("<title>Error</title>"); ...
javax.swing.JButton closeJButton;
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
javax.swing.JButton searchJButton;
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
closeJButton = ButtonFactory.create(getString("CloseButton")); manageJButton = ButtonFactory.create(getString("ManageButton"));
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
searchJButton = ButtonFactory.create(getString("SearchButton"));
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
} }); closeJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { closeJButtonActionPerformed(e); } }); manageJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { manageJButtonAc...
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
searchJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { searchJButtonActionPerformed(e); } });
invitationJLabel.setText("!Email Invitation!");
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
.add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 372, Short.MAX_VALUE)
.add(eaJLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 281, Short.MAX_VALUE)
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
.add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(emailJLabel) .add(invitationJLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane1, org.jdesktop.layout...
.add(emailJLabel) .add(invitationJLabel))
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
.add(closeJButton) .add(previewJButton) .add(sendJButton))))
.add(emailJTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 196, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .add(sendJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(previewJButton)) .add(layout.createSequentialGroup() .add(jScrollPane1,...
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(emailJLabel) .add(emailJTextField, 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(...
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(emailJLabel) .add(emailJTextField, 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(...
.add(invitationJLabel) .add(123, 123, 123))
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
.add(previewJButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(sendJButton))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 131, Short.MAX_VALUE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)))
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
.add(closeJButton) .add(manageJButton) .add(searchJButton))
.add(previewJButton) .add(sendJButton))
private void initComponents() { javax.swing.JButton closeJButton; javax.swing.JLabel eaJLabel; javax.swing.JLabel emailJLabel; javax.swing.JLabel invitationJLabel; javax.swing.JScrollPane jScrollPane1; javax.swing.JButton manageJButton; javax.swing.JButton previewJBu...
manageJButtonActionPerformed(e);
previewJButtonActionPerformed(e);
public void actionPerformed(java.awt.event.ActionEvent e) { manageJButtonActionPerformed(e); }
if(!jabberIds.contains(auditEvent.getCreatedBy())) jabberIds.add(auditEvent.getCreatedBy()); break; case REQUEST_KEY: if(!jabberIds.contains(((RequestKeyEvent) auditEvent).getRequestedBy())) jabberIds.add(((RequestKeyEvent) auditEvent).getRequestedBy()); if(!jabberIds.contains(((RequestKeyEvent) auditEvent).getRequeste...
private Map<JabberId, User> buildAuditUserMap( final Iterable<AuditEvent> auditEvents) throws ParityException { final List<JabberId> jabberIds = new LinkedList<JabberId>(); for(final AuditEvent auditEvent : auditEvents) { switch(auditEvent.getType()) { case CLOSE: case CREATE: if(!jabberIds.contains(audit...
logger.info("close(Long)");
logger.info("[LMODEL] [DOCUMENT] [CLOSE]");
void close(final Long documentId) throws ParityException { logger.info("close(Long)"); logger.debug(documentId); assertLoggedInUserIsKeyHolder(documentId); try { // close the document final Document document = get(documentId); assertStateTransition(document.getState(), ArtifactState.CLOSED); documentIO.upd...
auditor.close(d.getId(), JabberIdBuilder.parseUsername(preferences.getUsername()), d.getUpdatedOn());
auditor.close(d.getId(), currentUserId(), d.getUpdatedOn(), currentUserId());
void close(final Long documentId) throws ParityException { logger.info("close(Long)"); logger.debug(documentId); assertLoggedInUserIsKeyHolder(documentId); try { // close the document final Document document = get(documentId); assertStateTransition(document.getState(), ArtifactState.CLOSED); documentIO.upd...
auditor.create(d.getId(), JabberIdBuilder.parseUsername(preferences.getUsername()), d.getCreatedOn());
auditor.create(d.getId(), currentUserId(), d.getCreatedOn());
Document create(final String name, final String description, final File file) throws ParityException { logger.info("create(Project,String,String,File)"); logger.debug(name); logger.debug(description); logger.debug(file); assertCanCreateArtifacts(); assertIsSessionValid(); Assert.assertTrue( // TODO Central...
if(ArtifactState.CLOSED != document.getState()) assertLoggedInUserIsNotKeyHolder(documentId);
void delete(final Long documentId) throws ParityException { logger.info("delete(Long)"); logger.debug(documentId); try { final Document document = get(documentId); assertStateTransition(document.getState(), ArtifactState.DELETED); // delete the document remotely final InternalSessionModel iSModel = getIn...
auditor.recieve(document.getId(), xmppDocument.getVersionId(), receivedFromJabberId, JabberIdBuilder.parseUsername(preferences.getUsername()), currentDateTime());
final Document d = get(document.getId()); auditor.recieve(d.getId(), xmppDocument.getVersionId(), receivedFromJabberId, currentUserId(), currentDateTime()); notifyUpdate_objectReceived(d);
void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { final JabberId receivedFromJabberId = JabberIdBuilder.parseUsername(xmppDocument.getReceivedFrom()); Document document = get(xmppDocument.getUniqueId()); lo...
if(iSModel.isLoggedInUserKeyHolder(document.getId())) { final InternalArtifactModel iAModel = getInternalArtifactModel(); iAModel.applyFlagKey(document.getId());
if(!iSModel.isLoggedInUserKeyHolder(document.getId())) { lock(document.getId());
private void receiveUpdate(final XMPPDocument xmppDocument, final Document document) throws FileNotFoundException, IOException, ParityException { final DocumentVersion version = new DocumentVersion(); version.setArtifactId(document.getId()); version.setArtifactType(document.getType()); version.setArtifactUniqu...
else { lock(document.getId()); }
private void receiveUpdate(final XMPPDocument xmppDocument, final Document document) throws FileNotFoundException, IOException, ParityException { final DocumentVersion version = new DocumentVersion(); version.setArtifactId(document.getId()); version.setArtifactType(document.getType()); version.setArtifactUniqu...
notifyUpdate_objectReceived(document);
private void receiveUpdate(final XMPPDocument xmppDocument, final Document document) throws FileNotFoundException, IOException, ParityException { final DocumentVersion version = new DocumentVersion(); version.setArtifactId(document.getId()); version.setArtifactType(document.getType()); version.setArtifactUniqu...
smackVCard.setEmailHome(vCard.getEmail());
smackVCard.setEmailWork(vCard.getEmail());
void updateVCard(final JabberId jabberId, final UserVCard vCard) throws SmackException { logger.info("[LMODEL] [XMPP USER] [UPDATE VCARD]"); logger.debug(jabberId); logger.debug(vCard); try { final VCard smackVCard = new VCard(); smackVCard.load(xmppCore....
applyColorChange(jLabel);
private JLabel doCreateLink(final String text, final Font font) { final JLabel jLabel = doCreate(text, font, LINK_FOREGROUND); applyHandCursor(jLabel); return jLabel; }
protected ComponentFactory() { super(); }
protected ComponentFactory() { super(); this.logger = LoggerFactory.getLogger(getClass()); }
protected ComponentFactory() { super(); }
final Cursor handCursor = new Cursor(Cursor.HAND_CURSOR);
protected void applyHandCursor(final Component component) { component.addMouseListener(new MouseAdapter() { final Cursor originalCursor = component.getCursor(); final Cursor handCursor = new Cursor(Cursor.HAND_CURSOR); public void mouseEntered(final MouseEvent e) { component.setCursor(handCursor); } publ...
private XMPPDocument(final byte[] content, final String createdBy, final Calendar createdOn, final String description, final String name, final UUID uniqueId, final String updatedBy, final Calendar updatedOn, final Long versionId) { super(); this.content = new byte[content.length]; System.arraycopy(content, 0, this.con...
public XMPPDocument() { super(); }
private XMPPDocument(final byte[] content, final String createdBy, final Calendar createdOn, final String description, final String name, final UUID uniqueId, final String updatedBy, final Calendar updatedOn, final Long versionId) { super(); this.content = new byte[content.length]; System.arraycopy(content, 0...
final String description, final String name, final UUID uniqueId,
final String description, final String name, final String receivedFrom, final UUID uniqueId,
public static XMPPDocument create(final byte[] content, final String createdBy, final Calendar createdOn, final String description, final String name, final UUID uniqueId, final String updatedBy, final Calendar updatedOn, final Long versionId) { return new XMPPDocument(content, createdBy, createdOn, descripti...
name, uniqueId, updatedBy, updatedOn, versionId);
name, receivedFrom, uniqueId, updatedBy, updatedOn, versionId);
public static XMPPDocument create(final byte[] content, final String createdBy, final Calendar createdOn, final String description, final String name, final UUID uniqueId, final String updatedBy, final Calendar updatedOn, final Long versionId) { return new XMPPDocument(content, createdBy, createdOn, descripti...
if (e.isPopupTrigger()) jList.putClientProperty(CPK_IS_POPUP_TRIGGER, Boolean.TRUE); else jList.putClientProperty(CPK_IS_POPUP_TRIGGER, Boolean.FALSE);
if (e.isPopupTrigger()) { jList.setSelectedIndex(jList.locationToIndex(e.getPoint())); popupDelegate.initialize((Component) e.getSource(), e.getX(), e.getY()); ((DefaultVersionCell) jList.getSelectedValue()).showPopup(); }
private void jListMousePressed(final JList jList, final java.awt.event.MouseEvent e) { logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) jList.putClientProperty(CPK_IS_POPUP_TRIGGER, Boolean.TRUE); else jList.putClientProperty(CPK_IS_...
final Boolean isPopupTrigger = (Boolean) jList.getClientProperty(CPK_IS_POPUP_TRIGGER); if (null != isPopupTrigger && isPopupTrigger.booleanValue()) {
if (e.isPopupTrigger()) {
private void jListMouseReleased(final JList jList, final java.awt.event.MouseEvent e) { logger.logApiId(); logger.logVariable("e", e); final Boolean isPopupTrigger = (Boolean) jList.getClientProperty(CPK_IS_POPUP_TRIGGER); if (null != isPopupTrigger && isPopupTrigger.booleanVa...
public Boolean isKeyHolder() { return ArtifactUtil.isKeyHolder(getId()); }
public Boolean isKeyHolder() { return keyHolder; }
public Boolean isKeyHolder() { return ArtifactUtil.isKeyHolder(getId()); }
deleteData.set(DeleteDraft.DataKey.CONTAINER_ID, getId());
deleteDraftData.set(DeleteDraft.DataKey.CONTAINER_ID, getId());
void show(final Component invoker, final MouseEvent e) { final JPopupMenu jPopupMenu = MenuFactory.createPopup(); if (!isDraft()) { final Data createDraftData = new Data(1); createDraftData.set(CreateDraft.DataKey.CONTAINER_ID, getId()); jPopupMenu.add(popupItemFactory...
jFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
private JFileChooser getJFileChooserForFileSelection() { if(null == jFileChooser) { jFileChooser = new JFileChooser(); jFileChooser.setMultiSelectionEnabled(Boolean.TRUE); jFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); } jFileChooser.setCurrentDirectory(persistenc...
jFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
private JFileChooser getJFileChooserForFileSelection() { if(null == jFileChooser) { jFileChooser = new JFileChooser(); jFileChooser.setMultiSelectionEnabled(Boolean.TRUE); jFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); } jFileChooser.setCurrentDirectory(persistenc...
jFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
private JFileChooser getJFileChooserForFolderSelection() { if(null == jFileChooser) { jFileChooser = new JFileChooser(); jFileChooser.setMultiSelectionEnabled(Boolean.FALSE); jFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); } jFileChooser.setCur...
jFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
private JFileChooser getJFileChooserForFolderSelection() { if(null == jFileChooser) { jFileChooser = new JFileChooser(); jFileChooser.setMultiSelectionEnabled(Boolean.FALSE); jFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); } jFileChooser.setCur...
public void mouseClicked(java.awt.event.MouseEvent evt) {
public void mouseClicked(final java.awt.event.MouseEvent evt) {
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JScrollPane versionsJScrollPane; versionsJSplitPane = new javax.swing.JSplitPane(); leftJPanel = new javax.swing.JPanel(); version...
public void mousePressed(java.awt.event.MouseEvent evt) {
public void mousePressed(final java.awt.event.MouseEvent evt) {
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JScrollPane versionsJScrollPane; versionsJSplitPane = new javax.swing.JSplitPane(); leftJPanel = new javax.swing.JPanel(); version...
public void mouseReleased(java.awt.event.MouseEvent evt) {
public void mouseReleased(final java.awt.event.MouseEvent evt) {
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JScrollPane versionsJScrollPane; versionsJSplitPane = new javax.swing.JSplitPane(); leftJPanel = new javax.swing.JPanel(); version...
public void mouseClicked(java.awt.event.MouseEvent evt) {
public void mouseClicked(final java.awt.event.MouseEvent evt) {
public void mouseClicked(java.awt.event.MouseEvent evt) { versionsJListMouseClicked(evt); }
public void mousePressed(java.awt.event.MouseEvent evt) {
public void mousePressed(final java.awt.event.MouseEvent evt) {
public void mousePressed(java.awt.event.MouseEvent evt) { versionsJListMousePressed(evt); }
public void mouseReleased(java.awt.event.MouseEvent evt) {
public void mouseReleased(final java.awt.event.MouseEvent evt) {
public void mouseReleased(java.awt.event.MouseEvent evt) { versionsJListMouseReleased(evt); }
public void mouseClicked(java.awt.event.MouseEvent evt) {
public void mouseClicked(final java.awt.event.MouseEvent evt) {
public void mouseClicked(java.awt.event.MouseEvent evt) { versionsContentJListMouseClicked(evt); }
public void mousePressed(java.awt.event.MouseEvent evt) {
public void mousePressed(final java.awt.event.MouseEvent evt) {
public void mousePressed(java.awt.event.MouseEvent evt) { versionsContentJListMousePressed(evt); }
public void mouseReleased(java.awt.event.MouseEvent evt) {
public void mouseReleased(final java.awt.event.MouseEvent evt) {
public void mouseReleased(java.awt.event.MouseEvent evt) { versionsContentJListMouseReleased(evt); }
this.logger = LoggerFactory.getLogger(getClass());
public Tray(final SystemApplication systemApplication) { super(); this.menuBuilder = new TrayMenuBuilder(systemApplication); this.isInstalled = Boolean.FALSE; this.systemApplication = systemApplication; }
updateMenu();
reloadConnectionStatus(systemApplication.getConnectionStatus());
public void install() { systemTrayIcon = new TrayIcon(readTrayIcon()); systemTrayIcon.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { if(systemApplication.isBrowserRunning()) systemApplication.runMoveBrowserToFront(); else...
jPopupMenu.add(createMenuItem( "Menu.Browser", new ActionListener() { public void actionPerformed(final ActionEvent e) { application.runRestoreBrowser(); }}));
jPopupMenu.add(browser); jPopupMenu.add(editProfile);
JPopupMenu createPopup() { final JPopupMenu jPopupMenu = MenuFactory.createPopup(); jPopupMenu.add(createMenuItem( "Menu.Browser", new ActionListener() { public void actionPerformed(final ActionEvent e) { application.runRestoreBro...
jPopupMenu.add(createMenuItem( "Menu.About", new ActionListener() { public void actionPerformed(final ActionEvent e) { application.displayAbout(); } }));
jPopupMenu.add(about);
JPopupMenu createPopup() { final JPopupMenu jPopupMenu = MenuFactory.createPopup(); jPopupMenu.add(createMenuItem( "Menu.Browser", new ActionListener() { public void actionPerformed(final ActionEvent e) { application.runRestoreBro...
jPopupMenu.add(createMenuItem( "Menu.Exit", new ActionListener() { public void actionPerformed(ActionEvent e) { application.runExitPlatform(); } }));
jPopupMenu.add(exit);
JPopupMenu createPopup() { final JPopupMenu jPopupMenu = MenuFactory.createPopup(); jPopupMenu.add(createMenuItem( "Menu.Browser", new ActionListener() { public void actionPerformed(final ActionEvent e) { application.runRestoreBro...
removeAll();
jListModel.clear();
public void reload() { removeAll(); if(null != input && 2 == ((Object[]) input).length) { reloadSystemMessages(); reloadDocuments(); } final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.gridx = 0; c.weightx = 1.0; c.weighty = 1.0; add(LabelFactory.create(), c.clone(...
final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.gridx = 0; c.weightx = 1.0; c.weighty = 1.0; add(LabelFactory.create(), c.clone()); revalidate(); repaint();
public void reload() { removeAll(); if(null != input && 2 == ((Object[]) input).length) { reloadSystemMessages(); reloadDocuments(); } final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.gridx = 0; c.weightx = 1.0; c.weighty = 1.0; add(LabelFactory.create(), c.clone(...
final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.weightx = 1.0; c.insets = new Insets(0, 0, 1, 0);
private void reloadDocuments() { final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.weightx = 1.0; c.insets = new Insets(0, 0, 1, 0); final Object[] elements = ((CompositeFlatContentProvider) contentProvider).getElements(1, ((Object[]) input)[1]); Brows...
BrowserMainListItem mainListItem;
private void reloadDocuments() { final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.weightx = 1.0; c.insets = new Insets(0, 0, 1, 0); final Object[] elements = ((CompositeFlatContentProvider) contentProvider).getElements(1, ((Object[]) input)[1]); Brows...
mainListItem = new BrowserMainListItemDocument(this, (Document) element); add(mainListItem, c.clone());
jListModel.addElement(new DocumentListItem((Document) element));
private void reloadDocuments() { final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.weightx = 1.0; c.insets = new Insets(0, 0, 1, 0); final Object[] elements = ((CompositeFlatContentProvider) contentProvider).getElements(1, ((Object[]) input)[1]); Brows...
final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.weightx = 1.0; c.insets = new Insets(0, 0, 1, 0);
private void reloadSystemMessages() { final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.weightx = 1.0; c.insets = new Insets(0, 0, 1, 0); final Object[] elements = ((CompositeFlatContentProvider) contentProvider).getElements(0, ((Object[]) input)[0]); ...
BrowserMainListItem mainListItem;
private void reloadSystemMessages() { final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.weightx = 1.0; c.insets = new Insets(0, 0, 1, 0); final Object[] elements = ((CompositeFlatContentProvider) contentProvider).getElements(0, ((Object[]) input)[0]); ...
mainListItem = new BrowserMainListItemSystemMessage(this, (Message) element); add(mainListItem, c.clone());
jListModel.addElement(BrowserMainListItem.create((Message) element));
private void reloadSystemMessages() { final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.weightx = 1.0; c.insets = new Insets(0, 0, 1, 0); final Object[] elements = ((CompositeFlatContentProvider) contentProvider).getElements(0, ((Object[]) input)[0]); ...
public void setState(State state) {}
public void setState(final State state) {}
public void setState(State state) {}
catch(final Throwable t) { logger.fatal("[RMODEL] [PLUGIN] [INIT CONTROLLER]", t); }
private void initializeController(final String controllerName) { try { controllers.add((IQHandler) Class.forName(controllerName).newInstance()); } catch(final ClassNotFoundException cnfx) { logger.fatal("[RMODEL] [PLUGIN] [INIT CONTROLLER]", cnfx); } catch(final IllegalAccessE...
initializeController("com.thinkparity.server.handler.document.Reactivate");
private void initializeControllers() { synchronized(controllers) { initializeController("com.thinkparity.server.handler.artifact.AcceptKeyRequest"); initializeController("com.thinkparity.server.handler.artifact.CloseArtifact"); initializeController("com.thinkparity.server.handle...
public AirBrush(String plugname, String hostname, Integer port) { connect(plugname, hostname, port);
public AirBrush(String moduleName, String hostname, Integer port) { connect(moduleName, hostname, port); this.moduleName = moduleName;
public AirBrush(String plugname, String hostname, Integer port) { connect(plugname, hostname, port); }
return plug.getParameterString(key);
System.err.println("Getting parameter " + moduleName + ":" + key); return plug.getParameterString(moduleName, key);
public String getParameterString(String key) { return plug.getParameterString(key); }