rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
publicCalendarRootPath = "/" + getSyspars().getPublicCalendarRoot(); userCalendarRootPath = "/" + getSyspars().getUserCalendarRoot(); | public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb... | |
addUser(new BwUser(authenticatedUser)); | addNewUser(new BwUser(authenticatedUser)); | public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb... |
events = new Events(this, access, sess, this.user, debug); | events = new Events(this, access, this.user, debug); | public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb... |
categories = new EventProperties(this, | calendars = new Calendars(this, access, this.user, debug); categories = new EventProperties(this, access, this.user, | public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb... |
locations = new EventProperties(this, | locations = new EventProperties(this, access, this.user, | public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb... |
sponsors = new EventProperties(this, | sponsors = new EventProperties(this, access, this.user, | public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb... |
if (userCreated) { calendars.addNewCalendars(); } | public boolean init(String authenticatedUser, String user, boolean publicAdmin, boolean superUser, Groups groups, String synchId, boolean debug) throws CalFacadeException { this.debug = deb... | |
if (events != null) { events.setHibSession(sess); } | public synchronized void open() throws CalFacadeException { if (isOpen) { throw new CalFacadeException("Already open"); } isOpen = true; if (sess == null) { if (debug) { log.debug("New hibernate session for " + objTimestamp); } sess = new HibSession(sessFactory, log); if (e... | |
sess.update(val); | calendars.updateCalendar(val); | public void updateCalendar(BwCalendar val) throws CalFacadeException { checkOpen(); sess.update(val); } |
public void show(JComponent invoker, int x, int y) { | public void show(Component invoker, int x, int y) { | public void show(JComponent invoker, int x, int y) { menuItemCut.setEnabled(text.isEditable()); menuItemPaste.setEnabled(text.isEditable()); super.show(invoker, x, y); } |
return (parameterMap == null) ? new HashMap(0) : parameterMap; | if (parameterMap == null) { parameterMap = new HashMap(0); } return parameterMap; | public Map getParameterMap() { return (parameterMap == null) ? new HashMap(0) : parameterMap; } |
((TimeConfig)creator.getInternalRegistrar()).add(componentSorted[i]); threeSelectionDisplay.addDisplay(componentSorted[i], (TimeConfig)creator.getInternalRegistrar()); | if(componentSorted[i].length > 0){ ((TimeConfig)creator.getInternalRegistrar()).add(componentSorted[i]); BasicSeismogramDisplay newDisplay = threeSelectionDisplay.addDisplay(componentSorted[i], (TimeConfig)creator.getInternalRegistrar()); creator.addDisplay(newDisplay); if(parentArrivals != null){ newDisplay.addFlags(p... | private void addGroupedSelection(Selection creator, VerticalSeismogramDisplay reaper){ DataSetSeismogram[] creatorSeismos = creator.getSeismograms(); DataSetSeismogram[][] componentSorted = DisplayUtils.getComponents(creatorSeismos, "." + creator.getColor()); for(int i = 0; i < componentSorted.length; i++){ ((T... |
Arrival[] parentArrivals = creator.getParent().getArrivals(); if(parentArrivals != null){ ((ComponentSortedSeismogramDisplay)threeSelectionDisplay).addFlags(parentArrivals); } | private void addGroupedSelection(Selection creator, VerticalSeismogramDisplay reaper){ DataSetSeismogram[] creatorSeismos = creator.getSeismograms(); DataSetSeismogram[][] componentSorted = DisplayUtils.getComponents(creatorSeismos, "." + creator.getColor()); for(int i = 0; i < componentSorted.length; i++){ ((T... | |
selectionDisplay.removeAll(); | removeSelectionDisplay(); | public void windowClosing(WindowEvent e) { selectionDisplay.removeAll(); } |
threeSelectionWindow = new JFrame(particleTagWindowName); threeSelectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { threeSelectionDisplay.removeAll(); } }); threeSelectionWindow.setSize(400, 400); Toolkit tk = Toolkit.getDefaultToolkit(); threeSelectionWindow.setLocation((t... | public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(particleTagWindowName); threeSelectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent ... | |
threeSelectionWindow.getContentPane().add(new JScrollPane(threeSelectionDisplay)); threeSelectionWindow.setVisible(true); | if(threeSelectionDisplay.getDisplays().size() > 0){ threeSelectionWindow = new JFrame(particleTagWindowName); threeSelectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { remove3CSelectionDisplay(); } }); threeSelectionWindow.setSize(400, 400); Toolkit tk = Toolkit.getDefaultT... | public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(particleTagWindowName); threeSelectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent ... |
threeSelectionDisplay.removeAll(); } | remove3CSelectionDisplay(); } | public void windowClosing(WindowEvent e) { threeSelectionDisplay.removeAll(); } |
NATContext ctx = new NATContext(childNS, childNS, this); | NATContext ctx = new NATContext(childNS, childNS, childNS.dynamicParent_); | public ATObject meta_doesNotUnderstand(ATSymbol selector) throws NATException { // first, convert the AmbientTalk name to a Java selector. Java selectors are always valid filenames because // they do not contain special operator characters String javaSelector = Reflection.upSelector(selector); // first, try to s... |
public AGApplication(ATSymbol sel, ATTable arg) { selector_ = sel; | public AGApplication(ATExpression fun, ATTable arg) { funExp_ = fun; | public AGApplication(ATSymbol sel, ATTable arg) { selector_ = sel; arguments_ = arg; } |
return ctx.getLexicalScope().meta_call(selector_, NATTable.evaluateArguments(arguments_.asNativeTable(), ctx)); | ATClosure clo = funExp_.meta_eval(ctx).asClosure(); return clo.meta_apply(NATTable.evaluateArguments(arguments_.asNativeTable(), ctx)); | public ATObject meta_eval(ATContext ctx) throws NATException { return ctx.getLexicalScope().meta_call(selector_, NATTable.evaluateArguments(arguments_.asNativeTable(), ctx)); } |
return NATText.atValue(selector_.meta_print().javaValue + NATTable.printAsList(arguments_).javaValue); | return NATText.atValue(funExp_.meta_print().javaValue + NATTable.printAsList(arguments_).javaValue); | public NATText meta_print() throws XTypeMismatch { return NATText.atValue(selector_.meta_print().javaValue + NATTable.printAsList(arguments_).javaValue); } |
return new AGApplication(selector_.meta_quote(ctx).asSymbol(), | return new AGApplication(funExp_.meta_quote(ctx).asExpression(), | public ATObject meta_quote(ATContext ctx) throws NATException { return new AGApplication(selector_.meta_quote(ctx).asSymbol(), arguments_.meta_quote(ctx).asTable()); } |
splitPane.add(new JScrollPane(license)); | splitPane.add(license); | public void run() { JTextComponent copyright = createCopyrightPanel(); HTMLBrowser license = new HTMLBrowser(LICENSE_HTML); remove(label); JSplitPane splitPane = new JSplitPane( JSplitPane.VERTICAL_SPLIT); splitPane.add(new JScrollPane(copyright)); splitPane.add(new JScrollPane(license)); ... |
private boolean executeQueries(QuerySQL query, QueryToSQLBridge bridge) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query); | private boolean executeQueries(QuerySQL query, QueryToSQLBridge bridge, List executedSQLQueries) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query, executedSQLQueries); | private boolean executeQueries(QuerySQL query, QueryToSQLBridge bridge) throws RemoteException { QueryResult queryResult = bridge.executeQueries(query); // check if everything is fine if (queryResult == null || queryResult.isEmpty()) { // nothing to do return false; } // get the design of the report Jas... |
if (! executeQueries(query, bridge)) { | List executedSQLStatements = new ArrayList(); boolean isOkay = executeQueries(query, bridge, executedSQLStatements); addExecutedSQLQueries(executedSQLStatements); if (! isOkay) { | private void getSingleQueryView(IWBundle bundle, IWResourceBundle resourceBundle, String action, IWContext iwc) throws RemoteException { String errorMessage = null; QueryService queryService = getQueryService(); int currentQueryId = ((Integer) parameterMap.get(CURRENT_QUERY_ID)).intValue(); QueryHelper queryHelp... |
boolean isOkay = executeQueries(query, bridge); | List executedSQLStatements = new ArrayList(); boolean isOkay = executeQueries(query, bridge, executedSQLStatements); addExecutedSQLQueries(executedSQLStatements); | private void getSingleQueryView(IWBundle bundle, IWResourceBundle resourceBundle, String action, IWContext iwc) throws RemoteException { String errorMessage = null; QueryService queryService = getQueryService(); int currentQueryId = ((Integer) parameterMap.get(CURRENT_QUERY_ID)).intValue(); QueryHelper queryHelp... |
Rectangle clientArea = transposer.t(container.getClientArea()); | public void layout(IFigure container) { Rectangle clientArea = transposer.t(container.getClientArea()); List children = container.getChildren(); int numChildren = children.size(); Dimension prefSizes [] = new Dimension[numChildren]; Dimension minSizes [] = new Dimension[numChildren]; int wHin... | |
Dimension prefSizes [] = new Dimension[numChildren]; Dimension minSizes [] = new Dimension[numChildren]; int wHint = getLaneOrientation()== HORIZONTAL ? container.getClientArea(Rectangle.SINGLETON).width : -1; int hHint = getLaneOrientation()== VERTICAL ? container.getClientArea(Rectangle.SINGLETON).height : -1; | int totalPrefHeight = 0; | public void layout(IFigure container) { Rectangle clientArea = transposer.t(container.getClientArea()); List children = container.getChildren(); int numChildren = children.size(); Dimension prefSizes [] = new Dimension[numChildren]; Dimension minSizes [] = new Dimension[numChildren]; int wHin... |
int totalPrefHeight = 0; | for (int i = 0; i < numChildren; i++) { IFigure child = (IFigure) children.get(i); | public void layout(IFigure container) { Rectangle clientArea = transposer.t(container.getClientArea()); List children = container.getChildren(); int numChildren = children.size(); Dimension prefSizes [] = new Dimension[numChildren]; Dimension minSizes [] = new Dimension[numChildren]; int wHin... |
for (int i = 0; i < numChildren; i++) { IFigure child = (IFigure)children.get(i); prefSizes[i] = transposer.t(child.getPreferredSize(wHint, hHint)); minSizes[i] = transposer.t(child.getMinimumSize(wHint, hHint)); totalPrefHeight += prefSizes[i].height; } int expansion = totalPrefHeight < clientArea.height ? (clientA... | prefSizes[i] = transposer.t(child.getPreferredSize(wHint, hHint)); minSizes[i] = transposer.t(child.getMinimumSize(wHint, hHint)); | public void layout(IFigure container) { Rectangle clientArea = transposer.t(container.getClientArea()); List children = container.getChildren(); int numChildren = children.size(); Dimension prefSizes [] = new Dimension[numChildren]; Dimension minSizes [] = new Dimension[numChildren]; int wHin... |
int x = clientArea.x; int y = clientArea.y; for (int i = 0; i < numChildren; i++) { int prefHeight = prefSizes[i].height; int prefWidth = prefSizes[i].width; int minWidth = minSizes[i].width; Rectangle newBounds = new Rectangle(x, y, prefWidth, prefHeight); | totalPrefHeight += prefSizes[i].height; } | public void layout(IFigure container) { Rectangle clientArea = transposer.t(container.getClientArea()); List children = container.getChildren(); int numChildren = children.size(); Dimension prefSizes [] = new Dimension[numChildren]; Dimension minSizes [] = new Dimension[numChildren]; int wHin... |
IFigure child = (IFigure)children.get(i); newBounds.width = Math.max(minWidth, clientArea.width); newBounds.height += expansion; child.setBounds(transposer.t(newBounds)); | Rectangle clientArea = transposer.t(container.getClientArea()); int expansion = totalPrefHeight < clientArea.height ? (clientArea.height - totalPrefHeight) / children.size() : 0; | public void layout(IFigure container) { Rectangle clientArea = transposer.t(container.getClientArea()); List children = container.getChildren(); int numChildren = children.size(); Dimension prefSizes [] = new Dimension[numChildren]; Dimension minSizes [] = new Dimension[numChildren]; int wHin... |
y += newBounds.height; } | int x = clientArea.x; int y = clientArea.y; for (int i = 0; i < numChildren; i++) { int prefHeight = prefSizes[i].height; int prefWidth = prefSizes[i].width; int minWidth = minSizes[i].width; Rectangle newBounds = new Rectangle(x, y, prefWidth, prefHeight); IFigure child = (IFigure) children.get(i); newBounds.width = ... | public void layout(IFigure container) { Rectangle clientArea = transposer.t(container.getClientArea()); List children = container.getChildren(); int numChildren = children.size(); Dimension prefSizes [] = new Dimension[numChildren]; Dimension minSizes [] = new Dimension[numChildren]; int wHin... |
form.getErr().emit("org.bedework.pubevents.error.choosegroupsuppressed"); | form.getErr().emit("org.bedework.client.error.choosegroupsuppressed"); | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** ================================================================= * Selecting a group - any access if no group set * ==============... |
changed = false; | public void reset(int originalValue, int preferred) { this.originalValue = originalValue; this.newValue = originalValue; precedence = preferred; } | |
int currentMode, boolean ignoreCreator, | int currentMode, | public CalintfHelper(Calintf cal, AccessUtil access, int currentMode, boolean ignoreCreator, boolean debug) { this.cal = cal; this.access = access; this.currentMode = currentMode; this.ignoreCreator = ignoreCreator; this.debug = debug; } |
this.ignoreCreator = ignoreCreator; | public CalintfHelper(Calintf cal, AccessUtil access, int currentMode, boolean ignoreCreator, boolean debug) { this.cal = cal; this.access = access; this.currentMode = currentMode; this.ignoreCreator = ignoreCreator; this.debug = debug; } | |
return f.isDirectory() || f.toString().toLowerCase().endsWith(Messages.getString("MainPanel.DOT_MP3")); | return f.isDirectory() || Util.isAudioFile(f); | public MainPanel(final AudioPlayer owner) { super(new BorderLayout()); final JList list = new JList(playlist.getListModel()); list.setCellRenderer(new ListCellRenderer() { public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { File ... |
p.add(addDir); | public MainPanel(final AudioPlayer owner) { super(new BorderLayout()); final JList list = new JList(playlist.getListModel()); list.setCellRenderer(new ListCellRenderer() { public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { File ... | |
return f.isDirectory() || f.toString().toLowerCase().endsWith(Messages.getString("MainPanel.DOT_MP3")); | return f.isDirectory() || Util.isAudioFile(f); | public void actionPerformed(ActionEvent e) { final JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileFilter(new FileFilter() { public boolean accept(File f) { return f.isDirectory() || f.toString().toLowerCase().endsWith(Messages.getString("MainPanel.DOT_MP3")); //$NON-NLS-1$ ... |
return f.isDirectory() || f.toString().toLowerCase().endsWith(Messages.getString("MainPanel.DOT_MP3")); | return f.isDirectory() || Util.isAudioFile(f); | public boolean accept(File f) { return f.isDirectory() || f.toString().toLowerCase().endsWith(Messages.getString("MainPanel.DOT_MP3")); //$NON-NLS-1$ } |
int[] arr = list.getSelectedIndices(); if (arr != null) { for (int i = arr.length - 1; i >= 0; i--) { playlist.remove(arr[i]); | final JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); fileChooser.setFileFilter(new FileFilter() { public boolean accept(File f) { return f.isDirectory(); | public void actionPerformed(ActionEvent e) { int[] arr = list.getSelectedIndices(); if (arr != null) { for (int i = arr.length - 1; i >= 0; i--) { playlist.remove(arr[i]); } } } |
public String getDescription() { return Messages.getString("MainPanel.DIRECTORIES"); } }); int ret = fileChooser.showOpenDialog(owner.getPanelInstance()); if (ret == JFileChooser.APPROVE_OPTION) { File f = fileChooser.getSelectedFile(); playlist.addDirectory(f); | public void actionPerformed(ActionEvent e) { int[] arr = list.getSelectedIndices(); if (arr != null) { for (int i = arr.length - 1; i >= 0; i--) { playlist.remove(arr[i]); } } } | |
playlist.stop(); | public void dispose() { playlist.save(); } | |
Acl acl = svci.getAcl(getEvent()); | Acl acl = eventInfo.getCurrentAccess().acl; | public String getXmlAccess() { try { if (xmlAccess == null) { Acl acl = svci.getAcl(getEvent()); xmlAccess = AccessAppUtil.getXmlAclString(acl); } } catch (Throwable t) { error(t); } return xmlAccess; } |
this.envPrefix = envPrefix; | public CalSvcIPars(String authUser, int rights, String user, boolean publicAdmin, boolean caldav, String synchId, boolean debug) { this.authUser = authUser; this.rights = rights; this.user ... | |
getEnvPrefix(), | public Object clone() { CalSvcIPars pars = new CalSvcIPars(getAuthUser(), getRights(), getUser(), getPublicAdmin(), getCaldav(), ... | |
if (hit != null) { | if ((hit != null) && (hit instanceof BranchView)) { | private void createLinkTo(final Point2D p) { if (this.ideaMap != null) { IdeaView hit = this.ideaMap.getViewAt(p); if (hit != null) { Idea selectedIdea = this.ideaMap.getSelected(); if (selectedIdea != null) { Idea hitIdea = hit.getIdea()... |
public ATFraction base_abs() { | public ATNumeric base_abs() { | public ATFraction base_abs() { return NATFraction.atValue(Math.abs(javaValue)); } |
public ATFraction base_dec() { | public ATNumeric base_dec() { | public ATFraction base_dec() { return NATFraction.atValue(javaValue-1); } |
public ATFraction base_inc() { | public ATNumeric base_inc() { | public ATFraction base_inc() { return NATFraction.atValue(javaValue+1); } |
public CalTimezones getTzcache() throws Throwable { | public SATimezonesImpl getTzcache() throws Throwable { | public CalTimezones getTzcache() throws Throwable { if (tzcache != null) { return tzcache; } if (syspars.getTzid() == null) { throw new Exception("syspars.tzid not initialised"); } tzcache = new TimezonesImpl(config.getDebug(), getPublicUser(), rintf); tzcache.setDefaultTimeZoneId(syspars.... |
tzcache = new TimezonesImpl(config.getDebug(), getPublicUser(), rintf); | tzcache = new TimezonesImpl(config.getDebug(), getPublicUser(), this); | public CalTimezones getTzcache() throws Throwable { if (tzcache != null) { return tzcache; } if (syspars.getTzid() == null) { throw new Exception("syspars.tzid not initialised"); } tzcache = new TimezonesImpl(config.getDebug(), getPublicUser(), rintf); tzcache.setDefaultTimeZoneId(syspars.... |
if (config.getFrom2p3px() && (config.getTimezonesFilename() != null)) { TimeZonesParser tzp = new TimeZonesParser( new FileInputStream(config.getTimezonesFilename()), config.getDebug()); Collection tzis = tzp.getTimeZones(); Iterator it = tzis.iterator(); while (it.hasNext()) { TimeZonesParser.TimeZoneInfo tzi = (Ti... | public CalTimezones getTzcache() throws Throwable { if (tzcache != null) { return tzcache; } if (syspars.getTzid() == null) { throw new Exception("syspars.tzid not initialised"); } tzcache = new TimezonesImpl(config.getDebug(), getPublicUser(), rintf); tzcache.setDefaultTimeZoneId(syspars.... | |
IdeaReader reader = factory.read(new File(absPath)); | Idea idea = factory.read(new File(absPath)); | public void openDocument() throws IOException, ReaderException { FileDialog chooser = new FileDialog(mainframe, "Open OPML file", FileDialog.LOAD); chooser.setVisible(true); String filename = chooser.getFile(); if (filename != null) { Str... |
ideaMap.setIdea(reader.getIdea()); | ideaMap.setIdea(idea); | public void openDocument() throws IOException, ReaderException { FileDialog chooser = new FileDialog(mainframe, "Open OPML file", FileDialog.LOAD); chooser.setVisible(true); String filename = chooser.getFile(); if (filename != null) { Str... |
for (int j=0; j<chans.length; j++) { String chanKey = ChannelIdUtil.toString(chans[j].get_id()); if ( ! channelMap.containsKey(chanKey)) { channelMap.put(chanKey, chans[j]); if ( ! sites.contains(chans[j].my_site.get_code())) { sites.addElement(chans[j].my_site.get_code()); } if ( ! channels.contains(chans[j].get_code(... | for (int j=0; j<chans.length; j++) { String chanKey = ChannelIdUtil.toString(chans[j].get_id()); if ( ! channelMap.containsKey(chanKey)) { channelMap.put(chanKey, chans[j]); if ( ! sites.contains(chans[j].my_site.get_code())) { sites.addElement(chans[j].my_site.get_code()); } if ( ! channels.contains(chans[j].get_code(... | void addChannels(Channel[] chans) { for (int j=0; j<chans.length; j++) { String chanKey = ChannelIdUtil.toString(chans[j].get_id()); if ( ! channelMap.containsKey(chanKey)) { channelMap.put(chanKey, chans[j]); if ( ! sites.contains(chans[j].my_site.get_code())) { sites.addElement(chans[j].my_site.get... |
} } | void addChannels(Channel[] chans) { for (int j=0; j<chans.length; j++) { String chanKey = ChannelIdUtil.toString(chans[j].get_id()); if ( ! channelMap.containsKey(chanKey)) { channelMap.put(chanKey, chans[j]); if ( ! sites.contains(chans[j].my_site.get_code())) { sites.addElement(chans[j].my_site.get... | |
for (int j=0; j<chans.length; j++) { String chanKey = ChannelIdUtil.toString(chans[j].get_id()); if ( channelMap.containsKey(chanKey)) { channelMap.remove(chanKey); | for (int j=0; j<chans.length; j++) { String chanKey = ChannelIdUtil.toString(chans[j].get_id()); if ( channelMap.containsKey(chanKey)) { channelMap.remove(chanKey); } } | void removeChannels(Channel[] chans) { for (int j=0; j<chans.length; j++) { String chanKey = ChannelIdUtil.toString(chans[j].get_id()); if ( channelMap.containsKey(chanKey)) { channelMap.remove(chanKey); } } } |
} } | void removeChannels(Channel[] chans) { for (int j=0; j<chans.length; j++) { String chanKey = ChannelIdUtil.toString(chans[j].get_id()); if ( channelMap.containsKey(chanKey)) { channelMap.remove(chanKey); } } } | |
setProgressOwner(this); ListSelectionModel selModel = stationList.getSelectionModel(); NetworkAccess[] nets = getSelectedNetworks(); setProgressMax(this, e.getLastIndex()-e.getFirstIndex()+1); for (int i=e.getFirstIndex(); i<=e.getLastIndex(); i++) { String staName = (String)stationNames.getElementAt(i); LinkedList s... | setProgressOwner(this); ListSelectionModel selModel = stationList.getSelectionModel(); NetworkAccess[] nets = getSelectedNetworks(); setProgressMax(this, e.getLastIndex()-e.getFirstIndex()+1); for (int i=e.getFirstIndex(); i<=e.getLastIndex(); i++) { String staName = (String)stationNames.getElementAt(i); LinkedList s... | public void run() { setProgressOwner(this); ListSelectionModel selModel = stationList.getSelectionModel(); // assume only one selected network at at time... NetworkAccess[] nets = getSelectedNetworks(); setProgressMax(this, e.getLastIndex()-e.getFirstIndex()+1); for (int i=e.getFirstIndex(); i<... |
setProgressValue(this, i-e.getFirstIndex()); } progressBar.setValue(progressBar.getMaximum()); } | public void run() { setProgressOwner(this); ListSelectionModel selModel = stationList.getSelectionModel(); // assume only one selected network at at time... NetworkAccess[] nets = getSelectedNetworks(); setProgressMax(this, e.getLastIndex()-e.getFirstIndex()+1); for (int i=e.getFirstIndex(); i<... | |
setProgressOwner(this); CacheNetworkAccess cache; logger.debug("Before networks"); if(configuredNetworks == null || configuredNetworks.length == 0) { NetworkAccess[] nets = netdc.a_finder().retrieve_all(); netDCToNetMap.put(netdc, nets); setProgressMax(this, nets.length+1); int progressVal = 1; setProgressValue(this, ... | setProgressOwner(this); CacheNetworkAccess cache; logger.debug("Before networks"); if(configuredNetworks == null || configuredNetworks.length == 0) { NetworkAccess[] nets = netdc.a_finder().retrieve_all(); netDCToNetMap.put(netdc, nets); setProgressMax(this, nets.length+1); int progressVal = 1; setProgressValue(this, ... | public void run() { setProgressOwner(this); CacheNetworkAccess cache; logger.debug("Before networks"); if(configuredNetworks == null || configuredNetworks.length == 0) { NetworkAccess[] nets = netdc.a_finder().retrieve_all(); netDCToNetMap.put(netdc, nets); setProgressMax(this, nets.length+1);... |
} else { int totalNetworks = 0; setProgressMax(this, configuredNetworks.length); for(int counter = 0; counter < configuredNetworks.length; counter++) { try { logger.debug("Getting network for "+configuredNetworks[counter]); NetworkAccess[] nets = netdc.a_finder().retrieve_by_code(configuredNetworks[counter]); logger.d... | public void run() { setProgressOwner(this); CacheNetworkAccess cache; logger.debug("Before networks"); if(configuredNetworks == null || configuredNetworks.length == 0) { NetworkAccess[] nets = netdc.a_finder().retrieve_all(); netDCToNetMap.put(netdc, nets); setProgressMax(this, nets.length+1);... | |
setProgressOwner(this); setProgressMax(this, 100); logger.debug("There are "+nets.length+" selected networks."); try { synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { clearStationsFromThread(); } | setProgressOwner(this); setProgressMax(this, 100); logger.debug("There are "+nets.length+" selected networks."); try { synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { clearStationsFromThread(); } } int netProgressInc = 50 / nets.length; int progressValue = 10; setProgressValue(this, progress... | public void run() { setProgressOwner(this); setProgressMax(this, 100); logger.debug("There are "+nets.length+" selected networks."); try { synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { clearStationsFromThread(); } } int netProgressInc = 50 / nets.length; in... |
int netProgressInc = 50 / nets.length; int progressValue = 10; setProgressValue(this, progressValue); for (int i=0; i<nets.length; i++) { logger.debug("Before get stations"); Station[] newStations = nets[i].retrieve_stations(); logger.debug("got "+newStations.length+" stations"); setProgressValue(this, progressValue+ne... | public void run() { setProgressOwner(this); setProgressMax(this, 100); logger.debug("There are "+nets.length+" selected networks."); try { synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { clearStationsFromThread(); } } int netProgressInc = 50 / nets.length; in... | |
if (extension != null && !extension.equals(getFilePath().getFileExtension())) { | if (extension != null && !getFilePath().toString().endsWith("." + extension)) { | protected boolean validatePage() { if (!super.validatePage()) { return false; } String extension = getExtension(); if (extension != null && !extension.equals(getFilePath().getFileExtension())) { setErrorMessage(NLS.bind("File name should have ''{0}'' extension.", extension)); return false; } return true; } |
} | endtzid = eend.getTzid(); } CalTimezones ctz = getTimezones(); dstart = ctz.getUtc(dstart, sttzid, null); dend = ctz.getUtc(dend, endtzid, null); | public BwFreeBusy getFreeBusy(Collection subs, BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { ... |
if (!isSelected) { setEditing(false); } | public void setSelected(boolean isSelected) { this.selected = isSelected; repaintRequired(); } | |
getNsIntf().emitSupportedPrivSet(node); | private int doPropFind(WebdavNsNode node, PropRequest preq) throws WebdavException { Enumeration en = preq.props.elements(); while (en.hasMoreElements()) { WebdavProperty pr = (WebdavProperty)en.nextElement(); QName tag = pr.getTag(); String ns = tag.getNamespaceURI(); /* Deal with webdav pr... | |
firstDay.set(Calendar.HOUR_OF_DAY, 0); firstDay.set(Calendar.MINUTE, 0); firstDay.set(Calendar.SECOND, 0); firstDay.set(Calendar.MILLISECOND, 0); | public MyCalendarVO getFirstDayOfThisMonth() { Calendar firstDay = (Calendar)calendar.clone(); firstDay.set(Calendar.DAY_OF_MONTH, calendar.getMinimum(Calendar.DAY_OF_MONTH)); return new MyCalendarVO(firstDay, calInfo.getLocale()); } | |
c.set(Calendar.HOUR_OF_DAY, 0); c.set(Calendar.MINUTE, 0); c.set(Calendar.SECOND, 0); c.set(Calendar.MILLISECOND, 0); | public MyCalendarVO getLastDayOfThisMonth() { Calendar c = (Calendar)calendar.clone(); c.set(Calendar.DAY_OF_MONTH, calendar.getMinimum(Calendar.DAY_OF_MONTH)); c.add(Calendar.MONTH, 1); c.add(Calendar.DATE, -1); return new MyCalendarVO(c, calInfo.getLocale()); } | |
c.set(Calendar.HOUR_OF_DAY, 0); c.set(Calendar.MINUTE, 0); c.set(Calendar.SECOND, 0); c.set(Calendar.MILLISECOND, 0); | public MyCalendarVO getLastDayOfThisWeek() { Calendar c = (Calendar)calendar.clone(); c.set(Calendar.DAY_OF_WEEK, calInfo.getFirstDayOfWeek()); c.add(Calendar.WEEK_OF_YEAR, 1); c.add(Calendar.DATE, -1); return new MyCalendarVO(c, calInfo.getLocale()); } | |
int id = getIntReqPar(request, "calId", -1); | String calPath = request.getParameter("calPath"); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "notFound"; } CalSvcI svci = form.fetchSvci(); BwCalendar ca... |
if (id < 0) { | if (calPath == null) { | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "notFound"; } CalSvcI svci = form.fetchSvci(); BwCalendar ca... |
cal = svci.getCalendar(id); | cal = svci.getCalendar(calPath); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "notFound"; } CalSvcI svci = form.fetchSvci(); BwCalendar ca... |
form.getErr().emit("org.bedework.client.error.nosuchcalendar", id); | form.getErr().emit("org.bedework.client.error.nosuchcalendar", calPath); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "notFound"; } CalSvcI svci = form.fetchSvci(); BwCalendar ca... |
} String how = getReqPar(request, "how"); if (how == null) { form.getErr().emit("org.bedework.client.error.nohowaccess"); return "error"; } int desiredAccess = -1; if (how.equals("r")) { desiredAccess = PrivilegeDefs.privRead; } else if (how.equals("w")) { desiredAccess = PrivilegeDefs.privWrite; } else if (how.eq... | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "notFound"; } CalSvcI svci = form.fetchSvci(); BwCalendar ca... | |
aces.add(new Ace(who, false, whoType, Privileges.makePriv(desiredAccess))); | String how = getReqPar(request, "how"); if (how == null) { form.getErr().emit("org.bedework.client.error.nohowaccess"); return "error"; } char[] howchs = how.toCharArray(); for (int hi = 0; hi <= howchs.length; hi++) { char howch = howchs[hi]; boolean found = false; for (int pi = 0; pi <= PrivilegeDefs.privMaxType;... | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "notFound"; } CalSvcI svci = form.fetchSvci(); BwCalendar ca... |
globals.categories++; | globals.calendars++; | private void dumpCalendar(BwCalendar val) throws Throwable { tagStart(objectCalendar); shareableContainedEntityTags(val); taggedVal("name", val.getName()); taggedVal("path", val.getPath()); taggedVal("summary", val.getSummary()); taggedVal("description", val.getDescription()); taggedVal("mailList... |
semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.ElementImportEditPart.VISUAL_ID); | semanticHint = UMLVisualIDRegistry.getType(ElementImportEditPart.VISUAL_ID); | protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.ElementImportEditPart.VISUAL_ID); view.setType(semanticHint... |
assertEquals("yes?", Reflection.upSelector(AGSymbol.alloc("yes?"))); | assertEquals("yes_opque_", Reflection.upSelector(AGSymbol.alloc("yes?"))); | public void testUpSelector() throws NATException { assertEquals("foo_", Reflection.upSelector(AGSymbol.alloc("foo:"))); assertEquals("foo_bar_", Reflection.upSelector(AGSymbol.alloc("foo:bar:"))); assertEquals("_oppls_", Reflection.upSelector(AGSymbol.alloc("+"))); assertEquals("set_opnot_", Reflection.upSelector(... |
form.getErr().emit("org.bedework.client.missingfield", "name"); | form.getErr().emit("org.bedework.client.error.missingfield", "name"); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa... |
form.getErr().emit("org.bedework.client.notfound", add); | form.getErr().emit("org.bedework.client.error.nosuchsubscription", add); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa... |
form.getErr().emit("org.bedework.client.notfound", name); | form.getErr().emit("org.bedework.client.error.viewnotfound", name); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa... |
form.getErr().emit("org.bedework.client.notfound", remove); | form.getErr().emit("org.bedework.client.error.nosuchsubscription", remove); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa... |
public boolean init(String url, | public boolean init(String systemName, String url, | public boolean init(String url, String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException; |
tElementFont.setFontSize(10); | tElementFont.setFontSize(FONT_SIZE_COLUMN_HEADER); | private void addFieldToColumnHeader(String fieldName, Class classType, int columnWidth){ _designDoc.addParameter(fieldName,String.class); TextField tField = new TextField(); tField.setIsBlankWhenNull(true); tField.setIsStretchWithOverflow(true); tField.setEvaluationTimeAsNow(); tField.setHyperlinkTypeAsNone();... |
tElementFont.setFontSize(10); | tElementFont.setFontSize(FONT_SIZE_PAGE_HEADER); | private void addParameterToPageHeader(String prmName, int prmWidth, Class classType,boolean underline, boolean bold){ _designDoc.addParameter(prmName,String.class); TextField tField = new TextField(); tField.setIsBlankWhenNull(false); tField.setIsStretchWithOverflow(true); tField.setEvaluationTimeAsNow(); tFie... |
tElementFont.setFontSize(10); | tElementFont.setFontSize(FONT_SIZE_TEXT_FIELD); | private void createTextField(TextFieldExpression textFieldExpression, int columnWidth){ TextField tField = new TextField(); tField.setIsBlankWhenNull(true); tField.setIsStretchWithOverflow(true); tField.setEvaluationTimeAsNow(); tField.setHyperlinkTypeAsNone(); ReportElement rElement = new ReportElement(_column... |
tElementFont.setFontSize(16); | tElementFont.setFontSize(FONT_SIZE_TITLE); | private void createTitle() { Title title = new Title(); title.setHeight(_reportTitleHeight); //title.setIsSplitAllowed(true); TextField tField1 = new TextField(); tField1.setIsBlankWhenNull(true); tField1.setIsStretchWithOverflow(true); tField1.setEvaluationTimeAsNow(); tField1.setHyperlinkTypeAsNone(); ... |
case KeyEvent.VK_EQUALS: if (evt.getModifiersEx() != 0) { this.ideaMap.zoomIn(); } break; | public void keyPressed(final KeyEvent evt) { switch(evt.getKeyCode()) { case KeyEvent.VK_SPACE: ticker.stop(); maxSpeed = 0.0; break; case KeyEvent.VK_UP: selectUp(); break; case KeyEvent.VK_DOWN: ... | |
semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.GeneralizationEditPart.VISUAL_ID); | semanticHint = UMLVisualIDRegistry.getType(GeneralizationEditPart.VISUAL_ID); | protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.GeneralizationEditPart.VISUAL_ID); view.setType(semanticHin... |
public BwFreeBusy getFreeBusy(CalSvcI svci, String user) throws WebdavException { | public BwFreeBusy getFreeBusy(CalSvcI svci, String account) throws WebdavException { | public BwFreeBusy getFreeBusy(CalSvcI svci, String user) throws WebdavException { try { BwFreeBusy fb = svci.getFreeBusy(null, new BwUser(user), timeRange.getStart(), timeRange.getEnd(), null, false); if (debug) { trace("G... |
BwFreeBusy fb = svci.getFreeBusy(null, new BwUser(user), | BwUser user = svci.findUser(account); if (user == null) { throw WebdavIntfException.unauthorized(); } BwFreeBusy fb = svci.getFreeBusy(null, user, | public BwFreeBusy getFreeBusy(CalSvcI svci, String user) throws WebdavException { try { BwFreeBusy fb = svci.getFreeBusy(null, new BwUser(user), timeRange.getStart(), timeRange.getEnd(), null, false); if (debug) { trace("G... |
access.checkAccess(val, privWrite, false); | public void updateCalendar(BwCalendar val) throws CalFacadeException { getSess().update(val); } | |
int lastIdx = siz.implValue - 1; | int lastIdx = siz.javaValue - 1; | public ATObject meta_eval(ATContext ctx) { NATNumber siz = statements_.getLength().asNativeNumber(); int lastIdx = siz.implValue - 1; for (int i = 0; i < lastIdx; i++) { statements_.at(NATNumber.atValue(i)).meta_eval(ctx); } return statements_.at(NATNumber.atValue(lastIdx)).meta_eval(ctx); } |
statements_.at(NATNumber.atValue(i)).meta_eval(ctx); | statements_.at(NATNumber.atValue(i)).asStatement().meta_eval(ctx); | public ATObject meta_eval(ATContext ctx) { NATNumber siz = statements_.getLength().asNativeNumber(); int lastIdx = siz.implValue - 1; for (int i = 0; i < lastIdx; i++) { statements_.at(NATNumber.atValue(i)).meta_eval(ctx); } return statements_.at(NATNumber.atValue(lastIdx)).meta_eval(ctx); } |
return statements_.at(NATNumber.atValue(lastIdx)).meta_eval(ctx); | return statements_.at(NATNumber.atValue(lastIdx)).asStatement().meta_eval(ctx); | public ATObject meta_eval(ATContext ctx) { NATNumber siz = statements_.getLength().asNativeNumber(); int lastIdx = siz.implValue - 1; for (int i = 0; i < lastIdx; i++) { statements_.at(NATNumber.atValue(i)).meta_eval(ctx); } return statements_.at(NATNumber.atValue(lastIdx)).meta_eval(ctx); } |
if (selectedIdea != null) { | if ((selectedIdea != null) && (this.ideaMap.getSelectedView() instanceof BranchView)) { | private void createLinkTo(final Point2D p) { if (this.ideaMap != null) { IdeaView hit = this.ideaMap.getViewAt(p); if ((hit != null) && (hit instanceof BranchView)) { Idea selectedIdea = this.ideaMap.getSelected(); if (selectedIdea != null) { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.