bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
protected void makeActions(IWorkbenchWindow window) { this.window = window; commandStatusLineContribution = new CommandStatusLineContribution(CommandStatusLineContribution.ID); commandStatusLineContribution.addCommandListener(Application.getOrderManager().getCommandListener()); feedStatusLineContribution = new Fee...
protected void makeActions(IWorkbenchWindow window) { this.window = window; commandStatusLineContribution = new CommandStatusLineContribution(CommandStatusLineContribution.ID); feedStatusLineContribution = new FeedStatusLineContribution("feedStatus", new String[] {JMSConnector.JMS_CONNECTOR_ID}); Application.get...
1,121,707
public CancelOrderAction( IWorkbenchWindow window, OrderManager manager) { this.window = window; this.manager = manager; setId(ID); setActionDefinitionId(ID); setText("Cancel an order"); setToolTipText("Cancel an order"); setImageDescriptor(PhotonPlugin.getImageDescriptor(IImageKeys.CANCEL)); }
public CancelOrderAction( IWorkbenchWindow window, OrderManager manager) { this.manager = manager; setId(ID); setActionDefinitionId(ID); setText("Cancel an order"); setToolTipText("Cancel an order"); setImageDescriptor(PhotonPlugin.getImageDescriptor(IImageKeys.CANCEL)); }
1,121,708
public Object run(Object args) throws Exception { PhotonPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(this); Display display = PlatformUI.createDisplay(); try { new Job("Startup"){ @Override protected IStatus run(IProgressMonitor monitor) { try { startJMS(); } catch (Exce...
public Object run(Object args) throws Exception { PhotonPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(this); Display display = PlatformUI.createDisplay(); try { new Job("Startup"){ @Override protected IStatus run(IProgressMonitor monitor) { try { startJMS(); } catch (Exce...
1,121,709
public Object run(Object args) throws Exception { PhotonPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(this); Display display = PlatformUI.createDisplay(); try { new Job("Startup"){ @Override protected IStatus run(IProgressMonitor monitor) { try { startJMS(); } catch (Exce...
public Object run(Object args) throws Exception { PhotonPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(this); Display display = PlatformUI.createDisplay(); try { new Job("Startup"){ @Override protected IStatus run(IProgressMonitor monitor) { try { startJMS(); } catch (Exce...
1,121,710
private void updateFolderTreeNode(Folder folder) { // Update tree on that folder if (logVerbose) { log().verbose("Updating files of folder " + folder); } Object[] path = new Object[]{ getRoot(), getUIController().getFolderR...
private void updateFolderTreeNode(Folder folder) { // Update tree on that folder if (logVerbose) { log().verbose("Updating files of folder " + folder); } Object[] path = new Object[]{ getRoot(), getUIController().getFolderR...
1,121,711
private void fireChatModelChanged(Object source, boolean isStatus) { for (int i = 0; i < chatModelListeners.size(); i++) { ChatModelListener chatModelListener = (ChatModelListener) chatModelListeners .get(i); if (isStatus) { chatModelListener.chatChanged(ne...
private void fireChatModelChanged(Object source, boolean isStatus) { for (int i = 0; i < chatModelListeners.size(); i++) { ChatModelListener chatModelListener = chatModelListeners .get(i); if (isStatus) { chatModelListener.chatChanged(new ChatModelEvent(sou...
1,121,712
public Map<String, Object> get(String... keys) { final Map<String, Object> rv=new ConcurrentHashMap<String, Object>(); final AtomicInteger requests=new AtomicInteger(); final SynchronizationObject<AtomicInteger> sync =new SynchronizationObject<AtomicInteger>(requests); GetOperation.Callback cb=new GetOperation.C...
public Map<String, Object> get(String... keys) { final Map<String, Object> rv=new ConcurrentHashMap<String, Object>(); final AtomicInteger requests=new AtomicInteger(); final SynchronizationObject<AtomicInteger> sync =new SynchronizationObject<AtomicInteger>(requests); GetOperation.Callback cb=new GetOperation.C...
1,121,713
public Map<String, Object> get(String... keys) { final Map<String, Object> rv=new ConcurrentHashMap<String, Object>(); final AtomicInteger requests=new AtomicInteger(); final SynchronizationObject<AtomicInteger> sync =new SynchronizationObject<AtomicInteger>(requests); GetOperation.Callback cb=new GetOperation.C...
public Map<String, Object> get(String... keys) { final Map<String, Object> rv=new ConcurrentHashMap<String, Object>(); final AtomicInteger requests=new AtomicInteger(); final SynchronizationObject<AtomicInteger> sync =new SynchronizationObject<AtomicInteger>(requests); GetOperation.Callback cb=new GetOperation.C...
1,121,714
public void initialize(IWorkbenchConfigurer configurer) { configurer.setSaveAndRestore(true); // explicitly register ide- and resource-related adapters that rdt relies on WorkbenchAdapterBuilder.registerAdapters(); ConsolePlugin.getDefault().getConsoleManager().addConsoles( new IConsole[] { new MainConsole(...
public void initialize(IWorkbenchConfigurer configurer) { configurer.setSaveAndRestore(true); // explicitly register ide- and resource-related adapters that rdt relies on registerIdeAdapters(); declareIdeWorkbenchImages(); ConsolePlugin.getDefault().getConsoleManager().addConsoles( new IConsole[] { new Main...
1,121,715
private void initComponents() { writeTrigger = new Trigger(); showAdvancedSettingsModel = new ValueHolder(getController().getPreferences().getBoolean(SHOWADVANCEDSETTINGS, false)); nickField = new JTextField(getController().getMySelf().getNick()); ValueModel csModel = new PreferencesAdap...
private void initComponents() { writeTrigger = new Trigger(); showAdvancedSettingsModel = new ValueHolder(PreferencesEntry.SHOWADVANCEDSETTINGS.getValueBoolean(getController())); nickField = new JTextField(getController().getMySelf().getNick()); ValueModel csModel = new PreferencesAdapte...
1,121,716
public void save() { Preferences pref = getController().getPreferences(); // Write properties into core writeTrigger.triggerCommit(); // Set locale if (languageChooser.getSelectedItem() instanceof Locale) { Locale locale = (Locale) languageChooser.getSelectedItem(); ...
public void save() { // Write properties into core writeTrigger.triggerCommit(); // Set locale if (languageChooser.getSelectedItem() instanceof Locale) { Locale locale = (Locale) languageChooser.getSelectedItem(); // Check if we need to restart ne...
1,121,717
public void save() { Preferences pref = getController().getPreferences(); // Write properties into core writeTrigger.triggerCommit(); // Set locale if (languageChooser.getSelectedItem() instanceof Locale) { Locale locale = (Locale) languageChooser.getSelectedItem(); ...
public void save() { Preferences pref = getController().getPreferences(); // Write properties into core writeTrigger.triggerCommit(); // Set locale if (languageChooser.getSelectedItem() instanceof Locale) { Locale locale = (Locale) languageChooser.getSelectedItem(); ...
1,121,718
public void save() { Preferences pref = getController().getPreferences(); // Write properties into core writeTrigger.triggerCommit(); // Set locale if (languageChooser.getSelectedItem() instanceof Locale) { Locale locale = (Locale) languageChooser.getSelectedItem(); ...
public void save() { Preferences pref = getController().getPreferences(); // Write properties into core writeTrigger.triggerCommit(); // Set locale if (languageChooser.getSelectedItem() instanceof Locale) { Locale locale = (Locale) languageChooser.getSelectedItem(); ...
1,121,719
private void initComponents() { String port = ConfigurationEntry.NET_BIND_PORT .getValue(getController()); if (port == null) { port = Integer.toString(ConnectionListener.DEFAULT_PORT); } advPort = new JTextField(port) { protected Document createDefaultMod...
private void initComponents() { String port = ConfigurationEntry.NET_BIND_PORT .getValue(getController()); if (port == null) { port = Integer.toString(ConnectionListener.DEFAULT_PORT); } advPort = new JTextField(port) { protected Document createDefaultMod...
1,121,720
public void save() { Preferences pref = getController().getPreferences(); // Check for correctly entered port values try { // Check if it's a commaseperated list of parseable numbers String port = advPort.getText(); StringTokenizer st = new StringTokenizer(port,...
public void save() { Preferences pref = getController().getPreferences(); // Check for correctly entered port values try { // Check if it's a commaseperated list of parseable numbers String port = advPort.getText(); StringTokenizer st = new StringTokenizer(port,...
1,121,721
public void save() { Preferences pref = getController().getPreferences(); // Check for correctly entered port values try { // Check if it's a commaseperated list of parseable numbers String port = advPort.getText(); StringTokenizer st = new StringTokenizer(port,...
public void save() { Preferences pref = getController().getPreferences(); // Check for correctly entered port values try { // Check if it's a commaseperated list of parseable numbers String port = advPort.getText(); StringTokenizer st = new StringTokenizer(port,...
1,121,722
public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage( java.lang.String userId, java.lang.String threadId, java.lang.String parentMessageId, java.lang.String subject, java.lang.String body) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { MB...
public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage( java.lang.String userId, java.lang.String threadId, java.lang.String parentMessageId, java.lang.String subject, java.lang.String body) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { MB...
1,121,723
public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage( java.lang.String userId, java.lang.String threadId, java.lang.String parentMessageId, java.lang.String subject, java.lang.String body) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { MB...
public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage( java.lang.String userId, java.lang.String threadId, java.lang.String parentMessageId, java.lang.String subject, java.lang.String body) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException { try { MB...
1,121,724
public Member[] getSourcesFor(FileInfo fInfo) { if (fInfo == null) { throw new NullPointerException("File is null"); } Member[] nodes = getController().getNodeManager().getNodes(); List sources = new ArrayList(nodes.length); for (int i = 0; i < nodes.length; i++) { ...
public Member[] getSourcesFor(FileInfo fInfo) { if (fInfo == null) { throw new NullPointerException("File is null"); } Member[] nodes = getController().getNodeManager().getNodes(); List sources = new ArrayList(nodes.length); for (int i = 0; i < nodes.length; i++) { ...
1,121,725
public void createPartControl(Composite parent) { GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; gridData.verticalAlignment = GridData.END; top = new Composite(parent, SWT.NONE); GridLayout gridLayout = new GridLayout(); gridLayout.ma...
public void createPartControl(Composite parent) { GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.FILL; gridData.grabExcessHorizontalSpace = true; gridData.verticalAlignment = GridData.END; top = new Composite(parent, SWT.NONE); GridLayout gridLayout = new GridLayout(); gridLayout.ma...
1,121,726
public void dispose() { PhotonPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this); unlisten(); if (quoteFeed != null) { quoteFeed.unlistenLevel2(listenedSymbol); } quoteFeed = null; }
public void dispose() { PhotonPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this); unlisten(); if (quoteFeed != null) { quoteFeed.unlistenLevel2(listenedSymbol); } PhotonPlugin plugin = PhotonPlugin.getDefault(); plugin.unregisterStockOrderTicket(this); }
1,121,727
public void update() { Object[] selections = getSelectionModel().getSelections(); Object displayTarget = getUIController().getInformationQuarter() .getDisplayTarget(); Folder folder; if (displayTarget instanceof Directory) { folder = ((Di...
public void update() { Object[] selections = getSelectionModel().getSelections(); Object displayTarget = getUIController().getInformationQuarter() .getDisplayTarget(); Folder folder; if (displayTarget instanceof Directory) { folder = ((Di...
1,121,728
public void update() { Object[] selections = getSelectionModel().getSelections(); Object displayTarget = getUIController().getInformationQuarter() .getDisplayTarget(); Folder folder; if (displayTarget instanceof Directory) { folder = ((Di...
public void update() { Object[] selections = getSelectionModel().getSelections(); Object displayTarget = getUIController().getInformationQuarter() .getDisplayTarget(); Folder folder; if (displayTarget instanceof Directory) { folder = ((Di...
1,121,729
public void actionPerformed(ActionEvent e) { Member[] nodes = getController().getNodeManager().getNodes(); List canidates = new ArrayList(); for (int i = 0; i < nodes.length; i++) { if (nodes[i].isCompleteyConnected()) { canidates.add(new MemberWrapper(nodes[i])); ...
public void actionPerformed(ActionEvent e) { List<Member> conNodes = getController().getNodeManager() .getConnectedNodes(); List canidates = new ArrayList(); for (int i = 0; i < nodes.length; i++) { if (nodes[i].isCompleteyConnected()) { canidates.add(new MemberWrapper...
1,121,730
public void actionPerformed(ActionEvent e) { Member[] nodes = getController().getNodeManager().getNodes(); List canidates = new ArrayList(); for (int i = 0; i < nodes.length; i++) { if (nodes[i].isCompleteyConnected()) { canidates.add(new MemberWrapper(nodes[i])); ...
public void actionPerformed(ActionEvent e) { Member[] nodes = getController().getNodeManager().getNodes(); List canidates = new ArrayList(); for (int i = 0; i < nodes.length; i++) { if (nodes[i].isCompleteyConnected()) { canidates.add(new MemberWrapper(nodes[i])); ...
1,121,731
public void testMessageAdapter() { PhotonAdapterFactory fact = new PhotonAdapterFactory(); Message aMessage = FIXMessageUtil.newExecutionReport(new InternalID("456"), OrderManagerTest.CL_ORD_ID, "987", ExecTransType.STATUS, ExecType.PARTIAL_FILL, OrdStatus.PARTIALLY_FILLED, Side.BUY, new BigDecimal(1000), new Big...
public void testMessageAdapter() { PhotonAdapterFactory fact = new PhotonAdapterFactory(); Message aMessage = FIXMessageUtil.newExecutionReport(new InternalID("456"), OrderManagerTest.CL_ORD_ID, "987", ExecTransType.STATUS, ExecType.PARTIAL_FILL, OrdStatus.PARTIALLY_FILLED, Side.BUY, new BigDecimal(1000), new Big...
1,121,732
private JComponent createFileDetailsPanel() { FileDetailsPanel fileDetailsPanel = new FileDetailsPanel( getController(), selectionModel); Preferences pref = getController().getPreferences(); // check property to enable preview // preview of images is memory hungry // ma...
private JComponent createFileDetailsPanel() { FileDetailsPanel fileDetailsPanel = new FileDetailsPanel( getController(), selectionModel); Preferences pref = getController().getPreferences(); // check property to enable preview // preview of images is memory hungry // ma...
1,121,733
public Object run(Object args) throws Exception { FIXDataDictionaryManager.setFIXVersion(FIXDataDictionaryManager.FIX_4_2_BEGIN_STRING); MessageBundleManager.registerCoreMessageBundle(); fixMessageHistory = new FIXMessageHistory(); jmsConnector = new JMSConnector(); orderManager = new OrderManager(idFactory, fi...
public Object run(Object args) throws Exception { FIXDataDictionaryManager.setFIXVersion(FIXDataDictionaryManager.FIX_4_2_BEGIN_STRING); MessageBundleManager.registerCoreMessageBundle(); fixMessageHistory = new FIXMessageHistory(); jmsConnector = new JMSConnector(); orderManager = new OrderManager(idFactory, fi...
1,121,734
public void run() { String tooltip = Translation.getTranslation("general.powerfolder"); tooltip += " "; if (getController().getFolderRepository().isAnyFolderSyncing()) { tooltip += Translation .getTranslation("systray.tooltip.syncing"); ...
public void run() { String tooltip = Translation.getTranslation("general.powerfolder"); tooltip += " "; if (getController().getFolderRepository().isAnyFolderSyncing()) { tooltip += Translation .getTranslation("systray.tooltip.syncing"); ...
1,121,735
public void testNetworkAddresses() { NetworkHelper nu = NetworkHelper.getInstance(); assertNotNull(nu); // TODO: Cheap, needs change assertEquals(nu.getInterfaceAddresses().size(), nu.getNetworkAddresses().size()); }
public void testNetworkAddresses() throws UnknownHostException { NetworkHelper nu = NetworkHelper.getInstance(); assertNotNull(nu); // TODO: Cheap, needs change assertEquals(nu.getInterfaceAddresses().size(), nu.getNetworkAddresses().size()); }
1,121,738
public void setOnLAN(boolean onlan) { onLAN = onlan; if (onlan) getController().getNodeManager().addChatMember(member); else getController().getNodeManager().removeChatMember(member); synchronized (out) { out.setBandwidthLimiter(getController().getTransferManag...
public void setOnLAN(boolean onlan) { onLAN = onlan; if (onlan) getController().getNodeManager().addChatMember(member); else getController().getNodeManager().removeChatMember(member); synchronized (out) { out.setBandwidthLimiter(getController().getTransferManag...
1,121,743
public Object[] getChildren(Object element) { if (element instanceof FIXMessageHistory) { FIXMessageHistory history = (FIXMessageHistory) element; return history.getLatestExecutionReports(); } return new Object[0]; }
public Object[] getChildren(Object element) { if (element instanceof FIXMessageHistory) { FIXMessageHistory history = (FIXMessageHistory) element; return history.getHistory(); } return new Object[0]; }
1,121,744
public synchronized void setConnectionHandlerFactory( ConnectionHandlerFactory conHanFactory) { Reject.ifNull(conHanFactory, "The factory must not be null"); log().warn("Setting connection factory: " + conHanFactory); this.conHanFactory = conHanFactory; }
public synchronized void setConnectionHandlerFactory( ConnectionHandlerFactory conHanFactory) { Reject.ifNull(conHanFactory, "The factory must not be null"); log().verbose("Setting new connection factory: " + conHanFactory); this.conHanFactory = conHanFactory; }
1,121,745
public void testAbortUpload() { // Create a 10 megs file TestHelper.createRandomFile(folderBart.getLocalBase(), 10000000); folderBart.scanLocalFiles(true); TestHelper.waitForCondition(2, new TestHelper.Condition() { public boolean reached() { return bartModel.ge...
public void testAbortUpload() { // Create a 10 megs file TestHelper.createRandomFile(folderBart.getLocalBase(), 10000000); folderBart.scanLocalFiles(true); TestHelper.waitForCondition(2, new TestHelper.Condition() { public boolean reached() { return getContoller...
1,121,746
public boolean reached() { return bartModel.getRowCount() > 0; }
public boolean reached() { return getContollerBart().getTransferManager() .getActiveUploads().length == 1; }
1,121,747
public boolean reached() { return bartModel.getRowCount() > 0; }
public boolean reached() { return getContollerBart().getTransferManager() .getActiveUploads().length >= 1; }
1,121,748
public boolean reached() { return bartModel.getRowCount() == 0; }
public boolean reached() { return getContollerBart().getTransferManager() .getActiveUploads().length == 0 && getContollerBart().getTransferManager() .getQueuedUploads().length == 0; }
1,121,749
public void testSingleFileUpload() { TestHelper.createRandomFile(folderBart.getLocalBase()); folderBart.scanLocalFiles(true); // Copy TestHelper.waitMilliSeconds(5000); // No upload in tablemodel assertEquals(0, bartModel.getRowCount()); // Check correct events from ...
public void testSingleFileUpload() { TestHelper.createRandomFile(folderBart.getLocalBase()); folderBart.scanLocalFiles(true); // Copy TestHelper.waitMilliSeconds(1500); // No upload in tablemodel assertEquals(0, bartModel.getRowCount()); // Check correct events from ...
1,121,750
private void fireFileCountChanged() { synchronized (this) { if (filteredFilelist != null) { FilterChangedEvent event = new FilterChangedEvent(this, filteredFilelist); for (int i = 0; i < listeners.size(); i++) { FileFilterChangeLi...
private void fireFileCountChanged() { synchronized (this) { if (filteredFilelist != null) { FilterChangedEvent event = new FilterChangedEvent(this, filteredFilelist); for (int i = 0; i < listeners.size(); i++) { FileFilterChangeLi...
1,121,751
private void fireFileFilterChanged() { synchronized (this) { if (filteredFilelist != null) { FilterChangedEvent event = new FilterChangedEvent(this, filteredFilelist); for (int i = 0; i < listeners.size(); i++) { FileFilterChangeL...
private void fireFileFilterChanged() { synchronized (this) { if (filteredFilelist != null) { FilterChangedEvent event = new FilterChangedEvent(this, filteredFilelist); for (int i = 0; i < listeners.size(); i++) { FileFilterChangeL...
1,121,752
private void resizeReconnectorPool() { synchronized (reconnectors) { int nReconnector = reconnectors.size(); // Calculate required reconnectors int reqReconnectors = Math.min( Constants.MAX_NUMBER_RECONNECTORS, reconne...
private void resizeReconnectorPool() { synchronized (reconnectors) { int nReconnector = reconnectors.size(); // Calculate required reconnectors int reqReconnectors = Math.min( Constants.MAX_NUMBER_RECONNECTORS, reconne...
1,121,753
public static Test suite() { LoggerAdapter.initializeLogger("test");/* TestSuite suite = new TestSuite(); suite.addTest(new OrderLoaderTest("testEndToEndCustom")); suite.addTest(new OrderLoaderTest("testWithCustomField")); return suite;*/ return new MarketceteraTestSuite...
public static Test suite() { /* TestSuite suite = new TestSuite(); suite.addTest(new OrderLoaderTest("testEndToEndCustom")); suite.addTest(new OrderLoaderTest("testWithCustomField")); return suite;*/ return new MarketceteraTestSuite(OrderLoaderTest.class, OrderLoader.OL_...
1,121,755
public Message getLatestExecutionReport(String clOrdID) { for (MessageHolder holder : latestExecutionReportsList) { Message executionReport = holder.getMessage(); try { String possMatch = executionReport.getString(ClOrdID.FIELD); if (possMatch.equals(clOrdID)){ LoggerAdapter.debug("Returning latest exec...
public Message getLatestExecutionReport(String clOrdID) { for (MessageHolder holder : latestExecutionReportsList) { Message executionReport = holder.getMessage(); try { String possMatch = executionReport.getString(ClOrdID.FIELD); if (possMatch.equals(clOrdID)){ return executionReport; } } catc...
1,121,756
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,757
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,758
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,759
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,760
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,761
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,762
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,763
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,764
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,765
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,766
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,767
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
public void testLexer(){ Lexer lexer = new Lexer(); lexer.setInput("ASDF asd 123,4 123.4 123;4 abc;d abc.d 1 1.1.1\t .01\te1.0\t123.b"); Token aToken = lexer.getNextToken(); assertEquals(StringToken.class, aToken.getClass()); assertEquals("ASDF", aToken.getImage()); aToken...
1,121,768
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
1,121,769
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
1,121,770
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
1,121,771
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
1,121,772
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
1,121,773
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
public void testTypedTokens() { Lexer lexer = new Lexer(); lexer.setInput("17 18.5 16.4 12.3 19"); Token aToken = lexer.getNextToken(); assertEquals(IntToken.class, aToken.getClass()); assertEquals("17", aToken.getImage()); assertEquals(17, ((NumberToken)aToken).intValu...
1,121,774
public void actionPerformed(ActionEvent event) { fileFilterModel.setShowExpected(showExpectedBox.isSelected()); }
public void actionPerformed(ActionEvent event) { fileFilterModel.setShowNormal(showNormalBox.isSelected()); }
1,121,776
public void actionPerformed(ActionEvent event) { fileFilterModel.setShowDeleted(showDeletedBox.isSelected()); }
public void actionPerformed(ActionEvent event) { fileFilterModel.setShowExpected(showExpectedBox.isSelected()); }
1,121,777
private void update() { int normal = fileFilterModel.getNormalCount(); int deleted = fileFilterModel.getDeletedCount(); int expected = fileFilterModel.getExpectedCount(); String normalText = ""; if (normal == -1) { normalText = "?"; } else { normalText...
private void update() { int normal = fileFilterModel.getNormalCount(); int deleted = fileFilterModel.getDeletedCount(); int expected = fileFilterModel.getExpectedCount(); String normalText = ""; if (normal == -1) { normalText = "?"; } else { normalText...
1,121,778
public void testNetworkAddresses() throws UnknownHostException { NetworkHelper nu = NetworkHelper.getInstance(); assertNotNull(nu); // TODO: Cheap, needs change assertEquals(nu.getInterfaceAddresses().size(), nu.getNetworkAddresses().size()); // Test a non LAN address: assertFalse(NetworkUtil.isOnAny...
public void testNetworkAddresses() throws UnknownHostException { NetworkHelper nu = NetworkHelper.getInstance(); assertNotNull(nu); // TODO: Cheap, needs change assertEquals(nu.getInterfaceAddresses().size(), nu.getNetworkAddresses().size()); // Test a non LAN address: assertFalse(NetworkUtil.isOnAny...
1,121,779
protected Component getContent() { FormLayout layout = new FormLayout("pref:grow", "pref"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); table = new JTable(new ProblemTableModel()); table.setDefaultRenderer(Object.class, new Probl...
protected Component getContent() { FormLayout layout = new FormLayout("pref:grow", "pref"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); table = new JTable(new ProblemTableModel()); table.setDefaultRenderer(Object.class, new Probl...
1,121,781
protected void handleCounterpartyMessage(Message aMessage) { super.handleCounterpartyMessage(aMessage); }
public void handleCounterpartyMessage(Message aMessage) { super.handleCounterpartyMessage(aMessage); }
1,121,782
protected void handleInternalMessage(Message aMessage) { super.handleInternalMessage(aMessage); }
public void handleInternalMessage(Message aMessage) { super.handleInternalMessage(aMessage); }
1,121,783
public String getType() { return type; }
public String getType() { if (this.type == null) return this.getClass().getSimpleName(); else return type; }
1,121,785
public String getValueString(Controller controller) { if (type != Integer.class) { throw new IllegalStateException("This preferences entry has type " + type.getName() + " cannot acces as String"); } return controller.getPreferences().get(preferencesKey, defa...
public String getValueString(Controller controller) { if (type != String.class) { throw new IllegalStateException("This preferences entry has type " + type.getName() + " cannot acces as String"); } return controller.getPreferences().get(preferencesKey, defau...
1,121,787
public static Test suite() { MarketceteraTestSuite suite = new MarketceteraTestSuite(QuickFIXAdapterTest.class); suite.addTest(new RepeatedTest(new QuickFIXAdapterTest("testMessagePassthrough"), 5)); return suite; }
public static Test suite() { MarketceteraTestSuite suite = new MarketceteraTestSuite(QuickFIXAdapterTest.class, OrderManagementSystem.OMS_MESSAGE_BUNDLE_INFO); suite.addTest(new RepeatedTest(new QuickFIXAdapterTest("testMessagePassthrough"), 5)); return suite; }
1,121,788
public void testBigFileCopy() { System.out.println("FileTransferTest.testEmptyFileCopy"); // Set both folders to auto download folderAtBart.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); folderAtLisa.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); // Register listeners ...
public void testBigFileCopy() { System.out.println("FileTransferTest.testEmptyFileCopy"); // Set both folders to auto download folderAtBart.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); folderAtLisa.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); // Register listeners ...
1,121,789
public void testEmptyFileCopy() throws IOException, InterruptedException { System.out.println("FileTransferTest.testEmptyFileCopy"); // Set both folders to auto download folderAtBart.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); folderAtLisa.setSyncProfile(SyncProfile.AUTO_DOWNLOAD...
public void testEmptyFileCopy() throws IOException, InterruptedException { System.out.println("FileTransferTest.testEmptyFileCopy"); // Set both folders to auto download folderAtBart.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); folderAtLisa.setSyncProfile(SyncProfile.AUTO_DOWNLOAD...
1,121,790
public void testFileUpdate() throws IOException { System.out.println("FileTransferTest.testFileUpdate"); // Set both folders to auto download folderAtBart.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); folderAtLisa.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); // First ...
public void testFileUpdate() throws IOException { System.out.println("FileTransferTest.testFileUpdate"); // Set both folders to auto download folderAtBart.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); folderAtLisa.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); // First ...
1,121,791
public void testMultipleFileCopy() throws IOException { System.out.println("FileTransferTest.testMultipleFileCopy"); // Set both folders to auto download folderAtBart.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); folderAtLisa.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); ...
public void testMultipleFileCopy() throws IOException { System.out.println("FileTransferTest.testMultipleFileCopy"); // Set both folders to auto download folderAtBart.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); folderAtLisa.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); ...
1,121,792
public void testSmallFileCopy() throws IOException { // Set both folders to auto download folderAtBart.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); folderAtLisa.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); File testFileBart = new File(folderAtBart.getLocalBase(), "TestFile....
public void testSmallFileCopy() throws IOException { // Set both folders to auto download folderAtBart.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); folderAtLisa.setSyncProfile(SyncProfile.AUTO_DOWNLOAD_FROM_ALL); File testFileBart = new File(folderAtBart.getLocalBase(), "TestFile....
1,121,793
public final String describeProblem() { switch (problemType) { case CONTAINS_ILLEGAL_LINUX_CHARS : return "The filename contains characters that may cause problems on Unix/Linux computers.\nThe character / is not allowed on those computers"; case CONTAINS_ILLEGAL_MACOSX_C...
public final String describeProblem() { switch (problemType) { case CONTAINS_ILLEGAL_LINUX_CHARS : return "The filename contains characters that may cause problems on Unix/Linux computers.\nThe character / is not allowed on those computers"; case CONTAINS_ILLEGAL_MACOSX_C...
1,121,794
private JButton createOKButton() { JButton theButton = createOKButton(new ActionListener() { public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // work...
private JButton createOKButton() { JButton theButton = createOKButton(new ActionListener() { public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // work...
1,121,795
private JButton createOKButton() { JButton theButton = createOKButton(new ActionListener() { public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // work...
private JButton createOKButton() { JButton theButton = createOKButton(new ActionListener() { public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // work...
1,121,796
private JButton createOKButton() { JButton theButton = createOKButton(new ActionListener() { public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // work...
private JButton createOKButton() { JButton theButton = createOKButton(new ActionListener() { public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // work...
1,121,797
private JButton createOKButton() { JButton theButton = createOKButton(new ActionListener() { public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // work...
private JButton createOKButton() { JButton theButton = createOKButton(new ActionListener() { public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // work...
1,121,798
public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // working thread (i.e. prohibit re-entrance) okButton.setEnabled(false); // sin...
public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // working thread (i.e. prohibit re-entrance) okButton.setEnabled(false); // sin...
1,121,799
public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // working thread (i.e. prohibit re-entrance) okButton.setEnabled(false); // sin...
public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // working thread (i.e. prohibit re-entrance) okButton.setEnabled(false); // sin...
1,121,800
public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // working thread (i.e. prohibit re-entrance) okButton.setEnabled(false); // sin...
public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // working thread (i.e. prohibit re-entrance) okButton.setEnabled(false); // sin...
1,121,801
public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // working thread (i.e. prohibit re-entrance) okButton.setEnabled(false); // sin...
public void actionPerformed(ActionEvent e) { // // OK button event handler // // disable the OK button while we are in the // working thread (i.e. prohibit re-entrance) okButton.setEnabled(false); // sin...
1,121,802
public void initComponents() { mydnsndsModel = new ValueHolder(ConfigurationEntry.DYNDNS_HOSTNAME .getValue(getController())); mydnsndsModel.addValueChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { String dyndns = ...
public void initComponents() { mydnsndsModel = new ValueHolder(ConfigurationEntry.DYNDNS_HOSTNAME .getValue(getController())); mydnsndsModel.addValueChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { String dyndns = ...
1,121,803
void showDynDNSTab(boolean enable) { // Don't add or remove it twice if (enable && dynDnsSettingsTab != null || !enable && dynDnsSettingsTab == null) return; if (enable) dynDnsSettingsTab = new DynDnsSettingsTab(getController(), mydnsndsModel); else dynDnsSe...
void showDynDNSTab(boolean enable) { // Don't add or remove it twice if (enable && dynDnsSettingsTab != null || !enable && dynDnsSettingsTab == null) return; if (enable) dynDnsSettingsTab = new DynDnsSettingsTab(getController(), mydnsndsModel); else dynDnsSe...
1,121,804
private void showTab(boolean enable, PreferenceTab tab, int tabindex) { if (enable) { preferenceTabs.add(tab); //calculate a valid insert index before inserting int currentNumberOfTabs = tabbedPane.getTabCount(); int newTabindex = Math.min(tabindex, currentNumberOf...
private void showTab(boolean enable, PreferenceTab tab, int tabindex) { if (enable) { if (!preferenceTabs.contains(tab)) { preferenceTabs.add(tab); } //calculate a valid insert index before inserting int currentNumberOfTabs = tabbedPane.getTabCount(); int newTabind...
1,121,805
private void storeFolderDB() { if (logVerbose) { log().debug("storeFolderDB " + getFiles().length); } if (!shutdown) { if (!getController().isStarted()) { // Not storing return; } } synchronized (scanLock) { ...
private void storeFolderDB() { if (logVerbose) { log().debug("storeFolderDB. " + getFiles().length + " Files in db"); } if (!shutdown) { if (!getController().isStarted()) { // Not storing return; } } synchronized (scan...
1,121,807
public void initComponents() { mydnsndsModel = new ValueHolder(ConfigurationEntry.DYNDNS_HOSTNAME .getValue(getController())); mydnsndsModel.addValueChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { String dyndns = ...
public void initComponents() { mydnsndsModel = new ValueHolder(ConfigurationEntry.DYNDNS_HOSTNAME .getValue(getController())); mydnsndsModel.addValueChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { String dyndns = ...
1,121,809
public static final void setLogFile(String logFilename) { File debugDir = getDebugDir(); File detailLogsDir = new File(debugDir, "detaillogs"); System.out.println("detailLogsDir: " + detailLogsDir.getAbsolutePath()); debugDir.mkdir(); detailLogsDir.mkdirs(); logFile = new Fil...
public static final void setLogFile(String logFilename) { File debugDir = getDebugDir(); File detailLogsDir = new File(debugDir, "detaillogs"); System.out.println("detailLogsDir: " + detailLogsDir.getAbsolutePath()); debugDir.mkdir(); detailLogsDir.mkdirs(); logFile = new Fil...
1,121,810
public static final void setLogFile(String logFilename) { File debugDir = getDebugDir(); File detailLogsDir = new File(debugDir, "detaillogs"); System.out.println("detailLogsDir: " + detailLogsDir.getAbsolutePath()); debugDir.mkdir(); detailLogsDir.mkdirs(); logFile = new Fil...
public static final void setLogFile(String logFilename) { File debugDir = getDebugDir(); File detailLogsDir = new File(debugDir, "detaillogs"); System.out.println("detailLogsDir: " + detailLogsDir.getAbsolutePath()); debugDir.mkdir(); detailLogsDir.mkdirs(); logFile = new Fil...
1,121,811
private void initializePlugins() { String pluginsStr = ConfigurationEntry.PLUGINS .getValue(getController()); if (StringUtils.isBlank(pluginsStr)) { return; } log().warn("Initalizing plugins: " + pluginsStr); StringTokenizer nizer = new StringTokenizer(plugin...
private void initializePlugins() { String pluginsStr = ConfigurationEntry.PLUGINS .getValue(getController()); if (StringUtils.isBlank(pluginsStr)) { return; } log().info("Initalizing plugins: " + pluginsStr); StringTokenizer nizer = new StringTokenizer(plugin...
1,121,812
private final boolean scanFile(File fileToScan, String currentDirName) { if (!fileToScan.exists()) { // hardware no longer available return false; } // this is a incomplete fileinfo just find one fast in the remaining // list // log().verbose( // "scan...
private final boolean scanFile(File fileToScan, String currentDirName) { if (!fileToScan.exists()) { // hardware no longer available return false; } // this is a incomplete fileinfo just find one fast in the remaining // list // log().verbose( // "scan...
1,121,814
public ScanResult scanFolder(Folder folder) { Reject.ifNull(folder, "folder cannot be null"); if (currentScanningFolder != null) { throw new IllegalStateException( "Not allowed to start another scan while scanning is in process"); } if (logEnabled) { ...
public ScanResult scanFolder(Folder folder) { Reject.ifNull(folder, "folder cannot be null"); if (currentScanningFolder != null) { throw new IllegalStateException( "Not allowed to start another scan while scanning is in process"); } if (logEnabled) { ...
1,121,815
public ScanResult scanFolder(Folder folder) { Reject.ifNull(folder, "folder cannot be null"); if (currentScanningFolder != null) { throw new IllegalStateException( "Not allowed to start another scan while scanning is in process"); } if (logEnabled) { ...
public ScanResult scanFolder(Folder folder) { Reject.ifNull(folder, "folder cannot be null"); if (currentScanningFolder != null) { throw new IllegalStateException( "Not allowed to start another scan while scanning is in process"); } if (logEnabled) { ...
1,121,816
private JPanel createToolbar() { JButton cancel = new JButton(Translation .getTranslation("general.cancel")); cancel.setMnemonic(Translation.getTranslation("general.cancel.key") .trim().charAt(0)); JButton ok = new JButton(Translation.getTranslation("general.ok")); ...
private JPanel createToolbar() { JButton cancel = new JButton(Translation .getTranslation("general.cancel")); cancel.setMnemonic(Translation.getTranslation("general.cancel.key") .trim().charAt(0)); JButton ok = new JButton(Translation.getTranslation("general.ok")); ...
1,121,819
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (!busy || id != owner.getID()) return; switch (pack.get_data_type()) { case Wavelet.BIGPACKHEADER: if (curPackNum == HEADER_PACK_NUM && pack.get_data_data_bpHeader_requestType() == type) {...
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (!busy || id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: if (curPackNum == HEADER_PACK_NUM && pack.get_data_data_bpHeader_requestType() == typ...
1,121,820
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (!busy || id != owner.getID()) return; switch (pack.get_data_type()) { case Wavelet.BIGPACKHEADER: if (curPackNum == HEADER_PACK_NUM && pack.get_data_data_bpHeader_requestType() == type) {...
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (!busy || id != owner.getID()) return; switch (pack.get_data_type()) { case Wavelet.BIGPACKHEADER: if (curPackNum == HEADER_PACK_NUM && pack.get_data_data_bpHeader_requestType() == type) {...
1,121,821
public void newRequest(BigPack msg) { if (!busy) { busy = true; type = msg.getType(); curPackNum = HEADER_PACK_NUM; sendRequest(); } }
public void newRequest(short mType) { if (!busy) { busy = true; type = msg.getType(); curPackNum = HEADER_PACK_NUM; sendRequest(); } }
1,121,822