Przeglądaj źródła

Documentation added, Warnings removed

Andreas Mülder 14 lat temu
rodzic
commit
b5512749e6

+ 10 - 0
plugins/org.yakindu.sct.statechart.core.resource/src/org/yakindu/sct/statechart/core/resource/Activator.java

@@ -1,3 +1,13 @@
+/**
+ * Copyright (c) 2011 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	committers of YAKINDU - initial API and implementation
+ * 
+ */
 package org.yakindu.sct.statechart.core.resource;
 
 import org.eclipse.ui.plugin.AbstractUIPlugin;

+ 23 - 9
plugins/org.yakindu.sct.statechart.core.resource/src/org/yakindu/sct/statechart/core/resource/factory/ExpressionsExecutableExtensionFactory.java

@@ -1,27 +1,41 @@
-/*
- * generated by Xtext
+/**
+ * Copyright (c) 2011 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	committers of YAKINDU - initial API and implementation
+ * 
  */
 package org.yakindu.sct.statechart.core.resource.factory;
 
+import org.eclipse.core.runtime.IExecutableExtensionFactory;
 import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
 import org.osgi.framework.Bundle;
 
 import com.google.inject.Injector;
 
 /**
- * This class was generated. Customizations should only happen in a newly
- * introduced subclass. 
+ * {@link IExecutableExtensionFactory} to use with classes from this bundle.
+ * 
+ * @author andreas muelder
+ * 
  */
-public class ExpressionsExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
+public class ExpressionsExecutableExtensionFactory extends
+		AbstractGuiceAwareExecutableExtensionFactory {
 
 	@Override
 	protected Bundle getBundle() {
-		return org.yakindu.sct.statechart.core.resource.Activator.getDefault().getBundle();
+		return org.yakindu.sct.statechart.core.resource.Activator.getDefault()
+				.getBundle();
 	}
-	
+
 	@Override
 	protected Injector getInjector() {
-		return org.yakindu.sct.statechart.ui.internal.ExpressionsActivator.getInstance().getInjector("org.yakindu.sct.statechart.Expressions");
+		return org.yakindu.sct.statechart.ui.internal.ExpressionsActivator
+				.getInstance().getInjector(
+						"org.yakindu.sct.statechart.Expressions"); //$//$NON-NLS-N$
 	}
-	
+
 }

+ 13 - 4
plugins/org.yakindu.sct.statechart.core.resource/src/org/yakindu/sct/statechart/core/resource/factory/InjectMembersResourceFactory.java

@@ -1,3 +1,13 @@
+/**
+ * Copyright (c) 2011 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	committers of YAKINDU - initial API and implementation
+ * 
+ */
 package org.yakindu.sct.statechart.core.resource.factory;
 
 import org.eclipse.emf.common.util.URI;
@@ -12,8 +22,10 @@ import com.google.inject.Inject;
 import de.itemis.xtext.utils.gmf.resource.InjectMembersResource;
 
 /**
+ * ResourceFactory for the {@link InjectMembersResource} with services for the
+ * statechart model.
  * 
- * @author andreas muelder (andreas.muelder@itemis.de)
+ * @author andreas muelder
  * 
  */
 public class InjectMembersResourceFactory extends XMIResourceFactoryImpl {
@@ -28,11 +40,8 @@ public class InjectMembersResourceFactory extends XMIResourceFactoryImpl {
 	@Override
 	public Resource createResource(URI uri) {
 		InjectMembersResource resource = new InjectMembersResource(uri);
-		// Add a Transition service
 		resource.getServices().add(transitionService);
-		// Add a State service
 		resource.getServices().add(stateService);
-		// Add a Statechart service
 		resource.getServices().add(statechartService);
 		return resource;
 	}

+ 10 - 0
plugins/org.yakindu.sct.statechart.core.resource/src/org/yakindu/sct/statechart/core/resource/provider/StatechartResourceDescription.java

@@ -1,3 +1,13 @@
+/**
+ * Copyright (c) 2011 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	committers of YAKINDU - initial API and implementation
+ * 
+ */
 package org.yakindu.sct.statechart.core.resource.provider;
 
 import java.util.HashMap;

+ 10 - 0
plugins/org.yakindu.sct.statechart.core.resource/src/org/yakindu/sct/statechart/core/resource/provider/StatechartResourceProvider.java

@@ -1,3 +1,13 @@
+/**
+ * Copyright (c) 2011 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	committers of YAKINDU - initial API and implementation
+ * 
+ */
 package org.yakindu.sct.statechart.core.resource.provider;
 
 

+ 10 - 0
plugins/org.yakindu.sct.statechart.core.resource/src/org/yakindu/sct/statechart/core/resource/services/StateInjectionService.java

@@ -1,3 +1,13 @@
+/**
+ * Copyright (c) 2011 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	committers of YAKINDU - initial API and implementation
+ * 
+ */
 package org.yakindu.sct.statechart.core.resource.services;
 
 import org.eclipse.emf.common.util.EList;

+ 10 - 0
plugins/org.yakindu.sct.statechart.core.resource/src/org/yakindu/sct/statechart/core/resource/services/StatechartInjectionService.java

@@ -1,3 +1,13 @@
+/**
+ * Copyright (c) 2011 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	committers of YAKINDU - initial API and implementation
+ * 
+ */
 package org.yakindu.sct.statechart.core.resource.services;
 
 import org.eclipse.emf.common.util.EList;

+ 10 - 0
plugins/org.yakindu.sct.statechart.core.resource/src/org/yakindu/sct/statechart/core/resource/services/TransitionInjectionService.java

@@ -1,3 +1,13 @@
+/**
+ * Copyright (c) 2011 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	committers of YAKINDU - initial API and implementation
+ * 
+ */
 package org.yakindu.sct.statechart.core.resource.services;
 
 import org.eclipse.emf.ecore.EAttribute;