This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* the command has been executed, so extract extract the needed information | |
* from the application context. | |
* | |
* @see {https://github.com/samueltcsantos/eclipse-jdt} | |
* | |
*/ | |
public Object execute(ExecutionEvent event) throws ExecutionException { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jdt.info.handlers; | |
import java.util.List; | |
import java.util.ArrayList; | |
import org.eclipse.jdt.core.dom.ASTVisitor; | |
import org.eclipse.jdt.core.dom.MethodDeclaration; | |
/** | |
* Implementing a custom method visitor. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jdt.info.handlers; | |
import org.eclipse.core.commands.AbstractHandler; | |
import org.eclipse.core.commands.ExecutionEvent; | |
import org.eclipse.core.commands.ExecutionException; | |
import org.eclipse.core.resources.IProject; | |
import org.eclipse.core.resources.IWorkspace; | |
import org.eclipse.core.resources.IWorkspaceRoot; | |
import org.eclipse.core.resources.ResourcesPlugin; | |
import org.eclipse.core.runtime.CoreException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models; | |
/** | |
* A classe Conta representa uma conta bancaria simples. | |
* | |
* @author Samuel Santos | |
* | |
*/ | |
public class Conta { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers; | |
import java.util.ArrayList; | |
import java.util.List; | |
import models.Conta; | |
/** | |
* Gerenciador de Contas, permite ao usuario interagir com a classe conta. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package app; | |
import javax.swing.JOptionPane; | |
import controllers.GerenciadorDeConta; | |
/** | |
* @author Samuel T. C. Santos | |
* | |
* @see {https://github.com/samueltcsantos/javaoo/tree/master/dev} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.java.junit3x; | |
import com.java.junit.Produto; | |
import junit.framework.TestCase; | |
/** | |
* Tests JUnit3.x para a classe Produto. | |
* | |
* @author Samuel T. C. Santos | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.java.junit3x; | |
import com.java.junit.Produto; | |
import junit.framework.TestCase; | |
/** | |
* Tests JUnit3.x para a classe Produto. | |
* | |
* @author Samuel T. C. Santos | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.java.junit3x; | |
import junit.framework.Test; | |
import junit.framework.TestSuite; | |
public class AllTests { | |
public static void main(String args[]){ | |
junit.textui.TestRunner.run(suite());; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package classes; | |
import org.junit.runner.RunWith; | |
import org.junit.runners.Suite; | |
import org.junit.runners.Suite.SuiteClasses; | |
/** | |
* Suite de Teste para testar todas as classes juntas. | |
* | |
* @author Samuel T. C. Santos |