diff --git a/src/main/java/kieker/gui/Main.java b/src/main/java/kieker/gui/Main.java index c276f226c426f0c4b47149f84c05db11865462f3..d81eb6fa7782b2536b54ff394c4fcc8b87a86166 100644 --- a/src/main/java/kieker/gui/Main.java +++ b/src/main/java/kieker/gui/Main.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui; import kieker.gui.controller.MainViewController; diff --git a/src/main/java/kieker/gui/controller/AggregatedTracesSubViewController.java b/src/main/java/kieker/gui/controller/AggregatedTracesSubViewController.java index 488b797b1e27b2d7caadca37df2ff991b945854b..8ce401dbba4b2f14ce99caf34ce6f2985d8bd5b5 100644 --- a/src/main/java/kieker/gui/controller/AggregatedTracesSubViewController.java +++ b/src/main/java/kieker/gui/controller/AggregatedTracesSubViewController.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.controller; import kieker.gui.model.AggregatedTracesSubViewModel; @@ -9,7 +25,7 @@ import kieker.gui.view.AggregatedTracesSubView; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; -public class AggregatedTracesSubViewController implements SelectionListener { +public class AggregatedTracesSubViewController implements SelectionListener, ISubController { private final DataModel model; private final AggregatedTracesSubView view; @@ -22,6 +38,7 @@ public class AggregatedTracesSubViewController implements SelectionListener { this.view = new AggregatedTracesSubView(this.model, this.aggregatedTracesSubViewModel, propertiesModel, this); } + @Override public AggregatedTracesSubView getView() { return this.view; } diff --git a/src/main/java/kieker/gui/controller/FailedTracesSubViewController.java b/src/main/java/kieker/gui/controller/FailedTracesSubViewController.java index cbef6bc2a6fada3b5c9b37d31f0c16fe024c2761..d42878b0d0bd669c953c23d49c484c8f55dde8c5 100644 --- a/src/main/java/kieker/gui/controller/FailedTracesSubViewController.java +++ b/src/main/java/kieker/gui/controller/FailedTracesSubViewController.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.controller; import kieker.gui.model.DataModel; @@ -9,7 +25,7 @@ import kieker.gui.view.TracesSubView; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; -public class FailedTracesSubViewController implements SelectionListener { +public class FailedTracesSubViewController implements SelectionListener, ISubController { private final TracesSubViewModel tracesSubViewModel; private final TracesSubView view; @@ -19,6 +35,7 @@ public class FailedTracesSubViewController implements SelectionListener { this.view = new TracesSubView(TracesSubView.Type.SHOW_JUST_FAILED_TRACES, model, this.tracesSubViewModel, propertiesModel, this); } + @Override public TracesSubView getView() { return this.view; } diff --git a/src/main/java/kieker/gui/controller/FailureContainingTracesSubViewController.java b/src/main/java/kieker/gui/controller/FailureContainingTracesSubViewController.java index 934e80b5256f1815d4d235cc7a14828071771df3..6342c853f4dddfd81fd0d33f4dbbb2a961b50722 100644 --- a/src/main/java/kieker/gui/controller/FailureContainingTracesSubViewController.java +++ b/src/main/java/kieker/gui/controller/FailureContainingTracesSubViewController.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.controller; import kieker.gui.model.DataModel; @@ -9,7 +25,7 @@ import kieker.gui.view.TracesSubView; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; -public class FailureContainingTracesSubViewController implements SelectionListener { +public class FailureContainingTracesSubViewController implements SelectionListener, ISubController { private final TracesSubViewModel tracesSubViewModel; private final TracesSubView view; @@ -19,6 +35,7 @@ public class FailureContainingTracesSubViewController implements SelectionListen this.view = new TracesSubView(TracesSubView.Type.SHOW_JUST_FAILURE_CONTAINING_TRACES, model, this.tracesSubViewModel, propertiesModel, this); } + @Override public TracesSubView getView() { return this.view; } diff --git a/src/main/java/kieker/gui/model/importer/stages/Cloner.java b/src/main/java/kieker/gui/controller/ISubController.java similarity index 51% rename from src/main/java/kieker/gui/model/importer/stages/Cloner.java rename to src/main/java/kieker/gui/controller/ISubController.java index a846056c7aa640b7302885b287d8ef1336eb95fb..a01b452902d64b0d21ed58b245cbb91f3d254d1f 100644 --- a/src/main/java/kieker/gui/model/importer/stages/Cloner.java +++ b/src/main/java/kieker/gui/controller/ISubController.java @@ -14,32 +14,12 @@ * limitations under the License. ***************************************************************************/ -package kieker.gui.model.importer.stages; +package kieker.gui.controller; -import teetime.framework.AbstractConsumerStage; -import teetime.framework.OutputPort; +import kieker.gui.view.ISubView; -/** - * Distributes incoming elements to the two output ports. - * - * @author Nils Christian Ehmke - */ -public final class Cloner<T> extends AbstractConsumerStage<T> { - - private final OutputPort<T> firstOutputPort = super.createOutputPort(); - private final OutputPort<T> secondOutputPort = super.createOutputPort(); - - @Override - protected void execute(final T element) { - this.firstOutputPort.send(element); - this.secondOutputPort.send(element); - } +public interface ISubController { - public OutputPort<T> getFirstOutputPort() { - return this.firstOutputPort; - } + public ISubView getView(); - public OutputPort<T> getSecondOutputPort() { - return this.secondOutputPort; - } } diff --git a/src/main/java/kieker/gui/controller/MainViewController.java b/src/main/java/kieker/gui/controller/MainViewController.java index f64137eb3201e5594b19a6124b607bada74c60e1..2a234e72023464ff0047a6c5da5e6d6413ed66f3 100644 --- a/src/main/java/kieker/gui/controller/MainViewController.java +++ b/src/main/java/kieker/gui/controller/MainViewController.java @@ -1,18 +1,32 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.controller; import kieker.gui.model.DataModel; import kieker.gui.model.MainViewModel; import kieker.gui.model.MainViewModel.SubView; import kieker.gui.model.PropertiesModel; -import kieker.gui.view.AggregatedTracesSubView; +import kieker.gui.view.ISubView; import kieker.gui.view.MainView; -import kieker.gui.view.RecordsSubView; -import kieker.gui.view.TracesSubView; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; -public class MainViewController implements SelectionListener { +public final class MainViewController implements SelectionListener { private final DataModel dataModel; private final MainViewModel mainViewModel; @@ -20,23 +34,27 @@ public class MainViewController implements SelectionListener { private final MainView view; public MainViewController() { + // Create the top models this.dataModel = new DataModel(); - this.mainViewModel = new MainViewModel(); this.propertiesModel = new PropertiesModel(); - final RecordsSubViewController subView1Controller = new RecordsSubViewController(this.dataModel); - final TracesSubViewController subView2Controller = new TracesSubViewController(this.dataModel, this.propertiesModel); - final AggregatedTracesSubViewController subView3Controller = new AggregatedTracesSubViewController(this.dataModel, this.propertiesModel); - final FailedTracesSubViewController subView4Controller = new FailedTracesSubViewController(this.dataModel, this.propertiesModel); - final FailureContainingTracesSubViewController subView5Controller = new FailureContainingTracesSubViewController(this.dataModel, this.propertiesModel); - - final RecordsSubView subView1 = subView1Controller.getView(); - final TracesSubView subView2 = subView2Controller.getView(); - final AggregatedTracesSubView subView3 = subView3Controller.getView(); - final TracesSubView subView4 = subView4Controller.getView(); - final TracesSubView subView5 = subView5Controller.getView(); - - this.view = new MainView(this.dataModel, this.mainViewModel, this, subView1, subView2, subView4, subView3, subView5); + // Create the sub-controllers + final ISubController subViewController1 = new RecordsSubViewController(this.dataModel); + final ISubController subViewController2 = new TracesSubViewController(this.dataModel, this.propertiesModel); + final ISubController subViewController3 = new FailedTracesSubViewController(this.dataModel, this.propertiesModel); + final ISubController subViewController4 = new AggregatedTracesSubViewController(this.dataModel, this.propertiesModel); + final ISubController subViewController5 = new FailureContainingTracesSubViewController(this.dataModel, this.propertiesModel); + + // Get the sub-views from the controllers + final ISubView subView1 = subViewController1.getView(); + final ISubView subView2 = subViewController2.getView(); + final ISubView subView3 = subViewController3.getView(); + final ISubView subView4 = subViewController4.getView(); + final ISubView subView5 = subViewController5.getView(); + + // Create the main model and the main view + this.mainViewModel = new MainViewModel(); + this.view = new MainView(this.dataModel, this.mainViewModel, this, subView1, subView2, subView3, subView4, subView5); } public void showView() { @@ -45,25 +63,27 @@ public class MainViewController implements SelectionListener { @Override public void widgetSelected(final SelectionEvent e) { - if (e.item == this.view.getTrtmExplorer()) { - this.mainViewModel.setCurrentActiveSubView(SubView.NONE); - } - if (e.item == this.view.getTrtmRecords()) { - this.mainViewModel.setCurrentActiveSubView(SubView.RECORDS_SUB_VIEW); - } - if (e.item == this.view.getTrtmTraces()) { - this.mainViewModel.setCurrentActiveSubView(SubView.TRACES_SUB_VIEW); + this.handlePotentialTreeSelection(e); + this.handlePotentialMenuSelection(e); + this.handlePotentialPropertiesSelection(e); + } + + private void handlePotentialPropertiesSelection(final SelectionEvent e) { + if (e.widget == this.view.getMntmShortOperationNames()) { + this.propertiesModel.setShortOperationNames(true); } - if (e.item == this.view.getTrtmAggregatedTraces()) { - this.mainViewModel.setCurrentActiveSubView(SubView.AGGREGATED_TRACES_SUB_VIEW); + if (e.widget == this.view.getMntmLongOperationNames()) { + this.propertiesModel.setShortOperationNames(false); } - if (e.item == this.view.getTrtmJustFailedTraces()) { - this.mainViewModel.setCurrentActiveSubView(SubView.FAILED_TRACES_SUB_VIEW); + if (e.widget == this.view.getMntmShortComponentNames()) { + this.propertiesModel.setShortComponentNames(true); } - if (e.item == this.view.getTrtmJustTracesContaining()) { - this.mainViewModel.setCurrentActiveSubView(SubView.FAILURE_CONTAINING_TRACES_SUB_VIEW); + if (e.widget == this.view.getMntmLongComponentNames()) { + this.propertiesModel.setShortComponentNames(false); } + } + private void handlePotentialMenuSelection(final SelectionEvent e) { if (e.widget == this.view.getMntmOpenMonitoringLog()) { final String selectedDirectory = this.view.getDialog().open(); @@ -71,21 +91,30 @@ public class MainViewController implements SelectionListener { this.dataModel.loadMonitoringLogFromFS(selectedDirectory); } } + if (e.widget == this.view.getMntmExit()) { this.view.close(); } + } - if (e.widget == this.view.getMntmShortOperationNames()) { - this.propertiesModel.setShortOperationNames(true); + private void handlePotentialTreeSelection(final SelectionEvent e) { + if (e.item == this.view.getTrtmExplorer()) { + this.mainViewModel.setCurrentActiveSubView(SubView.NONE); } - if (e.widget == this.view.getMntmLongOperationNames()) { - this.propertiesModel.setShortOperationNames(false); + if (e.item == this.view.getTrtmRecords()) { + this.mainViewModel.setCurrentActiveSubView(SubView.RECORDS_SUB_VIEW); } - if (e.widget == this.view.getMntmShortComponentNames()) { - this.propertiesModel.setShortComponentNames(true); + if (e.item == this.view.getTrtmTraces()) { + this.mainViewModel.setCurrentActiveSubView(SubView.TRACES_SUB_VIEW); } - if (e.widget == this.view.getMntmLongComponentNames()) { - this.propertiesModel.setShortComponentNames(false); + if (e.item == this.view.getTrtmAggregatedTraces()) { + this.mainViewModel.setCurrentActiveSubView(SubView.AGGREGATED_TRACES_SUB_VIEW); + } + if (e.item == this.view.getTrtmJustFailedTraces()) { + this.mainViewModel.setCurrentActiveSubView(SubView.FAILED_TRACES_SUB_VIEW); + } + if (e.item == this.view.getTrtmJustTracesContaining()) { + this.mainViewModel.setCurrentActiveSubView(SubView.FAILURE_CONTAINING_TRACES_SUB_VIEW); } } diff --git a/src/main/java/kieker/gui/controller/RecordsSubViewController.java b/src/main/java/kieker/gui/controller/RecordsSubViewController.java index 661f173562e47d9ddd1053c221c4e4206876275a..8f0492f45e55ad85a1a2418044f09225062c294a 100644 --- a/src/main/java/kieker/gui/controller/RecordsSubViewController.java +++ b/src/main/java/kieker/gui/controller/RecordsSubViewController.java @@ -1,9 +1,25 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.controller; import kieker.gui.model.DataModel; import kieker.gui.view.RecordsSubView; -public class RecordsSubViewController { +public class RecordsSubViewController implements ISubController { private final DataModel model; private final RecordsSubView view; @@ -13,6 +29,7 @@ public class RecordsSubViewController { this.view = new RecordsSubView(this.model, this); } + @Override public RecordsSubView getView() { return this.view; } diff --git a/src/main/java/kieker/gui/controller/TracesSubViewController.java b/src/main/java/kieker/gui/controller/TracesSubViewController.java index 8a860321109bf7c89920f5f306cc791851c585b7..ae788f4e2fa55fee72eaf20b2757924862b16529 100644 --- a/src/main/java/kieker/gui/controller/TracesSubViewController.java +++ b/src/main/java/kieker/gui/controller/TracesSubViewController.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.controller; import kieker.gui.model.DataModel; @@ -9,7 +25,7 @@ import kieker.gui.view.TracesSubView; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; -public class TracesSubViewController implements SelectionListener { +public class TracesSubViewController implements SelectionListener, ISubController { private final TracesSubViewModel tracesSubViewModel; private final TracesSubView view; @@ -19,6 +35,7 @@ public class TracesSubViewController implements SelectionListener { this.view = new TracesSubView(TracesSubView.Type.SHOW_ALL_TRACES, model, this.tracesSubViewModel, propertiesModel, this); } + @Override public TracesSubView getView() { return this.view; } diff --git a/src/main/java/kieker/gui/model/AggregatedTracesSubViewModel.java b/src/main/java/kieker/gui/model/AggregatedTracesSubViewModel.java index 88bc468e31e812595e3a1309380abb637c7e01dd..29db6652c0ecb52ae7932891cebec6c775a15728 100644 --- a/src/main/java/kieker/gui/model/AggregatedTracesSubViewModel.java +++ b/src/main/java/kieker/gui/model/AggregatedTracesSubViewModel.java @@ -1,3 +1,21 @@ +/****************************import java.util.Observable; + +import kieker.gui.model.domain.AggregatedExecutionEntry; +kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.model; import java.util.Observable; diff --git a/src/main/java/kieker/gui/model/DataModel.java b/src/main/java/kieker/gui/model/DataModel.java index 1569c7c9ba42db533ea9b5d16ee72f074d7d1774..0598525a91ccf970c99df8264b34d95d1c22575c 100644 --- a/src/main/java/kieker/gui/model/DataModel.java +++ b/src/main/java/kieker/gui/model/DataModel.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.model; import java.io.File; diff --git a/src/main/java/kieker/gui/model/MainViewModel.java b/src/main/java/kieker/gui/model/MainViewModel.java index 8f80b61fae1dc56575ef60ccc1170c6d2e2bbbb0..12ddc393cbac60be32d4dec7c90ff3f337e13567 100644 --- a/src/main/java/kieker/gui/model/MainViewModel.java +++ b/src/main/java/kieker/gui/model/MainViewModel.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.model; import java.util.Observable; diff --git a/src/main/java/kieker/gui/model/PropertiesModel.java b/src/main/java/kieker/gui/model/PropertiesModel.java index b3d1a3ec3456cb3ba4b83e5256068ae1b850a1fd..9a575245a746730ea39d70fcd5285d66d49ea327 100644 --- a/src/main/java/kieker/gui/model/PropertiesModel.java +++ b/src/main/java/kieker/gui/model/PropertiesModel.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.model; import java.util.Observable; diff --git a/src/main/java/kieker/gui/model/TracesSubViewModel.java b/src/main/java/kieker/gui/model/TracesSubViewModel.java index d0de2ec622802849adc0fa9b3ba39b157fc388b6..c0adb986b8e0aa341acdf95329a55503e882a924 100644 --- a/src/main/java/kieker/gui/model/TracesSubViewModel.java +++ b/src/main/java/kieker/gui/model/TracesSubViewModel.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.model; import java.util.Observable; diff --git a/src/main/java/kieker/gui/model/domain/AbstractExecutionEntry.java b/src/main/java/kieker/gui/model/domain/AbstractExecutionEntry.java index 00c5ac4f55fe2e79d3a78004a74ec9f10951cdc9..17f68d5d46f97a5a168778d106b6c5bbd9fbf9b9 100644 --- a/src/main/java/kieker/gui/model/domain/AbstractExecutionEntry.java +++ b/src/main/java/kieker/gui/model/domain/AbstractExecutionEntry.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.model.domain; import java.util.ArrayList; diff --git a/src/main/java/kieker/gui/model/importer/stages/FailedTraceFilter.java b/src/main/java/kieker/gui/model/importer/stages/FailedTraceFilter.java index 2e6d2270e2b4d6753c994f7f037e158fb2a409a8..747b9cbfecd7b1079f1472377505608e6b2fb698 100644 --- a/src/main/java/kieker/gui/model/importer/stages/FailedTraceFilter.java +++ b/src/main/java/kieker/gui/model/importer/stages/FailedTraceFilter.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.model.importer.stages; import kieker.gui.model.domain.ExecutionEntry; diff --git a/src/main/java/kieker/gui/model/importer/stages/FailureContainingTraceFilter.java b/src/main/java/kieker/gui/model/importer/stages/FailureContainingTraceFilter.java index cf4138b1e7699e7ad56df4c3b9c58d7627119b63..14f0512aef19d07edeff7f37f8a07795cb739c59 100644 --- a/src/main/java/kieker/gui/model/importer/stages/FailureContainingTraceFilter.java +++ b/src/main/java/kieker/gui/model/importer/stages/FailureContainingTraceFilter.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.model.importer.stages; import kieker.gui.model.domain.ExecutionEntry; diff --git a/src/main/java/kieker/gui/view/AggregatedTracesSubView.java b/src/main/java/kieker/gui/view/AggregatedTracesSubView.java index dfd5dab4c273e02065593004b804616f732872e9..ac166bccd5f2b92925d7c506c43f1406c3f64704 100644 --- a/src/main/java/kieker/gui/view/AggregatedTracesSubView.java +++ b/src/main/java/kieker/gui/view/AggregatedTracesSubView.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view; import java.util.List; @@ -298,7 +314,7 @@ public class AggregatedTracesSubView implements Observer, ISubView { item.setText(new String[] { executionEntry.getContainer(), componentName, operationString, "", minDuration, avgDuration, maxDuration }); } else { item.setText(new String[] { executionEntry.getContainer(), componentName, operationString, Integer.toString(executionEntry.getCalls()), minDuration, avgDuration, - maxDuration }); + maxDuration }); } if (executionEntry.isFailed()) { diff --git a/src/main/java/kieker/gui/view/ISubView.java b/src/main/java/kieker/gui/view/ISubView.java index d6a2734807bd5699f809384fc11fcfc77a3afbd2..239d6715122d02a64b9e5d906c7b0b0d05710458 100644 --- a/src/main/java/kieker/gui/view/ISubView.java +++ b/src/main/java/kieker/gui/view/ISubView.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view; import org.eclipse.swt.widgets.Composite; diff --git a/src/main/java/kieker/gui/view/MainView.java b/src/main/java/kieker/gui/view/MainView.java index 5f1dc7b4a0919d86796fa024b83ac9c55e9d536d..99bf79941d7f531c8f1d715c924b39c799b06d8b 100644 --- a/src/main/java/kieker/gui/view/MainView.java +++ b/src/main/java/kieker/gui/view/MainView.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view; import java.util.Observable; diff --git a/src/main/java/kieker/gui/view/RecordsSubView.java b/src/main/java/kieker/gui/view/RecordsSubView.java index a17d8d20afd344e35567ee090cf8f6a94c87ca20..9dfdcf19ef29c4b832ca204161294a953dda5b81 100644 --- a/src/main/java/kieker/gui/view/RecordsSubView.java +++ b/src/main/java/kieker/gui/view/RecordsSubView.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view; import java.util.List; diff --git a/src/main/java/kieker/gui/view/TracesSubView.java b/src/main/java/kieker/gui/view/TracesSubView.java index 5dbb6b0fe9fddf1e64d4e4b93f22faa363485911..8b8725379d0d4975e22b71aaf8a13a0d94983ce7 100644 --- a/src/main/java/kieker/gui/view/TracesSubView.java +++ b/src/main/java/kieker/gui/view/TracesSubView.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view; import java.util.List; diff --git a/src/main/java/kieker/gui/view/util/AbstractDirectedComparator.java b/src/main/java/kieker/gui/view/util/AbstractDirectedComparator.java index 52a28e6495d6c61f58705e12ac1578c5c233ba65..e4f10fa8c04a6fd347cfb4110846fe7bd8ec040c 100644 --- a/src/main/java/kieker/gui/view/util/AbstractDirectedComparator.java +++ b/src/main/java/kieker/gui/view/util/AbstractDirectedComparator.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view.util; import java.util.Comparator; diff --git a/src/main/java/kieker/gui/view/util/ExecutionEntryComponentComparator.java b/src/main/java/kieker/gui/view/util/ExecutionEntryComponentComparator.java index 9ef0303be70afc8232698de996a653f8bf758c9f..e5bf9bee6644ea6036057c692ec499085160608a 100644 --- a/src/main/java/kieker/gui/view/util/ExecutionEntryComponentComparator.java +++ b/src/main/java/kieker/gui/view/util/ExecutionEntryComponentComparator.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view.util; import kieker.gui.model.domain.ExecutionEntry; diff --git a/src/main/java/kieker/gui/view/util/ExecutionEntryContainerComparator.java b/src/main/java/kieker/gui/view/util/ExecutionEntryContainerComparator.java index 9095cda73a7a45df9215e4cbedcad9515775e46d..219f25fe99de91e57ffb990fda95145e6bdabaf9 100644 --- a/src/main/java/kieker/gui/view/util/ExecutionEntryContainerComparator.java +++ b/src/main/java/kieker/gui/view/util/ExecutionEntryContainerComparator.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view.util; import kieker.gui.model.domain.ExecutionEntry; diff --git a/src/main/java/kieker/gui/view/util/ExecutionEntryDurationComparator.java b/src/main/java/kieker/gui/view/util/ExecutionEntryDurationComparator.java index 7f1537ff820aceb32a37802fb2e89a4f24f753e8..f7302fe3f40274a840681a129adb6c8c3b02a7cb 100644 --- a/src/main/java/kieker/gui/view/util/ExecutionEntryDurationComparator.java +++ b/src/main/java/kieker/gui/view/util/ExecutionEntryDurationComparator.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view.util; import kieker.gui.model.domain.ExecutionEntry; diff --git a/src/main/java/kieker/gui/view/util/ExecutionEntryOperationComparator.java b/src/main/java/kieker/gui/view/util/ExecutionEntryOperationComparator.java index 61c9bca0dab8e2915ae8d437571153d3597a6629..dda9307a9554a4baaef6c702415be78c083a9ca9 100644 --- a/src/main/java/kieker/gui/view/util/ExecutionEntryOperationComparator.java +++ b/src/main/java/kieker/gui/view/util/ExecutionEntryOperationComparator.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view.util; import kieker.gui.model.domain.ExecutionEntry; diff --git a/src/main/java/kieker/gui/view/util/ExecutionEntryTraceIDComparator.java b/src/main/java/kieker/gui/view/util/ExecutionEntryTraceIDComparator.java index cd9dea0ae3f102c546c4a8b30ce0a62d603c5463..cdb65e233232990d75d3d11ec721482e98ff16ad 100644 --- a/src/main/java/kieker/gui/view/util/ExecutionEntryTraceIDComparator.java +++ b/src/main/java/kieker/gui/view/util/ExecutionEntryTraceIDComparator.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view.util; import kieker.gui.model.domain.ExecutionEntry; diff --git a/src/main/java/kieker/gui/view/util/RecordEntryTimestampComparator.java b/src/main/java/kieker/gui/view/util/RecordEntryTimestampComparator.java index 2b03ff11bebc2f869f5b18f1fe6c2bdcbefe5d73..d34febd25296feea45f3dd0d934ef544eb6c08b8 100644 --- a/src/main/java/kieker/gui/view/util/RecordEntryTimestampComparator.java +++ b/src/main/java/kieker/gui/view/util/RecordEntryTimestampComparator.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view.util; import kieker.gui.model.domain.RecordEntry; diff --git a/src/main/java/kieker/gui/view/util/RecordEntryTypeComparator.java b/src/main/java/kieker/gui/view/util/RecordEntryTypeComparator.java index 611a46f8f6e872e615c7cca3868afff31c03af42..f5c4cc81485d8fd2523eb2b17dcb1fd42ccb603b 100644 --- a/src/main/java/kieker/gui/view/util/RecordEntryTypeComparator.java +++ b/src/main/java/kieker/gui/view/util/RecordEntryTypeComparator.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view.util; import kieker.gui.model.domain.RecordEntry; diff --git a/src/main/java/kieker/gui/view/util/TableColumnSortListener.java b/src/main/java/kieker/gui/view/util/TableColumnSortListener.java index 67fba7d56deaa201457a77cea85a69c172f98c20..b6873cae527f9defd26ab19b3f85adaf3a397c5d 100644 --- a/src/main/java/kieker/gui/view/util/TableColumnSortListener.java +++ b/src/main/java/kieker/gui/view/util/TableColumnSortListener.java @@ -1,3 +1,19 @@ +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + package kieker.gui.view.util; import java.util.Collections; diff --git a/src/main/java/kieker/gui/view/util/TreeColumnSortListener.java b/src/main/java/kieker/gui/view/util/TreeColumnSortListener.java index 882c4952af89e4b227fd0dd849b64ff096347f72..db46858285907f57c84d0d5bb1ee904824c358e9 100644 --- a/src/main/java/kieker/gui/view/util/TreeColumnSortListener.java +++ b/src/main/java/kieker/gui/view/util/TreeColumnSortListener.java @@ -1,6 +1,20 @@ -package kieker.gui.view.util; - -import java.util.Collections; +/*************************************************************************** + * Copyright 2014 Kieker Project (http://kieker-monitoring.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ***************************************************************************/ + +package kieker.gui.view.util;import java.util.Collections; import java.util.List; import org.eclipse.swt.SWT; @@ -8,6 +22,7 @@ import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.widgets.Tree; import org.eclipse.swt.widgets.TreeColumn; +n; public final class TreeColumnSortListener<T> extends SelectionAdapter {