Skip to content

Commit

Permalink
First commit of the Netbeans Platform Development. Default window and…
Browse files Browse the repository at this point in the history
… Projects modules.
  • Loading branch information
mbastian committed Mar 31, 2009
1 parent 8638b6f commit 6476ff5
Show file tree
Hide file tree
Showing 224 changed files with 2,033 additions and 21,521 deletions.
6 changes: 0 additions & 6 deletions .bzrignore

This file was deleted.

8 changes: 8 additions & 0 deletions DesktopBranding/build.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
<!-- for some information on what you could do (e.g. targets to override). -->
<!-- If you delete this file and reopen the project it will be recreated. -->
<project name="org.gephi.branding.desktop" default="netbeans" basedir=".">
<description>Builds, tests, and runs the project org.gephi.branding.desktop.</description>
<import file="nbproject/build-impl.xml"/>
</project>
6 changes: 6 additions & 0 deletions DesktopBranding/manifest.mf
@@ -0,0 +1,6 @@
Manifest-Version: 1.0
OpenIDE-Module: org.gephi.branding.desktop
OpenIDE-Module-Layer: org/gephi/branding/desktop/layer.xml
OpenIDE-Module-Localizing-Bundle: org/gephi/branding/desktop/Bundle.properties
OpenIDE-Module-Specification-Version: 1.0

30 changes: 30 additions & 0 deletions DesktopBranding/nbproject/build-impl.xml
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
*** GENERATED FROM project.xml - DO NOT EDIT ***
*** EDIT ../build.xml INSTEAD ***
-->
<project name="org.gephi.branding.desktop-impl" basedir="..">
<property file="nbproject/private/suite-private.properties"/>
<property file="nbproject/suite.properties"/>
<fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
<property file="${suite.dir}/nbproject/private/platform-private.properties"/>
<property file="${suite.dir}/nbproject/platform.properties"/>
<macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
<attribute name="name"/>
<attribute name="value"/>
<sequential>
<property name="@{name}" value="${@{value}}"/>
</sequential>
</macrodef>
<property file="${user.properties.file}"/>
<nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<nbmproject2:property name="netbeans.dest.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<fail message="You must define 'nbplatform.${nbplatform.active}.harness.dir'">
<condition>
<not>
<available file="${harness.dir}" type="dir"/>
</not>
</condition>
</fail>
<import file="${harness.dir}/build.xml"/>
</project>
8 changes: 8 additions & 0 deletions DesktopBranding/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
build.xml.data.CRC32=cc5f71f4
build.xml.script.CRC32=3a13ec7e
build.xml.stylesheet.CRC32=79c3b980
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=cc5f71f4
nbproject/build-impl.xml.script.CRC32=b97acb5c
nbproject/build-impl.xml.stylesheet.CRC32=deb65f65
File renamed without changes.
4 changes: 4 additions & 0 deletions DesktopBranding/nbproject/private/private.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
</project-private>
2 changes: 2 additions & 0 deletions DesktopBranding/nbproject/project.properties
@@ -0,0 +1,2 @@
javac.source=1.5
javac.compilerargs=-Xlint -Xlint:-serial
31 changes: 31 additions & 0 deletions DesktopBranding/nbproject/project.xml
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.apisupport.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
<code-name-base>org.gephi.branding.desktop</code-name-base>
<suite-component/>
<module-dependencies>
<dependency>
<code-name-base>org.gephi.project.api</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>1.0</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>7.18.1.1</specification-version>
</run-dependency>
</dependency>
</module-dependencies>
<public-packages>
<package>org.gephi.branding.desktop.actions</package>
</public-packages>
</data>
</configuration>
</project>
1 change: 1 addition & 0 deletions DesktopBranding/nbproject/suite.properties
@@ -0,0 +1 @@
suite.dir=${basedir}/..
@@ -0,0 +1 @@
OpenIDE-Module-Name=Desktop Branding
Empty file.
@@ -0,0 +1,2 @@
CTL_NewProject=New Project
CTL_SaveProject=Save Project
@@ -0,0 +1,21 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.gephi.branding.desktop.actions;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.gephi.project.api.ProjectController;
import org.gephi.project.api.Projects;
import org.openide.util.Lookup;

public final class NewProject implements ActionListener {

public void actionPerformed(ActionEvent e) {
//Projects p = Lookup.lookup(Projects.class);
//System.out.println(p.getProjects().get(0).toString());
ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
pc.newProject();
}
}
Expand Up @@ -19,18 +19,33 @@
along with Gephi. If not, see <http://www.gnu.org/licenses/>.
*/

package gephi.visualization.bridge;
package org.gephi.branding.desktop.actions;

import gephi.visualization.VizArchitecture;
import gephi.visualization.VizController;
import gephi.visualization.opengl.AbstractEngine;
import java.awt.event.ActionEvent;
import org.openide.util.HelpCtx;
import org.openide.util.NbBundle;
import org.openide.util.actions.SystemAction;

