rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload();
((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE);
public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); }
((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE);
((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload();
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE); }
((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE);
((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.TRUE);
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE); }
((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.TRUE);
((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, remoteReload);
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.TRUE); }
((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, remoteReload);
((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadSystemMessage(systemMessageId);
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, remoteReload); }
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadSystemMessage(systemMessageId); }
public void run() { window.open(avatar); }
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadSystemMessage(systemMessageId); }
public void removeSearchFilter() { SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).removeFilter(searchFilter); } }); }
public void removeSearchFilter() { getMainAvatar().removeSearchFilter(); }
public void removeSearchFilter() { SwingUtilities.invokeLater(new Runnable() { public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).removeFilter(searchFilter); } }); }
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).removeFilter(searchFilter); }
public void run() { window.open(avatar); }
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).removeFilter(searchFilter); }
return CollectionsUtil.proxy(getInternalArtifactModel().readTeam(containerId));
final Set<User> team = getInternalArtifactModel().readTeam(containerId); if(team.isEmpty()) { return new ArrayList<User>(0); } else { return CollectionsUtil.proxy(getInternalArtifactModel().readTeam(containerId)); }
List<User> readTeam(final Long containerId) { logger.info(getApiId("[READ TEAM]")); logger.debug(containerId); return CollectionsUtil.proxy(getInternalArtifactModel().readTeam(containerId)); }
getContainerModel().createDraft(containerId); browser.fireContainerDraftCreated(containerId, Boolean.FALSE);
getContainerModel().createDraft(containerId);
public void invoke(final Data data) { final Long containerId = (Long) data.get(DataKey.CONTAINER_ID); getContainerModel().createDraft(containerId); browser.fireContainerDraftCreated(containerId, Boolean.FALSE); }
this.javaFileListFlavor = DataFlavor.javaFileListFlavor;
public CreateDocumentTxHandler(final Browser browser) { super(); this.browser = browser; this.dModel = browser.getDocumentModel(); this.javaFileListFlavor = DataFlavor.javaFileListFlavor; this.logger = LoggerFactory.getLogger(getClass()); }
List data = null; try { data = (List) t.getTransferData(javaFileListFlavor); }
File[] files = null; try { files = TxUtils.extractFiles(t); } catch(final IOException iox) { logger.error(IMPORT_IOX, iox); }
public boolean importData(final JComponent comp, final Transferable t) { if(!canImport(comp, t.getTransferDataFlavors())) { return false; } List data = null; try { data = (List) t.getTransferData(javaFileListFlavor); } catch(final UnsupportedFlavorException ufx) { logger.error...
return false; } catch(final IOException iox) { logger.error(IMPORT_IOX, iox); return false;
public boolean importData(final JComponent comp, final Transferable t) { if(!canImport(comp, t.getTransferDataFlavors())) { return false; } List data = null; try { data = (List) t.getTransferData(javaFileListFlavor); } catch(final UnsupportedFlavorException ufx) { logger.error...
for(final Object datum : data) { final File file = (File) datum;
for(final File file : files) {
public boolean importData(final JComponent comp, final Transferable t) { if(!canImport(comp, t.getTransferDataFlavors())) { return false; } List data = null; try { data = (List) t.getTransferData(javaFileListFlavor); } catch(final UnsupportedFlavorException ufx) { logger.error...
final Properties log4j = ConfigFactory.newInstance("log4j.properties"); switch (Version.getMode()) { case DEVELOPMENT: log4j.setProperty("log4j.logger.com.thinkparity", "DEBUG,FILE"); break; case DEMO: case PRODUCTION: log4j.setProperty("log4j.logger.com.thinkparity", "WARN,FILE"); break; case TESTING: log4j.setPropert...
final Properties logging = new Properties(); logging.setProperty("log4j.renderer.java.awt.Point", "com.thinkparity.codebase.log4j.or.PointRenderer"); logging.setProperty("log4j.renderer.java.awt.event.MouseEvent", "com.thinkparity.codebase.log4j.or.MouseEventRenderer"); PropertyConfigurator.configure(logging);
private static void initLogging(final Workspace workspace) { final Properties log4j = ConfigFactory.newInstance("log4j.properties"); switch (Version.getMode()) { case DEVELOPMENT: log4j.setProperty("log4j.logger.com.thinkparity", "DEBUG,FILE"); break; case DEMO: ...
if(jListModel.isEmpty()) { getController().disableHistory(); } else { getController().enableHistory(); }
public void reloadDocument(final Long documentId, final Boolean remoteReload) { final DisplayDocument displayDocument = getDisplayDocument(documentId); // if the display document is null; we can assume the document has been // deleted (it's not longer being created by the provider); so we find // the document and ...
applySize(content, 472);
applySize(content, 469);
private Display createContent() { if(null == content) { content = new ContentDisplay(); // HEIGHT ContentDisplay 472 applySize(content, 472); } return content; }
applySize(status, 20);
applySize(status, 23);
private Display createStatus() { if(null == status) { status = new StatusDisplay(); // HEIGHT Status Display 20 applySize(status, 20); } return status; }
final Data input = new Data(1);
final Data input = new Data(2);
void displayMainStatusAvatar() { final Data input = new Data(1); input.set(MainStatusAvatar.DataKey.PROFILE, getProfile()); setInput(AvatarId.MAIN_STATUS, input); displayStatus(AvatarId.MAIN_STATUS); }
input.set(MainStatusAvatar.DataKey.CONNECTION, getConnection());
void displayMainStatusAvatar() { final Data input = new Data(1); input.set(MainStatusAvatar.DataKey.PROFILE, getProfile()); setInput(AvatarId.MAIN_STATUS, input); displayStatus(AvatarId.MAIN_STATUS); }
if (vtl == null || vtl.length() == 0) { return null; }
public String eval(Context ctx, String vtl) throws Exception { StringWriter sw = new StringWriter(); boolean success = Velocity.evaluate(ctx, sw, LOG_TAG, vtl); if (success) { return sw.toString(); } /* or would it be preferable to return the original? */ ...
final List<TeamMember> team = getInternalArtifactModel().readTeam2(artifactId);
final List<TeamMember> team = getArtifactModel().readTeam2(artifactId);
protected void assertNotTeamMember(final Object assertion, final Long artifactId, final JabberId userId) { final List<TeamMember> team = getInternalArtifactModel().readTeam2(artifactId); final User user = getInternalUserModel().read(userId); if (null != user) Assert.assertNotTrue(ass...
final List<TeamMember> team = getInternalArtifactModel().readTeam2(artifactId);
final List<TeamMember> team = getArtifactModel().readTeam2(artifactId);
protected void assertTeamMember(final Object assertion, final Long artifactId, final JabberId userId) { final List<TeamMember> team = getInternalArtifactModel().readTeam2(artifactId); Assert.assertNotTrue(assertion, contains(team, getInternalUserModel().read(userId))); }
return getInternalArtifactModel().doesVersionExist(artifactId, versionId);
return getArtifactModel().doesVersionExist(artifactId, versionId);
protected Boolean doesExistVersion(final Long artifactId, final Long versionId) { return getInternalArtifactModel().doesVersionExist(artifactId, versionId); }
final InternalArtifactModel artifactModel = getInternalArtifactModel();
final InternalArtifactModel artifactModel = getArtifactModel();
protected Boolean isKeyHolder(final Long artifactId) throws ParityException { assertOnline("USER NOT ONLINE"); final InternalArtifactModel artifactModel = getInternalArtifactModel(); return artifactModel.isFlagApplied(artifactId, ArtifactFlag.KEY) && isRemoteKeyHolder(artifactModel.r...
final List<TeamMember> team = getInternalArtifactModel().readTeam2(artifactId);
final List<TeamMember> team = getArtifactModel().readTeam2(artifactId);
protected TeamMember localTeamMember(final Long artifactId) { final List<TeamMember> team = getInternalArtifactModel().readTeam2(artifactId); return get(team, localUser()); }
return getInternalArtifactModel().readUniqueId(artifactId);
return getArtifactModel().readUniqueId(artifactId);
protected UUID readArtifactUniqueId(final Long artifactId) { return getInternalArtifactModel().readUniqueId(artifactId); }
final Long latestVersionId = getInternalArtifactModel().readLatestVersionId(artifactId);
final Long latestVersionId = getArtifactModel().readLatestVersionId(artifactId);
protected Long readNextVersionId(final Long artifactId) { final Long latestVersionId = getInternalArtifactModel().readLatestVersionId(artifactId); return null == latestVersionId ? Versioning.START : latestVersionId + Versioning.INCREMENT; }
assertNotNull(project);
public void testGet() { try { Project project; for(Fixture datum : data) { project = datum.projectModel.get(datum.projectId); assertNotNull(project); assertEquals(datum.expectedProject, project); } } catch(Throwable t) { fail(getFailMessage(t)); } }
private TxUtils() { super(); }
private TxUtils() { super(); this.logger = LoggerFactory.getLogger(getClass()); }
private TxUtils() { super(); }
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public Long create(final String artifactId, final String groupId, final String path, final Library.Type type, final String version) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("library:create"); session.set...
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public void createBytes(final Long libraryId, final byte[] bytes, final String checksum) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("library:createbytes"); session.setParameter("id", libraryId); session.se...
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public void delete(final Long libraryId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("library:delete"); session.setParameter("id", libraryId); session.execute(); } catch(final Exception x) { s...
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public Library read(final Long libraryId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("library:read"); session.setParameter("id", libraryId); session.execute(); if(session.containsResult()) { return extract...
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public LibraryBytes readBytes(final Long libraryId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("library:readbytes"); session.setParameter("id", libraryId); session.execute(); if(session.containsResult()) {...
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public byte[] readSmallBytes(final Long libraryId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("library:readbytes"); session.setParameter("id", libraryId); session.execute(); if(session.containsResult()) { ...
this.logger = LoggerFactory.getLogger(getClass()); logger.info("l18Context:" + l18Context);
public ResourceBundleHelper(final ResourceBundle bundle, final String l18Context) { super(); this.bundle = bundle; this.l18Context = l18Context; }
this.browser = browser;
public ApplyFlagSeen(final Browser browser) { super(ActionId.ARTIFACT_APPLY_FLAG_SEEN); }
getArtifactModel().applyFlagSeen(artifactId);
final ArtifactType artifactType = (ArtifactType) data.get(DataKey.ARTIFACT_TYPE); if (!getArtifactModel().hasBeenSeen(artifactId)) { getArtifactModel().applyFlagSeen(artifactId); browser.fireArtifactFlagSeen(artifactId, artifactType, Boolean.FALSE); }
public void invoke(final Data data) { final Long artifactId = (Long) data.get(DataKey.ARTIFACT_ID); getArtifactModel().applyFlagSeen(artifactId); }
if(null == region) { return Boolean.FALSE; } if(null == point) { return Boolean.FALSE; }
private Boolean doesRegionContain(final Rectangle region, final Point point) { return (point.x >= region.x) && (point.x < region.x + region.width) && (point.y >= region.y) && (point.y < region.y + region.height); }
this.touchedDocuments = new LinkedList<DisplayDocument>();
BrowserMainDocumentModel(final Browser browser) { super(); this.browser = browser; this.documentFilter = new FilterChain<Artifact>(); this.documents = new LinkedList<DisplayDocument>(); this.jListModel = new DefaultListModel(); this.logger = browser.getPlatform().getLogger(...
for(final ListItem li2 : modelItems) { if(li2 instanceof DocumentListItem) { if(!visibleDocuments.contains(((DocumentListItem) li2).getDisplayDocument())) { jListModel.removeElement(li2);
DocumentListItem dli; int touchedIndex; for(int i = 0; i < modelItems.length; i++) { li = modelItems[i]; if(li instanceof DocumentListItem) { dli = (DocumentListItem) li; if(!visibleDocuments.contains(dli.getDisplayDocument())) jListModel.removeElement(li); if(touchedDocuments.contains(dli.getDisplayDocument())) { t...
private void syncDocuments() { // sync the documents with the visible documents visibleDocuments.clear(); visibleDocuments.addAll(documents); ModelFilterManager.filter(visibleDocuments, documentFilter); // sync visible documents with the swing list's model ListItem li; ...
touchedDocuments.clear();
private void syncDocuments() { // sync the documents with the visible documents visibleDocuments.clear(); visibleDocuments.addAll(documents); ModelFilterManager.filter(visibleDocuments, documentFilter); // sync visible documents with the swing list's model ListItem li; ...
assertIsDistributed("Container has not been distributed.", containerId);
void archive(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); try { final Container container = read(containerId); getArchiveModel().archive(container.getId()); deleteLocal(container.getId()); notifyContaine...
Assert.assertNotNull(container, "Container \"{0}\" has not been archived.", uniqueId);
void restore(final UUID uniqueId) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); try { final InternalArchiveModel archiveModel = getArchiveModel(); // restore container info final Container container = archiveModel.readContainer(uniqueId); ...
int rowsDeleted = session.executeUpdate(); if(0 != rowsDeleted && 1 != rowsDeleted) throw new HypersonicException("Could not delete audit version.");
session.executeUpdate();
public void delete(final Long artifactId) throws HypersonicException { final Session session = openSession(); try { final Long[] auditIds = listAuditIds(session, artifactId); final Long[] metaDataIds = listMetaDataIds(session, auditIds); session.prepareStatement(SQL_DELETE_AUDIT_META_DATA); for(final Long me...
if(1 != session.executeUpdate())
if(auditIds.length != session.executeUpdate())
public void delete(final Long artifactId) throws HypersonicException { final Session session = openSession(); try { final Long[] auditIds = listAuditIds(session, artifactId); final Long[] metaDataIds = listMetaDataIds(session, auditIds); session.prepareStatement(SQL_DELETE_AUDIT_META_DATA); for(final Long me...
receiveKeyEvent.setArtifactVersionId(session.getLong("ARTIFACT_VERSION_ID"));
private ReceiveKeyEvent extractReceiveKey(final Session session) { final ReceiveKeyEvent receiveKeyEvent = new ReceiveKeyEvent(); receiveKeyEvent.setArtifactId(session.getLong("ARTIFACT_ID")); receiveKeyEvent.setArtifactVersionId(session.getLong("ARTIFACT_VERSION_ID")); receiveKeyEvent.setCreatedBy(session.getQual...
sendKeyEvent.setType(session.getAuditEventTypeFromInteger("ARTIFACT_AUDIT_ID"));
sendKeyEvent.setType(session.getAuditEventTypeFromInteger("ARTIFACT_AUDIT_TYPE_ID"));
private SendKeyEvent extractSendKey(final Session session) { final SendKeyEvent sendKeyEvent = new SendKeyEvent(); sendKeyEvent.setArtifactId(session.getLong("ARTIFACT_ID")); sendKeyEvent.setArtifactVersionId(session.getLong("ARTIFACT_VERSION_ID")); sendKeyEvent.setCreatedBy(session.getQualifiedUsername("CREATED_B...
return listItem.createJMenuItem("KeyRequestAccept", new ActionListener() {
final Object[] arguments = new Object[] { keyRequest.getRequestedByName() }; return listItem.createJMenuItem("KeyRequestAccept", arguments, new ActionListener() {
private JMenuItem getKeyRequestAcceptMenuItem(final ListItem listItem, final KeyRequest keyRequest) { return listItem.createJMenuItem("KeyRequestAccept", new ActionListener() { public void actionPerformed(final ActionEvent e) { runAcceptKeyRequest(listItem, document.getId(), keyRequest.getId()); } }); }
charSet = this.getContentTypeAttribute(contentType, "charset");
charSet = ImportSupport.getContentTypeAttribute(contentType, "charset");
protected Reader acquireReader(String url) throws IOException, Exception { if (!this.isAbsoluteUrl) { // for relative URLs, delegate to our peer return new StringReader(acquireString(url)); } else { // absolute URL try { ...
setPopupDelegate(model.getPopupDelegate());
setSortByDelegate(model);
ArchiveTabAvatar(final TabPanelExtension extension) { super(extension, new ArchiveTabModel(extension)); model.setSession(getSession()); setPopupDelegate(model.getPopupDelegate()); }
contactTabPanel.setExpanded(expanded);
private void doToggleExpansion(final TabPanel tabPanel) { final ContactTabPanel contactTabPanel = (ContactTabPanel) tabPanel; final Boolean expanded; if (isExpanded(contactTabPanel)) { expanded = Boolean.FALSE; } else { // NOTE-BEGIN:multi-expand to allow multiple s...
final Boolean doesVersionExist;
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, ...
doesVersionExist = artifactModel.doesVersionExist(containerId, versionId);
final Boolean doesVersionExist = artifactModel.doesVersionExist(containerId, versionId);
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, ...
doesVersionExist = Boolean.FALSE;
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, ...
public DOMTestCase(DOMTestDocumentBuilderFactory factory) { super(factory);
public DOMTestCase() {
public DOMTestCase(DOMTestDocumentBuilderFactory factory) { super(factory); framework = null; }
public Border getBorder() { if(isExpanded()) { return new Expanded(); } else { return new Default(); } }
public Border getBorder() { return new DocumentDefault(); }
public Border getBorder() { if(isExpanded()) { return new Expanded(); } else { return new Default(); } }
if(isExpanded()) { return imageCache.read(DocumentIcon.NODE_EXPANDED); } else { return imageCache.read(DocumentIcon.NODE_DEFAULT); }
return imageCache.read(DocumentIcon.NODE_DEFAULT);
public ImageIcon getNodeIcon() { if(isExpanded()) { return imageCache.read(DocumentIcon.NODE_EXPANDED); } else { return imageCache.read(DocumentIcon.NODE_DEFAULT); } }
panel.afterRepaint();
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); // update from index 0 to index 1 f...
revalidate();
validate(); for (int i = e.getIndex0(); i <= e.getIndex1(); i++) { final DefaultTabPanel panel = (DefaultTabPanel) listModel.get(i); panel.prepareForRepaintAfterValidate(); }
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); // update from index 0 to index 1 f...
revalidate();
validate(); for (int i = startIndex; i < listModel.size(); i++) { final DefaultTabPanel panel = (DefaultTabPanel) listModel.get(i); panel.prepareForRepaintAfterValidate(); }
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); // update from index 0 to index 1 f...
panel.afterRepaint();
public void contentsChanged(final ListDataEvent e) { debug(); // update from index 0 to index 1 for (int i = e.getIndex0(); i <= e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); final ...
revalidate();
validate(); for (int i = e.getIndex0(); i <= e.getIndex1(); i++) { final DefaultTabPanel panel = (DefaultTabPanel) listModel.get(i); panel.prepareForRepaintAfterValidate(); }
public void contentsChanged(final ListDataEvent e) { debug(); // update from index 0 to index 1 for (int i = e.getIndex0(); i <= e.getIndex1(); i++) { panelConstraints.gridy = i; tabJPanel.remove(i); final ...
panel.afterRepaint();
public void intervalAdded(final ListDataEvent e) { debug(); tabJPanel.remove(fillJLabel); // Adding an interval can cause the border on the interval before it to change, // so adjust the start index to one before the interval added....
revalidate();
validate(); for (int i = startIndex; i < listModel.size(); i++) { final DefaultTabPanel panel = (DefaultTabPanel) listModel.get(i); panel.prepareForRepaintAfterValidate(); }
public void intervalAdded(final ListDataEvent e) { debug(); tabJPanel.remove(fillJLabel); // Adding an interval can cause the border on the interval before it to change, // so adjust the start index to one before the interval added....
panel.afterRepaint();
public void intervalRemoved(final ListDataEvent e) { debug(); tabJPanel.remove(fillJLabel); // Removing an interval can cause the border on the interval before it to change, // so adjust the start index to one before the interval ad...
revalidate();
validate(); for (int i = startIndex; i < listModel.size(); i++) { final DefaultTabPanel panel = (DefaultTabPanel) listModel.get(i); panel.prepareForRepaintAfterValidate(); }
public void intervalRemoved(final ListDataEvent e) { debug(); tabJPanel.remove(fillJLabel); // Removing an interval can cause the border on the interval before it to change, // so adjust the start index to one before the interval ad...
addTeamMember(artifactId, remoteUser);
try { addTeamMember(artifactId, remoteUser); } catch (final TrueAssertion ta) { if ("TEAM MEMBER ALREADY ADDED".equals(ta.getMessage())) { logWarning(ta); } else { throw ta; } }
void handleTeamMemberAdded(final UUID uniqueId, final JabberId jabberId) { logApiId(); logVariable("uniqueId", uniqueId); logVariable("jabberId", jabberId); try { final Long artifactId = readId(uniqueId); // if receiving your own team member added event you have jus...
public DoubleTypeConverterImpl(ValueFactory factory) { super(factory); }
public DoubleTypeConverterImpl() { super(); }
public DoubleTypeConverterImpl(ValueFactory factory) { super(factory); }
final ContainerDraft draft = readDraft(containerId); if (null == draft) { logInfo("Draft did not previously exist for {0}.", name); } else { for (final Artifact artifact : draft.getArtifacts()) { containerIO.deleteDraftArtifactRel(containerId, artifact.getId()); } containerIO.deleteDraft(containerId); }
void handlePublished(final UUID uniqueId, final Long versionId, final String name, final Integer artifactCount, final JabberId publishedBy, final List<JabberId> publishedTo, final Calendar publishedOn) { logApiId(); logVariable("uniqueId", uniqueId); logVariable...
LOGGER.logVariable("streamId", streamOffset); LOGGER.logVariable("streamId", streamSize);
LOGGER.logVariable("streamOffset", streamOffset); LOGGER.logVariable("streamSize", streamSize);
public void run() { LOGGER.logApiId(); LOGGER.logVariable("streamId", streamId); LOGGER.logVariable("streamId", streamOffset); LOGGER.logVariable("streamId", streamSize); try { final OutputStream output = streamServer.openOutputStream(streamSession, strea...
public void objectClosed(CloseEvent closeEvent) { controller.reloadMainBrowserAvatar(); }
private UpdateListener createDocumentModelUpdateListener() { return new UpdateListener() { public void objectDeleted(final DeleteEvent e) { controller.reloadMainBrowserAvatar(); } public void objectReceived(final UpdateEvent e) { controller.reloadMainBrowserAvatar(); } public void objectUpdated(final ...
private JMenu getSendVersionMenu() { final Contact[] team = avatar.getTeam(historyItem.getDocumentId());
private JMenu getSendVersionMenu(final Contact[] team) {
private JMenu getSendVersionMenu() { final Contact[] team = avatar.getTeam(historyItem.getDocumentId()); final JMenu jMenu = MenuFactory.create(getString("SendVersion")); for(final Contact teamMember : team) { jMenu.add(createJMenuItem( "SendVersion.TeamMember", ...
jPopupMenu.add(getSendVersionMenu());
if(!isClosed()) { final Contact[] team = avatar.getTeam(historyItem.getDocumentId()); if(0 < team.length) { jPopupMenu.add(getSendVersionMenu(team)); } }
public void populatePopupMenu(final MouseEvent e, final JPopupMenu jPopupMenu) { if(isVersionAttached()) { jPopupMenu.add(getOpenVersionMenuItem()); jPopupMenu.add(getSendVersionMenu()); } }
return readProject(index.lookupXmlFile(id));
final File xmlFile = index.lookupXmlFile(id); if(null == xmlFile) { return null; } else { return readProject(xmlFile); }
public Project get(final UUID id) throws FileNotFoundException, IOException { logger.info("get(UUID)"); logger.debug(id); final Index index = readIndex(getIndexXmlFile()); return readProject(index.lookupXmlFile(id)); }
setOpaque(false);
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing...
sendToJPanel.setOpaque(false);
private void initComponents() { javax.swing.JButton cancelJButton; javax.swing.JLabel contactsJLabel; javax.swing.JScrollPane contactsJScrollPane; javax.swing.JSeparator jSeparator_1; javax.swing.JLabel teamJLabel; javax.swing.JScrollPane teamJScrollPane; javax.swing...
version.setComment(session.getString("COMMENT"));
ContainerVersion extractVersion(final Session session) { final ContainerVersion version = new ContainerVersion(); version.setArtifactId(session.getLong("CONTAINER_ID")); version.setArtifactType(session.getTypeFromInteger("ARTIFACT_TYPE_ID")); version.setArtifactUniqueId(session.getUniqueId("...
response.getOutputStream().print(html.toString());
response.getWriter().print(html.toString());
protected void error(HttpServletRequest request, HttpServletResponse response, Exception cause) throws ServletException { try { StringBuffer html = new StringBuffer(); html.append("<html>"); html.append("<titl...
ServletOutputStream output = response.getOutputStream();
PrintWriter pw = response.getWriter();
protected void mergeTemplate(Template template, Context context, HttpServletResponse response) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, IOException, UnsupportedEncodingExce...
vw = new VelocityWriter(new OutputStreamWriter(output, encoding), 4*1024, true);
vw = new VelocityWriter(pw, 4*1024, true);
protected void mergeTemplate(Template template, Context context, HttpServletResponse response) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, IOException, UnsupportedEncodingExce...
vw.recycle(new OutputStreamWriter(output, encoding));
vw.recycle(pw);
protected void mergeTemplate(Template template, Context context, HttpServletResponse response) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, IOException, UnsupportedEncodingExce...
* OutputStreamWriter to null to keep memory free while
* PrintWriter to null to keep memory free while
protected void mergeTemplate(Template template, Context context, HttpServletResponse response) throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, IOException, UnsupportedEncodingExce...
super(parent, name, description, createdOn, createdBy, keyHolder, id);
super(parent, name, description, createdOn, createdBy, id);
public Project(final Project parent, final String name, final Calendar createdOn, final String createdBy, final String keyHolder, final String description, final File directory, final UUID id) { super(parent, name, description, createdOn, createdBy, keyHolder, id); this.directory = directory; // sub-projects do...
javax.swing.JLabel closeJLabel = new JLabel(ImageIOUtil.readIcon("BrowserTitle_Close.png"));
javax.swing.JLabel closeJLabel = new JLabel(CLOSE_ICON);
private JLabel getCloseButton() { javax.swing.JLabel closeJLabel = new JLabel(ImageIOUtil.readIcon("BrowserTitle_Close.png")); closeJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { closeJLabelMouseClicked(ev...
private JLabel getMaximizeButton() { javax.swing.JLabel maximizeJLabel = new JLabel(ImageIOUtil.readIcon("BrowserTitle_Maximize.png"));
private JLabel getMaximizeButton(final Boolean maximized) { javax.swing.JLabel maximizeJLabel = new JLabel(); if (maximized) { maximizeJLabel.setIcon(UNMAXIMIZE_ICON); } else { maximizeJLabel.setIcon(MAXIMIZE_ICON); }
private JLabel getMaximizeButton() { javax.swing.JLabel maximizeJLabel = new JLabel(ImageIOUtil.readIcon("BrowserTitle_Maximize.png")); maximizeJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { maximizeJLabel...
closeJLabelMouseClicked(evt);
maximizeJLabelMouseClicked(evt);
public void mouseClicked(java.awt.event.MouseEvent evt) { closeJLabelMouseClicked(evt); }
closeJLabelMouseEntered(evt);
maximizeJLabelMouseEntered(evt);
public void mouseEntered(java.awt.event.MouseEvent evt) { closeJLabelMouseEntered(evt); }
closeJLabelMouseExited(evt);
maximizeJLabelMouseExited(evt);
public void mouseExited(java.awt.event.MouseEvent evt) { closeJLabelMouseExited(evt); }
javax.swing.JLabel minimizeJLabel = new JLabel(ImageIOUtil.readIcon("BrowserTitle_Minimize.png"));
javax.swing.JLabel minimizeJLabel = new JLabel(MINIMIZE_ICON);
private JLabel getMinimizeButton() { javax.swing.JLabel minimizeJLabel = new JLabel(ImageIOUtil.readIcon("BrowserTitle_Minimize.png")); minimizeJLabel.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { minimizeJLabel...
maximizeJLabelMouseClicked(evt);
minimizeJLabelMouseClicked(evt);
public void mouseClicked(java.awt.event.MouseEvent evt) { maximizeJLabelMouseClicked(evt); }
maximizeJLabelMouseEntered(evt);
minimizeJLabelMouseEntered(evt);
public void mouseEntered(java.awt.event.MouseEvent evt) { maximizeJLabelMouseEntered(evt); }
maximizeJLabelMouseExited(evt);
minimizeJLabelMouseExited(evt);
public void mouseExited(java.awt.event.MouseEvent evt) { maximizeJLabelMouseExited(evt); }
public void mouseClicked(java.awt.event.MouseEvent evt) { minimizeJLabelMouseClicked(evt);
public void mouseClicked(final MouseEvent e) { browser.runProfileSignUp();
public void mouseClicked(java.awt.event.MouseEvent evt) { minimizeJLabelMouseClicked(evt); }
public void mouseEntered(java.awt.event.MouseEvent evt) { minimizeJLabelMouseEntered(evt);
public void mouseEntered(MouseEvent e) { final String text = signUpJLabel.getText(); signUpJLabel.setText(MessageFormat.format("<html><u>{0}</u></html>", text));
public void mouseEntered(java.awt.event.MouseEvent evt) { minimizeJLabelMouseEntered(evt); }
public void mouseExited(java.awt.event.MouseEvent evt) { minimizeJLabelMouseExited(evt);
public void mouseExited(final MouseEvent e) { signUpJLabel.setText(MessageFormat.format("<html>{0}</html>", originalText));
public void mouseExited(java.awt.event.MouseEvent evt) { minimizeJLabelMouseExited(evt); }
((JLabel) evt.getSource()).setIcon(MAX_ROLLOVER_ICON);
if (browser.isBrowserWindowMaximized()) { ((JLabel) evt.getSource()).setIcon(UNMAXIMIZE_ROLLOVER_ICON); } else { ((JLabel) evt.getSource()).setIcon(MAXIMIZE_ROLLOVER_ICON); }
private void maximizeJLabelMouseEntered(java.awt.event.MouseEvent evt) { ((JLabel) evt.getSource()).setIcon(MAX_ROLLOVER_ICON); }
((JLabel) evt.getSource()).setIcon(MAX_ICON);
if (browser.isBrowserWindowMaximized()) { ((JLabel) evt.getSource()).setIcon(UNMAXIMIZE_ICON); } else { ((JLabel) evt.getSource()).setIcon(MAXIMIZE_ICON); }
private void maximizeJLabelMouseExited(java.awt.event.MouseEvent evt) { ((JLabel) evt.getSource()).setIcon(MAX_ICON); }
((JLabel) evt.getSource()).setIcon(MIN_ROLLOVER_ICON);
((JLabel) evt.getSource()).setIcon(MINIMIZE_ROLLOVER_ICON);
private void minimizeJLabelMouseEntered(java.awt.event.MouseEvent evt) { ((JLabel) evt.getSource()).setIcon(MIN_ROLLOVER_ICON); }