All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonsrc.ingenias.editor.IDEGUI Maven / Gradle / Ivy

Go to download

The INGENIAS Meta-Editor core. It is a set of facilities to generate an editor from a detailed xml description

There is a newer version: 1.0.9
Show newest version

/** 
 * Copyright (C) 2010  Jorge J. Gomez-Sanz, Ruben Fuentes, Juan Pavon
 * 
 * This file is part of the INGENME tool. INGENME is an open source meta-editor
 * which produces customized editors for user-defined modeling languages
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation version 3 of the License
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see 
 **/

package ingenias.editor;


import ingenias.editor.widget.DnDJTree;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ComponentEvent;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.WindowEvent;

import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JEditorPane;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import javax.swing.JProgressBar;
import javax.swing.JRadioButtonMenuItem;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.KeyStroke;
import javax.swing.border.BevelBorder;
import javax.swing.border.Border;
import javax.swing.border.TitledBorder;
import javax.swing.event.MenuKeyEvent;
import javax.swing.event.MenuKeyListener;



public abstract class IDEGUI extends javax.swing.JFrame  {

	public  JPanel rightPanel=new JPanel();
	JMenuItem about = new JMenuItem();
	JTree arbolObjetos =new JTree();;
	DnDJTree arbolProyectos = new DnDJTree();//rootProject);
	Border borderForEntitiesView;
	Border borderForProjectView;
	BorderLayout borderLayout2 = new BorderLayout();
	JPanel buttonModelPanel=new JPanel(new java.awt.BorderLayout());
	JMenuItem clearMessages = new JMenuItem();	

	JMenu menuCodeGenerator = new JMenu();
	JMenuItem copy = new JMenuItem();
	private JMenuItem copyImage = new JMenuItem();
	JMenuItem cpClipboard = new JMenuItem();
	JMenuItem delete = new JMenuItem();

	// GraphManager gm=GraphManager.initInstance(rootProject,arbolProyectos);
	private JMenu edit = new JMenu();
	protected JCheckBoxMenuItem editOnMessages;
	protected JCheckBoxMenuItem editPopUpProperties;
	private JMenuItem elimOverlap;

	JRadioButtonMenuItem  enableINGENIASView= new JRadioButtonMenuItem();
	JRadioButtonMenuItem  enableUMLView= new JRadioButtonMenuItem();
	JMenuItem exit = new JMenuItem();
	JMenu file = new JMenu();
	JMenuItem forcegc = new JMenuItem();
	private JRadioButtonMenuItem fullinforelats;
	BorderLayout gridLayout1 = new BorderLayout();
	GridLayout gridLayout2 = new GridLayout();
	JMenu help = new JMenu();
	private JMenuItem importFile;
	private JMenu jMenu3;
	JPanel jPanel1 = new JPanel();
	private JPanel jPanel2;
	JSplitPane jSplitPane1 = new JSplitPane();
	JSplitPane splitPanelDiagramMessagesPaneSeparator = new JSplitPane();
	private JRadioButtonMenuItem labelsonly;
	JMenuItem load = new JMenuItem();
	JTextPane logs = new JTextPane();
	JMenuBar mainMenuBar = new JMenuBar();
	JMenuItem manual = new JMenuItem();
	JPopupMenu messagesMenu = new JPopupMenu();
	JTabbedPaneWithCloseIcons messagespane = new JTabbedPaneWithCloseIcons();
	private JMenu modelingLanguageNotationSwitchMenu;
	JTextPane moduleOutput = new JTextPane();
	JMenu menuModules = new JMenu();
	JTextPane moutput = new JTextPane();
	JMenuItem newProject = new JMenuItem();
	JRadioButtonMenuItem noinformationrelats = new JRadioButtonMenuItem();
	JScrollPane outputpane = new JScrollPane();
	JMenuItem paste = new JMenuItem();
	JPanel pprin = new JPanel();
	JMenu preferences = new JMenu();
	JMenu profiles=new JMenu();
	JMenu project = new JMenu();
	JMenuItem properties = new JMenuItem();
	ButtonGroup propertiesEditModeSelection= new ButtonGroup();
	private JMenu propertiesModeMenu;
	JMenuItem redo = new JMenuItem();
	ButtonGroup relationshipSelection= new ButtonGroup();
	JMenuItem  resizeAll= new JMenuItem();
	JMenuItem  resizeAllDiagrams= new JMenuItem();
	javax.swing.tree.DefaultMutableTreeNode rootObjetos=
		new javax.swing.tree.DefaultMutableTreeNode("System Objects");
	javax.swing.tree.DefaultMutableTreeNode rootProject=
		new javax.swing.tree.DefaultMutableTreeNode("Project");
	JMenuItem save = new JMenuItem();
	JMenuItem saveas = new JMenuItem();
	JScrollPane scrollLogs = new JScrollPane();
	JScrollPane scrolloutput = new JScrollPane();
	JScrollPane scrollPaneForEntitiesView = new JScrollPane();
	JScrollPane scrollPaneForProyectView = new JScrollPane();
	private JButton Search;
	JEditorPane searchDiagramPanel= new JEditorPane();
	protected JTextField searchField;
	private JPanel searchPanel;
	JMenuItem selectall = new JMenuItem();
	JSplitPane splitPaneSeparatingProjectsAndEntitiesView = new JSplitPane();
	JMenuItem  switchINGENIASView= new JMenuItem();
	JMenuItem  switchUMLView= new JMenuItem();
	TitledBorder titleBoderForProjectView;

	TitledBorder titledBorderForEntitiesView;
	TitledBorder titledBorderForMessagesPane;
	JMenu menuTools = new JMenu();
	JMenuItem undo = new JMenuItem();
	ButtonGroup viewSelection= new ButtonGroup();
	JProgressBar pbar=new JProgressBar(1,100);

	public IDEGUI() {
		// To enable changes in cursor's shape
		this.getGlassPane().addMouseListener(new MouseAdapter(){});

		try {
			jbInit();
		}
		catch(Exception e) {
			e.printStackTrace();
		}
	}

	void about_actionPerformed(ActionEvent e) {

	}	

	void arbolObjetos_mouseClicked(MouseEvent e) {

	}

	
	void arbolProyectos_mouseClicked(MouseEvent e) {

	}
	
	void arbolProyectos_mouseEntered(MouseEvent e) {

	}
	void arbolProyectos_mouseExited(MouseEvent e) {

	}
	void arbolProyectos_mousePressed(MouseEvent e) {

	}
	void arbolProyectos_mouseReleased(MouseEvent e) {

	}
	void capture_actionPerformed(ActionEvent e) {
	}
	public void changePropertiesPanel(String oldName,String nname){
	 for (int k=0;k
            


© 2015 - 2024 Weber Informatics LLC | Privacy Policy