/**
*
* @author Mathieu
*/
public interface DataBridge {
public class SaveProject extends SystemAction {

@Override
public String getName() {
return NbBundle.getMessage(SaveProject.class, "CTL_SaveProject");
}

@Override
public HelpCtx getHelpCtx() {
return null;
}

@Override
public void actionPerformed(ActionEvent ev) {

}


public void updateWorld();
public boolean requireUpdate();
}
49 changes: 49 additions & 0 deletions DesktopBranding/src/org/gephi/branding/desktop/layer.xml
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
<filesystem>
<attr name="Menu\File\Separator2.instance\position" intvalue="100"/>
<attr name="Menu\File\org-netbeans-core-actions-SystemExit.instance\position" intvalue="400"/>
<folder name="Menu">
<folder name="Edit">
</folder>
<folder name="File">
<file name="Separator2_1.instance" url="Separator2_1.instance">
<attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
<attr name="position" intvalue="300"/>
</file>
<file name="Separator3.instance_hidden"/>
<file name="Separator4.instance_hidden"/>
<file name="org-openide-actions-PageSetupAction.instance_hidden"/>
<file name="org-openide-actions-PrintAction.instance_hidden"/>
<file name="org-openide-actions-SaveAction.instance_hidden"/>
<file name="org-openide-actions-SaveAllAction.instance_hidden"/>
<file name="org-openide-actions-SaveAsAction.shadow_hidden"/>
<file name="org-gephi-branding-desktop-actions-NewProject.instance">
<attr name="SystemFileSystem.localizingBundle" stringvalue="org.gephi.branding.desktop.actions.Bundle"/>
<attr name="delegate" newvalue="org.gephi.branding.desktop.actions.NewProject"/>
<attr name="displayName" bundlevalue="org.gephi.branding.desktop.actions.Bundle#CTL_NewProject"/>
<attr name="instanceCreate" methodvalue="org.openide.awt.Actions.alwaysEnabled"/>
<attr name="noIconInMenu" stringvalue="false"/>
<attr name="position" intvalue="200"/>
</file>
<file name="org-gephi-branding-desktop-actions-SaveProject.instance">
</file>
</folder>
<file name="GoTo_hidden"/>
<folder name="View">
<file name="Separator1.instance_hidden"/>
<file name="org-netbeans-core-actions-HTMLViewAction.instance_hidden"/>
<file name="org-netbeans-core-actions-LogAction.shadow_hidden"/>
</folder>
<folder name="Window">
<file name="CloneDocumentAction.shadow_hidden"/>
<file name="CloseAllButThisAction.shadow_hidden"/>
<file name="CloseAllDocumentsAction.shadow_hidden"/>
<file name="DocumentsAction.shadow_hidden"/>
<file name="ProgressListAction.shadow_hidden"/>
<file name="Separator5.instance_hidden"/>
<file name="SwitchToRecentDocumentAction.shadow_hidden"/>
<file name="org-netbeans-core-actions-GlobalPropertiesAction.shadow_hidden"/>
</folder>
</folder>
</filesystem>
8 changes: 8 additions & 0 deletions DesktopProjectController/build.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
<!-- for some information on what you could do (e.g. targets to override). -->
<!-- If you delete this file and reopen the project it will be recreated. -->
<project name="org.gephi.project.controller" default="netbeans" basedir=".">
<description>Builds, tests, and runs the project org.gephi.project.controller.</description>
<import file="nbproject/build-impl.xml"/>
</project>
6 changes: 6 additions & 0 deletions DesktopProjectController/manifest.mf
@@ -0,0 +1,6 @@
Manifest-Version: 1.0
OpenIDE-Module: org.gephi.project.controller
OpenIDE-Module-Layer: org/gephi/project/controller/layer.xml
OpenIDE-Module-Localizing-Bundle: org/gephi/project/controller/Bundle.properties
OpenIDE-Module-Specification-Version: 1.0

30 changes: 30 additions & 0 deletions DesktopProjectController/nbproject/build-impl.xml
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
*** GENERATED FROM project.xml - DO NOT EDIT ***
*** EDIT ../build.xml INSTEAD ***
-->
<project name="org.gephi.project.controller-impl" basedir="..">
<property file="nbproject/private/suite-private.properties"/>
<property file="nbproject/suite.properties"/>
<fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
<property file="${suite.dir}/nbproject/private/platform-private.properties"/>
<property file="${suite.dir}/nbproject/platform.properties"/>
<macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
<attribute name="name"/>
<attribute name="value"/>
<sequential>
<property name="@{name}" value="${@{value}}"/>
</sequential>
</macrodef>
<property file="${user.properties.file}"/>
<nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<nbmproject2:property name="netbeans.dest.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<fail message="You must define 'nbplatform.${nbplatform.active}.harness.dir'">
<condition>
<not>
<available file="${harness.dir}" type="dir"/>
</not>
</condition>
</fail>
<import file="${harness.dir}/build.xml"/>
</project>
8 changes: 8 additions & 0 deletions DesktopProjectController/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
build.xml.data.CRC32=70d07e49
build.xml.script.CRC32=72b428d4
build.xml.stylesheet.CRC32=79c3b980
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=70d07e49
nbproject/build-impl.xml.script.CRC32=65e789f7
nbproject/build-impl.xml.stylesheet.CRC32=deb65f65
Empty file.
4 changes: 4 additions & 0 deletions DesktopProjectController/nbproject/private/private.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
</project-private>
2 changes: 2 additions & 0 deletions DesktopProjectController/nbproject/project.properties
@@ -0,0 +1,2 @@
javac.source=1.5
javac.compilerargs=-Xlint -Xlint:-serial
37 changes: 37 additions & 0 deletions DesktopProjectController/nbproject/project.xml
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.apisupport.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
<code-name-base>org.gephi.project.controller</code-name-base>
<suite-component/>
<module-dependencies>
<dependency>
<code-name-base>org.gephi.branding.desktop</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>1.0</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.gephi.project.api</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>1.0</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>7.18.1.1</specification-version>
</run-dependency>
</dependency>
</module-dependencies>
<public-packages/>
</data>
</configuration>
</project>
1 change: 1 addition & 0 deletions DesktopProjectController/nbproject/suite.properties
@@ -0,0 +1 @@
suite.dir=${basedir}/..
@@ -0,0 +1 @@
org.gephi.project.controller.DesktopProjectController
@@ -0,0 +1 @@
OpenIDE-Module-Name=Desktop Project Controller

0 comments on commit 6476ff5

Please sign in to comment.